OdbDesign
OdbDesign ODB++ Parser - C++ library, gRPC/REST server, CLI, tests
 
Loading...
Searching...
No Matches
Odb::Lib::ProductModel::Pin Class Reference

#include <Pin.h>

Inheritance diagram for Odb::Lib::ProductModel::Pin:
[legend]
Collaboration diagram for Odb::Lib::ProductModel::Pin:
[legend]

Public Types

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

Public Member Functions

 Pin (const std::string &name, unsigned int index)
 
std::string GetName () const
 
unsigned int GetIndex () const
 
std::unique_ptr< Odb::Lib::Protobuf::ProductModel::Pin > to_protobuf () const override
 
void from_protobuf (const Odb::Lib::Protobuf::ProductModel::Pin &message) override
 
- Public Member Functions inherited from Odb::Lib::IProtoBuffable< Odb::Lib::Protobuf::ProductModel::Pin >
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::Pin >
 IProtoBuffable ()=default
 
- Protected Member Functions inherited from Utils::IJsonable
 IJsonable ()=default
 

Detailed Description

Definition at line 14 of file Pin.h.

Member Typedef Documentation

◆ StringMap

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

Definition at line 24 of file Pin.h.

◆ Vector

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

Definition at line 23 of file Pin.h.

Constructor & Destructor Documentation

◆ Pin()

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

Definition at line 9 of file Pin.cpp.

Member Function Documentation

◆ from_protobuf()

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

◆ GetIndex()

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

Definition at line 20 of file Pin.cpp.

◆ GetName()

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

Definition at line 15 of file Pin.cpp.

Here is the caller graph for this function:

◆ to_protobuf()

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

Implements Odb::Lib::IProtoBuffable< Odb::Lib::Protobuf::ProductModel::Pin >.

Definition at line 25 of file Pin.cpp.

Here is the call graph for this function:

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