Click here to Skip to main content
12,506,338 members (57,467 online)
Click here to Skip to main content

Stats

99.8K views
2.8K downloads
44 bookmarked
Posted

A C++ Config File Parser

, 16 May 2008 LGPL3
An STL based C++ utility class to parse structured config files.
config
config
config.vcproj.EMEA.kschweb.user
Debug
debug
config.ilk
# Demo Config File
# Comments are starting with # (has to be first char)

# Sample entries
helloMessage = Hello, World!
helloCount = 3
showHello = true

# Environment variables used as expansion symbol
# Note: symbol names are case sensitive
tempFolder = %TEMP%

# already defined variables used as expansion symbol
tempSubFolder = %tempFolder%\config-demo

# Sub group example
baseName = Welcome Note
message1 = (
#  strings may use "; it does not make a difference, however.
   name = "%baseName% 1"
   text = Sample message text
)

message2 = (
   name = %baseName% II
   text = Another sample message text
)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU Lesser General Public License (LGPLv3)

Share

About the Author

freejack
United States United States
No Biography provided

You may also be interested in...

Pro
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160927.1 | Last Updated 17 May 2008
Article Copyright 2008 by freejack
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid