Pointwise Plugin SDK
rtPwpPluginInfo.h File Reference

Static Initialization Data for the PWP_PLUGININFO structure. More...

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

Go to the source code of this file.

Detailed Description

Static Initialization Data for the PWP_PLUGININFO structure.

initialize the PWP_PLUGININFO data

The file rtPwpPluginInfo.h defines the static, compile-time initialization of the PWP_PLUGININFO data struct returned by the PWP-API function PwpGetPluginInfo(). If you want to see the implementation details, look in the /shared/PWP/apiPWP.cxx file.

The SDK file /shared/PWP/apiPWP.cxx includes rtPwpPluginInfo.h as shown below.

PWP_PLUGININFO info = {
# include "rtPwpPluginInfo.h"
};

The format of rtPwpPluginInfo.h must be valid for the static initialization of a C-struct. If you are not familiar with static initialization, see the Example C-struct Static Initialization page.

When copied from the src/plugins/templates/PWP/ folder to your plugins project folder, rtPwpPluginInfo.h will contain example initilization data. This example data must be edited to define the values appropriate for your plugin's implementation.

Example PWP_PLUGININFO data

The example data from the SDK rtPwpPluginInfo.h template file is shown below.

VERSION_PWP_INIT, // conforms to this PWP-API version
VERSION_LIB_INIT, // software library release version
"Cadence Design Systems, Inc.", // company/author description
"https://www.pointwise.com/support", // support description (phone, web-link).
"(C) 2021 Cadence Design Systems, Inc. All rights reserved worldwide.", // copyright description
0, // number of APIs (auto-set at runtime)
0, // default msg callback (auto-set at runtime)
0, // spy msg callback (auto-set at runtime)

Please notice that the last three data members are initilized to 0. These values are set automatically at runtime by PwpGetPluginInfo() as shown in the code below.

Definition in file rtPwpPluginInfo.h.

PWP_MESSAGECB_DEFAULT
#define PWP_MESSAGECB_DEFAULT
Special API name used to register the default message handler.
Definition: apiPWP.h:568
PwuFindApiMsgCB
PWP_MESSAGECB PwuFindApiMsgCB(const char api[])
Search pwpRtItem[] for an API's messageCB.
Definition: apiPWPUtils.cxx:54
publishedApiCnt
PWP_UINT32 publishedApiCnt
The total # of published entries in pwpRtItem[].
Definition: apiPWP.cxx:48
VERSION_PWP_INIT
#define VERSION_PWP_INIT
This macro is used for static initialization of a PWP_VERSION struct to the current VERSION_PWP_MAJOR...
Definition: rtPwpVersions.h:28
PWP_PLUGININFO::defCB
PWP_MESSAGECB defCB
assigned default message callback
Definition: apiPWP.h:685
PWP_PLUGININFO
Provides general information about a plugin.
Definition: apiPWP.h:664
rtPwpPluginInfo.h
Static Initialization Data for the PWP_PLUGININFO structure.
PWP_PLUGININFO::spyCB
PWP_MESSAGECB spyCB
assigned spy message callback
Definition: apiPWP.h:688
VERSION_LIB_INIT
#define VERSION_LIB_INIT
This macro is used for static initialization of a PWP_VERSION struct to the current VERSION_LIB_MAJOR...
Definition: rtPwpVersions.h:45
PWP_PLUGININFO::apiCount
PWP_UINT32 apiCount
number of APIs implemented by this plugin
Definition: apiPWP.h:682
PWP_MESSAGECB_SPY
#define PWP_MESSAGECB_SPY
Special API name used to register the spy message handler.
Definition: apiPWP.h:581