|
MIDAS
|
#include <odbxx.h>

Classes | |
| class | iterator |
Public Types | |
| enum | odb_source { ONLINE = 0 , STRING , FILE } |
Public Member Functions | |
| odb () | |
| ~odb () | |
| odb (const odb &o) | |
| odb | operator= (odb &&o)=delete |
| template<typename T > | |
| odb (T v) | |
| odb (std::initializer_list< std::pair< const char *, midas::odb > > list) | |
| template<typename T > | |
| odb (std::initializer_list< T > list) | |
| template<typename T , size_t SIZE> | |
| odb (const std::array< T, SIZE > &arr) | |
| template<size_t SIZE> | |
| odb (const std::array< std::string, SIZE > &arr) | |
| odb (const std::string &path, bool init_via_xml=false) | |
| odb (const char *s) | |
| odb (std::initializer_list< const char * > list) | |
| template<typename T > | |
| int | detect_type (const T &) |
| template<typename T > | |
| const T & | operator= (const T &v) |
| template<typename T > | |
| const std::vector< T > & | operator= (const std::vector< T > &v) |
| template<typename T , size_t SIZE> | |
| const std::array< T, SIZE > & | operator= (const std::array< T, SIZE > &arr) |
| operator std::string () | |
| template<typename T > | |
| operator std::vector< T > () | |
| operator std::vector< std::string > () | |
| template<typename T , typename std::enable_if< std::is_same< T, uint8_t >::value||std::is_same< T, int8_t >::value||std::is_same< T, uint16_t >::value||std::is_same< T, int16_t >::value||std::is_same< T, uint32_t >::value||std::is_same< T, int32_t >::value||std::is_same< T, uint64_t >::value||std::is_same< T, int64_t >::value||std::is_same< T, bool >::value||std::is_same< T, float >::value||std::is_same< T, double >::value, T >::type * = nullptr> | |
| operator T () | |
| u_odb & | operator[] (int index) |
| odb & | operator[] (std::string str) |
| odb & | operator[] (const char *str) |
| template<typename T > | |
| odb & | operator() (T v) |
| int | get_last_index () |
| void | set_last_index (int i) |
| iterator | begin () const |
| iterator | end () const |
| template<typename T > | |
| T | operator+ (T i) |
| template<typename T > | |
| T | operator- (T i) |
| template<typename T > | |
| T | operator* (const T i) |
| template<typename T > | |
| T | operator/ (const T i) |
| odb & | operator++ () |
| odb | operator++ (int) |
| odb & | operator-- () |
| odb | operator-- (int) |
| odb & | operator+= (double d) |
| odb & | operator-= (double d) |
| odb & | operator*= (double d) |
| odb & | operator/= (double d) |
| midas::odb * | odb_from_xml (PMXML_NODE node, odb *o) |
| std::string | node_to_string (const MJsonNode *node) |
| midas::odb * | odb_from_json (const MJsonNode *node, std::string name, int tid, odb *o) |
| void | deep_copy (odb &d, const odb &s) |
| bool | is_preserve_string_size () const |
| void | set_preserve_string_size (bool f) |
| bool | is_auto_refresh_read () const |
| void | set_auto_refresh_read (bool f) |
| bool | is_auto_refresh_write () const |
| void | set_auto_refresh_write (bool f) |
| bool | is_dirty () const |
| void | set_dirty (bool f) |
| bool | is_auto_create () const |
| void | set_auto_create (bool f) |
| bool | is_auto_enlarge_array () const |
| void | set_auto_enlarge_array (bool f) |
| bool | is_write_protect () const |
| void | set_write_protect (bool f) |
| bool | is_trigger_hotlink () const |
| void | set_trigger_hotlink (bool f) |
| void | odb_from_xml_remote (const std::string &str) |
| void | odb_from_xml_string (const std::string &str, const std::string &subkey) |
| void | odb_from_json_string (const std::string &str, const std::string &subkey) |
| void | connect (const std::string &path, const std::string &name, bool write_defaults, bool delete_keys_not_in_defaults=false) |
| void | connect (std::string str, bool write_defaults=false, bool delete_keys_not_in_defaults=false) |
| void | connect_and_fix_structure (std::string path) |
| void | read () |
| void | read (int index) |
| void | write (int str_size=0) |
| void | write (int index, int str_size) |
| std::string | print () |
| std::string | dump () |
| void | print (std::string &s, int indent=0) |
| void | dump (std::string &s, int indent=0) |
| void | save (const std::string &filename) |
| void | delete_key () |
| int | size () |
| void | resize (int size) |
| void | resize (int size, bool b) |
| void | watch (std::function< void(midas::odb &)> f) |
| void | unwatch () |
| void | set (std::string str) |
| void | set (std::string s, int i) |
| void | set_odb (odb *o, int i) |
| void | set_string_size (std::string s, int size) |
| bool | is_subkey (std::string str) |
| HNDLE | get_hkey () |
| std::string | get_full_path () |
| std::string | get_parent_path () |
| int | get_tid () |
| int | get_num_values () |
| std::string | get_name () |
| odb & | items () |
| std::string | s () |
| void | fix_order (std::vector< std::string > target_subkey_order) |
| void | set_mode (int mode) |
| int | get_mode () |
| unsigned int | get_last_written () |
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 |
| midas::odb::odb | ( | const odb & | o | ) |
Definition at line 364 of file odbxx.cxx.

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

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

