https://github.com/bmoscon/configparse
INI Config File Parser
https://github.com/bmoscon/configparse
Last synced: 2 months ago
JSON representation
INI Config File Parser
- Host: GitHub
- URL: https://github.com/bmoscon/configparse
- Owner: bmoscon
- License: other
- Created: 2013-09-01T15:29:58.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2015-12-30T22:16:51.000Z (over 9 years ago)
- Last Synced: 2025-02-09T02:34:10.344Z (4 months ago)
- Language: C++
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
##INI Config File Parser
Example usage:
```
ConfigParse cp("config.ini");std::string value = cp.get_value("Section Name", "Name");
```or, iterate over name-value pairs in a section:
```
ConfigParse::const_iterator it = cp.begin(SectionName);while (it != cp.end(SectionName)) {
std::cout << it->first << " = " << it->second << std::endl;
++it;
}
```for complete list of methods/types, see [config_parse.hpp](src/config_parse.hpp)