datahash_util.h File Reference

#include "datahash.h"
#include <sstream>
Include dependency graph for datahash_util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.



enum  eDatahash_Flag {
  eDatahash_Required = 1,
  eDatahash_Optional = 2,
  eDatahash_Invalid = 0
}
const char * getString (IN const Datahash *hash, IN const char *key, IN eDatahash_Flag flag=eDatahash_Required)
const char * getOptionalString (IN const Datahash *hash, IN const char *key, IN const char *default_value)
long getLong (IN const Datahash *hash, IN const char *key)
long getOptionalLong (IN const Datahash *hash, IN const char *key, IN long default_value)
double getDouble (IN const Datahash *hash, IN const char *key)
bool getBooleanValueFromString (IN const char *value)
bool getBoolean (IN const Datahash *hash, IN const char *key)
smart_ptr< DatahashgetSubhash (IN const Datahash *hash, IN const char *key_name, IN eDatahash_Flag flag=eDatahash_Required)
static short getShort (IN const Datahash *hash, IN const char *key)
static int getInt (IN const Datahash *hash, IN const char *key)
static byte_t getByte (IN const Datahash *hash, IN const char *key)
static float getFloat (IN const Datahash *hash, IN const char *key)
template<class T >
void setValue (IN Datahash *hash, IN const char *key_name, IN const T &t)
void setTimestampAsDateString (IN Datahash *hash, IN const char *key, long timestamp)
long getTimestampFromDateString (IN const Datahash *hash, IN const char *key)
void getStringValues (IN const Datahash *hash, IN const char *key, OUT VecString &vec)
smart_ptr< DatahashgetHashFromColonString (IN const char *s)