Pointwise Plugin SDK
rtCaepInitItems.h
Go to the documentation of this file.
1 /****************************************************************************
2  *
3  * Pointwise Plugin utility functions
4  *
5  * (C) 2021 Cadence Design Systems, Inc. All rights reserved worldwide.
6  *
7  ***************************************************************************/
8 
9 #ifndef _RTCAEPINITITEMS_H_
10 #define _RTCAEPINITITEMS_H_
11 
13 /*.................................................
14  initialize caepRtItem[0]
15 */
16 #define ID_CaeXxxxx __ID__
17 {
18  //== CAEP_FORMATINFO FormatInfo
19  { PWP_SITE_GROUPNAME, // const char *group
20  "CaeXxxxx", // const char *name
21  MAKEGUID(ID_CaeXxxxx), // PWP_UINT32 id
22 
23  PWP_FILEDEST_FILENAME, // PWP_ENUM_FILEDEST fileDest
24 
25  PWP_TRUE, // PWP_BOOL allowedExportConditionsOnly
26  PWP_TRUE, // PWP_BOOL allowedVolumeConditions
27 
28  PWP_TRUE, // PWP_BOOL allowedFileFormatASCII
29  PWP_FALSE, // PWP_BOOL allowedFileFormatBinary
30  PWP_FALSE, // PWP_BOOL allowedFileFormatUnformatted
31 
32  PWP_TRUE, // PWP_BOOL allowedDataPrecisionSingle
33  PWP_TRUE, // PWP_BOOL allowedDataPrecisionDouble
34 
35  PWP_TRUE, // PWP_BOOL allowedDimension2D
36  PWP_TRUE // PWP_BOOL allowedDimension3D
37  },
38 
39  &pwpRtItem[1], // PWU_RTITEM*
40 
41  CaeXxxxxBCInfo, // CAEP_BCINFO* pBCInfo -- format BCs or NULL
42  ARRAYSIZE(CaeXxxxxBCInfo), // PWP_UINT32 BCCnt -- # format BCs
43 
44  CaeXxxxxVCInfo, // CAEP_VCINFO* pVCInfo -- format VCs or NULL
45  ARRAYSIZE(CaeXxxxxVCInfo), // PWP_UINT32 VCCnt -- # format VCs
46 
47  CaeXxxxxFileExt, // const char **pFileExt -- file extensions
48  ARRAYSIZE(CaeXxxxxFileExt), // PWP_UINT32 ExtCnt -- # file extensions
49 
50  //== PWP_BOOL elemType[PWGM_ELEMTYPE_SIZE]; -- un/supported elem
51  { PWP_TRUE, // elemType[PWGM_ELEMTYPE_BAR]
52  PWP_TRUE, // elemType[PWGM_ELEMTYPE_HEX]
53  PWP_TRUE, // elemType[PWGM_ELEMTYPE_QUAD]
54  PWP_TRUE, // elemType[PWGM_ELEMTYPE_TRI]
55  PWP_TRUE, // elemType[PWGM_ELEMTYPE_TET]
56  PWP_TRUE, // elemType[PWGM_ELEMTYPE_WEDGE]
57  PWP_TRUE, // elemType[PWGM_ELEMTYPE_PYRAMID]
58  PWP_TRUE, // elemType[PWGM_ELEMTYPE_POINT]
59  PWP_FALSE, // elemType[PWGM_ELEMTYPE_POLYH]
60  PWP_FALSE }, // elemType[PWGM_ELEMTYPE_POLYG]
61 
62  0, // FILE *fp
63 
64  // PWU_UNFDATA UnfData
65  { 0, // PWP_UINT32 status
66  0, // FILE *fp
67  0, // sysFILEPOS fPos
68  PWP_FALSE, // PWP_BOOL hadError
69  PWP_FALSE, // PWP_BOOL inRec
70  0, // PWP_UINT32 recBytes
71  0, // PWP_UINT32 totRecBytes
72  0, // PWP_UINT32 recCnt
73  PWP_ENDIAN_ERROR, // PWP_ENDIANNESS endianness
74  0 }, // PWP_UINT32 fixedBytes
75 
76  0, // PWGM_HGRIDMODEL model
77 
78  0, // const CAEP_WRITEINFO *pWriteInfo
79 
80  0, // PWP_UINT32 progTotal
81  0, // PWP_UINT32 progComplete
82  {0}, // clock_t clocks[CAEPU_CLKS_SIZE];
83  0, // PWP_BOOL opAborted
84 
85  // if you added any custom data in rtCaepInstanceData.h, you need to
86  // initialize it here. The init below matches the example MY_CAEP_DATA
87  // struct given in rtCaepInstanceData.h
88  /*
89  { 0,
90  0,
91  0.0,
92  "string" },
93  */
94 },
98 /************************************************************************/
127 #endif /* _RTCAEPINITITEMS_H_ */
PWP_FILEDEST_FILENAME
@ PWP_FILEDEST_FILENAME
Definition: apiPWP.h:744
pwpRtItem
PWU_RTITEM pwpRtItem[]
The runtime array of PWU_RTITEM items.
Definition: apiPWP.cxx:29
ARRAYSIZE
#define ARRAYSIZE(arrname)
Calculates the size of a statically declared array.
Definition: apiUtils.h:164
PWP_SITE_GROUPNAME
#define PWP_SITE_GROUPNAME
Your site's identifier string.
Definition: site.h:96
PWP_FALSE
#define PWP_FALSE
PWP_BOOL logical "false" value.
Definition: apiPWP.h:306
PWP_ENDIAN_ERROR
@ PWP_ENDIAN_ERROR
Definition: apiPWP.h:823
MAKEGUID
#define MAKEGUID(usr_id)
Builds a 32-bit Globally Unique Id (GUID).
Definition: apiUtils.h:108
PWP_TRUE
#define PWP_TRUE
PWP_BOOL logical "true" value.
Definition: apiPWP.h:309