1 #ifndef __PARAMETER_IMPL_H__
2 #define __PARAMETER_IMPL_H__
4 #include "parameter_enum.h"
15 component(){ section = ""; function = NULL;}
16 component( std::string str, void (*p_func)() ){ section = str; function = p_func;}
17 component& operator=(const component& in_comp){ section = in_comp.section; function = in_comp.function;return *this;}
22 std::string removebrank( const std::string& );
23 bool readParameterFile( const std::string& );
24 bool isNumeric( const std::string& );
26 std::multimap<std::string,std::string> preparse;
28 std::map<PARAMETER_COMPONENT_TAG, component> compTable;
29 std::map<std::string, std::string> stringMap;
30 std::map<std::string, int> intMap;
34 ParameterImpl( const ParameterImpl& );
35 ParameterImpl& operator=( const ParameterImpl& );
38 static ParameterImpl & getInstance(){
39 static ParameterImpl instance;
43 bool rereadFile( const PARAMETER_COMPONENT_TAG );
45 bool isIntExist( const PARAMETER_COMPONENT_TAG, const std::string& );
46 bool isStringExist( const PARAMETER_COMPONENT_TAG, const std::string& );
47 int getIntValue( const PARAMETER_COMPONENT_TAG, const std::string& );
48 std::string getStringValue( const PARAMETER_COMPONENT_TAG, const std::string& );
50 void registerFunctionPointer( const PARAMETER_COMPONENT_TAG, void (*)() );
53 #endif //__PARAMETER_IMPL_H__