#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 (IO std::istream &stream) |
static void | newlineAndIndent (IO std::ostream &stream, IN int indent) throw () |
void | writeHashToStreamInternal (IN const Datahash *hash, IO std::ostream &stream, IN int indent) |
smart_ptr< Datahash > | readHashFromStream (IN const char *key_name, IO std::istream &stream) |
smart_ptr< Datahash > | readHashFromTextFile (IN const char *filename) |
smart_ptr< Datahash > | readHashFromString (IN const char *val) |
void | writeHashToStream (IN const Datahash *hash, IO std::ostream &stream) |
void | writeHashToTextFile (IN const Datahash *hash, IN const char *filename, IN const char *comment_at_top_of_file) |
writes to file atomically | |
void | dumpHash (IN const char *title, IN const Datahash *hash) |
Definition at line 57 of file datahash_text.cpp.
static void newlineAndIndent | ( | IO std::ostream & | stream, | |
IN int | indent | |||
) | throw () [static] |
Definition at line 125 of file datahash_text.cpp.
void writeHashToStreamInternal | ( | IN const Datahash * | hash, | |
IO std::ostream & | stream, | |||
IN 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 | ( | IN const Datahash * | hash, | |
IO std::ostream & | stream | |||
) |
Definition at line 256 of file datahash_text.cpp.
void writeHashToTextFile | ( | IN const Datahash * | hash, | |
IN const char * | filename, | |||
IN const char * | comment_at_top_of_file | |||
) |
writes to file atomically
Definition at line 271 of file datahash_text.cpp.
void dumpHash | ( | IN const char * | title, | |
IN const Datahash * | hash | |||
) |
Definition at line 320 of file datahash_text.cpp.