Definition in file parameter.h.
#include <stdio.h>
#include <string>
#include "msg.h"
#include "tristate.h"
#include "stringutils.h"
#include "polymorph.h"
Include dependency graph for parameter.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Compounds | |
class | ParameterDefinition |
Holds a single parameter definition, i.e. More... | |
class | SetFnWrapper2 |
Defines | |
#define | PARAM_USTRING 0 |
#define | PARAM_3BOOL 1 |
#define | PARAM_INT 2 |
#define | PARAM_DOUBLE 3 |
#define | PARAM_BOOL 4 |
#define | SETFN_ARGS2 const string& name, Typeless& param, const Typeless& newvalue |
#define | SETFN_DECLARE2(fnname) |
#define | SETFNOBJ_DECLARE2(Owner, fnname) |
Defines a simple SetFnWrapper wrapping a member function as a subclass. | |
Typedefs | |
typedef int | cmdstat |
typedef cmdstat(* | ParamSetFn2 )(const string &name, Typeless ¶m, const Typeless &newvalue) |
|
Value: cmdstat fnname( SETFN_ARGS2 ); \ struct setfnobj2_ ## fnname : public SetFnWrapper2 { \ cmdstat operator() ( SETFN_ARGS2 ) { \ return fnname(name,param,newvalue); \ } \ } Definition at line 44 of file parameter.h. |
|
Value: cmdstat fnname ( SETFN_ARGS2 ); \ class setfnobj2_ ## fnname : public SetFnWrapper2 { \ Owner* owner; \ public: \ setfnobj2_ ## fnname (Owner* owner_i) : owner(owner_i) { }; \ cmdstat operator() ( SETFN_ARGS2 ) { \ return owner->fnname(name,param,newvalue); \ } \ }; \ friend class setfnobj2_ ## fnname
Definition at line 54 of file parameter.h. |