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_
ALFunctorBase * getFunction()
Get a pointer to the method.
ALParameterInfoOptional(T defaultValue)
Default contructor.
std::vector< ALParameterInfo > parameters
void completeAndCheck(R(C::*)(P1, P2, P3, P4, P5, P6), ALMethodInfo &pDesc)
std::vector< ALExample > examples
ALMethodInfo()
Default constructor.
ALFunctorBase is a generic functor class for pointer management.
void clear(void)
Clear parameters and examples.
bool isLocalMethod(void)
Check is the method is a local one.
methodOption
methodOption is differents option for the method.
ALParameterInfo is the introspection container.
std::string methodDescription
bool isAsynchronous(void)
Check is the method is used as asynchronous one.
virtual ~ALMethodInfo()
Default destructor.
boost::shared_ptr< ALFunctorBase > ptrOnMethod
ALExample is container for example.
ALParameterInfo returnInfo
bool isCpp(void)
Check is the method is used for C++.
ALMethodInfo is the introspection container.
void addOption(int pOption)
Add method option.
ALParameterInfoOptional is the option container.