#include <KVDataBase.h>
Public Types | |
enum | KVWriteOption_e { KV_NO_REPLACE = -1, KV_REPLACE } |
typedef enum QDOS::KVDataBase::KVWriteOption_e | KVWriteOption |
Public Member Functions | |
KVDataBase () | |
KVDataBase (const ObjectNamesTable &object_table) | |
QdObject_var | get (const string &name) const |
void | set (const string &name, QdObject_var obj, KVWriteOption write_option=KV_NO_REPLACE) |
string | get_new_name (const string &name) |
template<class T > | |
void | set (const string &name, const T &t, KVWriteOption write_option=KV_NO_REPLACE) |
void | erase (const string &name) |
void | rename (const string &old_name, const string &new_name) |
void | prune_empty_contexts () |
void | diag_print () const |
DataNamesTable_var | get_names () const |
Private Types | |
typedef ObjectNamesTable::recursive_iterator | recursive_iterator |
Private Attributes | |
ObjectNamesTable_var | _data_by_name |
typedef ObjectNamesTable::recursive_iterator QDOS::KVDataBase::recursive_iterator [private] |
QDOS::KVDataBase::KVDataBase | ( | ) | [inline] |
QDOS::KVDataBase::KVDataBase | ( | const ObjectNamesTable & | object_table | ) | [inline] |
void QDOS::KVDataBase::diag_print | ( | ) | const [inline] |
void QDOS::KVDataBase::erase | ( | const string & | name | ) | [inline] |
QdObject_var QDOS::KVDataBase::get | ( | const string & | name | ) | const [inline] |
DataNamesTable_var QDOS::KVDataBase::get_names | ( | ) | const [inline] |
string QDOS::KVDataBase::get_new_name | ( | const string & | name | ) | [inline] |
void QDOS::KVDataBase::prune_empty_contexts | ( | ) | [inline] |
void QDOS::KVDataBase::rename | ( | const string & | old_name, | |
const string & | new_name | |||
) | [inline] |
void QDOS::KVDataBase::set | ( | const string & | name, | |
const T & | t, | |||
KVWriteOption | write_option = KV_NO_REPLACE | |||
) | [inline] |
void QDOS::KVDataBase::set | ( | const string & | name, | |
QdObject_var | obj, | |||
KVWriteOption | write_option = KV_NO_REPLACE | |||
) | [inline] |