Fawkes API
Fawkes Development Version
|
Xabsl Skill Wrapper. More...
#include "skill_wrapper.h"
Public Types | |
typedef std::list< std::pair< std::string, std::string > > | ParameterList |
Parameter list. More... | |
Public Member Functions | |
XabslSkillWrapper (const char *name, xabsl::ErrorHandler &error_handler, ParameterList ¶ms) | |
Constructor. More... | |
~XabslSkillWrapper () | |
Destructor. More... | |
virtual void | registerParameters () |
Register parameters. More... | |
virtual void | execute () |
Execute skill. More... | |
const char * | name () |
Get name of the skill. More... | |
std::string | skill_string () |
Get skill string for this string. More... | |
Xabsl Skill Wrapper.
This wraps a Fawkes skill as a basic behavior for Xabsl.
Definition at line 33 of file skill_wrapper.h.
typedef std::list<std::pair<std::string, std::string> > XabslSkillWrapper::ParameterList |
Parameter list.
Defines the parameters of a skill. It's a list of name/type pairs. The name is the name of the parameter, the type is the value type.
Definition at line 40 of file skill_wrapper.h.
XabslSkillWrapper::XabslSkillWrapper | ( | const char * | name, |
xabsl::ErrorHandler & | error_handler, | ||
ParameterList & | params | ||
) |
Constructor.
name | name of the skill |
error_handler | Xabsl error handler |
params | parameters of this skill |
Definition at line 41 of file skill_wrapper.cpp.
XabslSkillWrapper::~XabslSkillWrapper | ( | ) |
Destructor.
Definition at line 52 of file skill_wrapper.cpp.
|
virtual |
Execute skill.
Definition at line 97 of file skill_wrapper.cpp.
const char * XabslSkillWrapper::name | ( | ) |
Get name of the skill.
Definition at line 66 of file skill_wrapper.cpp.
Referenced by XabslEngineThread::init().
|
virtual |
Register parameters.
Definition at line 74 of file skill_wrapper.cpp.
std::string XabslSkillWrapper::skill_string | ( | ) |
Get skill string for this string.
If execution has been ordered with execute() this method will return a skill string generated based on the given skill name and the parameter list.
Definition at line 109 of file skill_wrapper.cpp.