|
Monero
|
#include <portable_storage.h>

Classes | |
| struct | limits_t |
| struct | storage_block_header |
Public Types | |
| typedef epee::serialization::hsection | hsection |
| typedef epee::serialization::harray | harray |
| typedef storage_entry | meta_entry |
Public Member Functions | |
| portable_storage () | |
| virtual | ~portable_storage () |
| hsection | open_section (const std::string §ion_name, hsection hparent_section, bool create_if_notexist=false) |
| template<class t_value> | |
| bool | get_value (const std::string &value_name, t_value &val, hsection hparent_section) |
| bool | get_value (const std::string &value_name, storage_entry &val, hsection hparent_section) |
| template<class t_value> | |
| bool | set_value (const std::string &value_name, t_value &&target, hsection hparent_section) |
| template<class t_value> | |
| harray | get_first_value (const std::string &value_name, t_value &target, hsection hparent_section) |
| template<class t_value> | |
| bool | get_next_value (harray hval_array, t_value &target) |
| template<class t_value> | |
| harray | insert_first_value (const std::string &value_name, t_value &&target, hsection hparent_section) |
| template<class t_value> | |
| bool | insert_next_value (harray hval_array, t_value &&target) |
| harray | get_first_section (const std::string &pSectionName, hsection &h_child_section, hsection hparent_section) |
| bool | get_next_section (harray hSecArray, hsection &h_child_section) |
| harray | insert_first_section (const std::string &pSectionName, hsection &hinserted_childsection, hsection hparent_section) |
| bool | insert_next_section (harray hSecArray, hsection &hinserted_childsection) |
| bool | delete_entry (const std::string &pentry_name, hsection hparent_section=nullptr) |
| bool | store_to_binary (byte_slice &target, std::size_t initial_buffer_size=8192) |
| bool | store_to_binary (byte_stream &ss) |
| bool | load_from_binary (const epee::span< const uint8_t > target, const limits_t *limits=nullptr) |
| bool | load_from_binary (const std::string &target, const limits_t *limits=nullptr) |
| template<class trace_policy> | |
| bool | dump_as_xml (std::string &targetObj, const std::string &root_name="") |
| bool | dump_as_json (std::string &targetObj, size_t indent=0, bool insert_newlines=true) |
| bool | load_from_json (const std::string &source) |
Private Member Functions | |
| hsection | get_root_section () |
| storage_entry * | find_storage_entry (const std::string &pentry_name, hsection psection) |
| template<class entry_type> | |
| storage_entry * | insert_new_entry_get_storage_entry (const std::string &pentry_name, hsection psection, entry_type &&entry) |
| hsection | insert_new_section (const std::string &pentry_name, hsection psection) |
Private Attributes | |
| section | m_root |
|
inline |
|
inlinevirtual |
| bool epee::serialization::portable_storage::delete_entry | ( | const std::string & | pentry_name, |
| hsection | hparent_section = nullptr ) |
| bool epee::serialization::portable_storage::dump_as_json | ( | std::string & | targetObj, |
| size_t | indent = 0, | ||
| bool | insert_newlines = true ) |
| bool epee::serialization::portable_storage::dump_as_xml | ( | std::string & | targetObj, |
| const std::string & | root_name = "" ) |
|
private |
| harray epee::serialization::portable_storage::get_first_section | ( | const std::string & | pSectionName, |
| hsection & | h_child_section, | ||
| hsection | hparent_section ) |
| harray epee::serialization::portable_storage::get_first_value | ( | const std::string & | value_name, |
| t_value & | target, | ||
| hsection | hparent_section ) |
| bool epee::serialization::portable_storage::get_next_section | ( | harray | hSecArray, |
| hsection & | h_child_section ) |
| bool epee::serialization::portable_storage::get_next_value | ( | harray | hval_array, |
| t_value & | target ) |
|
inlineprivate |
| bool epee::serialization::portable_storage::get_value | ( | const std::string & | value_name, |
| storage_entry & | val, | ||
| hsection | hparent_section ) |
| bool epee::serialization::portable_storage::get_value | ( | const std::string & | value_name, |
| t_value & | val, | ||
| hsection | hparent_section ) |
| harray epee::serialization::portable_storage::insert_first_section | ( | const std::string & | pSectionName, |
| hsection & | hinserted_childsection, | ||
| hsection | hparent_section ) |
| harray epee::serialization::portable_storage::insert_first_value | ( | const std::string & | value_name, |
| t_value && | target, | ||
| hsection | hparent_section ) |
|
private |
|
private |
| bool epee::serialization::portable_storage::insert_next_section | ( | harray | hSecArray, |
| hsection & | hinserted_childsection ) |
| bool epee::serialization::portable_storage::insert_next_value | ( | harray | hval_array, |
| t_value && | target ) |
| bool epee::serialization::portable_storage::load_from_binary | ( | const epee::span< const uint8_t > | target, |
| const limits_t * | limits = nullptr ) |
|
inline |
| bool epee::serialization::portable_storage::load_from_json | ( | const std::string & | source | ) |
| hsection epee::serialization::portable_storage::open_section | ( | const std::string & | section_name, |
| hsection | hparent_section, | ||
| bool | create_if_notexist = false ) |
| bool epee::serialization::portable_storage::set_value | ( | const std::string & | value_name, |
| t_value && | target, | ||
| hsection | hparent_section ) |
| bool epee::serialization::portable_storage::store_to_binary | ( | byte_slice & | target, |
| std::size_t | initial_buffer_size = 8192 ) |
| bool epee::serialization::portable_storage::store_to_binary | ( | byte_stream & | ss | ) |
|
private |