2 #include "util/uuid.hpp"
3 #include "nlohmann/json_fwd.hpp"
6 #include "util/file_version.hpp"
13 ProjectBlock(
const UUID &uu,
const std::string &b,
const std::string &s,
bool t =
false)
14 : uuid(uu), block_filename(b), schematic_filename(s), is_top(t)
18 std::string block_filename;
19 std::string schematic_filename;
26 std::string get_filename_rel(
const std::string &p)
const;
29 static Project new_from_file(
const std::string &filename);
30 static unsigned int get_app_version();
35 std::string create(
const std::map<std::string, std::string> &meta,
const UUID &default_via);
37 std::string base_path;
39 std::map<UUID, ProjectBlock> blocks;
42 std::string vias_directory;
43 std::string pictures_directory;
44 std::string board_filename;
45 std::string pool_cache_directory;
49 json serialize()
const;
52 std::string title_old;
Definition: file_version.hpp:8
Definition: project.hpp:11
Definition: project.hpp:23
This class encapsulates a UUID and allows it to be uses as a value type.
Definition: uuid.hpp:16
a class to store JSON values
Definition: json.hpp:166
basic_json<> json
default JSON class
Definition: json_fwd.hpp:61