C or C++ language structure import rules
The Event binding editor imports C and C++ data structures using the following rules.
- Characters that are not valid in XML element names are replaced
with '
X
'.For example,
monthly-total
becomesmonthlyXtotal
. - Duplicate names are made unique by the addition of one or more
numeric digits.
For example, two instances of
year
becomeyear
andyear1
.
The following restrictions also apply:
- Header files must contain a top-level
struct
instance. - You cannot declare a structure type that contains itself as a member.
- The following C and C++ data types are not supported:
decimal
long double
wchar_t
(C++ only)
- The following characters are ignored if they are present
in the header file.
- Storage class specifiers:
auto
register
static
extern
mutable
- Qualifiers
const
volatile
_Export
(C++ only)
- Function specifiers
inline
(C++ only)virtual
(C++ only)
- Initial values
- The header file must not contain these items:
- Unions
- Class declarations
- Enumeration data types
- Pointer type variables
- Template declarations
- Predefined macros; that is, macros with names that start and
end with two underscore characters (
__
) - The line continuation sequence (a \ symbol that is immediately followed by a newline character)
- Prototype function declarators
- Preprocessor directives
- Bit fields
- The
__cdecl
(or_cdecl)
keyword (C++ only)
- The following C++ reserved keywords are not supported:
explicit
using
namespace
typename
typeid