#include <AbstractFunction.hpp>
Interface to store a function and call it after with a zeus::Buffer.
§ type
Under type of the call methode.
Enumerator |
---|
unknow | Does not know the type of the call.
|
global | This is a global function.
|
local | This is a local fucntion.
|
service | This call a service function (global function like "srv.xxx")
|
object | this is for service instance call
|
§ AbstractFunction()
zeus::AbstractFunction::AbstractFunction |
( |
const std::string & |
_name | ) |
|
|
protected |
Constructor.
- Parameters
-
[in] | _name | Nmae of the function |
§ ~AbstractFunction()
virtual zeus::AbstractFunction::~AbstractFunction |
( |
| ) |
|
|
virtualdefault |
generic virtual destructor
§ addParam()
void zeus::AbstractFunction::addParam |
( |
const std::string & |
_name, |
|
|
const std::string & |
_desc |
|
) |
| |
Set the parameter name and description of the last parameter not set (increment id every element)
- Parameters
-
[in] | _name | Name of the parameter |
[in] | _desc | Description of the parameter |
§ execute()
§ getDescription()
const std::string& zeus::AbstractFunction::getDescription |
( |
| ) |
const |
Get the description of the function.
- Returns
- The description string of the function (same as doxygen 'brief')
§ getName()
const std::string& zeus::AbstractFunction::getName |
( |
| ) |
const |
Get the name of the function.
- Returns
- Function name
§ getPrototype()
std::string zeus::AbstractFunction::getPrototype |
( |
| ) |
const |
Get the prototype of the function with the parameter name and type.
- Returns
- The fucntion like "void maFonction(int32 parameter_1, vector:string parameter_2);"
§ getPrototypeParam()
virtual std::vector<std::string> zeus::AbstractFunction::getPrototypeParam |
( |
| ) |
const |
|
pure virtual |
§ getPrototypeReturn()
virtual std::string zeus::AbstractFunction::getPrototypeReturn |
( |
| ) |
const |
|
pure virtual |
§ getSignature()
virtual std::string zeus::AbstractFunction::getSignature |
( |
| ) |
const |
|
virtual |
Get the signature of the function.
- Returns
- The signature of the function: "void(int32,vector:string);"
§ getType()
enum type zeus::AbstractFunction::getType |
( |
| ) |
const |
Get the tyope of the call that is needed to do.
- Returns
- Type of the call.
§ setDescription()
void zeus::AbstractFunction::setDescription |
( |
const std::string & |
_desc | ) |
|
Set a new description of the function.
- Parameters
-
[in] | _desc | Descriptive string |
§ setParam()
void zeus::AbstractFunction::setParam |
( |
int32_t |
_idParam, |
|
|
const std::string & |
_name, |
|
|
const std::string & |
_desc |
|
) |
| |
Set the parameter name and description.
- Parameters
-
[in] | _idParam | Number of the parameter |
[in] | _name | Name of the parameter |
[in] | _desc | Description of the parameter |
§ setReturn()
void zeus::AbstractFunction::setReturn |
( |
const std::string & |
_desc | ) |
|
Set the return description of the Function.
- Parameters
-
[in] | _desc | Description of the return parameter |
§ setType()
void zeus::AbstractFunction::setType |
( |
enum type |
_type | ) |
|
Set the type of the call that must be done for this function.
- Parameters
-
[in] | _type | New type of the call. |
§ m_description
std::string zeus::AbstractFunction::m_description |
|
protected |
description of the function
§ m_name
std::string zeus::AbstractFunction::m_name |
|
protected |
§ m_paramsDescription
std::vector<std::pair<std::string, std::string> > zeus::AbstractFunction::m_paramsDescription |
|
protected |
List of the parameter descriptions.
§ m_returnDescription
std::string zeus::AbstractFunction::m_returnDescription |
|
protected |
Return description of the Function.
§ m_type
enum type zeus::AbstractFunction::m_type |
|
protected |
Type of the subCall (to permit to call many type of call)
The documentation for this class was generated from the following file: