29 std::string GetRootDir()
const;
30 std::string GetProductName()
const;
31 std::string GetFilename()
const;
32 std::string GetFilePath()
const;
41 std::shared_ptr<StepDirectory> GetStepDirectory(
const std::string& stepName =
"")
const;
47 bool ParseFileModel();
49 bool SaveFileModel(
const std::filesystem::path& directory,
const std::string& archiveName);
53 std::unique_ptr<Odb::Lib::Protobuf::FileArchive> to_protobuf()
const override;
58 std::unique_ptr<Odb::Lib::Protobuf::FileArchive> to_protobuf_skeleton()
const;
59 void from_protobuf(
const Odb::Lib::Protobuf::FileArchive& message)
override;
61 typedef std::vector<std::shared_ptr<FileArchive>>
Vector;
62 typedef std::map<std::string, std::shared_ptr<FileArchive>>
StringMap;
65 std::string m_rootDir;
66 std::string m_productName;
67 std::string m_filename;
68 std::string m_filePath;
78 bool ParseDesignDirectory(
const std::filesystem::path& path);
79 bool ParseStepDirectories(
const std::filesystem::path& path);
80 bool ParseMiscInfoFile(
const std::filesystem::path& path);
81 bool ParseMatrixFile(
const std::filesystem::path& path);
82 bool ParseStandardFontsFile(
const std::filesystem::path& path);
83 bool ParseSymbolsDirectories(
const std::filesystem::path& path);
84 bool ParseMiscAttrListFile(
const std::filesystem::path& path);
86 bool Save(
const std::filesystem::path& directory)
override;
91 void FillProtobufMessage(Odb::Lib::Protobuf::FileArchive& fileArchiveMessage,
bool includeSteps)
const;
93 bool ExtractDesignArchive(
const std::filesystem::path& path, std::filesystem::path& extractedPath);
95 static std::string findRootDir(
const std::filesystem::path& extractedPath);
96 static bool pathContainsTopLevelDesignDirs(
const std::filesystem::path& path);
98 static inline constexpr const char* TOPLEVEL_DESIGN_DIR_NAMES[] =