#include <source/toolbox/restartdb/HDFDatabase.h>
Inheritance diagram for SAMRAI::tbox::HDFDatabase:
Public Member Functions | |
HDFDatabase (const string &name) | |
virtual | ~HDFDatabase () |
virtual bool | keyExists (const string &key) |
virtual Array< string > | getAllKeys () |
virtual int | getArraySize (const string &key) |
virtual bool | isDatabase (const string &key) |
virtual Pointer< Database > | putDatabase (const string &key) |
virtual Pointer< Database > | getDatabase (const string &key) |
virtual bool | isBool (const string &key) |
virtual void | putBool (const string &key, const bool &data) |
virtual void | putBoolArray (const string &key, const Array< bool > &data) |
virtual void | putBoolArray (const string &key, const bool *const data, const int nelements) |
virtual bool | getBool (const string &key) |
virtual bool | getBoolWithDefault (const string &key, const bool &defaultvalue) |
virtual Array< bool > | getBoolArray (const string &key) |
virtual void | getBoolArray (const string &key, bool *data, const int nelements) |
virtual bool | isDatabaseBox (const string &key) |
virtual void | putDatabaseBox (const string &key, const DatabaseBox &data) |
virtual void | putDatabaseBoxArray (const string &key, const Array< DatabaseBox > &data) |
virtual void | putDatabaseBoxArray (const string &key, const DatabaseBox *const data, const int nelements) |
virtual DatabaseBox | getDatabaseBox (const string &key) |
virtual DatabaseBox | getDatabaseBoxWithDefault (const string &key, const DatabaseBox &defaultvalue) |
virtual Array< DatabaseBox > | getDatabaseBoxArray (const string &key) |
virtual void | getDatabaseBoxArray (const string &key, DatabaseBox *data, const int nelements) |
virtual bool | isChar (const string &key) |
virtual void | putChar (const string &key, const char &data) |
virtual void | putCharArray (const string &key, const Array< char > &data) |
virtual void | putCharArray (const string &key, const char *const data, const int nelements) |
virtual char | getChar (const string &key) |
virtual char | getCharWithDefault (const string &key, const char &defaultvalue) |
virtual Array< char > | getCharArray (const string &key) |
virtual void | getCharArray (const string &key, char *data, const int nelements) |
virtual bool | isComplex (const string &key) |
virtual void | putComplex (const string &key, const dcomplex &data) |
virtual void | putComplexArray (const string &key, const Array< dcomplex > &data) |
virtual void | putComplexArray (const string &key, const dcomplex *const data, const int nelements) |
virtual dcomplex | getComplex (const string &key) |
virtual dcomplex | getComplexWithDefault (const string &key, const dcomplex &defaultvalue) |
virtual Array< dcomplex > | getComplexArray (const string &key) |
virtual void | getComplexArray (const string &key, dcomplex *data, const int nelements) |
virtual bool | isDouble (const string &key) |
virtual void | putDouble (const string &key, const double &data) |
virtual void | putDoubleArray (const string &key, const Array< double > &data) |
virtual void | putDoubleArray (const string &key, const double *const data, const int nelements) |
virtual double | getDouble (const string &key) |
virtual double | getDoubleWithDefault (const string &key, const double &defaultvalue) |
virtual Array< double > | getDoubleArray (const string &key) |
virtual void | getDoubleArray (const string &key, double *data, const int nelements) |
virtual bool | isFloat (const string &key) |
virtual void | putFloat (const string &key, const float &data) |
virtual void | putFloatArray (const string &key, const Array< float > &data) |
virtual void | putFloatArray (const string &key, const float *const data, const int nelements) |
virtual float | getFloat (const string &key) |
virtual float | getFloatWithDefault (const string &key, const float &defaultvalue) |
virtual Array< float > | getFloatArray (const string &key) |
virtual void | getFloatArray (const string &key, float *data, const int nelements) |
virtual bool | isInteger (const string &key) |
virtual void | putInteger (const string &key, const int &data) |
virtual void | putIntegerArray (const string &key, const Array< int > &data) |
virtual void | putIntegerArray (const string &key, const int *const data, const int nelements) |
virtual int | getInteger (const string &key) |
virtual int | getIntegerWithDefault (const string &key, const int &defaultvalue) |
virtual Array< int > | getIntegerArray (const string &key) |
virtual void | getIntegerArray (const string &key, int *data, const int nelements) |
virtual bool | isString (const string &key) |
virtual void | putString (const string &key, const string &data) |
virtual void | putStringArray (const string &key, const Array< string > &data) |
virtual void | putStringArray (const string &key, const string *const data, const int nelements) |
virtual string | getString (const string &key) |
virtual string | getStringWithDefault (const string &key, const string &defaultvalue) |
virtual Array< string > | getStringArray (const string &key) |
virtual void | getStringArray (const string &key, string *data, const int nelements) |
virtual void | printClassData (ostream &os=pout) |
virtual int | mount (const string &file_name, const string &flags) |
virtual void | unmount () |
hid_t | getGroupId () |
It is assumed that all processors will access the database in the same manner. Error reporting is done using the SAMRAI error reporting macros.
|
The HDF database constructor creates an empty database with the specified name. By default the database will not be associated with a file until it is mounted, using the mount() member function. When assertion checking is active, the name string must be non-empty. |
|
The database destructor closes the HDF5 group or data file. |
|
Return true if the specified key exists in the database and false otherwise. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Return an array of all keys in the current database. Note that no keys from subdatabases contained in the current database will appear in the array. To get the keys of any other database, you must call this routine for that database. Implements SAMRAI::tbox::Database. |
|
Return the size of the array associated with the key. If the key does not exist, then zero is returned. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Return true or false depending on whether the specified key represents a database entry. If the key does not exist or if the string is empty, then false is returned. Implements SAMRAI::tbox::Database. |
|
Create a new database with the specified key name and return a pointer to it. A new group with the key name is also created in the data file. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Get the database with the specified key name. If the specified key does not represent a database entry in the database, then an error message is printed and the program exits. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Return true or false depending on whether the specified key represents a boolean entry. If the key does not exist or if the string is empty, then false is returned. Implements SAMRAI::tbox::Database. |
|
Create a boolean scalar entry in the database with the specified key name. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Create a boolean array entry in the database with the specified key name. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Create a boolean array entry in the database with the specified key name. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Get a boolean entry in the database with the specified key name. If the specified key does not exist in the database, then an error message is printed and the program exits. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Get a boolean entry in the database with the specified key name. If the specified key does not exist in the database, then the default value is returned. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Get a boolean entry from the database with the specified key name. If the specified key does not exist in the database, then an error message is printed and the program exits. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Get a boolean entry from the database with the specified key name. If the specified key does not exist in the database, or the given number of elements does no match the number of elements in the database, then an error message is printed and the program exits. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Return true or false depending on whether the specified key represents a box entry. If the key does not exist or if the string is empty, then false is returned. Implements SAMRAI::tbox::Database. |
|
Create a box scalar entry in the database with the specified key name. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Create a box array entry in the database with the specified key name. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Create a box array entry in the database with the specified key name. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Get a box entry in the database with the specified key name. If the specified key does not exist in the database, then an error message is printed and the program exits. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Get a box entry in the database with the specified key name. If the specified key does not exist in the database, then the default value is returned. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Get a box entry from the database with the specified key name. If the specified key does not exist in the database, then an error message is printed and the program exits. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Get a box entry from the database with the specified key name. If the specified key does not exist in the database, or the given number of elements does no match the number of elements in the database, then an error message is printed and the program exits. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Return true or false depending on whether the specified key represents a char entry. If the key does not exist or if the string is empty, then false is returned. Implements SAMRAI::tbox::Database. |
|
Create a character scalar entry in the database with the specified key name. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Create a character array entry in the database with the specified key name. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Create a character array entry in the database with the specified key name. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Get a character entry in the database with the specified key name. If the specified key does not exist in the database, then an error message is printed and the program exits. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Get a character entry in the database with the specified key name. If the specified key does not exist in the database, then the default value is returned. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Get a character entry from the database with the specified key name. If the specified key does not exist in the database, then an error message is printed and the program exits. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Get a character entry from the database with the specified key name. If the specified key does not exist in the database, or the given number of elements does no match the number of elements in the database, then an error message is printed and the program exits. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Return true or false depending on whether the specified key represents a complex entry. If the key does not exist or if the string is empty, then false is returned. Implements SAMRAI::tbox::Database. |
|
Create a complex scalar entry in the database with the specified key name. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Create a complex array entry in the database with the specified key name. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Create a complex array entry in the database with the specified key name. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Get a complex entry in the database with the specified key name. If the specified key does not exist in the database then an error message is printed and the program exits. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Get a complex entry in the database with the specified key name. If the specified key does not exist in the database, then the default value is returned. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Get a complex entry from the database with the specified key name. If the specified key does not exist in the database then an error message is printed and the program exits. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Get a complex entry from the database with the specified key name. If the specified key does not exist in the database, or the given number of elements does no match the number of elements in the database, then an error message is printed and the program exits. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Return true or false depending on whether the specified key represents a double entry. If the key does not exist or if the string is empty, then false is returned. Implements SAMRAI::tbox::Database. |
|
Create a double scalar entry in the database with the specified key name. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Create a double array entry in the database with the specified key name. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Create a double array entry in the database with the specified key name. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Get a double entry in the database with the specified key name. If the specified key does not exist in the database then an error message is printed and the program exits. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Get a double entry in the database with the specified key name. If the specified key does not exist in the database, then the default value is returned. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Get a double entry from the database with the specified key name. If the specified key does not exist in the database then an error message is printed and the program exits. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Get a double entry from the database with the specified key name. If the specified key does not exist in the database, or the given number of elements does no match the number of elements in the database, then an error message is printed and the program exits. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Return true or false depending on whether the specified key represents a float entry. If the key does not exist or if the string is empty, then false is returned. Implements SAMRAI::tbox::Database. |
|
Create a float scalar entry in the database with the specified key name. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Create a float array entry in the database with the specified key name. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Create a float array entry in the database with the specified key name. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Get a float entry in the database with the specified key name. If the specified key does not exist in the database then an error message is printed and the program exits. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Get a float entry in the database with the specified key name. If the specified key does not exist in the database, then the default value is returned. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Get a float entry from the database with the specified key name. If the specified key does not exist in the database then an error message is printed and the program exits. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Get a float entry from the database with the specified key name. If the specified key does not exist in the database, or the given number of elements does no match the number of elements in the database, then an error message is printed and the program exits. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Return true or false depending on whether the specified key represents an integer entry. If the key does not exist or if the string is empty, then false is returned. Implements SAMRAI::tbox::Database. |
|
Create an integer scalar entry in the database with the specified key name. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Create an integer array entry in the database with the specified key name. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Create an integer array entry in the database with the specified key name. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Get an integer entry in the database with the specified key name. If the specified key does not exist in the database then an error message is printed and the program exits. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Get an integer entry in the database with the specified key name. If the specified key does not exist in the database, then the default value is returned. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Get an integer entry from the database with the specified key name. If the specified key does not exist in the database then an error message is printed and the program exits. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Get an integer entry from the database with the specified key name. If the specified key does not exist in the database, or the given number of elements does no match the number of elements in the database, then an error message is printed and the program exits. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Return true or false depending on whether the specified key represents a string entry. If the key does not exist or if the string is empty, then false is returned. Implements SAMRAI::tbox::Database. |
|
Create a string scalar entry in the database with the specified key name. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Create a string array entry in the database with the specified key name. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Create a string array entry in the database with the specified key name. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Get a string entry in the database with the specified key name. If the specified key does not exist in the database then an error message is printed and the program exits. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Get a string entry in the database with the specified key name. If the specified key does not exist in the database, then the default value is returned. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Get a string entry from the database with the specified key name. If the specified key does not exist in the database then an error message is printed and the program exits. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Get a string entry from the database with the specified key name. If the specified key does not exist in the database, or the given number of elements does no match the number of elements in the database, then an error message is printed and the program exits. When assertion checking is active, the key string must be non-empty. Implements SAMRAI::tbox::Database. |
|
Print contents of current database to the specified output stream. If no output stream is specified, then data is written to stream pout. Note that none of the subdatabases contained in the current database will have their contents printed. To view the contents of any other database, you must call this print routine for that database. Implements SAMRAI::tbox::Database. |
|
Open a database file using the fileName. The file name string is the name of the file to open. The flags string is the name of the file status: possible values are "R" for read only and "W" for write. When assertion checking is active, strings must be non-empty. |
|
Close the database file. |
|
Return the group_id so VisIt can access an object's HDF database. |