Pointwise CAE Plugin SDK
Macros
rtCaepInitItems.h File Reference

Static Initialization Data for the CAEP_RTITEM Array. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _RTCAEPINITITEMS_H_
 

Detailed Description

Static Initialization Data for the CAEP_RTITEM Array.

The file rtCaepInitItems.h defines the static, compile-time initialization of the global CAEP_RTITEM caepRtItem[] array. The CAE Plugin SDK uses this array to implement the functions and behaviors required by the Pointwise CAE Plugin API Specification (CAEP-API). If you want to see the SDK implementation details, look in the /shared/CAEP/apiCAEP.cxx file.

The SDK file /shared/CAEP/apiCAEP.cxx includes rtCaepInitItems.h as shown below.

//************************************************
// impl-defined CAE format data
//************************************************
# include "rtCaepInitItems.h"
};

The format of rtCaepInitItems.h must be valid for the static initialization of an array of C-struct's. It is important to note that some of CAEP_RTITEM's data members are also structs. This will require curly-braces {} around these nested data members. If you are not familiar with static initialization, see the Example C-struct Static Initialization page.

When copied from the src/plugins/templates/CAEP/ folder to your plugins project folder, rtCaepInitItems.h will contain example initilization data for 3 CAEP_RTITEM array items. This example data must be culled and edited to define the settings appropriate for your plugin's implementation.

Note
The global caepRtItem[] is an array so that a plugin can implement multiple CAE exporters in a single binary. However, due to a limitation in the "Export-CAE/1.0" implementation, only one CAE exporter is allowed at this time. As a result, the caepRtItem[] array must be of size 1 for "Export-CAE/1.0" plugins. Pointwise hopes to remove this limitation in future releases.
If you add custom data members to CAEP_RTITEM using rtCaepInstanceData.h, be sure to add the additional static initializers when editing rtCaepInitItems.h to prevent compiler warnings or errors!

Definition in file rtCaepInitItems.h.

Macro Definition Documentation

◆ _RTCAEPINITITEMS_H_

#define _RTCAEPINITITEMS_H_