Any++
Loading...
Searching...
No Matches
DISPATCH_ macros

Macros to define static runtime data for open dispatch. Only neccessary for DLL scenarios. More...

Macros

#define ANY_DISPATCH_COUNT_FWD(...)
 Declare access to the dispatch counter for a specific any. Must be placed in global namespace.
#define ANY_DISPATCH_COUNT(...)
 Define the dispatch counter for a specific any. Must be placed in global namespace.
#define ANY_DISPATCH_FOR_FWD(...)
 Declare access to the dispatch table instance function for a model. Must be placed in global namespace.
#define ANY_DISPATCH_FOR(...)
 Define the dispatch table instance function for a model. Must be placed in global namespace.

Detailed Description

Macros to define static runtime data for open dispatch. Only neccessary for DLL scenarios.

Name conventions: _FWD: macro to declare the function signature only. To be used in header files.

ANY_DISPATCH_COUNT macros declare/define the dispatch counter for a specific any. This dispatch counter is used to assign unique indices to each dispatch.

ANY_DISPATCH_FOR macros declare/define the dispatch table instance for a any. This is necessary once for each model class that participates in open dispatch.

Macro Definition Documentation

◆ ANY_DISPATCH_COUNT

#define ANY_DISPATCH_COUNT ( ...)

Define the dispatch counter for a specific any. Must be placed in global namespace.

Parameters
ns_Namespace of the any.
any_Name of the any (without any_ prefix).

◆ ANY_DISPATCH_COUNT_FWD

#define ANY_DISPATCH_COUNT_FWD ( ...)

Declare access to the dispatch counter for a specific any. Must be placed in global namespace.

Parameters
export_To supply an export macro in a DLL scenario.
ns_Namespace of the any.
any_Name of the any (without any_ prefix).

◆ ANY_DISPATCH_FOR

#define ANY_DISPATCH_FOR ( ...)

Define the dispatch table instance function for a model. Must be placed in global namespace.

Parameters
class_The model class with fully qualified name.
interface_namespace_Namespace of the any.
interface_Name of the any (without any_ prefix).

◆ ANY_DISPATCH_FOR_FWD

#define ANY_DISPATCH_FOR_FWD ( ...)

Declare access to the dispatch table instance function for a model. Must be placed in global namespace.

Parameters
export_To supply an export macro in a DLL scenario.
class_The model class with fully qualified name.
interface_namespace_Namespace of the any.
interface_Name of the any (without any_ prefix).