#include <dsTranslation.h>
Inheritance diagram for dsTranslation:

| Public Methods | |
| dsTranslation (int table=none) | |
| dsTranslation (std::istream &is, int table=none) | |
| dsTranslation (char *fname, int table=none) | |
| char * | translate (char *key) | 
| bool | good () | 
| bool | isTranslated (char *key) | 
| void | enableWarnings (std::ostream *os=&(std::cerr)) | 
| void | load (const char *filename) | 
| void | load (std::istream &is) | 
| void | dump (std::ostream &os) | 
| void | set_delimiter (char delim) | 
| void | set_xlat (int table) | 
| void | add (const char *key, const char *val) | 
| void | add (const char *key, int val) | 
| char * | seek (const char *key) | 
| char * | seek (const char *key, int idx) | 
| void | push (const char *key) | 
| void | push (int array_key) | 
| void | pop () | 
| int | getbool (const char *key) | 
| int | getbool (const char *key, int defval) | 
| long | getlong (const char *key) | 
| long | getlong (const char *key, long defval) | 
| double | getdouble (const char *key) | 
| double | getdouble (const char *key, double defval) | 
| char * | getstring (const char *key) | 
| char * | getstring (const char *key, int idx) | 
| char * | getstring (const char *key, char *defval) | 
| Protected Methods | |
| int | expand_condition (char *cond) | 
| char * | expand_var (char *ptr, int *vlen=0) | 
| void | _add (char *line) | 
| void | _add2 (const char *key, const char *val) | 
| char * | trim (char *src) | 
| void | undefined_key_exception (const char *key) | 
| Protected Attributes | |
| dsHashTable * | _h | 
| int | _recursion_cnt | 
| char * | _keyst | 
| int | _kslen | 
| char | _key_delim | 
| int | _xlat_table | 
| Friends | |
| class | dsGetoptMore | 
| 
 | 
| 
 | 
| 
 | ||||||||||||
| 
 | 
| 
 | ||||||||||||
| 
 | 
| 
 | 
| 
 | 
| 
 | ||||||||||||
| 
 | 
| 
 | ||||||||||||
| Add key and value. Already defined keys will be redefined. 
 
 | 
| 
 | ||||||||||||
| Add key and value. Already defined keys will be redefined. 
 
 | 
| 
 | 
| Output existing keys to stream 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | ||||||||||||
| 
 | 
| 
 | ||||||||||||
| 
Find a key, convert it's value to boolean. Recognised formats Yes/No, True/False,1/0 if key not defined return default value  
 
 
 | 
| 
 | 
| Find a key, convert it's value to boolean. Recognised formats Yes/No, True/False,1/0 See Also: GETB() 
 
 
 | 
| 
 | ||||||||||||
| Find a key, convert it's value to double. if key not defined return default value 
 
 
 | 
| 
 | 
| Find a key, convert it's value to double. See Also: GETD() 
 
 
 | 
| 
 | ||||||||||||
| Find a key, convert it's value to long. if key not defined return default value 
 
 
 | 
| 
 | 
| Find a key, convert it's value to long. See Also: GETL() 
 
 
 | 
| 
 | ||||||||||||
| Find a key, return found value. if key not defined return default value 
 
 
 | 
| 
 | ||||||||||||
| Find an array key, return found value See Also: GET() 
 
 
 | 
| 
 | 
| Find a key, return found value See Also: GET() 
 
 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| Load and parse data from stream already loaded data will be overwritten 
 
 
 | 
| 
 | 
| Load and parse data from file already loaded data will be overwritten 
 
 
 | 
| 
 | 
| Remove topmoust common prefix from stack 
 
 | 
| 
 | 
| Push array index into key stack to refer array item 
 
 | 
| 
 | 
| Push common prefix into key stack All keys begins from - will refer to stack 
 
 | 
| 
 | ||||||||||||
| Find an element of array 
 
 
 | 
| 
 | 
| Find a key 
 
 
 | 
| 
 | 
| Set delemiter of key parts. Default is hiphen '-' 
 
 | 
| 
 | 
| Set encoding translation, see xlat.h Default is none 
 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
 1.3-rc2
1.3-rc2