2#include <NDEVR/FileFormat.h>
3#include <NDEVR/BinaryFile.h>
4#include <NDEVR/Translator.h>
18 archive.
write(f.getData(), mode);
27 while (file_name !=
"./")
52 archive.
open(
false,
false);
60 archive.
open(
true,
false);
68 format.
name =
_t(
"NDEVR File Template");
#define _t(english_string)
Definition Translator.h:87
Definition BinaryFile.h:51
void setUseLargeCompression(bool use_large_compression)
Definition BinaryFile.h:475
void write(const t_type &data)
Definition BinaryFile.h:115
void open(bool read, bool safe)
Definition BinaryFile.h:61
void readNow(Buffer< t_type, t_index_type, t_memory_allocator, t_memory_manager > &data)
Definition BinaryFile.h:327
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
void add(t_type &&object)
Definition Buffer.hpp:199
void addAll(const Buffer< t_type, t_other_index_type, t_other_memory_allocator, t_other_memory_manager > &buffer)
Definition Buffer.hpp:248
NDEVR_BASE_API FILE * open(OpenMode mode, bool append=false)
Definition File.cpp:1419
NDEVR_BASE_API void close()
Definition File.cpp:1610
NDEVR_BASE_API void create(bool override_file) const
Definition File.cpp:1744
@ e_file_name
Definition File.h:73
@ e_file_extension
Definition File.h:74
NDEVR_BASE_API bool isDirectory() const
Definition File.cpp:250
@ e_binary_write
Definition File.h:52
NDEVR_BASE_API File & appendPath(const String &cs)
Definition File.cpp:786
Definition NDVArchiveManager.h:8
static void AddFilesToArchive(const Buffer< File > &files, BinaryFile &archive, CompressionMode mode)
Definition NDVArchiveManager.h:10
static Buffer< File > PullFilesFromArchive(const File &target_parent, File archive_file)
Definition NDVArchiveManager.h:56
static Buffer< File > PullFilesFromArchive(const File &target_parent, BinaryFile &archive)
Definition NDVArchiveManager.h:22
static FileFormat ArchiveFormat()
Definition NDVArchiveManager.h:64
static void AddFilesToArchive(const Buffer< File > &files, File &archive_file, CompressionMode mode)
Definition NDVArchiveManager.h:48
static NDEVR_BASE_API UUID CreateUUID()
Definition UUID.cpp:150
CompressionMode
Definition Compressor.h:12
@ e_no_compression
Definition Compressor.h:13