VAPoR  0.1
Public Member Functions | Static Public Member Functions | List of all members
VAPoR::ImpExp Class Reference

A class for managing data set metadata. More...

#include <ImpExp.h>

Inheritance diagram for VAPoR::ImpExp:
VetsUtil::MyBase VAPoR::ParsedXml

Public Member Functions

 ImpExp ()
 
virtual ~ImpExp ()
 
int Export (const string &path, size_t ts, const string &varname, const size_t min[3], const size_t max[3], const size_t timeseg[2])
 
int Import (string *path, size_t *ts, string *varname, size_t min[3], size_t max[3], size_t timeseg[2])
 
- Public Member Functions inherited from VetsUtil::MyBase
 MyBase ()
 
const string & getClassName () const
 
- Public Member Functions inherited from VAPoR::ParsedXml
virtual ~ParsedXml ()
 
virtual bool charHandler (ExpatParseMgr *, const XML_Char *, int)
 

Static Public Member Functions

static string GetPath ()
 
- Static Public Member Functions inherited from VetsUtil::MyBase
static void SetErrMsg (const char *format,...)
 Record a formatted error message. More...
 
static void SetErrMsg (int errcode, const char *format,...)
 Record a formatted error message and an error code. More...
 
static const char * GetErrMsg ()
 
static void SetErrCode (int err_code)
 Record an error code. More...
 
static int GetErrCode ()
 Retrieve the current error code. More...
 
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. More...
 
static const char * GetDiagMsg ()
 
static void SetDiagMsgCB (DiagMsgCB_T cb)
 
static DiagMsgCB_T GetDiagMsgCB ()
 
static void SetDiagMsgFilePtr (FILE *fp)
 
static bool EnableErrMsg (bool enable)
 

Additional Inherited Members

- Public Types inherited from VetsUtil::MyBase
typedef void(* ErrMsgCB_T) (const char *msg, int err_code)
 
typedef void(* DiagMsgCB_T) (const char *msg)
 
- Public Attributes inherited from VAPoR::ParsedXml
ParsedXmlpreviousClass
 
- Static Public Attributes inherited from VetsUtil::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 VetsUtil::MyBase
void SetClassName (const string &name)
 
- Static Protected Attributes inherited from VAPoR::ParsedXml
static const string _stringType
 
static const string _longType
 
static const string _doubleType
 
static const string _typeAttr
 

Detailed Description

A class for managing data set metadata.

Author
John Clyne
Version
$Revision$
Date
$Date$

The ImpExp class is used to import/export state to/from a VAPoR session

Definition at line 30 of file ImpExp.h.

Constructor & Destructor Documentation

VAPoR::ImpExp::ImpExp ( )

Create an Import Export object

virtual VAPoR::ImpExp::~ImpExp ( )
virtual

Member Function Documentation

int VAPoR::ImpExp::Export ( const string &  path,
size_t  ts,
const string &  varname,
const size_t  min[3],
const size_t  max[3],
const size_t  timeseg[2] 
)

Export a volume subregion description for use by another application

This method exports data set state information to facilitate sharing with another application. In particular, the path name of the VDF file, a volume time step, a named volume variable, and volumetric region of interest are exported. The exported information may be retreive via the Import() method

Note
The region bounds are specified relative to the finest resolution volume
Presently the medium of exchange is an XML file, the path to which is internally hardwired and based on the user's uid. Thus it is not possible for applications running under different uid's to share data. Furthermore, there exists only one XML file per uid on a system. This will undoubtedly change in the future.
Parameters
[in]pathPath to the metadata file
[in]tsTime step of exported volume
[in]varnameVariable name of exported volume
[in]minMinimum region extents in voxel coordinates relative to the finest resolution
[in]maxMaximum region extents in voxel coordinates relative to the finest resolution
[in]timesegTime segment range
Return values
statusReturns a non-negative integer on success
See also
Import()
static string VAPoR::ImpExp::GetPath ( )
static
int VAPoR::ImpExp::Import ( string *  path,
size_t *  ts,
string *  varname,
size_t  min[3],
size_t  max[3],
size_t  timeseg[2] 
)

Import a volume subregion description for use by another application

This method imports data set state information to facilitate sharing with another application. In particular, the path name of the VDF file, a volume time step, a named volume variable, and volumetric region of interest are imported. The imported information is assumed to have been generated via the the most recent call to the Export() method.

Parameters
[out]pathPath to the metadata file
[out]tsTime step of exported volume
[out]varnameVariable name of exported volume
[out]minMinimum region extents in voxel coordinates relative to the finest resolution
[out]maxMaximum region extents in voxel coordinates relative to the finest resolution
[out]timesegTime segment range
Return values
statusReturns a non-negative integer on success
See also
Export()

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