3 #include "../ProtoBuf/part.pb.h"
6 namespace Odb::Lib::ProductModel
8 Part::Part(
const std::string& name)
13 std::string Part::GetName()
const
18 std::unique_ptr<Odb::Lib::Protobuf::ProductModel::Part> Odb::Lib::ProductModel::Part::to_protobuf()
const
20 auto pPartMsg = std::make_unique<Odb::Lib::Protobuf::ProductModel::Part>();
21 pPartMsg->set_name(m_name);
25 void Odb::Lib::ProductModel::Part::from_protobuf(
const Odb::Lib::Protobuf::ProductModel::Part& message)
27 m_name = message.name();