15 #ifndef SERIALBOX_CORE_ARCHIVE_ARCHIVEFACTORY_H 16 #define SERIALBOX_CORE_ARCHIVE_ARCHIVEFACTORY_H 42 const std::string& directory,
const std::string& prefix);
64 std::string archiveName, std::string fieldname);
73 std::string fieldname);
static std::string archiveFromExtension(std::string filename)
Deduce the name of the archive according to the extension of the filename
Factory to create Archives.
Represent a mutable view to a multi-dimensional storage.
static std::vector< std::string > registeredArchives()
Get a vector of strings of the registered archives.
Namespace of the serialbox library.
static std::unique_ptr< Archive > create(const std::string &name, OpenModeKind mode, const std::string &directory, const std::string &prefix)
Construct an instance of the archive ´name´
static void readFromFile(std::string filename, StorageView &storageView, std::string archiveName, std::string fieldname)
Directly read field (given by storageView) from file.
static void writeToFile(std::string filename, const StorageView &storageView, std::string archiveName, std::string fieldname)
Directly write field (given by storageView) to file.
OpenModeKind
Policy for opening files in the Serializer and Archive.