Comments (5)
Maybe you can present the contents of a ini-file which causes a crash, so it gets clearer, what your exact problem is.
from inifile-cpp.
Maybe you can present the contents of a ini-file which causes a crash, so it gets clearer, what your exact problem is.
Missing keys in any input ini file.
from inifile-cpp.
Or bad value in ini file.
@Rookfighter author, if you provide ini file without possibility to manual edit.... For what you use ini file format? You can just use directly any binary format....:)
from inifile-cpp.
@UnrealKaraulov
Maybe you can present the contents of a ini-file which causes a crash, so it gets clearer, what your exact problem is.Missing keys in any input ini file.
You can easily check the existance of a key the same way as you do for std::map
(all the types in this library are derived from std::map
).
from inifile-cpp.
Or bad value in ini file.
@Rookfighter author, if you provide ini file without possibility to manual edit.... For what you use ini file format? You can just use directly any binary format....:)
There are many use-cases, e.g. as machine interchange format, saving internal state or simply as configuration file. Now, there are two things here:
On one side you can edit ini files manually and read them with inifile-cpp
, e.g. configuration files. However, this is an architectural question of your application and may not apply for you.
On the other side if this architectural paradigm does not apply for your use-case you can also simply fork this library and adjust it to your needs (it's MIT licensed after all). This library is just a few hundred lines so you could easily rewrite it anyways.
from inifile-cpp.
Related Issues (20)
- Add static default IniFile members
- Ignore non-significant spaces HOT 2
- Disallow section duplication HOT 1
- Why not HOT 1
- Changeable comment char
- ini parsing failed, section not closed HOT 4
- Add semicolon ";" to comment prefixes
- is:open label:enhancement I want HOT 3
- Comments and line separators getting deleted while saving HOT 5
- Add uint and float field
- Disable sorting HOT 7
- By not existing keys returns 0 HOT 4
- Add dependency install script
- Restoring the master branch HOT 2
- Update to newer Catch version
- Add appveyor CI
- Check existence of field and section
- Allow empty section
- Make header only
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from inifile-cpp.