55 lines
763 B
C++
55 lines
763 B
C++
#ifndef RAKI_KEYVALUECONTAINER_H
|
|
#define RAKI_KEYVALUECONTAINER_H
|
|
|
|
|
|
|
|
|
|
#include <string>
|
|
#include <list>
|
|
|
|
|
|
|
|
|
|
namespace raki
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
class KeyValueContainer
|
|
{
|
|
|
|
public:
|
|
|
|
KeyValueContainer( int _argc, _TCHAR* _argv[] );
|
|
|
|
const std::wstring & getStringValue( const _TCHAR * _key );
|
|
|
|
const int getIntValue( const _TCHAR * _key );
|
|
|
|
const bool getBoolValue( const _TCHAR * _key );
|
|
|
|
const size_t getNbKeyValuePairs();
|
|
|
|
private:
|
|
|
|
struct KeyValuePair
|
|
{
|
|
std::wstring m_key;
|
|
std::wstring m_value;
|
|
};
|
|
|
|
std::list<KeyValuePair> m_keyValueArray;
|
|
|
|
std::wstring m_emptyWString;
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace raki
|
|
|
|
|
|
#endif // RAKI_KEYVALUECONTAINER_H
|
|
|