Pointwise Plugin SDK
Functions
apiGRDPUtils.cxx File Reference
#include <string.h>
#include "apiPWP.h"
#include "apiGRDPUtils.h"
#include "apiGridModel.h"
#include "pwpPlatform.h"
+ Include dependency graph for apiGRDPUtils.cxx:

Go to the source code of this file.

Functions

PWP_BOOL grdpAssignInfoValue (const char name[], const char value[], const bool create)
 Creates a key/string-value pair that defines a GRDP info attribute. More...
 
PWP_BOOL grdpAssignInfoValueBool (const char name[], const bool value, const bool create)
 Creates a key/bool-value pair that defines a GRDP info attribute. More...
 
PWP_BOOL grdpAssignInfoValueEnum (const char key[], const char value[], const bool create)
 Creates a key/enum-value pair that defines a GRDP info attribute. More...
 
PWP_BOOL grdpAssignInfoValueInt (const char name[], const PWP_INT value, const bool create)
 Creates a key/PWP_INT-value pair that defines a GRDP info attribute. More...
 
PWP_BOOL grdpAssignInfoValueReal (const char name[], const PWP_REAL value, const bool create)
 Creates a key/PWP_REAL-value pair that defines a GRDP info attribute. More...
 
PWP_BOOL grdpAssignInfoValueUInt (const char name[], const PWP_UINT value, const bool create)
 Creates a key/PWP_UINT-value pair that defines a GRDP info attribute. More...
 
GRDP_RTITEMgrdpFindFormatById (PWP_UINT32 id)
 Find an item in grdpRtItem[] by it's id. More...
 
GRDP_RTITEMgrdpFindFormatByName (const char name[])
 Find an item in grdpRtItem[] by it's name. More...
 
PWP_BOOL grdpProgressBeginStep (GRDP_RTITEM *pRti, PWP_UINT32 total)
 Begins a progress tracking step. More...
 
PWP_BOOL grdpProgressEnd (GRDP_RTITEM *pRti, const PWP_BOOL ok)
 Ends all progress tracking. More...
 
PWP_BOOL grdpProgressEndStep (GRDP_RTITEM *pRti)
 Completes a progress tracking major step. More...
 
PWP_BOOL grdpProgressIncr (GRDP_RTITEM *pRti)
 Completes a progress tracking sub-step. More...
 
PWP_BOOL grdpProgressInit (GRDP_RTITEM *pRti, PWP_UINT32 cnt)
 Initializes a progress tracking session. More...
 
PWP_BOOL grdpPublishValueDefinition (const char key[], PWP_ENUM_VALTYPE type, const char value[], const char access[], const char desc[], const char range[])
 Creates a collection of key/value pairs that represent a published grid import attribute definition. More...
 
void grdpSendDebugMsg (GRDP_RTITEM *pRti, const char txt[], PWP_UINT32 code)
 Send a debug text message (PWP_MSGID_DEBUG) to the framework. More...
 
void grdpSendErrorMsg (GRDP_RTITEM *pRti, const char txt[], PWP_UINT32 code)
 Send an error text message (PWP_MSGID_ERROR) to the framework. More...
 
void grdpSendInfoMsg (GRDP_RTITEM *pRti, const char txt[], PWP_UINT32 code)
 Send an info text message (PWP_MSGID_INFO) to the framework. More...
 
void grdpSendWarningMsg (GRDP_RTITEM *pRti, const char txt[], PWP_UINT32 code)
 Send a warning text message (PWP_MSGID_WARNING) to the framework. More...
 
static void sendClkDiffTimeMsg (GRDP_RTITEM *pRti, const char txt[], GRDP_ENUM_CLOCKS startId, GRDP_ENUM_CLOCKS endId)
 
static void sendDiffTimeMsg (GRDP_RTITEM *pRti, const char txt[], clock_t diff)
 

Function Documentation

◆ sendClkDiffTimeMsg()

static void sendClkDiffTimeMsg ( GRDP_RTITEM pRti,
const char  txt[],
GRDP_ENUM_CLOCKS  startId,
GRDP_ENUM_CLOCKS  endId 
)
static

Definition at line 128 of file apiGRDPUtils.cxx.

References GRDP_RT_CLKS_DIFF, and sendDiffTimeMsg().

Referenced by grdpProgressEnd(), and grdpProgressEndStep().

◆ sendDiffTimeMsg()

static void sendDiffTimeMsg ( GRDP_RTITEM pRti,
const char  txt[],
clock_t  diff 
)
static

Definition at line 106 of file apiGRDPUtils.cxx.

References GRDP_CLKS_TO_HMS, GRDP_CLKS_TO_MSECS, and grdpSendDebugMsg().

Referenced by sendClkDiffTimeMsg().