RAIDA  1.9.0
Settings.h
1 // -*- C++ -*-
2 #ifndef AIDA_SETTINGS_H
3 #define AIDA_SETTINGS_H 1
4 
5 #include <string>
6 #include <vector>
7 
8 namespace AIDA {
9 
16 class Settings {
17 
18 public:
19 
20  virtual ~Settings() {}
21 
22  Settings();
23 
24  Settings(const std::string defaultValue,
25  const std::string value,
26  const std::vector<std::string> options);
27 
28  virtual std::string getDefaultValue() const;
29  virtual std::string getValue() const;
30  virtual std::vector<std::string> getOptions() const;
31 
32  virtual bool setDefaultValue(const std::string defaultValue);
33  virtual bool setValue(const std::string value);
34  virtual bool setOptions(const std::vector<std::string> options);
35  virtual bool addOption(std::string option);
36 
37 protected:
38 
39  std::string _defaultValue;
40  std::string _value;
41  std::vector<std::string> _options;
42 
43 };
44 } // namespace AIDA
45 #endif /* ifndef AIDA_SETTINGS_H */
Helper class to hold the current setting, the default setting and the possible settings for a key...
Definition: Settings.h:16