#include <InControl.hxx>
Processing
class.
See the InControlTmpl
constructors for learn how to provide the callback to the InControlTmpl
Definition at line 109 of file InControl.hxx.
Public Types | |
typedef int(ProcObj::* | TPtrMemberFunc )(TControlData) |
typedef int(ProcObj::* | TPtrMemberFuncId )(int, TControlData) |
Public Member Functions | |
int | DoControl (TControlData val) |
Stores the incoming control value. | |
bool | ExistMemberFunc () |
void | SetMemberFunc (TPtrMemberFunc f) |
int | GetId (void) const |
InControlTmpl (const std::string &name, ProcObj *parent, TPtrMemberFunc f=0, const bool publish=true) | |
Constructor of the InControlTmpl with a member-service-function associated. | |
InControlTmpl (int id, const std::string &name, ProcObj *parent, TPtrMemberFuncId f, const bool publish=true) | |
~InControlTmpl () |
typedef int(ProcObj::* CLAM::InControlTmpl< ProcObj >::TPtrMemberFunc)(TControlData) |
typedef int(ProcObj::* CLAM::InControlTmpl< ProcObj >::TPtrMemberFuncId)(int, TControlData) |
CLAM::InControlTmpl< ProcObj >::InControlTmpl | ( | const std::string & | name, | |
ProcObj * | parent, | |||
TPtrMemberFunc | f = 0 , |
|||
const bool | publish = true | |||
) | [inline] |
Constructor of the InControlTmpl with a member-service-function associated.
publish | This flag (true by default) concerns the publication of the control pointer at the base processing object. Important: notice that if the out control object is going to suffer a copy (i.e.creating controls that will be copied inside an STL container) the original pointer published will be no longer . For avoiding this case we recommend using the flag publish=true. And invoke the PublishInControl method of the processing object, once the copy is made. | |
f | The member function that will act as a service funtion each time the DoControl method is invoqued. The processing object that owns the control object. The one where to publish the control if it is the case (publish flag set) |
Definition at line 146 of file InControl.hxx.
CLAM::InControlTmpl< ProcObj >::InControlTmpl | ( | int | id, | |
const std::string & | name, | |||
ProcObj * | parent, | |||
TPtrMemberFuncId | f, | |||
const bool | publish = true | |||
) | [inline] |
Definition at line 156 of file InControl.hxx.
CLAM::InControlTmpl< ProcObj >::~InControlTmpl | ( | ) | [inline] |
Definition at line 166 of file InControl.hxx.
int CLAM::InControlTmpl< ProcObj >::DoControl | ( | TControlData | val | ) | [inline, virtual] |
Stores the incoming control value.
It can be retrieved using GetLastValue
Reimplemented from CLAM::InControl.
Definition at line 176 of file InControl.hxx.
References CLAM::InControl::DoControl().
bool CLAM::InControlTmpl< ProcObj >::ExistMemberFunc | ( | ) | [inline] |
Definition at line 125 of file InControl.hxx.
void CLAM::InControlTmpl< ProcObj >::SetMemberFunc | ( | TPtrMemberFunc | f | ) | [inline] |
Definition at line 126 of file InControl.hxx.
int CLAM::InControlTmpl< ProcObj >::GetId | ( | void | ) | const [inline] |
Definition at line 128 of file InControl.hxx.