datahash_text.cpp File Reference

#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"
Include dependency graph for datahash_text.cpp:

Go to the source code of this file.


static smart_ptr< DatahashreadHashFromStreamInternal (std::istream &stream)
static void newlineAndIndent (std::ostream &stream, int indent) throw ()
void writeHashToStreamInternal (const Datahash *hash, std::ostream &stream, int indent)
smart_ptr< DatahashreadHashFromStream (const char *key_name, std::istream &stream)
smart_ptr< DatahashreadHashFromTextFile (const char *filename)
smart_ptr< DatahashreadHashFromString (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)

Function Documentation

static smart_ptr<Datahash> readHashFromStreamInternal ( std::istream &  stream  )  [static]

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.

smart_ptr<Datahash> readHashFromTextFile ( const char *  filename  ) 

Definition at line 211 of file datahash_text.cpp.

smart_ptr<Datahash> readHashFromString ( const char *  val  ) 

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.