MIDAS
|
#include <odbxx.h>
Classes | |
class | iterator |
Static Public Member Functions | |
static void | set_debug (bool flag) |
static bool | get_debug () |
static int | create (const char *name, int type=TID_KEY) |
static bool | exists (const std::string &name) |
static int | delete_key (const std::string &name) |
static void | load (const std::string &filename, const std::string &odb_path) |
static bool | is_connected_odb () |
Private Member Functions | |
void | set_flags_recursively (uint32_t f) |
void | resize_mdata (int size) |
template<typename T > | |
T | get () |
template<typename T > | |
void | get (T &v) |
void | get (std::string &s, bool quotes=false, bool refresh=true) |
u_odb & | get_mdata (int index=0) |
odb & | get_subkey (std::string str) |
int | get_subkeys (std::vector< std::string > &name) |
bool | read_key (const std::string &path) |
bool | write_key (std::string &path, bool write_defaults) |
void | set_hkey (HNDLE hKey) |
void | set_flags (uint32_t f) |
uint32_t | get_flags () |
bool | is_deleted () const |
void | set_deleted (bool f) |
void | set_tid (int tid) |
void | set_num_values (int n) |
void | set_name (std::string s) |
void | set_parent (midas::odb *p) |
midas::odb * | get_parent () |
Static Private Member Functions | |
static void | init_hdb () |
static midas::odb * | search_hkey (midas::odb *po, int hKey) |
static void | watch_callback (int hDB, int hKey, int index, void *info) |
static void | unwatch_all () |
Private Attributes | |
std::bitset< 9 > | m_flags |
int | m_tid |
u_odb * | m_data |
std::string | m_name |
int | m_num_values |
int | m_last_index |
HNDLE | m_hKey |
std::function< void(midas::odb &)> | m_watch_callback |
midas::odb * | m_parent |
Static Private Attributes | |
static HNDLE | s_hDB = 0 |
static bool | s_debug = false |
static bool | s_connected_odb = false |
static std::vector< midas::odb > | m_watch |
Friends | |
std::ostream & | operator<< (std::ostream &output, odb &o) |
template<typename T > | |
bool | operator== (const midas::odb &o, const T &d) |
template<typename T > | |
bool | operator== (const T &d, const midas::odb &o) |
template<typename T > | |
bool | operator!= (const midas::odb &o, const T &d) |
template<typename T > | |
bool | operator!= (const T &d, const midas::odb &o) |
template<typename T > | |
bool | operator< (const midas::odb &o, const T &d) |
template<typename T > | |
bool | operator< (const T &d, const midas::odb &o) |
template<typename T > | |
bool | operator<= (const midas::odb &o, const T &d) |
template<typename T > | |
bool | operator<= (const T &d, const midas::odb &o) |
template<typename T > | |
bool | operator> (const midas::odb &o, const T &d) |
template<typename T > | |
bool | operator> (const T &d, const midas::odb &o) |
template<typename T > | |
bool | operator>= (const midas::odb &o, const T &d) |
template<typename T > | |
bool | operator>= (const T &d, const midas::odb &o) |
|
inline |
Definition at line 530 of file odbxx.h.
|
inline |
Definition at line 236 of file odbxx.cxx.
|
inline |
Definition at line 557 of file odbxx.h.
|
inline |
|
inline |
Definition at line 638 of file odbxx.h.
|
inline |
void midas::odb::connect | ( | const std::string & | path, |
const std::string & | name, | ||
bool | write_defaults, | ||
bool | delete_keys_not_in_defaults = false |
||
) |
Definition at line 1291 of file odbxx.cxx.
void midas::odb::connect | ( | std::string | str, |
bool | write_defaults = false , |
||
bool | delete_keys_not_in_defaults = false |
||
) |
Definition at line 1342 of file odbxx.cxx.
void midas::odb::connect_and_fix_structure | ( | std::string | path | ) |
Definition at line 1370 of file odbxx.cxx.
Definition at line 130 of file odbxx.cxx.
void midas::odb::delete_key | ( | ) |
Definition at line 1384 of file odbxx.cxx.
Definition at line 686 of file odbxx.h.
std::string midas::odb::dump | ( | ) |
Definition at line 398 of file odbxx.cxx.
void midas::odb::fix_order | ( | std::vector< std::string > | target_subkey_order | ) |
Definition at line 1228 of file odbxx.cxx.
|
inlineprivate |
|
inlineprivate |
std::string midas::odb::get_full_path | ( | ) |
|
inline |
int midas::odb::get_mode | ( | ) |
|
inline |
|
inlineprivate |
std::string midas::odb::get_parent_path | ( | ) |
|
private |
Definition at line 482 of file odbxx.cxx.
|
private |
Definition at line 546 of file odbxx.cxx.
|
inline |
|
staticprivate |
Definition at line 43 of file odbxx.cxx.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inline |
bool midas::odb::is_subkey | ( | std::string | str | ) |
|
inline |
|
inline |
Definition at line 92 of file odbxx.cxx.
Definition at line 150 of file odbxx.cxx.
|
inline |
|
inline |
|
inline |
Definition at line 848 of file odbxx.h.
|
inline |
Definition at line 839 of file odbxx.h.
|
inline |
Definition at line 932 of file odbxx.h.
|
inline |
Definition at line 964 of file odbxx.h.
|
inline |
|
inline |
Definition at line 986 of file odbxx.h.
|
inline |
|
inline |
Definition at line 750 of file odbxx.h.
Definition at line 723 of file odbxx.h.
Definition at line 888 of file odbxx.h.
|
inline |
std::string midas::odb::print | ( | ) |
void midas::odb::read | ( | ) |
Definition at line 716 of file odbxx.cxx.
Definition at line 851 of file odbxx.cxx.
Definition at line 571 of file odbxx.cxx.
Definition at line 320 of file odbxx.cxx.
|
inline |
Definition at line 436 of file odbxx.cxx.
|
staticprivate |
Definition at line 52 of file odbxx.cxx.
void midas::odb::set | ( | std::string | str | ) |
Definition at line 1495 of file odbxx.cxx.
|
inlineprivate |
|
inlineprivate |
Definition at line 1525 of file odbxx.cxx.
int midas::odb::size | ( | ) |
void midas::odb::unwatch | ( | ) |
|
staticprivate |
Definition at line 1486 of file odbxx.cxx.
void midas::odb::watch | ( | std::function< void(midas::odb &)> | f | ) |
Definition at line 1458 of file odbxx.cxx.
Definition at line 926 of file odbxx.cxx.
Definition at line 1027 of file odbxx.cxx.
Definition at line 657 of file odbxx.cxx.
|
private |
|
staticprivate |
|
private |