|
MIDAS
|
#include <odbxx.h>

Classes | |
| class | iterator |
Public Types | |
| enum | odb_source { ONLINE = 0 , STRING , FILE } |
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 odb::odb_source | get_odb_source () |
| static void | set_odb_source (odb::odb_source s) |
| static void | set_odb_source (odb::odb_source s, std::string str) |
| 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 thread_local odb_source | s_odb_source = odb::ONLINE |
| static thread_local std::string | s_odb_source_str = std::string("") |
| 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 542 of file odbxx.h.
|
inline |
Definition at line 364 of file odbxx.cxx.

|
inline |
Definition at line 569 of file odbxx.h.

|
inline |
|
inline |
Definition at line 650 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 1430 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 1481 of file odbxx.cxx.

| void midas::odb::connect_and_fix_structure | ( | std::string | path | ) |
Definition at line 1509 of file odbxx.cxx.


Definition at line 139 of file odbxx.cxx.


| void midas::odb::delete_key | ( | ) |
Definition at line 1523 of file odbxx.cxx.


Definition at line 730 of file odbxx.h.

| std::string midas::odb::dump | ( | ) |
| void midas::odb::fix_order | ( | std::vector< std::string > | target_subkey_order | ) |
Definition at line 1367 of file odbxx.cxx.

|
inlineprivate |
|
inlineprivate |
| std::string midas::odb::get_full_path | ( | ) |
|
inline |
| int midas::odb::get_mode | ( | ) |
|
inline |
|
inlinestatic |
|
inlineprivate |
| std::string midas::odb::get_parent_path | ( | ) |
|
private |
Definition at line 621 of file odbxx.cxx.


|
private |
Definition at line 685 of file odbxx.cxx.


|
inline |
|
staticprivate |
Definition at line 49 of file odbxx.cxx.


|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inline |
| bool midas::odb::is_subkey | ( | std::string | str | ) |
|
inline |
|
inline |
Definition at line 101 of file odbxx.cxx.

|
inline |
|
inline |
Definition at line 1263 of file odbxx.h.


Definition at line 259 of file odbxx.cxx.


|
inline |
Definition at line 1186 of file odbxx.h.


Definition at line 159 of file odbxx.cxx.


Definition at line 198 of file odbxx.cxx.


|
inline |
|
inline |
Definition at line 892 of file odbxx.h.

|
inline |
Definition at line 883 of file odbxx.h.

|
inline |
Definition at line 976 of file odbxx.h.

|
inline |
Definition at line 1008 of file odbxx.h.

|
inline |
|
inline |
Definition at line 1030 of file odbxx.h.

|
inline |
|
inline |
Definition at line 794 of file odbxx.h.

Definition at line 767 of file odbxx.h.

Definition at line 932 of file odbxx.h.

|
inline |
| std::string midas::odb::print | ( | ) |
| void midas::odb::read | ( | ) |
Definition at line 855 of file odbxx.cxx.


Definition at line 990 of file odbxx.cxx.

Definition at line 710 of file odbxx.cxx.


Definition at line 448 of file odbxx.cxx.

|
inline |
Definition at line 571 of file odbxx.cxx.

|
staticprivate |
Definition at line 61 of file odbxx.cxx.


| void midas::odb::set | ( | std::string | str | ) |
Definition at line 1634 of file odbxx.cxx.

|
inlineprivate |
|
inlinestatic |
|
inlinestatic |
|
inlineprivate |
Definition at line 1664 of file odbxx.cxx.

| int midas::odb::size | ( | ) |
| void midas::odb::unwatch | ( | ) |
|
staticprivate |
Definition at line 1625 of file odbxx.cxx.

| void midas::odb::watch | ( | std::function< void(midas::odb &)> | f | ) |
Definition at line 1597 of file odbxx.cxx.

Definition at line 1065 of file odbxx.cxx.

Definition at line 1166 of file odbxx.cxx.


Definition at line 796 of file odbxx.cxx.


|
private |
|
staticprivate |
|
private |
|
staticprivate |
|
staticprivate |