OdbDesignLib
OdbDesign ODB++ Parsing Library
 
Loading...
Searching...
No Matches
Odb::Lib::FileModel::Design::ComponentsFile::ComponentRecord Struct Reference
Inheritance diagram for Odb::Lib::FileModel::Design::ComponentsFile::ComponentRecord:
Odb::Lib::IProtoBuffable< Odb::Lib::Protobuf::ComponentsFile::ComponentRecord > Odb::Lib::FileModel::Design::AttributeLookupTable

Classes

struct  ToeprintRecord
 

Public Types

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

Public Member Functions

std::unique_ptr< Odb::Lib::Protobuf::ComponentsFile::ComponentRecord > to_protobuf () const override
 
void from_protobuf (const Odb::Lib::Protobuf::ComponentsFile::ComponentRecord &message) override
 
- Public Member Functions inherited from Odb::Lib::IProtoBuffable< Odb::Lib::Protobuf::ComponentsFile::ComponentRecord >
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
 
- Public Member Functions inherited from Odb::Lib::FileModel::Design::AttributeLookupTable
const std::map< std::string, std::string > & GetAttributeLookupTable () const
 
bool ParseAttributeLookupTable (const std::string &AttributeLookupTableString)
 

Public Attributes

unsigned int pkgRef
 
double locationX
 
double locationY
 
double rotation
 
bool mirror
 
std::string compName
 
std::string partName
 
unsigned int id
 
unsigned int index
 
PropertyRecord::Vector m_propertyRecords
 
ToeprintRecord::Vector m_toeprintRecords
 

Static Public Attributes

static constexpr const char * RECORD_TOKEN = "CMP"
 

Additional Inherited Members

- Protected Attributes inherited from Odb::Lib::FileModel::Design::AttributeLookupTable
std::map< std::string, std::string > m_attributeLookupTable
 

Detailed Description

Definition at line 35 of file ComponentsFile.h.

Member Typedef Documentation

◆ StringMap

typedef std::map<std::string, std::shared_ptr<ComponentRecord> > Odb::Lib::FileModel::Design::ComponentsFile::ComponentRecord::StringMap

Definition at line 56 of file ComponentsFile.h.

◆ Vector

typedef std::vector<std::shared_ptr<ComponentRecord> > Odb::Lib::FileModel::Design::ComponentsFile::ComponentRecord::Vector

Definition at line 57 of file ComponentsFile.h.

Constructor & Destructor Documentation

◆ ~ComponentRecord()

Odb::Lib::FileModel::Design::ComponentsFile::ComponentRecord::~ComponentRecord ( )

Definition at line 198 of file ComponentsFile.cpp.

Member Function Documentation

◆ from_protobuf()

void Odb::Lib::FileModel::Design::ComponentsFile::ComponentRecord::from_protobuf ( const Odb::Lib::Protobuf::ComponentsFile::ComponentRecord &  message)
overridevirtual

◆ to_protobuf()

std::unique_ptr< Odb::Lib::Protobuf::ComponentsFile::ComponentRecord > Odb::Lib::FileModel::Design::ComponentsFile::ComponentRecord::to_protobuf ( ) const
overridevirtual

Member Data Documentation

◆ compName

std::string Odb::Lib::FileModel::Design::ComponentsFile::ComponentRecord::compName

Definition at line 45 of file ComponentsFile.h.

◆ id

unsigned int Odb::Lib::FileModel::Design::ComponentsFile::ComponentRecord::id

Definition at line 48 of file ComponentsFile.h.

◆ index

unsigned int Odb::Lib::FileModel::Design::ComponentsFile::ComponentRecord::index

Definition at line 50 of file ComponentsFile.h.

◆ locationX

double Odb::Lib::FileModel::Design::ComponentsFile::ComponentRecord::locationX

Definition at line 41 of file ComponentsFile.h.

◆ locationY

double Odb::Lib::FileModel::Design::ComponentsFile::ComponentRecord::locationY

Definition at line 42 of file ComponentsFile.h.

◆ m_propertyRecords

PropertyRecord::Vector Odb::Lib::FileModel::Design::ComponentsFile::ComponentRecord::m_propertyRecords

Definition at line 83 of file ComponentsFile.h.

◆ m_toeprintRecords

ToeprintRecord::Vector Odb::Lib::FileModel::Design::ComponentsFile::ComponentRecord::m_toeprintRecords

Definition at line 84 of file ComponentsFile.h.

◆ mirror

bool Odb::Lib::FileModel::Design::ComponentsFile::ComponentRecord::mirror

Definition at line 44 of file ComponentsFile.h.

◆ partName

std::string Odb::Lib::FileModel::Design::ComponentsFile::ComponentRecord::partName

Definition at line 46 of file ComponentsFile.h.

◆ pkgRef

unsigned int Odb::Lib::FileModel::Design::ComponentsFile::ComponentRecord::pkgRef

Definition at line 40 of file ComponentsFile.h.

◆ RECORD_TOKEN

constexpr const char* Odb::Lib::FileModel::Design::ComponentsFile::ComponentRecord::RECORD_TOKEN = "CMP"
inlinestaticconstexpr

Definition at line 53 of file ComponentsFile.h.

◆ rotation

double Odb::Lib::FileModel::Design::ComponentsFile::ComponentRecord::rotation

Definition at line 43 of file ComponentsFile.h.


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