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

Public Types

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

Public Member Functions

std::string GetName () const
 
int GetIndex () const
 
UnitType GetUnitType () const
 
void ApplyDefaultUnitTypeIfNone (UnitType unitType)
 
bool Parse (const std::filesystem::path &path, const std::string &line, int lineNumber)
 
std::unique_ptr< Odb::Lib::Protobuf::SymbolName > to_protobuf () const override
 
void from_protobuf (const Odb::Lib::Protobuf::SymbolName &message) override
 
- Public Member Functions inherited from Odb::Lib::IProtoBuffable< Odb::Lib::Protobuf::SymbolName >
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 17 of file SymbolName.h.

Member Typedef Documentation

◆ StringMap

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

Definition at line 34 of file SymbolName.h.

◆ Vector

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

Definition at line 33 of file SymbolName.h.

Constructor & Destructor Documentation

◆ SymbolName()

Odb::Lib::FileModel::Design::SymbolName::SymbolName ( )

Definition at line 12 of file SymbolName.cpp.

Member Function Documentation

◆ ApplyDefaultUnitTypeIfNone()

void Odb::Lib::FileModel::Design::SymbolName::ApplyDefaultUnitTypeIfNone ( UnitType  unitType)

Definition at line 34 of file SymbolName.cpp.

◆ from_protobuf()

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

◆ GetIndex()

int Odb::Lib::FileModel::Design::SymbolName::GetIndex ( ) const

Definition at line 24 of file SymbolName.cpp.

◆ GetName()

std::string Odb::Lib::FileModel::Design::SymbolName::GetName ( ) const

Definition at line 19 of file SymbolName.cpp.

◆ GetUnitType()

UnitType Odb::Lib::FileModel::Design::SymbolName::GetUnitType ( ) const

Definition at line 29 of file SymbolName.cpp.

◆ Parse()

bool Odb::Lib::FileModel::Design::SymbolName::Parse ( const std::filesystem::path &  path,
const std::string &  line,
int  lineNumber 
)

Definition at line 42 of file SymbolName.cpp.

◆ to_protobuf()

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

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