28 Pool(
const std::string &base_path,
bool read_only =
true);
29 const class Unit *get_unit(
const UUID &uu,
UUID *pool_uuid_out =
nullptr)
override;
30 const class Entity *get_entity(
const UUID &uu,
UUID *pool_uuid_out =
nullptr)
override;
31 const class Symbol *get_symbol(
const UUID &uu,
UUID *pool_uuid_out =
nullptr)
override;
32 const class Padstack *get_padstack(
const UUID &uu,
UUID *pool_uuid_out =
nullptr)
override;
33 const class Padstack *get_well_known_padstack(
const std::string &name,
UUID *pool_uuid_out =
nullptr)
override;
34 const class Package *get_package(
const UUID &uu,
UUID *pool_uuid_out =
nullptr)
override;
35 const class Part *get_part(
const UUID &uu,
UUID *pool_uuid_out =
nullptr)
override;
36 const class Frame *get_frame(
const UUID &uu,
UUID *pool_uuid_out =
nullptr)
override;
37 const class Decal *get_decal(
const UUID &uu,
UUID *pool_uuid_out =
nullptr)
override;
38 std::set<UUID> get_alternate_packages(
const UUID &uu)
override;
39 std::string get_model_filename(
const UUID &pkg_uuid,
const UUID &model_uuid)
override;
41 virtual std::string get_filename(ObjectType type,
const UUID &uu,
UUID *pool_uuid_out =
nullptr);
42 std::string get_rel_filename(ObjectType type,
const UUID &uu);
43 const std::string &get_base_path()
const override;
44 bool check_filename(ObjectType type,
const std::string &filename, std::string *error_msg =
nullptr)
const override;
45 void check_filename_throw(ObjectType type,
const std::string &filename)
const override;
57 const PoolInfo &get_pool_info()
const override
72 void clear()
override;
73 std::string get_tmp_filename(ObjectType type,
const UUID &uu)
const;
74 static int get_required_schema_version();
76 static const UUID tmp_pool_uuid;
78 std::map<std::string, UUID> get_actually_included_pools(
bool include_self)
override;
80 UUID get_installation_uuid();
89 const std::string base_path;
92 std::string get_flat_filename(ObjectType type,
const UUID &uu)
const;
94 std::map<UUID, Unit> units;
95 std::map<UUID, Entity> entities;
96 std::map<UUID, Symbol> symbols;
97 std::map<UUID, Padstack> padstacks;
98 std::map<UUID, Package> packages;
99 std::map<UUID, Part> parts;
100 std::map<UUID, Frame> frames;
101 std::map<UUID, Decal> decals;
102 std::map<std::pair<ObjectType, UUID>,
UUID> pool_uuid_cache;
103 void get_pool_uuid(ObjectType type,
const UUID &uu,
UUID *pool_uuid_out);
Stores objects (Unit, Entity, Symbol, Part, etc.) from the pool.
Definition pool.hpp:22