4 #include "../ProtoBuf/pin.pb.h"
6 namespace Odb::Lib::ProductModel
8 Pin::Pin(
const std::string& name,
unsigned int index)
14 std::string Pin::GetName()
const
19 unsigned int Pin::GetIndex()
const
24 std::unique_ptr<Odb::Lib::Protobuf::ProductModel::Pin> Odb::Lib::ProductModel::Pin::to_protobuf()
const
26 auto pPinMessage = std::make_unique<Odb::Lib::Protobuf::ProductModel::Pin>();
27 pPinMessage->set_name(m_name);
28 pPinMessage->set_index(m_index);
32 void Pin::from_protobuf(
const Odb::Lib::Protobuf::ProductModel::Pin& message)
34 m_name = message.name();
35 m_index = message.index();