11 #ifndef _LIBALCOMMON_ALCOMMON_ALMETHODINFO_H_
12 #define _LIBALCOMMON_ALCOMMON_ALMETHODINFO_H_
15 # include <boost/shared_ptr.hpp>
18 # define BLOCKINGFUNCTION 0
19 # define ASYNCHRONOUSFUNCTION 1
50 AsynchronousMethod = 2,
80 m_defaultValue = defaultValue;
111 return ((mask & CPPMethod) == CPPMethod);
119 return (mask & AsynchronousMethod) > 0 ?
true:
false;
127 return ((mask & localMethod) == localMethod);
136 mask = mask | (short)pOption;
144 return ptrOnMethod.get();
156 template <
typename C,
typename R>
162 template <
typename C,
typename P1,
typename R>
168 template <
typename C,
typename P1,
typename P2,
typename R>
174 template <
typename C,
typename P1,
typename P2,
typename P3,
typename R>
180 template <
typename C,
typename P1,
typename P2,
typename P3,
typename P4,
typename R>
186 template <
typename C,
typename P1,
typename P2,
typename P3,
typename P4,
typename P5,
typename R>
192 template <
typename C,
typename P1,
typename P2,
typename P3,
typename P4,
typename P5,
typename P6,
typename R>
199 #endif // _LIBALCOMMON_ALCOMMON_ALMETHODINFO_H_
ALParameterInfo returnInfo
ALParameterInfoOptional(T defaultValue)
Default contructor.
ALParameterInfo is the introspection container.
std::vector< ALParameterInfo > parameters
virtual ~ALMethodInfo()
Default destructor.
void completeAndCheck(R(C::*)(P1, P2, P3, P4, P5, P6), ALMethodInfo &pDesc)
bool isLocalMethod(void)
Check is the method is a local one.
ALFunctorBase * getFunction()
Get a pointer to the method.
ALMethodInfo is the introspection container.
std::string methodDescription
bool isAsynchronous(void)
Check is the method is used as asynchronous one.
ALExample is container for example.
void clear(void)
Clear parameters and examples.
bool isCpp(void)
Check is the method is used for C++.
ALParameterInfoOptional is the option container.
std::vector< ALExample > examples
void addOption(int pOption)
Add method option.
methodOption
methodOption is differents option for the method.
ALFunctorBase is a generic functor class for pointer management.
boost::shared_ptr< ALFunctorBase > ptrOnMethod
ALMethodInfo()
Default constructor.