#include "datahash_util.h"
#include "util/date.h"
#include "util/parsing.h"
#include "common/wave_ex.h"
Go to the source code of this file.
Functions | |
static const hash_value_t * | getSingleValue (IN const Datahash *h, IN const char *key, IN eDatahash_Flag flag, IN eHashDataType type) |
const char * | getString (IN const Datahash *h, IN const char *key, IN eDatahash_Flag flag) |
const char * | getOptionalString (IN const Datahash *h, IN const char *key, IN const char *default_value) |
long | getLong (IN const Datahash *h, IN const char *key) |
long | getOptionalLong (IN const Datahash *h, IN const char *key, IN long default_value) |
double | getDouble (IN const Datahash *h, IN const char *key) |
bool | getBooleanValueFromString (IN const char *v) |
bool | getBoolean (IN const Datahash *h, IN const char *key) |
smart_ptr< Datahash > | getSubhash (IN const Datahash *h, IN const char *key, IN eDatahash_Flag flag) |
void | setTimestampAsDateString (IN Datahash *h, IN const char *key_name, IN long timestamp) |
long | getTimestampFromDateString (IN const Datahash *h, IN const char *key) |
smart_ptr< Datahash > | getHashFromColonString (IN const char *s) |
void | getStringValues (IN const Datahash *hash, IN const char *key, OUT VecString &vec) |
static const hash_value_t* getSingleValue | ( | IN const Datahash * | h, | |
IN const char * | key, | |||
IN eDatahash_Flag | flag, | |||
IN eHashDataType | type | |||
) | [static] |
Definition at line 51 of file datahash_util.cpp.
const char* getString | ( | IN const Datahash * | h, | |
IN const char * | key, | |||
IN eDatahash_Flag | flag | |||
) |
Definition at line 89 of file datahash_util.cpp.
const char* getOptionalString | ( | IN const Datahash * | h, | |
IN const char * | key, | |||
IN const char * | default_value | |||
) |
Definition at line 110 of file datahash_util.cpp.
long getLong | ( | IN const Datahash * | h, | |
IN const char * | key | |||
) |
Definition at line 128 of file datahash_util.cpp.
long getOptionalLong | ( | IN const Datahash * | h, | |
IN const char * | key, | |||
IN long | default_value | |||
) |
Definition at line 143 of file datahash_util.cpp.
double getDouble | ( | IN const Datahash * | h, | |
IN const char * | key | |||
) |
Definition at line 162 of file datahash_util.cpp.
bool getBooleanValueFromString | ( | IN const char * | v | ) |
Definition at line 177 of file datahash_util.cpp.
bool getBoolean | ( | IN const Datahash * | h, | |
IN const char * | key | |||
) |
Definition at line 210 of file datahash_util.cpp.
smart_ptr<Datahash> getSubhash | ( | IN const Datahash * | h, | |
IN const char * | key, | |||
IN eDatahash_Flag | flag | |||
) |
Definition at line 225 of file datahash_util.cpp.
void setTimestampAsDateString | ( | IN Datahash * | h, | |
IN const char * | key_name, | |||
IN long | timestamp | |||
) |
Definition at line 246 of file datahash_util.cpp.
long getTimestampFromDateString | ( | IN const Datahash * | h, | |
IN const char * | key | |||
) |
Definition at line 265 of file datahash_util.cpp.
Definition at line 281 of file datahash_util.cpp.
void getStringValues | ( | IN const Datahash * | hash, | |
IN const char * | key, | |||
OUT VecString & | vec | |||
) |
Definition at line 327 of file datahash_util.cpp.