OdbDesignLib
OdbDesign ODB++ Parsing Library
 
Loading...
Searching...
No Matches
Odb::Lib::ProductModel::PinConnection Class Reference
Inheritance diagram for Odb::Lib::ProductModel::PinConnection:
Odb::Lib::IProtoBuffable< Odb::Lib::Protobuf::ProductModel::PinConnection >

Public Types

typedef std::vector< std::shared_ptr< PinConnection > > Vector
 
typedef std::map< std::string, std::shared_ptr< PinConnection > > StringMap
 

Public Member Functions

 PinConnection (std::shared_ptr< Component > pComponent, std::shared_ptr< Pin > pPin)
 
 PinConnection (std::shared_ptr< Component > pComponent, std::shared_ptr< Pin > pPin, const std::string &name)
 
std::shared_ptr< PinGetPin () const
 
std::shared_ptr< ComponentGetComponent () const
 
std::unique_ptr< Odb::Lib::Protobuf::ProductModel::PinConnection > to_protobuf () const override
 
void from_protobuf (const Odb::Lib::Protobuf::ProductModel::PinConnection &message) override
 
- Public Member Functions inherited from Odb::Lib::IProtoBuffable< Odb::Lib::Protobuf::ProductModel::PinConnection >
bool to_pbstring (std::string &pb_string) const
 
bool from_pbstring (const std::string &pb_string)
 
bool to_stream (std::ostream &outputStream) const
 
bool from_stream (std::istream &inputStream)
 
std::string to_json () const override
 
void from_json (const std::string &json) override
 

Static Public Member Functions

static std::string MakeName (const Component &component, const Pin &pin)
 

Detailed Description

Definition at line 16 of file PinConnection.h.

Member Typedef Documentation

◆ StringMap

typedef std::map<std::string, std::shared_ptr<PinConnection> > Odb::Lib::ProductModel::PinConnection::StringMap

Definition at line 33 of file PinConnection.h.

◆ Vector

typedef std::vector<std::shared_ptr<PinConnection> > Odb::Lib::ProductModel::PinConnection::Vector

Definition at line 32 of file PinConnection.h.

Constructor & Destructor Documentation

◆ PinConnection() [1/2]

Odb::Lib::ProductModel::PinConnection::PinConnection ( std::shared_ptr< Component pComponent,
std::shared_ptr< Pin pPin 
)

Definition at line 15 of file PinConnection.cpp.

◆ PinConnection() [2/2]

Odb::Lib::ProductModel::PinConnection::PinConnection ( std::shared_ptr< Component pComponent,
std::shared_ptr< Pin pPin,
const std::string &  name 
)

Definition at line 20 of file PinConnection.cpp.

Member Function Documentation

◆ from_protobuf()

void Odb::Lib::ProductModel::PinConnection::from_protobuf ( const Odb::Lib::Protobuf::ProductModel::PinConnection &  message)
overridevirtual

◆ GetComponent()

std::shared_ptr< Component > Odb::Lib::ProductModel::PinConnection::GetComponent ( ) const

Definition at line 39 of file PinConnection.cpp.

◆ GetPin()

std::shared_ptr< Pin > Odb::Lib::ProductModel::PinConnection::GetPin ( ) const

Definition at line 34 of file PinConnection.cpp.

◆ MakeName()

std::string Odb::Lib::ProductModel::PinConnection::MakeName ( const Component component,
const Pin pin 
)
static

Definition at line 27 of file PinConnection.cpp.

◆ to_protobuf()

std::unique_ptr< Protobuf::ProductModel::PinConnection > Odb::Lib::ProductModel::PinConnection::to_protobuf ( ) const
overridevirtual

The documentation for this class was generated from the following files: