Pointwise Plugin SDK
|
#include <CaePlugin.h>
Public Member Functions | |
bool | aborted () const |
Check if an export has been aborted. More... | |
const PWP_APIINFO & | apiInfo () const |
Get the plugin's API settings. More... | |
CaePlugin (CAEP_RTITEM *pRti, PWGM_HGRIDMODEL model, const CAEP_WRITEINFO *pWriteInfo) | |
Template constructor. More... | |
const char * | exportDestination () const |
Get the requested file destination string. More... | |
const CAEP_FORMATINFO & | formatInfo () const |
Get the plugin's export format settings. More... | |
FILE * | fp () const |
Get the FILE pointer wrapped by the runtime file object. More... | |
bool | isLicensed (const PWP_LICENSEDATA &license) const |
Check if license data is valid. More... | |
MT & | model () |
Get the grid model object. More... | |
const MT & | model () const |
Get the grid model object. More... | |
PWP_BOOL | run () |
Starts the export sequence. More... | |
void | setLanguage (const char language[]) |
Set the active language. More... | |
virtual | ~CaePlugin () |
Destructor. More... | |
const PwpFile & | runtimeFile () const |
Get the runtime file object. More... | |
PwpFile & | runtimeFile () |
Get the runtime file object. More... | |
Progress Reporting Methods | |
These methods are used to report export progress back to the calling framework. If the export is performed from the Pointwise GUI, the progress is displayed in the lower left corner of the window. If the export is performed from a glyph2 script, the progress is ignored. Plugins use a two level progress system. The first level is composed of major steps. Each major step is broken down into sub steps. The exact number of major and sub steps must be determined by the plugin at runtime. See setProgressMajorSteps() for usage. | |
void | setProgressMajorSteps (PWP_UINT32 steps) |
Set the number of major export steps. More... | |
bool | progressBeginStep (PWP_UINT32 steps) const |
Indicates the start of a major progress step. More... | |
bool | progressIncrement () const |
Indicates the completion of a progress sub step within the current major step. More... | |
bool | progressEndStep () const |
Indicates the end of a major progress step. More... | |
Messaging Methods | |
These methods are used to send log messages back to the calling framework. To avoid negatively impacting export speed, messages should be used sparingly. If the export is performed from the Pointwise GUI, the messages are displayed in the messages window. If the export is performed from a glyph2 script, the messages are ignored. | |
void | sendInfoMsg (const char *msg, PWP_UINT32 id=0) const |
Send an information message. More... | |
void | sendDebugMsg (const char *msg, PWP_UINT32 id=0) const |
Send a debug message. More... | |
void | sendWarningMsg (const char *msg, PWP_UINT32 id=0) const |
Send a warning message. More... | |
void | sendErrorMsg (const char *msg, PWP_UINT32 id=0) const |
Send an error message. More... | |
Export Option Methods | |
These methods are used get export options. The export options can be set by the Pointwise user interface or by glyph2 scripts. | |
bool | conditionsOnly () const |
Check if only BCs are to be exported. More... | |
PWP_ENUM_PRECISION | precision () const |
Get the export's requested numerical precision. More... | |
bool | isSinglePrecision () const |
Check if single numerical precision is requested. More... | |
bool | isDoublePrecision () const |
Check if double numerical precision is requested. More... | |
const char * | precisionStr () const |
Get a string representation of the requested data precision. More... | |
PWP_ENUM_ENCODING | encoding () const |
Get the export's requested data encoding. More... | |
bool | isAsciiEncoding () const |
Check if ascii encoding is requested. More... | |
bool | isBinaryEncoding () const |
Check if binary encoding is requested. More... | |
bool | isUnformattedEncoding () const |
Check if FORTRAN unformatted encoding is requested. More... | |
const char * | encodingStr () const |
Get a string representation of the requested data encoding. More... | |
PWP_ENUM_DIMENSION | dimension () const |
Get the export's requested dimensionality. More... | |
bool | isDimension3D () const |
Check if 3D is requested. More... | |
bool | isDimension2D () const |
Check if 2D is requested. More... | |
const char * | dimensionStr () const |
Get a string representation of the requested data dimensionality. More... | |
PWP_ENDIANNESS | byteOrder () const |
Get the export's requested byte order. More... | |
bool | isBigEndian () const |
Check if big endian byte ordering is requested. More... | |
bool | isLittleEndian () const |
Check if little endian byte ordering is requested. More... | |
Static Public Member Functions | |
static PWP_VERSION | getApiVersion () |
Get the plugin's API version. More... | |
static const char * | getAuthorInfo () |
Get the plugin's author description string. More... | |
static const char * | getCopyrightInfo () |
Get the plugin's copyright description string. More... | |
static PWP_VERSIONVAL | getInfo (PWP_PLUGININFO &pluginInfo) |
Get information about this plugin. More... | |
static PWP_ENDIANNESS | getOsEndianness () |
Query the OS's native endianness. More... | |
static const char * | getSupportInfo () |
Get the plugin's support description string. More... | |
static PWP_VERSION | getVersion () |
Get the plugin's release version. More... | |
template<typename H > | |
static bool | isValid (H h) |
Check if a handle is valid. More... | |
static bool | isValid (PWGM_HELEMENT h) |
Check if an element handle is valid. More... | |
Attribute Publishing Methods | |
These static methods are used to publish solver attribute definitions. The value of a published attribute can be set by the Pointwise user interface or by glyph2 scripts. During export, a plugin can obtain the assigned attribute values from the grid model. | |
static bool | publishValueDef (CAEP_RTITEM &rti, const char key[], PWP_ENUM_VALTYPE type, const char value[], const char desc[], const char range[]="", const char access[]="RW") |
Publish a typed CAE attribute definition. More... | |
static bool | publishUIntValueDef (CAEP_RTITEM &rti, const char key[], PWP_UINT value, const char desc[], const char access[]="RW") |
Publish a PWP_UINT CAE attribute definition without a range. More... | |
static bool | publishUIntValueDef (CAEP_RTITEM &rti, const char key[], PWP_UINT value, const char desc[], PWP_UINT minVal, PWP_UINT maxVal, const char access[]="RW") |
Publish a PWP_UINT CAE attribute definition with a min and max range. More... | |
static bool | publishUIntValueDef (CAEP_RTITEM &rti, const char key[], PWP_UINT value, const char desc[], PWP_UINT minVal, PWP_UINT maxVal, PWP_UINT minTypicalVal, PWP_UINT maxTypicalVal, const char access[]="RW") |
Publish a PWP_UINT CAE attribute definition with a min and max range and a typical min and max range. More... | |
static bool | publishIntValueDef (CAEP_RTITEM &rti, const char key[], PWP_INT value, const char desc[], const char access[]="RW") |
Publish a PWP_INT CAE attribute definition without a range. More... | |
static bool | publishIntValueDef (CAEP_RTITEM &rti, const char key[], PWP_INT value, const char desc[], PWP_INT minVal, PWP_INT maxVal, const char access[]="RW") |
Publish a PWP_INT CAE attribute definition with a min and max range. More... | |
static bool | publishIntValueDef (CAEP_RTITEM &rti, const char key[], PWP_INT value, const char desc[], PWP_INT minVal, PWP_INT maxVal, PWP_INT minTypicalVal, PWP_INT maxTypicalVal, const char access[]="RW") |
Publish a PWP_INT CAE attribute definition with a min and max range and a typical min and max range. More... | |
static bool | publishRealValueDef (CAEP_RTITEM &rti, const char key[], PWP_REAL value, const char desc[], const char access[]="RW") |
Publish a PWP_REAL CAE attribute definition without a range. More... | |
static bool | publishRealValueDef (CAEP_RTITEM &rti, const char key[], PWP_REAL value, const char desc[], PWP_REAL minVal, PWP_REAL maxVal, const char access[]="RW") |
Publish a PWP_REAL CAE attribute definition with a min and max range. More... | |
static bool | publishRealValueDef (CAEP_RTITEM &rti, const char key[], PWP_REAL value, const char desc[], PWP_REAL minVal, PWP_REAL maxVal, PWP_REAL minTypicalVal, PWP_REAL maxTypicalVal, const char access[]="RW") |
Publish a PWP_REAL CAE attribute definition with a min and max range and a typical min and max range. More... | |
static bool | publishBoolValueDef (CAEP_RTITEM &rti, const char key[], bool value, const char desc[], const char range[]="", const char access[]="RW") |
Publish a boolean CAE attribute definition. More... | |
static bool | publishStringValueDef (CAEP_RTITEM &rti, const char key[], const char value[], const char desc[], const char range[]="", const char access[]="RW") |
Publish a string CAE attribute definition. More... | |
static bool | publishEnumValueDef (CAEP_RTITEM &rti, const char key[], const char value[], const char desc[], const char range[]="", const char access[]="RW") |
Publish an enumerated CAE attribute definition. More... | |
static bool | assignInfoValue (CAEP_RTITEM &rti, const char key[], const char value[], const bool createIfNotExists=true) |
Set a CAE plugin info value. More... | |
static bool | allowByteOrders (CAEP_RTITEM &rti, const bool big, const bool little) |
Set the "AllowedFileByteOrders" CAE plugin info value. More... | |
static bool | allowElementTopologies (CAEP_RTITEM &rti, const bool structured, const bool unstructured, const bool prismatic) |
Set the "AllowedElementTopologies" CAE plugin info value. More... | |
static bool | meshLinkSupported (CAEP_RTITEM &rti, const bool on) |
Set the "MeshLinkSupported" CAE plugin info value. More... | |
static bool | useZeroBasedIndexing (CAEP_RTITEM &rti) |
Sets the "IndexScheme" CAE plugin info value to "ZeroBased". More... | |
static bool | useOneBasedIndexing (CAEP_RTITEM &rti) |
Sets the "IndexScheme" CAE plugin info value to "OneBased". More... | |
static bool | useCustomIndexing (CAEP_RTITEM &rti) |
Sets the "IndexScheme" CAE plugin info value to "Custom". More... | |
static bool | shadowBcTypes (CAEP_RTITEM &rti, const char *const shadowTypes) |
Set the "ShadowBcTypes" CAE plugin info value. More... | |
Protected Attributes | |
MT | model_ |
The grid model being exported. More... | |
PWP_UINT32 | progMajorSteps_ |
# of major export steps. More... | |
PwpFile | rtFile_ |
runtime file object More... | |
CAEP_RTITEM & | rti_ |
The plugin's runtime item data. More... | |
const CAEP_WRITEINFO & | writeInfo_ |
The export options. More... | |
Private Member Functions | |
virtual bool | beginExport () |
Called once by run() at the start of an export sequence. More... | |
CaePlugin (const CaePlugin &src) | |
Private constructor. More... | |
virtual bool | endExport () |
Called once by run() at the end of an export sequence. More... | |
CaePlugin & | operator= (const CaePlugin &rhs) |
Private assignment operator. More... | |
void | wrapRuntimeFile () |
Pass ownership of the runtime FILE pointer to a PwpFile object. More... | |
virtual PWP_BOOL | write ()=0 |
Called once by run() to perform the export logic. More... | |
The CAE Plugin base class template.
The CaePlugin base class template implements the interface common to all CAE plugins.
Definition at line 28 of file CaePlugin.h.
CaePlugin< MT >::CaePlugin | ( | CAEP_RTITEM * | pRti, |
PWGM_HGRIDMODEL | model, | ||
const CAEP_WRITEINFO * | pWriteInfo | ||
) |
Template constructor.
Templated base class for all concrete plugin subclasses. MT is a CaeGridModel subclass.
pRti | Pointer to the runtime item instance for this invocation of the exporter. |
model | Handle to the grid model to be exported. |
pWriteInfo | Pointer to the export settings. |
Definition at line 17 of file CaePluginImpl.h.
References CaePlugin< MT >::wrapRuntimeFile().
Destructor.
Definition at line 28 of file CaePluginImpl.h.
Private constructor.
Definition at line 65 of file CaePluginImpl.h.
|
inline |
Check if an export has been aborted.
When aborted, a plugin should stop all time consuming operations and return as soon as possible.
Definition at line 295 of file CaePlugin.h.
References CaePlugin< MT >::rti_.
|
inlinestatic |
Set the "AllowedFileByteOrders" CAE plugin info value.
Set the byte order types supported by the plugin.
rti | The plugin's runtime item data. |
big | Set to true if the plugin supports big endian. |
little | Set to true if the plugin supports little endian. |
Definition at line 897 of file CaePlugin.h.
References CaePlugin< MT >::assignInfoValue().
|
inlinestatic |
Set the "AllowedElementTopologies" CAE plugin info value.
Set the element topology types supported by the plugin. These flags are used by the Pointwise GUI to intelligently enable and disable tools.
rti | The plugin's runtime item data. |
structured | Set to true if the plugin supports exporting structured blocks. If false, the GUI will not allow the creation of structured blocks. |
unstructured | Set to true if the plugin supports exporting unstructured blocks. If false, the GUI will not allow the creation of unstructured blocks. |
prismatic | Set to true if the plugin supports exporting prismatic blocks. If false, the GUI will not allow the creation of extruded prism blocks. |
Definition at line 930 of file CaePlugin.h.
References CaePlugin< MT >::assignInfoValue().
|
inline |
Get the plugin's API settings.
Get the plugin's API settings as specified in rtPwpInitItems.h
.
Definition at line 132 of file CaePlugin.h.
References PWU_RTITEM::apiInfo, CAEP_RTITEM::pApiData, and CaePlugin< MT >::rti_.
|
inlinestatic |
Set a CAE plugin info value.
General plugin info setting method. It is usually simpler to use the attribute specific setter methods.
rti | The plugin's runtime item data. |
key | The info value key (name). |
value | The info value. |
createIfNotExists | If true, the name/value pair will be silently created if it does not already exist. |
Definition at line 881 of file CaePlugin.h.
References CAEP_RTITEM::BCCnt, and caeuAssignInfoValue().
Referenced by CaePlugin< MT >::allowByteOrders(), CaePlugin< MT >::allowElementTopologies(), CaePlugin< MT >::meshLinkSupported(), CaePlugin< MT >::shadowBcTypes(), CaePlugin< MT >::useCustomIndexing(), CaePlugin< MT >::useOneBasedIndexing(), and CaePlugin< MT >::useZeroBasedIndexing().
|
inlineprivatevirtual |
Called once by run() at the start of an export sequence.
A plugin can optionally over ride this virtual method to perform one-time export initializations. A call to setProgressMajorSteps() is usually made in this method.
The default implementation does nothing and returns true.
Definition at line 1057 of file CaePlugin.h.
|
inline |
Get the export's requested byte order.
Definition at line 423 of file CaePlugin.h.
References CAEP_WRITEINFO::byteOrder, PwpFile::mapToBigLittle(), and CaePlugin< MT >::writeInfo_.
Referenced by CaePlugin< MT >::isBigEndian(), CaePlugin< MT >::isLittleEndian(), and CaePlugin< MT >::wrapRuntimeFile().
|
inline |
Check if only BCs are to be exported.
Definition at line 310 of file CaePlugin.h.
References CAEP_WRITEINFO::conditionsOnly, and CaePlugin< MT >::writeInfo_.
|
inline |
Get the export's requested dimensionality.
Definition at line 391 of file CaePlugin.h.
References CAEP_WRITEINFO::dimension, and CaePlugin< MT >::writeInfo_.
Referenced by CaePlugin< MT >::isDimension2D(), and CaePlugin< MT >::isDimension3D().
|
inline |
Get a string representation of the requested data dimensionality.
Definition at line 415 of file CaePlugin.h.
References CAEPU_RT_DIM_TEXT, and CaePlugin< MT >::rti_.
|
inline |
Get the export's requested data encoding.
Definition at line 351 of file CaePlugin.h.
References CAEP_WRITEINFO::encoding, and CaePlugin< MT >::writeInfo_.
Referenced by CaePlugin< MT >::isAsciiEncoding(), CaePlugin< MT >::isBinaryEncoding(), CaePlugin< MT >::isUnformattedEncoding(), and CaePlugin< MT >::wrapRuntimeFile().
|
inline |
Get a string representation of the requested data encoding.
Definition at line 383 of file CaePlugin.h.
References CAEPU_RT_ENCODING_TEXT, and CaePlugin< MT >::rti_.
|
inlineprivatevirtual |
Called once by run() at the end of an export sequence.
A plugin can optionally over ride this virtual method to perform one-time export clean up.
The default implementation does nothing and returns true.
Definition at line 1080 of file CaePlugin.h.
|
inline |
Get the requested file destination string.
Depending on the plugin's settings specified in rtCaepInitItems.h
, the destination string will be:
Definition at line 113 of file CaePlugin.h.
References CAEP_WRITEINFO::fileDest, and CaePlugin< MT >::writeInfo_.
Referenced by CaePlugin< MT >::wrapRuntimeFile().
|
inline |
Get the plugin's export format settings.
Get the plugin's export format settings as specified in rtCaepInitItems.h
.
Definition at line 123 of file CaePlugin.h.
References CAEP_RTITEM::FormatInfo, and CaePlugin< MT >::rti_.
|
inline |
Get the FILE pointer wrapped by the runtime file object.
Definition at line 99 of file CaePlugin.h.
References PwpFile::fp(), and CaePlugin< MT >::rtFile_.
|
inlinestatic |
Get the plugin's API version.
Definition at line 489 of file CaePlugin.h.
References PwpGetPluginInfo(), and PWP_PLUGININFO::pwpVer.
|
inlinestatic |
Get the plugin's author description string.
Definition at line 509 of file CaePlugin.h.
References PWP_PLUGININFO::author, and PwpGetPluginInfo().
|
inlinestatic |
Get the plugin's copyright description string.
Definition at line 529 of file CaePlugin.h.
References PWP_PLUGININFO::copyright, and PwpGetPluginInfo().
|
inlinestatic |
Get information about this plugin.
pluginInfo | A PWP_PLUGININFO buffer. |
Definition at line 481 of file CaePlugin.h.
References PwpGetPluginInfo().
|
inlinestatic |
Query the OS's native endianness.
Definition at line 472 of file CaePlugin.h.
References PwuGetOsEndianness().
|
inlinestatic |
Get the plugin's support description string.
Definition at line 519 of file CaePlugin.h.
References PwpGetPluginInfo(), and PWP_PLUGININFO::support.
|
inlinestatic |
Get the plugin's release version.
Definition at line 499 of file CaePlugin.h.
References PWP_PLUGININFO::libVer, and PwpGetPluginInfo().
|
inline |
Check if ascii encoding is requested.
Definition at line 359 of file CaePlugin.h.
References CaePlugin< MT >::encoding(), and PWP_ENCODING_ASCII.
|
inline |
Check if big endian byte ordering is requested.
Definition at line 432 of file CaePlugin.h.
References CaePlugin< MT >::byteOrder(), and PWP_ENDIAN_BIG.
|
inline |
Check if binary encoding is requested.
Definition at line 367 of file CaePlugin.h.
References CaePlugin< MT >::encoding(), and PWP_ENCODING_BINARY.
|
inline |
Check if 2D is requested.
Definition at line 407 of file CaePlugin.h.
References CaePlugin< MT >::dimension(), and PWP_DIMENSION_2D.
|
inline |
Check if 3D is requested.
Definition at line 399 of file CaePlugin.h.
References CaePlugin< MT >::dimension(), and PWP_DIMENSION_3D.
|
inline |
Check if double numerical precision is requested.
Definition at line 334 of file CaePlugin.h.
References CaePlugin< MT >::precision(), and PWP_PRECISION_DOUBLE.
|
inline |
Check if license data is valid.
NOT IMPLEMENTED. Always returns true.
license | The PWP_LICENSEDATA data. |
Definition at line 451 of file CaePlugin.h.
References PWU_RTITEM::apiInfo, PWP_APIINFO::name, CAEP_RTITEM::pApiData, PwpIsLicensed(), and CaePlugin< MT >::rti_.
|
inline |
Check if little endian byte ordering is requested.
Definition at line 440 of file CaePlugin.h.
References CaePlugin< MT >::byteOrder(), and PWP_ENDIAN_LITTLE.
|
inline |
Check if single numerical precision is requested.
Definition at line 326 of file CaePlugin.h.
References CaePlugin< MT >::precision(), and PWP_PRECISION_SINGLE.
|
inline |
Check if FORTRAN unformatted encoding is requested.
Definition at line 375 of file CaePlugin.h.
References CaePlugin< MT >::encoding(), and PWP_ENCODING_UNFORMATTED.
|
inlinestatic |
Check if a handle is valid.
h | The handle to validate. |
Definition at line 541 of file CaePlugin.h.
References PWP_HEGRP_ISVALID.
|
inlinestatic |
Check if an element handle is valid.
h | The element handle to validate. |
Definition at line 550 of file CaePlugin.h.
References PWGM_HELEMENT_ISVALID.
|
inlinestatic |
Set the "MeshLinkSupported" CAE plugin info value.
If true, the plugin supports mesh link export.
rti | The plugin's runtime item data. |
on | Set to true if the plugin supports mesh link export. Set to false, mesh link export is not supported (default). |
Definition at line 961 of file CaePlugin.h.
References CaePlugin< MT >::assignInfoValue().
|
inline |
Get the grid model object.
Definition at line 64 of file CaePlugin.h.
References CaePlugin< MT >::model_.
|
inline |
Get the grid model object.
Definition at line 72 of file CaePlugin.h.
References CaePlugin< MT >::model_.
|
private |
Private assignment operator.
Definition at line 76 of file CaePluginImpl.h.
|
inline |
Get the export's requested numerical precision.
Definition at line 318 of file CaePlugin.h.
References CAEP_WRITEINFO::precision, and CaePlugin< MT >::writeInfo_.
Referenced by CaePlugin< MT >::isDoublePrecision(), CaePlugin< MT >::isSinglePrecision(), and CaePlugin< MT >::wrapRuntimeFile().
|
inline |
Get a string representation of the requested data precision.
Definition at line 342 of file CaePlugin.h.
References CAEPU_RT_PREC_TEXT, and CaePlugin< MT >::rti_.
|
inline |
Indicates the start of a major progress step.
This is called by the plugin's write() method. This method should called once for each step specified in setProgressMajorSteps().
steps | The number of sub steps within this major step. |
Definition at line 204 of file CaePlugin.h.
References caeuProgressBeginStep(), and CaePlugin< MT >::rti_.
|
inline |
Indicates the end of a major progress step.
This is called by the plugin's write() method. This method should called once for each call to progressBeginStep().
Definition at line 229 of file CaePlugin.h.
References caeuProgressEndStep(), and CaePlugin< MT >::rti_.
|
inline |
Indicates the completion of a progress sub step within the current major step.
This is called by the plugin's write() method. This method should called once for each sub step specified in progressBeginStep().
Definition at line 217 of file CaePlugin.h.
References caeuProgressIncr(), and CaePlugin< MT >::rti_.
|
inlinestatic |
Publish a boolean CAE attribute definition.
rti | The plugin's runtime item data. |
key | The value key (name). |
value | The default value. |
desc | The attribute description. |
range | The range minimum valid value. |
access | The value access flags. |
Definition at line 821 of file CaePlugin.h.
References CAEP_RTITEM::BCCnt, caeuPublishValueDefinition(), and PWP_VALTYPE_BOOL.
|
inlinestatic |
Publish an enumerated CAE attribute definition.
rti | The plugin's runtime item data. |
key | The value key (name). |
value | The default value. |
desc | The attribute description. |
range | The range minimum valid value. |
access | The value access flags. |
Definition at line 858 of file CaePlugin.h.
References CAEP_RTITEM::BCCnt, caeuPublishValueDefinition(), and PWP_VALTYPE_ENUM.
|
inlinestatic |
Publish a PWP_INT CAE attribute definition without a range.
rti | The plugin's runtime item data. |
key | The value key (name). |
value | The default value. |
desc | The attribute description. |
access | The value access flags. |
Definition at line 676 of file CaePlugin.h.
References CAEP_RTITEM::BCCnt, caeuPublishValueDefinition(), and PWP_VALTYPE_INT.
|
inlinestatic |
Publish a PWP_INT CAE attribute definition with a min and max range.
rti | The plugin's runtime item data. |
key | The value key (name). |
value | The default value. |
desc | The attribute description. |
minVal | The range minimum valid value. |
maxVal | The range maximum valid value. |
access | The value access flags. |
Definition at line 697 of file CaePlugin.h.
References CAEP_RTITEM::BCCnt, caeuPublishValueDefinition(), and PWP_VALTYPE_INT.
|
inlinestatic |
Publish a PWP_INT CAE attribute definition with a min and max range and a typical min and max range.
rti | The plugin's runtime item data. |
key | The value key (name). |
value | The default value. |
desc | The attribute description. |
minVal | The range minimum valid value. |
maxVal | The range maximum valid value. |
minTypicalVal | The range typical minimum valid value. |
maxTypicalVal | The range typical maximum valid value. |
access | The value access flags. |
Definition at line 724 of file CaePlugin.h.
References CAEP_RTITEM::BCCnt, caeuPublishValueDefinition(), and PWP_VALTYPE_INT.
|
inlinestatic |
Publish a PWP_REAL CAE attribute definition without a range.
rti | The plugin's runtime item data. |
key | The value key (name). |
value | The default value. |
desc | The attribute description. |
access | The value access flags. |
Definition at line 748 of file CaePlugin.h.
References CAEP_RTITEM::BCCnt, caeuPublishValueDefinition(), and PWP_VALTYPE_REAL.
|
inlinestatic |
Publish a PWP_REAL CAE attribute definition with a min and max range.
rti | The plugin's runtime item data. |
key | The value key (name). |
value | The default value. |
desc | The attribute description. |
minVal | The range minimum valid value. |
maxVal | The range maximum valid value. |
access | The value access flags. |
Definition at line 769 of file CaePlugin.h.
References CAEP_RTITEM::BCCnt, caeuPublishValueDefinition(), and PWP_VALTYPE_REAL.
|
inlinestatic |
Publish a PWP_REAL CAE attribute definition with a min and max range and a typical min and max range.
rti | The plugin's runtime item data. |
key | The value key (name). |
value | The default value. |
desc | The attribute description. |
minVal | The range minimum valid value. |
maxVal | The range maximum valid value. |
minTypicalVal | The range typical minimum valid value. |
maxTypicalVal | The range typical maximum valid value. |
access | The value access flags. |
Definition at line 796 of file CaePlugin.h.
References CAEP_RTITEM::BCCnt, caeuPublishValueDefinition(), and PWP_VALTYPE_REAL.
|
inlinestatic |
Publish a string CAE attribute definition.
rti | The plugin's runtime item data. |
key | The value key (name). |
value | The default value. |
desc | The attribute description. |
range | The range minimum valid value. |
access | The value access flags. |
Definition at line 840 of file CaePlugin.h.
References CAEP_RTITEM::BCCnt, caeuPublishValueDefinition(), and PWP_VALTYPE_STRING.
|
inlinestatic |
Publish a PWP_UINT CAE attribute definition without a range.
rti | The plugin's runtime item data. |
key | The value key (name). |
value | The default value. |
desc | The attribute description. |
access | The value access flags. |
Definition at line 602 of file CaePlugin.h.
References CAEP_RTITEM::BCCnt, caeuPublishValueDefinition(), and PWP_VALTYPE_UINT.
|
inlinestatic |
Publish a PWP_UINT CAE attribute definition with a min and max range.
rti | The plugin's runtime item data. |
key | The value key (name). |
value | The default value. |
desc | The attribute description. |
minVal | The range minimum valid value. |
maxVal | The range maximum valid value. |
access | The value access flags. |
Definition at line 623 of file CaePlugin.h.
References CAEP_RTITEM::BCCnt, caeuPublishValueDefinition(), and PWP_VALTYPE_UINT.
|
inlinestatic |
Publish a PWP_UINT CAE attribute definition with a min and max range and a typical min and max range.
rti | The plugin's runtime item data. |
key | The value key (name). |
value | The default value. |
desc | The attribute description. |
minVal | The range minimum valid value. |
maxVal | The range maximum valid value. |
minTypicalVal | The range typical minimum valid value. |
maxTypicalVal | The range typical maximum valid value. |
access | The value access flags. |
Definition at line 651 of file CaePlugin.h.
References CAEP_RTITEM::BCCnt, caeuPublishValueDefinition(), and PWP_VALTYPE_UINT.
|
inlinestatic |
Publish a typed CAE attribute definition.
General attribute publishing method. It is usually simpler to use the type specific publishing methods.
rti | The plugin's runtime item data. |
key | The value key (name). |
type | The value data type. |
value | The default value as a type-appropriate string. |
desc | The attribute description. |
range | The value range as a type-appropriate string. |
access | The value access flags. |
Definition at line 585 of file CaePlugin.h.
References CAEP_RTITEM::BCCnt, and caeuPublishValueDefinition().
Starts the export sequence.
The export sequence is:
Definition at line 34 of file CaePluginImpl.h.
References caeuProgressEnd(), caeuProgressInit(), PWP_FALSE, and PWP_TRUE.
Get the runtime file object.
The runtime file object is only valid for plugins using PWP_FILEDEST_FILENAME. For all other PWP_ENUM_FILEDEST types, the runtime file object must be initialized by the plugin if needed.
Definition at line 89 of file CaePlugin.h.
References CaePlugin< MT >::rtFile_.
Get the runtime file object.
The runtime file object is only valid for plugins using PWP_FILEDEST_FILENAME. For all other PWP_ENUM_FILEDEST types, the runtime file object must be initialized by the plugin if needed.
Definition at line 85 of file CaePlugin.h.
|
inline |
Send a debug message.
Debug messages should be used for debugging purposes. They are normally turned off in relase builds.
msg | The message text. |
id | The message id. |
Definition at line 264 of file CaePlugin.h.
References caeuSendDebugMsg(), and CaePlugin< MT >::rti_.
|
inline |
Send an error message.
Error messages should be used to relay error details to the framework.
msg | The message text. |
id | The message id. |
Definition at line 284 of file CaePlugin.h.
References caeuSendErrorMsg(), and CaePlugin< MT >::rti_.
|
inline |
Send an information message.
Information messages should be used to relay export details back to the framework.
msg | The message text. |
id | The message id. |
Definition at line 253 of file CaePlugin.h.
References caeuSendInfoMsg(), and CaePlugin< MT >::rti_.
|
inline |
Send a warning message.
Warning messages should be used to relay warning details to the framework.
msg | The message text. |
id | The message id. |
Definition at line 274 of file CaePlugin.h.
References caeuSendWarningMsg(), and CaePlugin< MT >::rti_.
|
inline |
Set the active language.
If the specified language is not supported, the plugin should default to "us-english".
language | The language identifier. |
Definition at line 464 of file CaePlugin.h.
References PwpSetLanguage().
|
inline |
Set the number of major export steps.
This is usually called in the plugin's beginExport() method. This method should only be called before any other calls to progressBeginStep(), progressIncrement(), or progressEndStep().
steps | The number of major steps. |
The following snippets are extracted from the CaeStrXMLCPP sample plugin.
The number of major steps is set to 3 in the CaeStrXMLCPP::beginExport()
method.
In the CaeStrXMLCPP::write()
method, the three major steps are the calls to CaeStrXMLCPP::writeBlocks()
, CaeStrXMLCPP::writeConnections()
, and CaeStrXMLCPP::writeBoundaries()
.
The CaeStrXMLCPP::writeBlocks()
method calls progressBeginStep()
with the number of blocks as the sub step count. Then, for each block, progressIncrement()
is called. And finally, progressEndStep()
is called before returning.
The writeConnections()
and writeBoundaries()
methods indicate their progress in a similar manner.
Definition at line 190 of file CaePlugin.h.
References CaePlugin< MT >::progMajorSteps_.
|
inlinestatic |
Set the "ShadowBcTypes" CAE plugin info value.
Specify which of the defined BCs types are non-inflated.
rti | The plugin's runtime item data. |
shadowTypes | Vbar delimited list of non-inflated BC type names (e.g. "bc_type_name1|bc_type_name2|bc_type_name3"). |
Definition at line 1039 of file CaePlugin.h.
References CaePlugin< MT >::assignInfoValue().
|
inlinestatic |
Sets the "IndexScheme" CAE plugin info value to "Custom".
rti | The plugin's runtime item data. |
In this case, the plugin must build an appropriate index map during export. After the mesh export is completed, but before returning from CaePlugin::write(), the plugin must call customIndexSchemeReady(handler) to notify the Pointwise export framework that the vertex map is ready.
Before returning from customIndexSchemeReady(handler), the Pointwise export framework will invoke the handler.mapIndex() method as needed to map PWGM indices to their corresponding exported index.
Definition at line 1019 of file CaePlugin.h.
References CaePlugin< MT >::assignInfoValue().
|
inlinestatic |
Sets the "IndexScheme" CAE plugin info value to "OneBased".
rti | The plugin's runtime item data. |
Definition at line 993 of file CaePlugin.h.
References CaePlugin< MT >::assignInfoValue().
|
inlinestatic |
Sets the "IndexScheme" CAE plugin info value to "ZeroBased".
rti | The plugin's runtime item data. |
Definition at line 977 of file CaePlugin.h.
References CaePlugin< MT >::assignInfoValue().
|
inlineprivate |
Pass ownership of the runtime FILE pointer to a PwpFile object.
For plugins using PWP_FILEDEST_FILENAME, f.wrap() is called using the runtime FILE pointer fp() and the requested exportDestination() and encoding() mode.
For plugins using other PWP_ENUM_FILEDEST types, fp() is null. As a result, f.wrap(0) is called.
In all cases, f's precision and byte order are assigned using the values returned from precision() and byteOrder().
Definition at line 1108 of file CaePlugin.h.
References CaePlugin< MT >::byteOrder(), CaePlugin< MT >::encoding(), CaePlugin< MT >::exportDestination(), CAEP_RTITEM::fp, CaePlugin< MT >::precision(), PWP_ENCODING_ASCII, PWP_ENCODING_BINARY, PWP_ENCODING_UNFORMATTED, pwpAscii, pwpBinary, pwpUnformatted, pwpWrite, CaePlugin< MT >::rtFile_, CaePlugin< MT >::rti_, PwpFile::setByteOrder(), PwpFile::setPrecision(), and PwpFile::wrap().
Referenced by CaePlugin< MT >::CaePlugin().
Called once by run() to perform the export logic.
A plugin must implement this pure virtual method to perform the plugin's export behavior.
|
protected |
The grid model being exported.
Definition at line 1136 of file CaePlugin.h.
Referenced by CaePlugin< MT >::model().
|
protected |
# of major export steps.
Definition at line 1138 of file CaePlugin.h.
Referenced by CaePlugin< MT >::setProgressMajorSteps().
runtime file object
Definition at line 1139 of file CaePlugin.h.
Referenced by CaePlugin< MT >::fp(), CaePlugin< MT >::runtimeFile(), and CaePlugin< MT >::wrapRuntimeFile().
|
protected |
The plugin's runtime item data.
Definition at line 1135 of file CaePlugin.h.
Referenced by CaePlugin< MT >::aborted(), CaePlugin< MT >::apiInfo(), CaePlugin< MT >::dimensionStr(), CaePlugin< MT >::encodingStr(), CaePlugin< MT >::formatInfo(), CaePlugin< MT >::isLicensed(), CaePlugin< MT >::precisionStr(), CaePlugin< MT >::progressBeginStep(), CaePlugin< MT >::progressEndStep(), CaePlugin< MT >::progressIncrement(), CaePlugin< MT >::sendDebugMsg(), CaePlugin< MT >::sendErrorMsg(), CaePlugin< MT >::sendInfoMsg(), CaePlugin< MT >::sendWarningMsg(), and CaePlugin< MT >::wrapRuntimeFile().
|
protected |
The export options.
Definition at line 1137 of file CaePlugin.h.
Referenced by CaePlugin< MT >::byteOrder(), CaePlugin< MT >::conditionsOnly(), CaePlugin< MT >::dimension(), CaePlugin< MT >::encoding(), CaePlugin< MT >::exportDestination(), and CaePlugin< MT >::precision().