3 $Date: 2010/03/04 11:49:52 $
7 #ifndef MODULE_SETTINGS_H
8 #define MODULE_SETTINGS_H
10 #include <cstring> // strcasecmp
14 //-----------------------------------------------------------------------------
17 bool operator==(const PARAM_VALUE & rhs) const
18 { return !strcasecmp(param.c_str(), rhs.param.c_str()); }
20 bool operator<(const PARAM_VALUE & rhs) const
21 { return strcasecmp(param.c_str(), rhs.param.c_str()) < 0; }
24 std::vector<std::string> value;
26 //-----------------------------------------------------------------------------
27 struct MODULE_SETTINGS
29 bool operator==(const MODULE_SETTINGS & rhs) const
30 { return !strcasecmp(moduleName.c_str(), rhs.moduleName.c_str()); }
32 bool operator<(const MODULE_SETTINGS & rhs) const
33 { return strcasecmp(moduleName.c_str(), rhs.moduleName.c_str()) < 0; }
35 std::string moduleName;
36 std::vector<PARAM_VALUE> moduleParams;
38 //-----------------------------------------------------------------------------