A class for managing data set metadata.
More...
#include <ImpExp.h>
|
| 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]) |
|
| MyBase () |
|
const string & | getClassName () const |
|
virtual | ~ParsedXml () |
|
virtual bool | charHandler (ExpatParseMgr *, const XML_Char *, int) |
|
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.
VAPoR::ImpExp::ImpExp |
( |
| ) |
|
Create an Import Export object
virtual VAPoR::ImpExp::~ImpExp |
( |
| ) |
|
|
virtual |
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] | path | Path to the metadata file |
[in] | ts | Time step of exported volume |
[in] | varname | Variable name of exported volume |
[in] | min | Minimum region extents in voxel coordinates relative to the finest resolution |
[in] | max | Maximum region extents in voxel coordinates relative to the finest resolution |
[in] | timeseg | Time segment range |
- Return values
-
status | Returns 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] | path | Path to the metadata file |
[out] | ts | Time step of exported volume |
[out] | varname | Variable name of exported volume |
[out] | min | Minimum region extents in voxel coordinates relative to the finest resolution |
[out] | max | Maximum region extents in voxel coordinates relative to the finest resolution |
[out] | timeseg | Time segment range |
- Return values
-
status | Returns a non-negative integer on success |
- See also
- Export()
The documentation for this class was generated from the following file: