![]() |
关于系统需要持久化保存的参数的相关操作
#include "EmxParam.hpp"
Public 成员函数 | |
| Param (const char *name) | |
| 构造函数 更多... | |
| Param (const std::string &name) | |
| 构造函数 更多... | |
| ErrCodeE | Set (const Json::Value &json) |
| 保存参数 更多... | |
| ErrCodeE | Get (Json::Value &json) |
| 获取参数 更多... | |
| ErrCodeE | GetDefault (Json::Value &json) |
| 获取默认参数 更多... | |
| ErrCodeE | Reset () |
| 将存储的参数恢复为默认值 更多... | |
静态 Public 成员函数 | |
| static ErrCodeE | ResetAllToFactory () |
| 将设备的所有参数恢复为默认值(除resetReserved.json中声明保留的文件) 更多... | |
| Emx::Param::Param | ( | const char * | name | ) |
| [in] | name | 指定参数的名称(参数实际存储的文件名去掉后缀.json) |
| Emx::Param::Param | ( | const std::string & | name | ) |
| [in] | name | 指定参数的名称(参数实际存储的文件名去掉后缀.json) |
| ErrCodeE Emx::Param::Set | ( | const Json::Value & | json | ) |
| [in] | json | 参数的json对象 |
| ErrCodeE Emx::Param::Get | ( | Json::Value & | json | ) |
| [out] | json | 参数的json对象 |
| ErrCodeE Emx::Param::GetDefault | ( | Json::Value & | json | ) |
| [out] | json | 参数的json对象 |
| ErrCodeE Emx::Param::Reset | ( | ) |
|
static |