#include <invokable.h>
Public Member Functions | |
| Invokable (const std::string &name, dtDAL::Functor1< const Message & > toInvoke) | |
| const std::string & | GetName () const |
| |
| void | Invoke (const Message &message) |
| Invoke this. | |
Protected Member Functions | |
| virtual | ~Invokable () |
| refenceced classes should always have protected desctructor | |
Invoking the invokable requires a dtGame::Message as a parameter. The actual code is executed by calling a Functor that takes 1 parameter, the message, and returns nothing. The method must take a const Method reference.
| dtGame::Invokable::Invokable | ( | const std::string & | name, | |
| dtDAL::Functor1< const Message & > | toInvoke | |||
| ) |
| dtGame::Invokable::~Invokable | ( | ) | [protected, virtual] |
refenceced classes should always have protected desctructor
| const std::string& dtGame::Invokable::GetName | ( | ) | const [inline] |
| void dtGame::Invokable::Invoke | ( | const Message & | message | ) |
Invoke this.
| message | the message to invoke. |