22 #ifndef _CONFIGURATION_H_ 23 #define _CONFIGURATION_H_ 27 #pragma warning( disable : 4290 ) 48 PropertySetting(
const char* deviceLabel,
const char* prop,
const char* value,
bool readOnly =
false) :
49 deviceLabel_(deviceLabel), propertyName_(prop), value_(value), readOnly_(readOnly)
51 key_ = generateKey(deviceLabel, prop);
74 std::string getKey()
const {
return key_;}
76 static std::string generateKey(
const char* device,
const char* prop);
82 std::string deviceLabel_;
83 std::string propertyName_;
101 propertyName_(prop), value_(value) {}
115 std::string propertyName_;
134 void deleteSetting(
const char* device,
const char* prop);
136 bool isPropertyIncluded(
const char* device,
const char* property);
146 size_t size()
const {
return settings_.size();}
150 std::vector<PropertySetting> settings_;
151 std::map<std::string, int> index_;
170 size_t size()
const {
return pairs_.size();}
171 std::string getValue(
const char* key)
const throw (
CMMError);
174 std::map<std::string, PropertyPair> pairs_;
177 #endif //_CONFIGURATION_H_ size_t size() const
Definition: Configuration.h:146
Definition: Configuration.h:40
std::string getDeviceLabel() const
Definition: Configuration.h:60
std::string getPropertyName() const
Definition: Configuration.h:108
Definition: Configuration.h:158
PropertySetting(const char *deviceLabel, const char *prop, const char *value, bool readOnly=false)
Definition: Configuration.h:48
PropertyPair(const char *prop, const char *value)
Definition: Configuration.h:100
bool getReadOnly() const
Definition: Configuration.h:68
std::string getPropertyValue() const
Definition: Configuration.h:72
Definition: Configuration.h:93
std::string getPropertyName() const
Definition: Configuration.h:64
Core error class. Exceptions thrown by the Core public API are of this type.
Definition: Error.h:60
Definition: Configuration.h:123
std::string getVerbose() const
Definition: Configuration.cpp:43
std::string getPropertyValue() const
Definition: Configuration.h:112
size_t size() const
Definition: Configuration.h:170