gramods
|
General parameter setter, templated to determine the type to set value for. More...
#include <OFactory.hh>
Public Member Functions | |
ParamSetter (void(Node::*m)(T val)) | |
void | setValueFromString (Object *n, std::string s) const |
Public Attributes | |
void(Node::* | method )(T val) |
General parameter setter, templated to determine the type to set value for.
Any type, even types unknown to the library, can be used, as long as it supports the istream operator. Include the header code defining the istream operator before including this header, to make sure that the template class is instantiated against that type.