Public Types |
Public Member Functions |
Public Attributes |
Static Protected Attributes |
List of all members
zeus::AbstractFunctionTypeDirect< ZEUS_RETURN, ZEUS_TYPES > Class Template Reference
#include <AbstractFunctionTypeDirect.hpp>
Inheritance diagram for zeus::AbstractFunctionTypeDirect< ZEUS_RETURN, ZEUS_TYPES >:
Public Types | |
using | functionType = ZEUS_RETURN(*)(ZEUS_TYPES...) |
Public Types inherited from zeus::AbstractFunction | |
enum | type { type::unknow, type::global, type::local, type::service, type::object } |
Public Member Functions | |
AbstractFunctionTypeDirect (const std::string &_name, functionType _fptr) | |
std::string | getPrototypeReturn () const override |
std::vector< std::string > | getPrototypeParam () const override |
void | execute (ememory::SharedPtr< zeus::WebServer > _interfaceClient, ememory::SharedPtr< zeus::BufferCall > _obj, void *_class) override |
Public Member Functions inherited from zeus::AbstractFunction | |
virtual | ~AbstractFunction ()=default |
enum type | getType () const |
void | setType (enum type _type) |
const std::string & | getName () const |
const std::string & | getDescription () const |
void | setDescription (const std::string &_desc) |
void | setParam (int32_t _idParam, const std::string &_name, const std::string &_desc) |
void | addParam (const std::string &_name, const std::string &_desc) |
void | setReturn (const std::string &_desc) |
std::string | getPrototype () const |
virtual std::string | getSignature () const |
Public Attributes | |
functionType | m_function |
Static Protected Attributes | |
static const ParamType | m_returnType = createType<ZEUS_RETURN>() |
static const ParamType | m_paramType [sizeof...(ZEUS_TYPES)] = {createType<ZEUS_TYPES>()...} |
Additional Inherited Members | |
Protected Member Functions inherited from zeus::AbstractFunction | |
AbstractFunction (const std::string &_name) | |
Protected Attributes inherited from zeus::AbstractFunction | |
enum type | m_type |
std::string | m_name |
std::string | m_description |
std::vector< std::pair< std::string, std::string > > | m_paramsDescription |
std::string | m_returnDescription |
Detailed Description
template<class ZEUS_RETURN, class... ZEUS_TYPES>
class zeus::AbstractFunctionTypeDirect< ZEUS_RETURN, ZEUS_TYPES >
Chass that permit to declare a function that call global function.
Constructor & Destructor Documentation
§ AbstractFunctionTypeDirect()
template<class ZEUS_RETURN , class... ZEUS_TYPES>
|
inline |
Constructor.
- Parameters
-
[in] _name Name of the function [in] _fptr Pointer on the function
Member Function Documentation
§ execute()
template<class ZEUS_RETURN , class... ZEUS_TYPES>
|
inlineoverridevirtual |
Execute the function with all parameter properties.
- Parameters
-
[in] _interfaceClient Web interface to anser values [in] _obj Call object [in] _class Pointer on the object that might be call (note: brut cast)
Implements zeus::AbstractFunction.
§ getPrototypeParam()
template<class ZEUS_RETURN , class... ZEUS_TYPES>
|
inlineoverridevirtual |
Get the list of type of the parameter.
- Returns
- List of types (zeus singature mode)
Implements zeus::AbstractFunction.
§ getPrototypeReturn()
template<class ZEUS_RETURN , class... ZEUS_TYPES>
|
inlineoverridevirtual |
Get the string of the type of the return value.
- Returns
- type string of the return value
Implements zeus::AbstractFunction.
The documentation for this class was generated from the following file:
- framework/atria-soft/zeus/zeus/AbstractFunctionTypeDirect.hpp