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