|
@@ -4,20 +4,17 @@
|
|
|
|
|
|
#ifndef AI_CONFIG_HPP
|
|
|
#define AI_CONFIG_HPP
|
|
|
|
|
|
#include <map>
|
|
|
#include "ai_info.hpp"
|
|
|
|
|
|
#ifndef AI_HPP
|
|
|
struct ltstr { bool operator()(const char *s1, const char *s2) const { return strcmp(s1, s2) < 0; } };
|
|
|
#endif /* AI_HPP */
|
|
|
#include "../core/string_compare_type.hpp"
|
|
|
|
|
|
class AIConfig {
|
|
|
private:
|
|
|
typedef std::map<const char *, int, ltstr> SettingValueList;
|
|
|
typedef std::map<const char *, int, StringCompare> SettingValueList;
|
|
|
|
|
|
public:
|
|
|
AIConfig() :
|
|
|
name(NULL),
|
|
|
version(-1),
|
|
|
info(NULL),
|