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

Public Types

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

Public Member Functions

 Package (const std::string &name, unsigned int index)
 
std::string GetName () const
 
unsigned int GetIndex () const
 
void AddPin (const std::string &name)
 
std::shared_ptr< PinGetPin (const std::string &name) const
 
std::shared_ptr< PinGetPin (unsigned int index) const
 
const Pin::StringMap & GetPinsByName () const
 
const Pin::Vector & GetPins () const
 
std::unique_ptr< Odb::Lib::Protobuf::ProductModel::Package > to_protobuf () const override
 
void from_protobuf (const Odb::Lib::Protobuf::ProductModel::Package &message) override
 
- Public Member Functions inherited from Odb::Lib::IProtoBuffable< Odb::Lib::Protobuf::ProductModel::Package >
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
 

Detailed Description

Definition at line 15 of file Package.h.

Member Typedef Documentation

◆ StringMap

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

Definition at line 35 of file Package.h.

◆ Vector

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

Definition at line 34 of file Package.h.

Constructor & Destructor Documentation

◆ Package()

Odb::Lib::ProductModel::Package::Package ( const std::string &  name,
unsigned int  index 
)

Definition at line 9 of file Package.cpp.

◆ ~Package()

Odb::Lib::ProductModel::Package::~Package ( )

Definition at line 15 of file Package.cpp.

Member Function Documentation

◆ AddPin()

void Odb::Lib::ProductModel::Package::AddPin ( const std::string &  name)

Definition at line 70 of file Package.cpp.

◆ from_protobuf()

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

◆ GetIndex()

unsigned int Odb::Lib::ProductModel::Package::GetIndex ( ) const

Definition at line 65 of file Package.cpp.

◆ GetName()

std::string Odb::Lib::ProductModel::Package::GetName ( ) const

Definition at line 21 of file Package.cpp.

◆ GetPin() [1/2]

std::shared_ptr< Pin > Odb::Lib::ProductModel::Package::GetPin ( const std::string &  name) const

Definition at line 78 of file Package.cpp.

◆ GetPin() [2/2]

std::shared_ptr< Pin > Odb::Lib::ProductModel::Package::GetPin ( unsigned int  index) const

Definition at line 88 of file Package.cpp.

◆ GetPins()

const Pin::Vector & Odb::Lib::ProductModel::Package::GetPins ( ) const

Definition at line 26 of file Package.cpp.

◆ GetPinsByName()

const Pin::StringMap & Odb::Lib::ProductModel::Package::GetPinsByName ( ) const

Definition at line 97 of file Package.cpp.

◆ to_protobuf()

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

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