2018-06-01 09:36:01 +00:00
|
|
|
/*!
|
|
|
|
* \file Parameters.h
|
|
|
|
* \date 2014/08/25 11:44
|
|
|
|
*
|
|
|
|
* \author Kane
|
|
|
|
* Contact: user@company.com
|
|
|
|
*
|
|
|
|
* \brief
|
|
|
|
*
|
|
|
|
* TODO: long description
|
|
|
|
*
|
|
|
|
* \note
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef Parameters_h__
|
|
|
|
#define Parameters_h__
|
|
|
|
|
|
|
|
#include <string>
|
2018-06-02 09:47:28 +00:00
|
|
|
#include <unordered_map>
|
2018-06-01 09:36:01 +00:00
|
|
|
|
|
|
|
using std::string;
|
2018-06-02 09:47:28 +00:00
|
|
|
using std::unordered_map;
|
2018-06-01 09:36:01 +00:00
|
|
|
|
|
|
|
class Parameters
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Parameters( const string & strFilePath );
|
|
|
|
virtual ~Parameters(void);
|
|
|
|
|
|
|
|
string getParameter( const string & strParaName );
|
|
|
|
void setParameter( const string & strParaName, const string & strParaValue );
|
|
|
|
|
|
|
|
private:
|
|
|
|
Parameters();
|
|
|
|
|
|
|
|
private:
|
|
|
|
string m_strDbFilePath;
|
2018-06-02 09:47:28 +00:00
|
|
|
unordered_map<string, string> m_parameters;
|
2018-06-01 09:36:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // Parameters_h__
|
|
|
|
|