#include "datahash_text.h"
#include <fstream>
#include <sstream>
#include "common/wave_ex.h"
#include "perf/perf.h"
#include "util/file.h"
#include "util/parsing.h"
Go to the source code of this file.
Functions | |
static smart_ptr< Datahash > | readHashFromStreamInternal (std::istream &stream) |
static void | newlineAndIndent (std::ostream &stream, int indent) throw () |
void | writeHashToStreamInternal (const Datahash *hash, std::ostream &stream, int indent) |
smart_ptr< Datahash > | readHashFromStream (const char *key_name, std::istream &stream) |
smart_ptr< Datahash > | readHashFromTextFile (const char *filename) |
smart_ptr< Datahash > | readHashFromString (const char *val) |
void | writeHashToStream (const Datahash *hash, std::ostream &stream) |
void | writeHashToTextFile (const Datahash *hash, const char *filename, const char *comment_at_top_of_file) |
writes to file atomically | |
void | dumpHash (const char *title, const Datahash *hash) |
Definition at line 57 of file datahash_text.cpp.
static void newlineAndIndent | ( | std::ostream & | stream, | |
int | indent | |||
) | throw () [static] |
Definition at line 125 of file datahash_text.cpp.
void writeHashToStreamInternal | ( | const Datahash * | hash, | |
std::ostream & | stream, | |||
int | indent | |||
) |
Definition at line 143 of file datahash_text.cpp.
Definition at line 211 of file datahash_text.cpp.
Definition at line 242 of file datahash_text.cpp.
void writeHashToStream | ( | const Datahash * | hash, | |
std::ostream & | stream | |||
) |
Definition at line 256 of file datahash_text.cpp.
void writeHashToTextFile | ( | const Datahash * | hash, | |
const char * | filename, | |||
const char * | comment_at_top_of_file | |||
) |
writes to file atomically
Definition at line 271 of file datahash_text.cpp.
void dumpHash | ( | const char * | title, | |
const Datahash * | hash | |||
) |
Definition at line 320 of file datahash_text.cpp.