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;
73 std::filesystem::path memoryBasePath;
74 std::string memoryBasePathString;
75 std::string exportName;
static const constexpr char * DATA_FILENAME
Path addDateToMemoryBasePath(const std::filesystem::path &n) const
void ensureMemoryBasePathExists(bool createIfNotExistent=false) const
Path getMemoryBasePath() const
void ensureFileExists(const std::string &filename, bool createIfNotExistent=false) const
void createPropertyDefinitions(PropertyDefinitionsPtr &defs, const std::string &prefix)
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)
void writeDataToFile(const std::string &filename, const std::vector< unsigned char > &data) const
void ensureFullPathExists(bool createIfNotExistent=false) const
bool memoryBasePathExists() const