AnCH Framework  0.1
Another C++ Hack Framework
Public Member Functions | List of all members
anch::resource::file::ConfigurationFileParser Class Reference

#include <configurationFileParser.hpp>

Collaboration diagram for anch::resource::file::ConfigurationFileParser:

Public Member Functions

 ConfigurationFileParser (const std::string &filePath)
 
virtual ~ConfigurationFileParser ()
 
void getConfiguration (std::map< std::string, anch::resource::Section > &config) const throw (anch::resource::file::ResourceFileException)
 

Detailed Description

Configuration file parser

Classic configuration file paser
Sections are declared following pattern ^[[-a-zA-Z0-9_]+]
Options are declared following pattern ^[-a-zA-Z0-9_]+=.*
Comments are declared following pattern ([^]#).*

If empty section is found, every of its options will be store with no section.
Errors in configuration file will be ignored.

Author
Vincent Lachenal

Constructor & Destructor Documentation

ConfigurationFileParser::ConfigurationFileParser ( const std::string &  filePath)

ConfigurationFileParser constructor

Parameters
filePathThe configuration file path
ConfigurationFileParser::~ConfigurationFileParser ( )
virtual

Member Function Documentation

void ConfigurationFileParser::getConfiguration ( std::map< std::string, anch::resource::Section > &  config) const
throw (anch::resource::file::ResourceFileException
)

Get configuration from file

Parameters
configThe current configuration

The documentation for this class was generated from the following files: