SMILE  v2.5
Schwarzschild Modelling Interactive expLoratory Environment
Classes | Namespaces | Functions
configfile.h File Reference

Reading/writing of INI files. More...

#include <string>
#include <vector>
Include dependency graph for configfile.h:
This graph shows which files directly or indirectly include this file:

Classes

class  smile::CConfigFile
 Utility class for handling an INI file. More...
 

Namespaces

 smile
 common namespace for all core SMILE classes, functions and variables
 

Functions

void smile::readConfigPotential (const CConfigFile &configReader, CConfigPotential *ptrConfigPotential, unsigned int potGroup=0)
 Read the configuration data from the INI file which is contained in one [Potential*] section. More...
 
void smile::writeConfigPotential (CConfigFile &configWriter, const CConfigPotential *ptrConfigPotential, unsigned int potGroup=0)
 Write the configuration data for one potential component into the INI file. More...
 
void smile::readConfigOrbit (const CConfigFile &configReader, CConfigOrbit *ptrConfigOrbit)
 Read configuration data for orbit integration (a subset of parameters contained in the [Orbit] section of INI file). More...
 
void smile::writeConfigOrbit (CConfigFile &configWriter, const CConfigOrbit *ptrConfigOrbit)
 Write configuration data for orbit integration to INI file. More...
 

Detailed Description

Reading/writing of INI files.

Author
EV
Date
2014

This file defines the class for reading and writing parameters from/to INI text files. The file format is identical to MS .ini file:

[Section] key=value ;key=old value – commented out, lines starting with ; # / are ignored but preserved in the file upon saving

In addition, several convenience function are provided to read and write entire groups of SMILE parameters related to potential and orbit integration.