Go to the documentation of this file.
7 #include <SimoxUtility/json.h>
17 using Path = std::filesystem::path;
24 const std::string& exportName,
41 const std::vector<unsigned char>&
data)
const;
69 std::filesystem::path memoryBasePath;
70 std::string exportName;
static const constexpr char * DATA_FILENAME
void ensureMemoryBasePathExists(bool createIfNotExistent=false) const
void setMemoryBasePath(const std::filesystem::path &n)
Path getMemoryBasePath() const
void ensureFileExists(const std::string &filename, bool createIfNotExistent=false) const
std::vector< Path > getAllFiles() const
static const constexpr char * METADATA_FILENAME
void setMixinMemoryID(const MemoryID &n)
static const int DEPTH_TO_DATA_FILES
virtual ~DiskMemoryItemMixin()=default
std::vector< Path > getAllDirectories() const
bool fileExists(const std::string &filename) const
std::vector< unsigned char > readDataFromFile(const std::string &filename) const
static const constexpr char * TYPE_FILENAME
void setMixinExportName(const std::string &n)
DiskMemoryItemMixin()=default
bool fullPathExists() const
static const constexpr char * MEMORY_EXPORT_SUFFIX
std::filesystem::path Path
void configureMixin(const nlohmann::json &json)
configuration
void writeDataToFile(const std::string &filename, const std::vector< unsigned char > &data) const
void ensureFullPathExists(bool createIfNotExistent=false) const
bool memoryBasePathExists() const