Beatmup
|
Writes chunks to a file. More...
#include <chunkfile.h>
Public Member Functions | |
ChunkFileWriter (const std::string &filename, bool append=false) | |
~ChunkFileWriter () | |
void | operator() (const std::string &id, const void *data, const chunksize_t size) |
template<typename datatype > | |
void | operator() (const std::string &id, datatype something) |
Private Attributes | |
std::fstream | stream |
Writes chunks to a file.
Definition at line 191 of file chunkfile.h.
ChunkFileWriter::ChunkFileWriter | ( | const std::string & | filename, |
bool | append = false |
||
) |
Definition at line 132 of file chunkfile.cpp.
ChunkFileWriter::~ChunkFileWriter | ( | ) |
Definition at line 140 of file chunkfile.cpp.
void ChunkFileWriter::operator() | ( | const std::string & | id, |
const void * | data, | ||
const chunksize_t | size | ||
) |
Definition at line 143 of file chunkfile.cpp.
|
inline |
Definition at line 200 of file chunkfile.h.
|
private |
Definition at line 193 of file chunkfile.h.