3 $Date: 2010/03/04 11:49:52 $
7 #ifndef MODULE_SETTINGS_H
8 #define MODULE_SETTINGS_H
10 #include <cstring> // strcasecmp
14 //-----------------------------------------------------------------------------
21 bool operator==(const PARAM_VALUE & rhs) const
22 { return !strcasecmp(param.c_str(), rhs.param.c_str()); }
24 bool operator<(const PARAM_VALUE & rhs) const
25 { return strcasecmp(param.c_str(), rhs.param.c_str()) < 0; }
28 std::vector<std::string> value;
30 //-----------------------------------------------------------------------------
31 struct MODULE_SETTINGS
37 MODULE_SETTINGS(const MODULE_SETTINGS & rvalue)
38 : moduleName(rvalue.moduleName),
39 moduleParams(rvalue.moduleParams)
41 bool operator==(const MODULE_SETTINGS & rhs) const
42 { return !strcasecmp(moduleName.c_str(), rhs.moduleName.c_str()); }
44 bool operator<(const MODULE_SETTINGS & rhs) const
45 { return strcasecmp(moduleName.c_str(), rhs.moduleName.c_str()) < 0; }
47 std::string moduleName;
48 std::vector<PARAM_VALUE> moduleParams;
50 //-----------------------------------------------------------------------------