ZFFramework
 
Loading...
Searching...
No Matches
ZFMethodGenericInvoker.h File Reference

generic invoker declare for ZFMethod::methodGenericInvoker More...

#include "ZFTypeIdFwd.h"
#include "ZFArgs.h"

Go to the source code of this file.

Macros

#define ZFMETHOD_MAX_PARAM
 max param supported by ZFMethod
 
#define ZFMP_DEF()
 mark the object as default param
 

Typedefs

typedef void(* ZFMethodGenericInvoker) (const ZFArgs &zfargs)
 generic invoker for advanced reflection, see ZFMethod::methodGenericInvoker
 

Functions

zfbool ZFMethodGenericInvokerParamsCheck (const ZFArgs &zfargs)
 util method for ZFMethodGenericInvoker to check whether all param type match
 

Detailed Description

generic invoker declare for ZFMethod::methodGenericInvoker

Function Documentation

◆ ZFMethodGenericInvokerParamsCheck()

zfbool ZFMethodGenericInvokerParamsCheck ( const ZFArgs & zfargs)
extern

util method for ZFMethodGenericInvoker to check whether all param type match

NOTE: when impl by plain ZFMethodGenericInvoker, impl take full responsibility to check whether param types matches, and must return false to indicate the param type mismatch, and supply necessary error hint
to make things easier, you may use this method to check all params are desired type