3 #include "../odbdesign_export.h"
8 #include "PinConnection.h"
11 #include "../ProtoBuf/net.pb.h"
12 #include "../IProtoBuffable.h"
15 namespace Odb::Lib::ProductModel
20 Net(std::string name,
unsigned int index);
23 std::string GetName()
const;
24 PinConnection::Vector& GetPinConnections();
25 unsigned int GetIndex()
const;
26 bool AddPinConnection(std::shared_ptr<Component> pComponent, std::shared_ptr<Pin> pPin);
29 std::unique_ptr<Odb::Lib::Protobuf::ProductModel::Net> to_protobuf()
const override;
30 void from_protobuf(
const Odb::Lib::Protobuf::ProductModel::Net& message)
override;
32 typedef std::vector<std::shared_ptr<Net>> Vector;
33 typedef std::map<std::string, std::shared_ptr<Net>> StringMap;
37 PinConnection::Vector m_pinConnections;