Nice::ActorCmd<Nice::LogStream, void (Nice::LogStream::*)(uint)>(Nice::StdOut, & Nice::LogStream::setLogLevel)
More...
|
| ActorCmd () |
| Default ctor. The member functions are all default (=0). More...
|
|
| ActorCmd (const std::string &) |
| Constructor with a dummy (unused) string argument. More...
|
|
| ActorCmd (TypeClass *_object, TypeMemFnExec _exec, TypeMemFnDone _done, TypeMemFnWait _wait) |
| Constructor that defines the type of object and functions called when needed. More...
|
|
virtual | ~ActorCmd () |
| Dtor. Does nothing. More...
|
|
virtual std::string | name () const |
| return actor name. More...
|
|
virtual std::string | toString () const |
| Cast the PropertyActor to a string. More...
|
|
virtual Nice::CompletionState | set (const Nice::PropertyFooPtr &_foo, const Nice::Date &_date, const Nice::Any &_value) |
| Attempt to set/fix a completion state on a property variable (which is a function state). More...
|
|
virtual ActorCmd< Type, TypeClass, TypeMemFnExec, TypeMemFnDone, TypeMemFnWait > * | clone () |
| Duplicate this command structure. More...
|
|
| PropertyActor () |
| Constructor. More...
|
|
virtual void | init (const Nice::PropertyFooPtr &_foo, PropertyAttrMap &_attrs)=0 |
| Initializer, called by the Property when it is applied. More...
|
|
virtual | ~PropertyActor () |
| Destructor. More...
|
|
virtual Nice::CompletionState | set (const Nice::Date &_date, const Nice::Any &a)=0 |
| Abstract function validates a value of a certain type. More...
|
|
| PropertyActor () |
| Constructor. More...
|
|
virtual void | init (const Nice::PropertyFooPtr &_foo, PropertyAttrMap &_attrs)=0 |
| Initializer, called by the Property when it is applied. More...
|
|
virtual | ~PropertyActor () |
| Destructor. More...
|
|
virtual Nice::CompletionState | set (const Nice::Date &_date, const Nice::Any &a)=0 |
| Abstract function validates a value of a certain type. More...
|
|
template<typename Type, typename TypeClass, typename TypeMemFnExec = Nice::Completion (TypeClass::*)(const Type &), typename TypeMemFnDone = Nice::Completion (TypeClass::*)(), typename TypeMemFnWait = Nice::Completion (TypeClass::*)(const Nice::Time &)>
struct Basda::ActorCmd< Type, TypeClass, TypeMemFnExec, TypeMemFnDone, TypeMemFnWait >
Nice::ActorCmd<Nice::LogStream, void (Nice::LogStream::*)(uint)>(Nice::StdOut, & Nice::LogStream::setLogLevel)
- Author
- Florian Briegel
- Version
- 09.01.26
- Date
- 2009-07-03 11:58:06 AM Member function Actor. At compile time:
The following code snippet illustrates using the member function actor:
#include <Nice/Property/ActorCmd.h>
Nice::JointPtr tree;
tree->setAtNode("LEVEL", 10);
tree->get("LEVEL")->apply(
new Nice::ActorCmd<Nice::LogStream, void (Nice::LogStream::*)(uint)>
(Nice::StdOut, & Nice::LogStream::setLogLevel));
*
template<typename Type , typename TypeClass , typename TypeMemFnExec = Nice::Completion (TypeClass::*)(const Type &), typename TypeMemFnDone = Nice::Completion (TypeClass::*)(), typename TypeMemFnWait = Nice::Completion (TypeClass::*)(const Nice::Time &)>
Constructor with a dummy (unused) string argument.
The member functions are all default (=0).
- Parameters
-
template<typename Type , typename TypeClass , typename TypeMemFnExec = Nice::Completion (TypeClass::*)(const Type &), typename TypeMemFnDone = Nice::Completion (TypeClass::*)(), typename TypeMemFnWait = Nice::Completion (TypeClass::*)(const Nice::Time &)>
Basda::ActorCmd< Type, TypeClass, TypeMemFnExec, TypeMemFnDone, TypeMemFnWait >::ActorCmd |
( |
TypeClass * |
_object, |
|
|
TypeMemFnExec |
_exec, |
|
|
TypeMemFnDone |
_done, |
|
|
TypeMemFnWait |
_wait |
|
) |
| |
|
inline |
Constructor that defines the type of object and functions called when needed.
- Parameters
-
_object | The object to be executed. |
_exec | The member function that is executed. |
_done | The member function that is called when done. |
_wait | The member function that is called to wait (waste time). |
template<typename Type , typename TypeClass , typename TypeMemFnExec = Nice::Completion (TypeClass::*)(const Type &), typename TypeMemFnDone = Nice::Completion (TypeClass::*)(), typename TypeMemFnWait = Nice::Completion (TypeClass::*)(const Nice::Time &)>
virtual ActorCmd<Type, TypeClass, TypeMemFnExec, TypeMemFnDone, TypeMemFnWait>* Basda::ActorCmd< Type, TypeClass, TypeMemFnExec, TypeMemFnDone, TypeMemFnWait >::clone |
( |
| ) |
|
|
inlinevirtual |
Duplicate this command structure.
- Returns
- A new object with the same properties (name, functions to be executed) as this.
Implements Nice::PropertyActor.
template<typename Type , typename TypeClass , typename TypeMemFnExec = Nice::Completion (TypeClass::*)(const Type &), typename TypeMemFnDone = Nice::Completion (TypeClass::*)(), typename TypeMemFnWait = Nice::Completion (TypeClass::*)(const Nice::Time &)>
virtual std::string Basda::ActorCmd< Type, TypeClass, TypeMemFnExec, TypeMemFnDone, TypeMemFnWait >::toString |
( |
| ) |
const |
|
inlinevirtual |