tpConfig类
Utils
2025-07-05
介绍
读取INI格式配置文件
基础信息
头文件: | include <tpConfig.h> |
---|---|
Cmake: | None |
发布版本: | V0.1.0 |
继承类: | |
派生类: |
Public 成员函数
tpConfig() | ||
---|---|---|
~tpConfig() | ||
readFrom(const char *cfgFile) | ||
saveAs(const char *cfgFile) | ||
save() | ||
getComment() | ||
setComment(const char *comment) | ||
getNbrSections() | ||
getAllSections() | ||
hasSections(const char *section) | ||
getSectionComment(const char *section) | ||
setSectionComment(const char *section, const char *comment) | ||
getNbrKeys(const char *section) | ||
getKeys(const char *section) | ||
hasKeys(const char *section, const char *key) | ||
deleteSeciton(const char *section) | ||
deleteKey(const char *section, const char *key) | ||
deleteVaule(const char *section, const char *key) | ||
getKeyComment(const char *section, const char *key) | ||
setKeyComment(const char *section, const char *key, const char *comment) | ||
keyValueAsString(const char *section, const char *key) | ||
keyValueAsInteger(const char *section, const char *key) | ||
keyValueAsFloat(const char *section, const char *key) | ||
keyValueAsBool(const char *section, const char *key) | ||
setKeyValueAsString(const char *section, const char *key, const char *value) | ||
setKeyValueAsInteger(const char *section, const char *key, int32_t value) | ||
setKeyValueAsFloat(const char *section, const char *key, float value) | ||
setKeyAsBool(const char *section, const char *key, bool value) |