Template Class PDJE_JSONHandler
Defined in File jsonWrapper.hpp
Class Documentation
-
template<typename CapnpWriterType>
class PDJE_JSONHandler Generic handler for reading/writing editor JSON files.
Public Functions
-
std::unique_ptr<CapnpWriterType> render()
Convert the current JSON data to a capnp writer object.
-
bool load(const fs::path &path)
-
inline nj &operator[](const DONT_SANITIZE &key)
Access underlying JSON data by key.
-
inline bool save(const fs::path &path)
Save the JSON data to disk.
-
inline bool deleteFile(const fs::path &path)
Delete a JSON file from disk.
-
PDJE_JSONHandler() = default
-
~PDJE_JSONHandler() = default
-
bool load(const fs::path &path)
-
int deleteLine(const DONT_SANITIZE &args, bool skipType, bool skipDetail) = delete
-
std::unique_ptr<MIX_W> render()
-
bool load(const fs::path &path)
-
std::unique_ptr<MUSIC_W> render()
-
void getAll(std::function<void(const EDIT_ARG_MUSIC &args)> jsonCallback)
-
bool load(const fs::path &path)
-
std::unique_ptr<NOTE_W> render()
-
bool load(const fs::path &path)
-
std::unique_ptr<CapnpWriterType> render()