source:
src/Parameters/ParameterInterface.hpp@
db0833
| Last change on this file since db0833 was cf1d82, checked in by , 13 years ago | |
|---|---|
|
|
| File size: 770 bytes | |
| Rev | Line | |
|---|---|---|
| [c68409] | 1 | /* |
| 2 | * Parameter.hpp | |
| 3 | * | |
| 4 | * Created on: Sep 30, 2011 | |
| 5 | * Author: heber | |
| 6 | */ | |
| 7 | ||
| [adcfc6] | 8 | #ifndef PARAMETERINTERFACE_HPP_ |
| 9 | #define PARAMETERINTERFACE_HPP_ | |
| [c68409] | 10 | |
| 11 | // include config.h | |
| 12 | #ifdef HAVE_CONFIG_H | |
| 13 | #include <config.h> | |
| 14 | #endif | |
| 15 | ||
| 16 | #include <string> | |
| 17 | ||
| [6440c6] | 18 | #include "CodePatterns/Clone.hpp" |
| [c68409] | 19 | |
| [6440c6] | 20 | #include "Parameters/ValueAsString.hpp" |
| [c68409] | 21 | |
| [6440c6] | 22 | /** This interface represents a named Value. |
| [c68409] | 23 | * |
| 24 | */ | |
| [6440c6] | 25 | class ParameterInterface : |
| [cf1d82] | 26 | public ValueAsString, |
| [6440c6] | 27 | public Clone<ParameterInterface> |
| [c68409] | 28 | { |
| 29 | public: | |
| [9cd0d0] | 30 | ParameterInterface(const std::string &_name) : name(_name) {} |
| 31 | virtual ~ParameterInterface() {} | |
| [c68409] | 32 | |
| 33 | const std::string &getName() const { return name; } | |
| 34 | ||
| [6440c6] | 35 | virtual ParameterInterface* clone() const=0; |
| 36 | ||
| [c68409] | 37 | private: |
| [9cd0d0] | 38 | ParameterInterface(); |
| [c68409] | 39 | |
| 40 | private: | |
| 41 | const std::string name; | |
| 42 | }; | |
| 43 | ||
| 44 | ||
| [adcfc6] | 45 | #endif /* PARAMETERINTERFACE_HPP_ */ |
Note:
See TracBrowser
for help on using the repository browser.
