12 std::ostream& binary_write(std::ostream* outStream,
const T& value){
13 return outStream->write(reinterpret_cast<const char*>(&value),
sizeof(T));
16 std::istream & binary_read(std::istream* stream, T& value){
17 return stream->read(reinterpret_cast<char*>(&value),
sizeof(T));
20 void createDirectoryStructure(std::string filePath);
21 int mkpath(
const char *path, mode_t mode);
22 static int do_mkdir(
const char *path, mode_t mode);
23 void appendToFile(std::string filename,
int num, ...);