#include "Mbo.h"
#include "MboSynch.h"
#include "MboStrList.h"
#include "MboStrMap.h"
#include "MboStrHelper.h"
#include "triplet.h"
#include "quaternion.h"
#include <vector>
#include <float.h>
#include <fstream>
#include <sstream>
#include <sys/types.h>
#include <sys/stat.h>
Go to the source code of this file.
Namespaces | |
namespace | mbo |
Classes | |
class | mbo::CIniData |
Storage/Retrieval of Initialisation data. More... | |
class | mbo::CIniData::CIniMutex |
extended mutex that enables auto-flushing | |
Typedefs | |
typedef std::list< std::pair < MboString, MboString > > | mbo::CIniSectionList |
Functions | |
template<class _E, class _Tr, class _A> | |
COLORREF | mbo::StrToColor (const std::basic_string< _E, _Tr, _A > &str, COLORREF colDefault) |
template<class _E, class _Tr, class _A> | |
std::basic_string< _E, _Tr, _A > & | mbo::StrFromColor (std::basic_string< _E, _Tr, _A > &str, COLORREF col) |
This file is distributed under the LGPL license GNU Lesser General Public License, version 2.1.
[group-name-1] key-name-1=value-1 key-name-2=value-2 [group-name-2] key-name-3=value-3 key-name-4=value-4
Any empty lines are ignored and comments are not possible. However it is common to not have any keyname starting with ";" or "#". So that lines starting with one of these characters are usually ignored.
Keynames may be appended by additional whitespace and whitespace before or after a value is ignored. If a value is enclosed in single or double quotes then the surrounding quotes are dropped and the value inside the quotes is taken as this. This way whitespace at beginning or end of a value is possible.
string>
filename>
path>
integer>
long>
float>
double>
boolean>
color>
map>
string
setting is any value but the left and right most whitespace is ignored and you cannot have ini settings that exceed one line.
static
]filename
is basically the same as string
but it is intended for filenames. The difference is that filename
settings may contain environment variables. For example %TEMP% will be replaced in the value of the environment variable TEMP. If an environment variable contains other environment variables the resolution is done recursively. If you need a single % in you setting then you must use double %% in you setting.int
.
static
]long
.
static
]float
.
static
]double
.
static
]true
or false
. The following values are recognized as true:
"true", "yes", "on", "ja", "1". The next list shows values recognized as false:
"false", "no", "off", "nein", "0". Any other value is ignored and instead the default value will be used.
static
]
key-name=R=<red>,G=<green>,B=<blue>
static
]
[<string>] <string>=<string> <string>=<string> ...
static
]Other than getting or setting the map with the above described methods it is possible to get and set all entries of a section using CIniSectionList. This allows to read and write sections with duplicate entries.
Definition in file MboIniData.h.
Hosted on code.google.com | © Marcus Börger | Generated on Fri Jan 18 21:21:08 2008 for MBO-lib by ![]() |