gramods
Public Member Functions | Public Attributes | List of all members
gramods::gmCore::OFactory::ParamSetter< Node, T > Struct Template Reference

General parameter setter, templated to determine the type to set value for. More...

#include <OFactory.hh>

Inheritance diagram for gramods::gmCore::OFactory::ParamSetter< Node, T >:
Inheritance graph
[legend]
Collaboration diagram for gramods::gmCore::OFactory::ParamSetter< Node, T >:
Collaboration graph
[legend]

Public Member Functions

 ParamSetter (void(Node::*m)(T val))
 
void setValueFromString (Object *n, std::string s) const
 

Public Attributes

void(Node::* method )(T val)
 

Detailed Description

template<class Node, class T>
struct gramods::gmCore::OFactory::ParamSetter< Node, T >

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.


The documentation for this struct was generated from the following file: