/* * ValueInterface.hpp * * Created on: Sep 28, 2011 * Author: heber */ #ifndef VALUEINTERFACE_HPP_ #define VALUEINTERFACE_HPP_ // include config.h #ifdef HAVE_CONFIG_H #include #endif #include /** Interface definition for general parameter values. * */ template class ValueInterface { public: virtual ~ValueInterface() {}; // direct functions virtual bool isValid(const T & _value) const=0; virtual const T & get() const=0; virtual void set(const T & _value)=0; // string functions virtual bool isValidAsString(const std::string _value) const=0; virtual const std::string getAsString() const=0; virtual void setAsString(const std::string _value)=0; }; #endif /* VALUEINTERFACE_HPP_ */