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

Public Types

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

Public Member Functions

const std::string & GetName () const
 
const std::string & GetProductModel () const
 
const Net::Vector & GetNets () const
 
const Net::StringMap GetNetsByName () const
 
std::shared_ptr< NetGetNet (const std::string &name) const
 
const Package::Vector & GetPackages () const
 
const Package::StringMap & GetPackagesByName () const
 
const Component::Vector & GetComponents () const
 
const Component::StringMap & GetComponentsByName () const
 
std::shared_ptr< ComponentGetComponent (const std::string &refDes) const
 
const Part::Vector & GetParts () const
 
const Part::StringMap & GetPartsByName () const
 
std::shared_ptr< NetGetNoneNet () const
 
bool Build (std::string path)
 
bool Build (std::shared_ptr< FileModel::Design::FileArchive > pFileModel)
 
std::shared_ptr< FileModel::Design::FileArchiveGetFileModel () const
 
void ClipFileModel ()
 
std::unique_ptr< Protobuf::ProductModel::Design > to_protobuf () const override
 
void from_protobuf (const Protobuf::ProductModel::Design &message) override
 
- Public Member Functions inherited from Odb::Lib::IProtoBuffable< Protobuf::ProductModel::Design >
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 22 of file Design.h.

Member Typedef Documentation

◆ StringMap

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

Definition at line 58 of file Design.h.

◆ Vector

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

Definition at line 57 of file Design.h.

Constructor & Destructor Documentation

◆ Design()

Odb::Lib::ProductModel::Design::Design ( )

Definition at line 15 of file Design.cpp.

◆ ~Design()

Odb::Lib::ProductModel::Design::~Design ( )

Definition at line 19 of file Design.cpp.

Member Function Documentation

◆ Build() [1/2]

bool Odb::Lib::ProductModel::Design::Build ( std::shared_ptr< FileModel::Design::FileArchive pFileModel)

Definition at line 117 of file Design.cpp.

◆ Build() [2/2]

bool Odb::Lib::ProductModel::Design::Build ( std::string  path)

Definition at line 107 of file Design.cpp.

◆ ClipFileModel()

void Odb::Lib::ProductModel::Design::ClipFileModel ( )

Definition at line 152 of file Design.cpp.

◆ from_protobuf()

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

◆ GetComponent()

std::shared_ptr< Component > Odb::Lib::ProductModel::Design::GetComponent ( const std::string &  refDes) const

Definition at line 71 of file Design.cpp.

◆ GetComponents()

const Component::Vector & Odb::Lib::ProductModel::Design::GetComponents ( ) const

Definition at line 61 of file Design.cpp.

◆ GetComponentsByName()

const Component::StringMap & Odb::Lib::ProductModel::Design::GetComponentsByName ( ) const

Definition at line 66 of file Design.cpp.

◆ GetFileModel()

std::shared_ptr< FileModel::Design::FileArchive > Odb::Lib::ProductModel::Design::GetFileModel ( ) const

Definition at line 147 of file Design.cpp.

◆ GetName()

const std::string & Odb::Lib::ProductModel::Design::GetName ( ) const

Definition at line 31 of file Design.cpp.

◆ GetNet()

std::shared_ptr< Net > Odb::Lib::ProductModel::Design::GetNet ( const std::string &  name) const

Definition at line 92 of file Design.cpp.

◆ GetNets()

const Net::Vector & Odb::Lib::ProductModel::Design::GetNets ( ) const

Definition at line 41 of file Design.cpp.

◆ GetNetsByName()

const Net::StringMap Odb::Lib::ProductModel::Design::GetNetsByName ( ) const

Definition at line 46 of file Design.cpp.

◆ GetNoneNet()

std::shared_ptr< Net > Odb::Lib::ProductModel::Design::GetNoneNet ( ) const

Definition at line 102 of file Design.cpp.

◆ GetPackages()

const Package::Vector & Odb::Lib::ProductModel::Design::GetPackages ( ) const

Definition at line 51 of file Design.cpp.

◆ GetPackagesByName()

const Package::StringMap & Odb::Lib::ProductModel::Design::GetPackagesByName ( ) const

Definition at line 56 of file Design.cpp.

◆ GetParts()

const Part::Vector & Odb::Lib::ProductModel::Design::GetParts ( ) const

Definition at line 82 of file Design.cpp.

◆ GetPartsByName()

const Part::StringMap & Odb::Lib::ProductModel::Design::GetPartsByName ( ) const

Definition at line 87 of file Design.cpp.

◆ GetProductModel()

const std::string & Odb::Lib::ProductModel::Design::GetProductModel ( ) const

Definition at line 36 of file Design.cpp.

◆ to_protobuf()

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

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