VAPOR3 3.9.4
Public Member Functions | List of all members
VAPoR::CalcEngineMgr Class Reference

A class for managing CalcEngine class instances. More...

#include <CalcEngineMgr.h>

Inheritance diagram for VAPoR::CalcEngineMgr:
Wasp::MyBase

Public Member Functions

 CalcEngineMgr (DataStatus *dataStatus, ParamsMgr *paramsMgr)
 
 ~CalcEngineMgr ()
 
int AddFunction (string scriptType, string dataSetName, string scriptName, string script, const vector< string > &inputVarNames, const vector< string > &outputVarNames, const vector< string > &outputVarMeshes, bool coordFlag=false)
 
void RemoveFunction (string scriptType, string dataSetName, string scriptName)
 
bool GetFunctionScript (string scriptType, string datasetName, string scriptName, string &script, vector< string > &inputVarNames, vector< string > &outputVarNames, vector< string > &outputVarMeshes, bool &coordFlag)
 
string GetFunctionStdout (string scriptType, string dataSetName, string scriptName)
 
std::vector< string > GetFunctionNames (string scriptType, string datasetName)
 
void ReinitFromState ()
 
void Clean ()
 
- Public Member Functions inherited from Wasp::MyBase
 MyBase ()
 
const string & getClassName () const
 

Additional Inherited Members

- Public Types inherited from Wasp::MyBase
typedef void(* ErrMsgCB_T) (const char *msg, int err_code)
 
typedef void(* DiagMsgCB_T) (const char *msg)
 
- Static Public Member Functions inherited from Wasp::MyBase
static void SetErrMsg (const char *format,...)
 Record a formatted error message.
 
static void SetErrMsg (int errcode, const char *format,...)
 Record a formatted error message and an error code.
 
static const char * GetErrMsg ()
 
static void SetErrCode (int err_code)
 Record an error code.
 
static int GetErrCode ()
 Retrieve the current error code.
 
static void SetErrMsgCB (ErrMsgCB_T cb)
 
static ErrMsgCB_T GetErrMsgCB ()
 
static void SetErrMsgFilePtr (FILE *fp)
 
static const FILE * SetErrMsgFilePtr ()
 
static void SetDiagMsg (const char *format,...)
 Record a formatted diagnostic message.
 
static const char * GetDiagMsg ()
 
static void SetDiagMsgCB (DiagMsgCB_T cb)
 
static DiagMsgCB_T GetDiagMsgCB ()
 
static void SetDiagMsgFilePtr (FILE *fp)
 
static bool EnableErrMsg (bool enable)
 
static bool GetEnableErrMsg ()
 
- Static Public Attributes inherited from Wasp::MyBase
static char * ErrMsg
 
static int ErrCode
 
static int ErrMsgSize
 
static FILE * ErrMsgFilePtr
 
static ErrMsgCB_T ErrMsgCB
 
static char * DiagMsg
 
static int DiagMsgSize
 
static FILE * DiagMsgFilePtr
 
static DiagMsgCB_T DiagMsgCB
 
static bool Enabled
 
- Protected Member Functions inherited from Wasp::MyBase
void SetClassName (const string &name)
 

Detailed Description

A class for managing CalcEngine class instances.

Author
John Clyne

Definition at line 16 of file CalcEngineMgr.h.

Constructor & Destructor Documentation

◆ CalcEngineMgr()

VAPoR::CalcEngineMgr::CalcEngineMgr ( DataStatus dataStatus,
ParamsMgr paramsMgr 
)
inline

Constructor for CalcEngineMgr class

Parameters
[in]dataMgrA pointer to a DataMgr instance upon which derived variables created by this class will be managed.

Definition at line 23 of file CalcEngineMgr.h.

References VAssert.

◆ ~CalcEngineMgr()

VAPoR::CalcEngineMgr::~CalcEngineMgr ( )

Member Function Documentation

◆ AddFunction()

int VAPoR::CalcEngineMgr::AddFunction ( string  scriptType,
string  dataSetName,
string  scriptName,
string  script,
const vector< string > &  inputVarNames,
const vector< string > &  outputVarNames,
const vector< string > &  outputVarMeshes,
bool  coordFlag = false 
)

◆ Clean()

void VAPoR::CalcEngineMgr::Clean ( )
inline

Remove all functions added with AddFunction()

See also
AddFunction()

Definition at line 56 of file CalcEngineMgr.h.

◆ GetFunctionNames()

std::vector< string > VAPoR::CalcEngineMgr::GetFunctionNames ( string  scriptType,
string  datasetName 
)

◆ GetFunctionScript()

bool VAPoR::CalcEngineMgr::GetFunctionScript ( string  scriptType,
string  datasetName,
string  scriptName,
string &  script,
vector< string > &  inputVarNames,
vector< string > &  outputVarNames,
vector< string > &  outputVarMeshes,
bool &  coordFlag 
)

◆ GetFunctionStdout()

string VAPoR::CalcEngineMgr::GetFunctionStdout ( string  scriptType,
string  dataSetName,
string  scriptName 
)

◆ ReinitFromState()

void VAPoR::CalcEngineMgr::ReinitFromState ( )
inline

Rebuild from params database

When invoked this method rebuilds internal state using the ParamsMgr paramsMgr passed in to the constructor

Definition at line 51 of file CalcEngineMgr.h.

◆ RemoveFunction()

void VAPoR::CalcEngineMgr::RemoveFunction ( string  scriptType,
string  dataSetName,
string  scriptName 
)

The documentation for this class was generated from the following file: