Importing a C or C++ language structure

The CICS® event binding editor imports C and C++ data structures using the following rules.

C and C++ field names are displayed according to the following rules:
  1. Characters that are not valid in XML element names are replaced with 'X'.

    For example, monthly-total becomes monthlyXtotal.

  2. Duplicate names are made unique by the addition of one or more numeric digits.

    For example, two instances of year become year and year1.

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 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
Parent topic: Selecting variables from imported source code