3 #include "../../odbdesign_export.h"
4 #include "FeaturesFile.h"
5 #include "AttrListFile.h"
11 #include "../../IProtoBuffable.h"
12 #include "../../ProtoBuf/symbolsdirectory.pb.h"
13 #include "../ISaveable.h"
15 namespace Odb::Lib::FileModel::Design
22 typedef std::vector<std::shared_ptr<SymbolsDirectory>> Vector;
23 typedef std::map<std::string, std::shared_ptr<SymbolsDirectory>> StringMap;
27 bool Save(
const std::filesystem::path& directory)
override;
29 std::string GetName()
const;
30 std::filesystem::path GetPath()
const;
36 std::unique_ptr<Odb::Lib::Protobuf::SymbolsDirectory> to_protobuf()
const override;
37 void from_protobuf(
const Odb::Lib::Protobuf::SymbolsDirectory& message)
override;
41 std::filesystem::path m_path;
46 bool ParseFeaturesFile(
const std::filesystem::path& directory);
47 bool ParseAttrListFile(
const std::filesystem::path& directory);