5#include "../Text/Utf8Sanitizer.h"
7namespace Odb::Lib::ProductModel
9 Part::Part(
const std::string& name)
14 std::string Part::GetName()
const
19 std::unique_ptr<Odb::Lib::Protobuf::ProductModel::Part> Odb::Lib::ProductModel::Part::to_protobuf()
const
21 auto pPartMsg = std::make_unique<Odb::Lib::Protobuf::ProductModel::Part>();
22 pPartMsg->set_name(Odb::Lib::Text::ToUtf8(m_name));
26 void Odb::Lib::ProductModel::Part::from_protobuf(
const Odb::Lib::Protobuf::ProductModel::Part& message)
28 m_name = message.name();