5 #include "../OdbFile.h"
7 #include "../../IProtoBuffable.h"
8 #include "../../ProtoBuf/miscinfofile.pb.h"
12 namespace Odb::Lib::FileModel::Design
21 std::string GetProductModelName()
const;
22 std::string GetJobName()
const;
23 std::string GetOdbVersionMajor()
const;
24 std::string GetOdbVersionMinor()
const;
25 std::string GetOdbSource()
const;
26 std::chrono::system_clock::time_point GetCreationDate()
const;
27 std::chrono::system_clock::time_point GetSaveDate()
const;
28 std::string GetSaveApp()
const;
29 std::string GetSaveUser()
const;
30 std::string GetUnits()
const;
31 unsigned int GetMaxUniqueId()
const;
33 bool Parse(std::filesystem::path path)
override;
36 std::unique_ptr<Odb::Lib::Protobuf::MiscInfoFile> to_protobuf()
const override;
37 void from_protobuf(
const Odb::Lib::Protobuf::MiscInfoFile& message)
override;
40 std::string m_productModelName;
41 std::string m_jobName;
42 std::string m_odbVersionMajor;
43 std::string m_odbVersionMinor;
44 std::string m_odbSource;
45 std::chrono::system_clock::time_point m_creationDateDate;
46 std::chrono::system_clock::time_point m_saveDate;
47 std::string m_saveApp;
48 std::string m_saveUser;
50 unsigned int m_maxUniqueId;
52 static inline bool attributeValueIsOptional(
const std::string& attribute);
54 constexpr
inline static const char* OPTIONAL_ATTRIBUTES[] =