4 namespace Odb::Lib::ProductModel
8 , m_side(BoardSide::Top)
12 std::string Via::GetName()
const
17 BoardSide Via::GetSide()
const
22 std::unique_ptr<Odb::Lib::Protobuf::ProductModel::Via> Via::to_protobuf()
const
24 auto pViaMsg = std::make_unique<Odb::Lib::Protobuf::ProductModel::Via>();
25 pViaMsg->set_name(m_name);
26 pViaMsg->set_boardside(
static_cast<Odb::Lib::Protobuf::BoardSide
>(m_side));
30 void Via::from_protobuf(
const Odb::Lib::Protobuf::ProductModel::Via& message)
32 m_name = message.name();
33 m_side =
static_cast<BoardSide
>(message.boardside());