VAPOR3 3.9.4
|
Nodes with state in Xml tree representation. More...
#include <ParamsBase.h>
Classes | |
class | StateSave |
State capture class. More... | |
Public Member Functions | |
ParamsBase (StateSave *ssave, const string &classname) | |
ParamsBase (StateSave *ssave, XmlNode *node) | |
ParamsBase (const ParamsBase &rhs) | |
Copy constructor. | |
ParamsBase & | operator= (const ParamsBase &rhs) |
ParamsBase (ParamsBase &&)=delete | |
ParamsBase & | operator= (ParamsBase &)=delete |
bool | operator== (const ParamsBase &rhs) const |
Equivalence operator. | |
bool | operator!= (const ParamsBase &rhs) const |
virtual | ~ParamsBase () |
void | SetParent (ParamsBase *parent) |
XmlNode * | GetNode () const |
void | BeginGroup (const string &description) |
void | EndGroup () |
void | IntermediateChange () |
virtual vector< long > | GetValueLongVec (const string tag) const |
virtual vector< long > | GetValueLongVec (const string tag, const vector< long > &defaultVal) const |
virtual long | GetValueLong (const string tag, long defaultVal) const |
virtual vector< double > | GetValueDoubleVec (const string tag) const |
virtual vector< double > | GetValueDoubleVec (const string tag, const vector< double > &defaultVal) const |
virtual double | GetValueDouble (const string tag, double defaultVal) const |
virtual vector< string > | GetValueStringVec (const string tag) const |
virtual vector< string > | GetValueStringVec (const string tag, const vector< string > &defaultVal) const |
virtual string | GetValueString (const string tag, string defaultVal) const |
virtual void | SetValueLongVec (const string &tag, string description, const vector< long > &values) |
virtual void | SetValueLong (const string &tag, string description, long value) |
virtual void | SetValueDoubleVec (const string &tag, string description, const vector< double > &values) |
virtual void | SetValueDouble (const string &tag, string description, double value) |
virtual void | SetValueStringVec (const string &tag, string description, const vector< string > &values) |
virtual void | SetValueString (const string &tag, string description, const string &value) |
string | GetName () const |
Public Member Functions inherited from Wasp::MyBase | |
MyBase () | |
const string & | getClassName () const |
Protected Member Functions | |
ParamsBase (StateSave *ssave) | |
void | Remove (const string &name) |
const map< string, string > & | GetAttributes () |
void | Clear () |
Protected Member Functions inherited from Wasp::MyBase | |
void | SetClassName (const string &name) |
Protected Attributes | |
StateSave * | _ssave |
XmlNode * | _node |
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 |
Nodes with state in Xml tree representation.
This is pure abstract base class that may be derived for to maintain parameter state information in a manner that supports session save/restore and undo/redo operations. All session state is maintained in an XML tree that may be written to a file and subsequently used to reinitialize ParamsBase class objects.
Definition at line 50 of file ParamsBase.h.
VAPoR::ParamsBase::ParamsBase | ( | StateSave * | ssave, |
const string & | classname | ||
) |
Create a ParamsBase object from scratch
[in] | ssave | StateSave class object that will be used to record state changes made to this class. |
[in] | classname | The string identifier associated with a derived class that will be used to create new instances of that class via the ParamsFactory factory object. |
Create a ParamsBase object from an existing XmlNode tree
This method will construct a ParamsBase object using an existing XML tree. Hence it should NOT do any initialization that changes parameter values.
VAPoR::ParamsBase::ParamsBase | ( | const ParamsBase & | rhs | ) |
Copy constructor.
|
delete |
Explicit delete the two flavors of move constructor, so they ain't called accidentally.
|
virtual |
Destroy object
Destroys all resources except possibly the XmlNode and its children associated with this object. If this objects node is a root node (i.e. has no parent) the node is freed. Otherwise it is not.
|
protected |
|
inline |
Definition at line 138 of file ParamsBase.h.
|
protected |
Remove (undefine) all parameters
This method deletes any and all paramters contained in the base class as well as deleting any tree branches.
|
inline |
Definition at line 139 of file ParamsBase.h.
|
protected |
Return the attributes associated with the current branch
map | attribute mapping |
|
inline |
Method for obtaining the name and/or tag associated with the instance
Definition at line 175 of file ParamsBase.h.
References VAssert.
|
inline |
Definition at line 136 of file ParamsBase.h.
Referenced by VAPoR::ParamsContainer::SetParent().
|
virtual |
Referenced by AnimationParams::GetMaxFrameRate().
|
virtual |
|
virtual |
|
virtual |
Referenced by AppSettingsParams::GetAutosaveEnabled(), AppSettingsParams::GetCurrentAutosaveEnabled(), AppSettingsParams::GetCurrentLogfileEnabled(), AppSettingsParams::GetCurrentMessageSilence(), AppSettingsParams::GetCurrentShowCitation(), AppSettingsParams::GetCurrentShowWarning(), AnimationParams::GetCurrentTimestep(), AppSettingsParams::GetCurrentTrackMouse(), AppSettingsParams::GetCurrentUseLessAccurate(), AnimationParams::GetEndTimestep(), AnimationParams::GetFrameStepSize(), BookmarkParams::GetIconSize(), AppSettingsParams::GetLogfileEnabled(), AppSettingsParams::GetMessageSilence(), AnimationParams::GetPlayBackwards(), AnimationParams::GetRepeating(), AppSettingsParams::GetShowCitation(), AppSettingsParams::GetShowWarning(), AnimationParams::GetStartTimestep(), AppSettingsParams::GetTrackMouse(), and AppSettingsParams::GetUseLessAccurate().
|
virtual |
|
virtual |
|
virtual |
Referenced by AppSettingsParams::GetAutosaveName(), AppSettingsParams::GetCurrentAutosaveName(), AppSettingsParams::GetCurrentLogFileName(), MouseModeParams::GetCurrentMouseMode(), BookmarkParams::GetData(), BookmarkParams::GetIconData(), AppSettingsParams::GetLogFileName(), BookmarkParams::GetName(), and GUIStateParams::GetProjectionString().
|
virtual |
|
virtual |
|
inline |
Definition at line 140 of file ParamsBase.h.
|
inline |
Definition at line 115 of file ParamsBase.h.
ParamsBase & VAPoR::ParamsBase::operator= | ( | const ParamsBase & | rhs | ) |
|
delete |
|
inline |
|
protected |
Delete the named branch.
This method deletes the named child, and all decendents, of the current destroying it's contents in the process. The named node must be a child of the current node. If the named node does not exist the result is a no-op.
[in] | name | The name of the branch |
void VAPoR::ParamsBase::SetParent | ( | ParamsBase * | parent | ) |
Set parent
This method sets the parent of the ParamsBase class to parent
, modifying both this class instance and the parent
[in] | parent | A pointer to a parent ParamsBase class . If NULL the class will become parentless |
|
virtual |
Referenced by AnimationParams::SetMaxFrameRate().
|
virtual |
|
virtual |
Referenced by AppSettingsParams::SetAutosaveEnabled(), AppSettingsParams::SetCurrentAutosaveEnabled(), AppSettingsParams::SetCurrentLogfileEnabled(), AppSettingsParams::SetCurrentMessageSilence(), AppSettingsParams::SetCurrentShowCitation(), AppSettingsParams::SetCurrentShowWarning(), AnimationParams::SetCurrentTimestep(), AppSettingsParams::SetCurrentTrackMouse(), AppSettingsParams::SetCurrentUseLessAccurate(), AnimationParams::SetEndTimestep(), AnimationParams::SetFrameStepSize(), AppSettingsParams::SetLogfileEnabled(), AppSettingsParams::SetMessageSilence(), AnimationParams::SetPlayBackwards(), AnimationParams::SetRepeating(), AppSettingsParams::SetShowCitation(), AppSettingsParams::SetShowWarning(), AnimationParams::SetStartTimestep(), AppSettingsParams::SetTrackMouse(), and AppSettingsParams::SetUseLessAccurate().
|
virtual |
|
virtual |
|
virtual |
|
protected |
Definition at line 210 of file ParamsBase.h.
Referenced by operator==().
|
protected |
Definition at line 209 of file ParamsBase.h.
Referenced by operator==().