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-totalbecomesmonthlyXtotal. - Duplicate names are made unique by the addition of one or more
numeric digits.
For example, two instances of
yearbecomeyearandyear1.
The following restrictions also apply:
- Header files must contain a top-level
structinstance. - You cannot declare a structure type that contains itself as a member.
- The following C and C++ data types are not supported:
decimallong doublewchar_t(C++ only)
- The following characters are ignored if they are present
in the header file.
- Storage class specifiers:
autoregisterstaticexternmutable
- Qualifiers
constvolatile_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:
explicitusingnamespacetypenametypeid