aqbanking
5.7.8
|
Go to the source code of this file.
Macros | |
#define | AB_CXXWRAP_GET0_CONST(cxxname, cname) |
#define | AB_CXXWRAP_GET0(cxxname, cname) |
#define | AB_CXXWRAP_GET1_CONST(cxxname, type1, cname) |
#define | AB_CXXWRAP_GET1(cxxname, type1, cname) |
#define | AB_CXXWRAP_SET0(cxxname, cname) |
#define | AB_CXXWRAP_SET1(cxxname, type1, cname) |
#define | AB_CXXWRAP_CONSTRUCTOR0(cxxname, cprefix) |
#define | AB_CXXWRAP_CONSTRUCTORS(cxxname, cprefix) |
This file contains macros that simplify the wrapping of aqbanking's data types in a C++ class. The macros assume the following:
The only additional assumptions are necessary in the AB_CXXWRAP_CONSTRUCTORS() macro.
Definition in file cxxwrap.hpp.
#define AB_CXXWRAP_CONSTRUCTOR0 | ( | cxxname, | |
cprefix | |||
) |
Wraps the default C++ constructor with zero arguments. This macro only works if FOO_new() is available. Some of the FOO_new() functions take additional arguments, in which case this macro doesn't work.
Definition at line 65 of file cxxwrap.hpp.
#define AB_CXXWRAP_CONSTRUCTORS | ( | cxxname, | |
cprefix | |||
) |
Wraps the set of C++ constructors, destructor, and assignment operator.
This macro additionally assumes that the C type FOO has a set of constructor/ destructor/ copy functions which are called FOO_free() and FOO_dup(), respectively.
Definition at line 75 of file cxxwrap.hpp.
#define AB_CXXWRAP_GET0 | ( | cxxname, | |
cname | |||
) |
Wraps a getter function with 0 arguments
Definition at line 37 of file cxxwrap.hpp.
#define AB_CXXWRAP_GET0_CONST | ( | cxxname, | |
cname | |||
) |
Wraps a getter function with 0 arguments, const
Definition at line 32 of file cxxwrap.hpp.
Referenced by AB::StringList::empty().
#define AB_CXXWRAP_GET1 | ( | cxxname, | |
type1, | |||
cname | |||
) |
Wraps a getter function with 1 argument
Definition at line 47 of file cxxwrap.hpp.
#define AB_CXXWRAP_GET1_CONST | ( | cxxname, | |
type1, | |||
cname | |||
) |
Wraps a getter function with 1 argument, const
Definition at line 42 of file cxxwrap.hpp.
Referenced by AB::StringList::empty().
#define AB_CXXWRAP_SET0 | ( | cxxname, | |
cname | |||
) |
Wraps a setter function with 0 argument
Definition at line 52 of file cxxwrap.hpp.
#define AB_CXXWRAP_SET1 | ( | cxxname, | |
type1, | |||
cname | |||
) |
Wraps a setter function with 1 argument
Definition at line 57 of file cxxwrap.hpp.