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 
60  0, // FILE *fp
61 
62  // PWU_UNFDATA UnfData
63  { 0, // PWP_UINT32 status
64  0, // FILE *fp
65  0, // sysFILEPOS fPos
66  PWP_FALSE, // PWP_BOOL hadError
67  PWP_FALSE, // PWP_BOOL inRec
68  0, // PWP_UINT32 recBytes
69  0, // PWP_UINT32 totRecBytes
70  0, // PWP_UINT32 recCnt
71  PWP_ENDIAN_ERROR, // PWP_ENDIANNESS endianness
72  0 }, // PWP_UINT32 fixedBytes
73 
74  0, // PWGM_HGRIDMODEL model
75 
76  0, // const CAEP_WRITEINFO *pWriteInfo
77 
78  0, // PWP_UINT32 progTotal
79  0, // PWP_UINT32 progComplete
80  {0}, // clock_t clocks[CAEPU_CLKS_SIZE];
81  0, // PWP_BOOL opAborted
82 
83  // if you added any custom data in rtCaepInstanceData.h, you need to
84  // initialize it here. The init below matches the example MY_CAEP_DATA
85  // struct given in rtCaepInstanceData.h
86  /*
87  { 0,
88  0,
89  0.0,
90  "string" },
91  */
92 },
96 /************************************************************************/
125 #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