3 namespace Odb::Lib::ProductModel
5 Pin::Pin(std::string name,
unsigned int index)
11 std::string Pin::GetName()
const
16 unsigned int Pin::GetIndex()
const
21 std::unique_ptr<Odb::Lib::Protobuf::ProductModel::Pin> Odb::Lib::ProductModel::Pin::to_protobuf()
const
23 auto pPinMessage = std::make_unique<Odb::Lib::Protobuf::ProductModel::Pin>();
24 pPinMessage->set_name(m_name);
25 pPinMessage->set_index(m_index);
29 void Pin::from_protobuf(
const Odb::Lib::Protobuf::ProductModel::Pin& message)
31 m_name = message.name();
32 m_index = message.index();