5#include "../Text/Utf8Sanitizer.h"
7namespace Odb::Lib::ProductModel
9 Pin::Pin(
const std::string& name,
unsigned int index)
15 std::string Pin::GetName()
const
20 unsigned int Pin::GetIndex()
const
25 std::unique_ptr<Odb::Lib::Protobuf::ProductModel::Pin> Odb::Lib::ProductModel::Pin::to_protobuf()
const
27 auto pPinMessage = std::make_unique<Odb::Lib::Protobuf::ProductModel::Pin>();
28 pPinMessage->set_name(Odb::Lib::Text::ToUtf8(m_name));
29 pPinMessage->set_index(m_index);
33 void Pin::from_protobuf(
const Odb::Lib::Protobuf::ProductModel::Pin& message)
35 m_name = message.name();
36 m_index = message.index();