mirror of
https://github.com/spiffcode/hostile-takeover.git
synced 2026-03-27 15:29:39 -06:00
26 lines
513 B
C++
26 lines
513 B
C++
#ifndef __MAP_H__
|
|
#define __MAP_H__
|
|
|
|
#include "inc/basictypes.h"
|
|
#include "mpshared/enum.h"
|
|
#include "mpshared/misc.h"
|
|
#include <map>
|
|
#include <string>
|
|
|
|
namespace wi {
|
|
|
|
class Map {
|
|
public:
|
|
bool GetValue(const char *pszKey, char *pszValue, int cbValue) const;
|
|
bool SetValue(const char *pszKey, const char *pszValue);
|
|
bool EnumKeys(Enum *penm, char *pszKey, int cbKey) const;
|
|
|
|
protected:
|
|
typedef std::map<std::string, std::string> KeyMap;
|
|
KeyMap map_;
|
|
};
|
|
|
|
} // namespace wi
|
|
|
|
#endif // __MAP_H__
|