#include <Component.h>
Public Types | |
| typedef std::vector< std::shared_ptr< Component > > | Vector |
| typedef std::map< std::string, std::shared_ptr< Component > > | StringMap |
Public Member Functions | |
| Component () | |
| Component (const std::string &refDes, const std::string &partName, std::shared_ptr< Package > pPackage, unsigned int index, BoardSide side, std::shared_ptr< Part > pPart, std::optional< unsigned int > id=std::nullopt) | |
| ~Component () | |
| std::string | GetRefDes () const |
| std::string | GetPartName () const |
| std::shared_ptr< Package > | GetPackage () const |
| unsigned int | GetIndex () const |
| BoardSide | GetSide () const |
| std::shared_ptr< Part > | GetPart () const |
| std::optional< unsigned int > | GetId () const |
| std::unique_ptr< Odb::Lib::Protobuf::ProductModel::Component > | to_protobuf () const override |
| void | from_protobuf (const Odb::Lib::Protobuf::ProductModel::Component &message) override |
Public Member Functions inherited from Odb::Lib::IProtoBuffable< Odb::Lib::Protobuf::ProductModel::Component > | |
| 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 Utils::IJsonable | |
| virtual | ~IJsonable () |
Additional Inherited Members | |
Protected Member Functions inherited from Odb::Lib::IProtoBuffable< Odb::Lib::Protobuf::ProductModel::Component > | |
| IProtoBuffable ()=default | |
Protected Member Functions inherited from Utils::IJsonable | |
| IJsonable ()=default | |
Definition at line 18 of file Component.h.
| typedef std::map<std::string, std::shared_ptr<Component> > Odb::Lib::ProductModel::Component::StringMap |
Definition at line 43 of file Component.h.
| typedef std::vector<std::shared_ptr<Component> > Odb::Lib::ProductModel::Component::Vector |
Definition at line 42 of file Component.h.
| Odb::Lib::ProductModel::Component::Component | ( | ) |
Definition at line 14 of file Component.cpp.
| Odb::Lib::ProductModel::Component::Component | ( | const std::string & | refDes, |
| const std::string & | partName, | ||
| std::shared_ptr< Package > | pPackage, | ||
| unsigned int | index, | ||
| BoardSide | side, | ||
| std::shared_ptr< Part > | pPart, | ||
| std::optional< unsigned int > | id = std::nullopt |
||
| ) |
Definition at line 24 of file Component.cpp.
| Odb::Lib::ProductModel::Component::~Component | ( | ) |
Definition at line 35 of file Component.cpp.
|
overridevirtual |
Implements Odb::Lib::IProtoBuffable< Odb::Lib::Protobuf::ProductModel::Component >.
Definition at line 90 of file Component.cpp.
| std::optional< unsigned int > Odb::Lib::ProductModel::Component::GetId | ( | ) | const |
Definition at line 69 of file Component.cpp.
| unsigned int Odb::Lib::ProductModel::Component::GetIndex | ( | ) | const |
Definition at line 54 of file Component.cpp.
| std::shared_ptr< Package > Odb::Lib::ProductModel::Component::GetPackage | ( | ) | const |
Definition at line 49 of file Component.cpp.
| std::shared_ptr< Part > Odb::Lib::ProductModel::Component::GetPart | ( | ) | const |
Definition at line 64 of file Component.cpp.
| std::string Odb::Lib::ProductModel::Component::GetPartName | ( | ) | const |
Definition at line 44 of file Component.cpp.
| std::string Odb::Lib::ProductModel::Component::GetRefDes | ( | ) | const |
| BoardSide Odb::Lib::ProductModel::Component::GetSide | ( | ) | const |
Definition at line 59 of file Component.cpp.
|
overridevirtual |
Implements Odb::Lib::IProtoBuffable< Odb::Lib::Protobuf::ProductModel::Component >.
Definition at line 74 of file Component.cpp.