28 #ifndef _PARAMETERED_OBJECT_HXX_
29 #define _PARAMETERED_OBJECT_HXX_
31 #define CHARON_SUPERNODES
40 const std::string& name,
const std::string& doc,
const T& defVal,
41 const std::string&
type) {
48 void ParameteredObject::setParameter(std::string name, T value) {
55 throw std::invalid_argument(
"parameter not found");
60 const std::string& className,
const std::string& name,
61 const std::string& doc) :
64 "parameters",
"templatetype",
"template type",
65 "{int;float;double}",
"double");
79 #endif // _PARAMETERED_OBJECT_HXX_
Base class for serializable objects.
Base class for templated classes derived from ParameteredObject.
Declaration of the base class ParameteredObject.
Implementation of the AbstractParameter interface for one single parameter.
void setDefault(const T &value)
Set default value.
virtual const std::string getTemplateType() const
get template type as string
std::map< std::string, AbstractParameter * > _parameters
This vector stores all parameters that have to be saved/restored.
Implementation of the template class ParameterFile.
Implementation of the abstract class Slot and template classes InputSlot and OutputSlot.
void _addParameter(AbstractParameter ¶m, const std::string &name, const std::string &doc, const std::string &type="")
Add parameters.
Implementation of the abstract class AbstractParameter and template classes Parameter and ParameterLi...
bool _addSomething(const std::string &extension, const std::string &name, const std::string &doc, const std::string &type, const std::string &defaultValue="")
Common code for _addParameter, _addInputSlot, _addOutputSlot.
charon_core_DLL_PUBLIC std::string type(const std::string &typeInfo)
Get type representation.
TemplatedParameteredObject(const std::string &className, const std::string &name="", const std::string &doc="")
Default constructor.