3 #include "../ProtoBuf/via.pb.h"
4 #include "../ProtoBuf/enums.pb.h"
9 namespace Odb::Lib::ProductModel
13 , m_side(BoardSide::Top)
17 std::string Via::GetName()
const
22 BoardSide Via::GetSide()
const
27 std::unique_ptr<Odb::Lib::Protobuf::ProductModel::Via> Via::to_protobuf()
const
29 auto pViaMsg = std::make_unique<Odb::Lib::Protobuf::ProductModel::Via>();
30 pViaMsg->set_name(m_name);
31 pViaMsg->set_boardside(
static_cast<Odb::Lib::Protobuf::BoardSide
>(m_side));
35 void Via::from_protobuf(
const Odb::Lib::Protobuf::ProductModel::Via& message)
37 m_name = message.name();
38 m_side =
static_cast<BoardSide
>(message.boardside());