|
inline |
|
inline |
|
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.


|
static |
Definition at line 139 of file odbxx.cxx.


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


|
static |
|
inline |
Definition at line 730 of file odbxx.h.

| std::string midas::odb::dump | ( | ) |
| void midas::odb::dump | ( | std::string & | s, |
| int | indent = 0 |
||
| ) |
|
static |
| void midas::odb::fix_order | ( | std::vector< std::string > | target_subkey_order | ) |
Definition at line 1367 of file odbxx.cxx.


|
inlineprivate |
|
private |
|
inlineprivate |
|
inlinestatic |
|
inlineprivate |
| std::string midas::odb::get_full_path | ( | ) |
|
inline |
| unsigned int midas::odb::get_last_written | ( | ) |
|
inlineprivate |
| 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 |
|
inlinestatic |
|
inlineprivate |
|
inline |
| bool midas::odb::is_subkey | ( | std::string | str | ) |
Definition at line 597 of file odbxx.cxx.


|
inline |
|
inline |
|
static |
Definition at line 101 of file odbxx.cxx.

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

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


| void midas::odb::odb_from_json_string | ( | const std::string & | str, |
| const std::string & | subkey | ||
| ) |
Definition at line 259 of file odbxx.cxx.


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


| void midas::odb::odb_from_xml_remote | ( | const std::string & | str | ) |
Definition at line 159 of file odbxx.cxx.


| void midas::odb::odb_from_xml_string | ( | const std::string & | str, |
| const std::string & | subkey | ||
| ) |
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 |
|
inline |
Definition at line 976 of file odbxx.h.

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

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

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

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

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

|
inline |
| std::string midas::odb::print | ( | ) |
| void midas::odb::print | ( | std::string & | s, |
| int | indent = 0 |
||
| ) |
| void midas::odb::read | ( | ) |
Definition at line 855 of file odbxx.cxx.


| void midas::odb::read | ( | int | index | ) |
Definition at line 990 of file odbxx.cxx.

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


| void midas::odb::resize | ( | int | size | ) |
Definition at line 448 of file odbxx.cxx.


| void midas::odb::resize | ( | int | size, |
| bool | b | ||
| ) |
|
private |
|
inline |
| void midas::odb::save | ( | const std::string & | filename | ) |
Definition at line 571 of file odbxx.cxx.

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


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


|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inlineprivate |
|
inlineprivate |
|
private |
|
inlineprivate |
|
inline |
| void midas::odb::set_mode | ( | int | mode | ) |
|
inlineprivate |
|
inlineprivate |
| void midas::odb::set_odb | ( | odb * | o, |
| int | i | ||
| ) |
|
inlinestatic |
|
inlinestatic |
|
inlineprivate |
|
inline |
| void midas::odb::set_string_size | ( | std::string | s, |
| int | size | ||
| ) |
Definition at line 1664 of file odbxx.cxx.


|
inlineprivate |
|
inline |
|
inline |
| 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.


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


| void midas::odb::write | ( | int | index, |
| int | str_size | ||
| ) |
Definition at line 1065 of file odbxx.cxx.

| void midas::odb::write | ( | int | str_size = 0 | ) |
Definition at line 1166 of file odbxx.cxx.


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


|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
Definition at line 1476 of file odbxx.h.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
|
staticprivate |
|
private |
|
staticprivate |
|
staticprivate |