class ThreadConfigManager
Defined at line 55 of file ../../src/connectivity/openthread/third_party/openthread/platform/thread_config_manager.h
Singleton class that accepts read/write calls to store key-value pairs.
This class loads a JSON file from a fixed location and uses it as its backing
store. Read requests are handled by quering the in-memory RapidJSON object,
while writes update both the in-memory object and commits the JSON to disk.
It is up to callers of this class to not open the same path across multiple
instances, to prevent R/W interleaving and corrupting the backing file.
Public Methods
void ThreadConfigManager (const std::string & path)
Defined at line 17 of file ../../src/connectivity/openthread/third_party/openthread/platform/thread_config_manager.cc
void ~ThreadConfigManager ()
Defined at line 59 of file ../../src/connectivity/openthread/third_party/openthread/platform/thread_config_manager.cc
void ThreadConfigManager (const ThreadConfigManager & )
Defined at line 60 of file ../../src/connectivity/openthread/third_party/openthread/platform/thread_config_manager.h
void ThreadConfigManager (ThreadConfigManager && )
Defined at line 61 of file ../../src/connectivity/openthread/third_party/openthread/platform/thread_config_manager.h
ThreadConfigManager & operator= (const ThreadConfigManager & )
Defined at line 62 of file ../../src/connectivity/openthread/third_party/openthread/platform/thread_config_manager.h
ThreadConfigManager & operator= (ThreadConfigManager && )
Defined at line 63 of file ../../src/connectivity/openthread/third_party/openthread/platform/thread_config_manager.h
ThreadConfigMgrError ReadConfigValueFromBinArray (const std::string & key, uint16_t index, uint8_t * value, size_t value_size, size_t * out_size)
Read the config with key as 'key' at index 'index', and stores value in
'value', and its size in 'out_size'
If out_size == NULL, simply returns the presence test - whether value
exists or not
If out_size != NULL but value == NULL, return that value is present, with
the size in out_size
Defined at line 96 of file ../../src/connectivity/openthread/third_party/openthread/platform/thread_config_manager.cc
bool ConfigValueExists (const std::string & key)
Defined at line 183 of file ../../src/connectivity/openthread/third_party/openthread/platform/thread_config_manager.cc
ThreadConfigMgrError AppendConfigValueBinArray (const std::string & key, const uint8_t * value, size_t value_size)
Defined at line 65 of file ../../src/connectivity/openthread/third_party/openthread/platform/thread_config_manager.cc
std::unique_ptr<ThreadConfigReader> CreateReadOnlyInstance (const std::string & path)
Returns a read-only interface to this instance of ThreadConfigManager.
Defined at line 83 of file ../../src/connectivity/openthread/third_party/openthread/platform/thread_config_manager.h
ThreadConfigMgrError ClearConfigValue (const std::string & key)
Defined at line 147 of file ../../src/connectivity/openthread/third_party/openthread/platform/thread_config_manager.cc
ThreadConfigMgrError ClearConfigValueFromArray (const std::string & key, uint16_t index)
Defined at line 156 of file ../../src/connectivity/openthread/third_party/openthread/platform/thread_config_manager.cc
ThreadConfigMgrError FactoryResetConfig ()
Defined at line 192 of file ../../src/connectivity/openthread/third_party/openthread/platform/thread_config_manager.cc