#include <source/toolbox/restartdb/HDFDatabase.h>
Inheritance diagram for SAMRAI::tbox::HDFDatabase:

Public Member Functions | |
| HDFDatabase (const std::string &name) | |
| virtual | ~HDFDatabase () |
| virtual bool | keyExists (const std::string &key) |
| virtual Array< std::string > | getAllKeys () |
| virtual int | getArraySize (const std::string &key) |
| virtual bool | isDatabase (const std::string &key) |
| virtual Pointer< Database > | putDatabase (const std::string &key) |
| virtual Pointer< Database > | getDatabase (const std::string &key) |
| virtual bool | isBool (const std::string &key) |
| virtual void | putBool (const std::string &key, const bool &data) |
| virtual void | putBoolArray (const std::string &key, const Array< bool > &data) |
| virtual void | putBoolArray (const std::string &key, const bool *const data, const int nelements) |
| virtual bool | getBool (const std::string &key) |
| virtual bool | getBoolWithDefault (const std::string &key, const bool &defaultvalue) |
| virtual Array< bool > | getBoolArray (const std::string &key) |
| virtual void | getBoolArray (const std::string &key, bool *data, const int nelements) |
| virtual bool | isDatabaseBox (const std::string &key) |
| virtual void | putDatabaseBox (const std::string &key, const DatabaseBox &data) |
| virtual void | putDatabaseBoxArray (const std::string &key, const Array< DatabaseBox > &data) |
| virtual void | putDatabaseBoxArray (const std::string &key, const DatabaseBox *const data, const int nelements) |
| virtual DatabaseBox | getDatabaseBox (const std::string &key) |
| virtual DatabaseBox | getDatabaseBoxWithDefault (const std::string &key, const DatabaseBox &defaultvalue) |
| virtual Array< DatabaseBox > | getDatabaseBoxArray (const std::string &key) |
| virtual void | getDatabaseBoxArray (const std::string &key, DatabaseBox *data, const int nelements) |
| virtual bool | isChar (const std::string &key) |
| virtual void | putChar (const std::string &key, const char &data) |
| virtual void | putCharArray (const std::string &key, const Array< char > &data) |
| virtual void | putCharArray (const std::string &key, const char *const data, const int nelements) |
| virtual char | getChar (const std::string &key) |
| virtual char | getCharWithDefault (const std::string &key, const char &defaultvalue) |
| virtual Array< char > | getCharArray (const std::string &key) |
| virtual void | getCharArray (const std::string &key, char *data, const int nelements) |
| virtual bool | isComplex (const std::string &key) |
| virtual void | putComplex (const std::string &key, const dcomplex &data) |
| virtual void | putComplexArray (const std::string &key, const Array< dcomplex > &data) |
| virtual void | putComplexArray (const std::string &key, const dcomplex *const data, const int nelements) |
| virtual dcomplex | getComplex (const std::string &key) |
| virtual dcomplex | getComplexWithDefault (const std::string &key, const dcomplex &defaultvalue) |
| virtual Array< dcomplex > | getComplexArray (const std::string &key) |
| virtual void | getComplexArray (const std::string &key, dcomplex *data, const int nelements) |
| virtual bool | isDouble (const std::string &key) |
| virtual void | putDouble (const std::string &key, const double &data) |
| virtual void | putDoubleArray (const std::string &key, const Array< double > &data) |
| virtual void | putDoubleArray (const std::string &key, const double *const data, const int nelements) |
| virtual double | getDouble (const std::string &key) |
| virtual double | getDoubleWithDefault (const std::string &key, const double &defaultvalue) |
| virtual Array< double > | getDoubleArray (const std::string &key) |
| virtual void | getDoubleArray (const std::string &key, double *data, const int nelements) |
| virtual bool | isFloat (const std::string &key) |
| virtual void | putFloat (const std::string &key, const float &data) |
| virtual void | putFloatArray (const std::string &key, const Array< float > &data) |
| virtual void | putFloatArray (const std::string &key, const float *const data, const int nelements) |
| virtual float | getFloat (const std::string &key) |
| virtual float | getFloatWithDefault (const std::string &key, const float &defaultvalue) |
| virtual Array< float > | getFloatArray (const std::string &key) |
| virtual void | getFloatArray (const std::string &key, float *data, const int nelements) |
| virtual bool | isInteger (const std::string &key) |
| virtual void | putInteger (const std::string &key, const int &data) |
| virtual void | putIntegerArray (const std::string &key, const Array< int > &data) |
| virtual void | putIntegerArray (const std::string &key, const int *const data, const int nelements) |
| virtual int | getInteger (const std::string &key) |
| virtual int | getIntegerWithDefault (const std::string &key, const int &defaultvalue) |
| virtual Array< int > | getIntegerArray (const std::string &key) |
| virtual void | getIntegerArray (const std::string &key, int *data, const int nelements) |
| virtual bool | isString (const std::string &key) |
| virtual void | putString (const std::string &key, const std::string &data) |
| virtual void | putStringArray (const std::string &key, const Array< std::string > &data) |
| virtual void | putStringArray (const std::string &key, const std::string *const data, const int nelements) |
| virtual std::string | getString (const std::string &key) |
| virtual std::string | getStringWithDefault (const std::string &key, const std::string &defaultvalue) |
| virtual Array< std::string > | getStringArray (const std::string &key) |
| virtual void | getStringArray (const std::string &key, std::string *data, const int nelements) |
| virtual void | printClassData (std::ostream &os=pout) |
| virtual int | mount (const std::string &file_name, const std::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.
| SAMRAI::tbox::HDFDatabase::HDFDatabase | ( | const std::string & | name | ) |
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.
| SAMRAI::tbox::HDFDatabase::~HDFDatabase | ( | ) | [virtual] |
The database destructor closes the HDF5 group or data file.
| bool SAMRAI::tbox::HDFDatabase::keyExists | ( | const std::string & | key | ) | [virtual] |
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.
| Array< std::string > SAMRAI::tbox::HDFDatabase::getAllKeys | ( | ) | [virtual] |
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.
| int SAMRAI::tbox::HDFDatabase::getArraySize | ( | const std::string & | key | ) | [virtual] |
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.
| bool SAMRAI::tbox::HDFDatabase::isDatabase | ( | const std::string & | key | ) | [virtual] |
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.
| bool SAMRAI::tbox::HDFDatabase::isBool | ( | const std::string & | key | ) | [virtual] |
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.
| void SAMRAI::tbox::HDFDatabase::putBool | ( | const std::string & | key, | |
| const bool & | data | |||
| ) | [virtual] |
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.
| void SAMRAI::tbox::HDFDatabase::putBoolArray | ( | const std::string & | key, | |
| const Array< bool > & | data | |||
| ) | [virtual] |
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.
| void SAMRAI::tbox::HDFDatabase::putBoolArray | ( | const std::string & | key, | |
| const bool *const | data, | |||
| const int | nelements | |||
| ) | [virtual] |
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.
| bool SAMRAI::tbox::HDFDatabase::getBool | ( | const std::string & | key | ) | [virtual] |
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.
| bool SAMRAI::tbox::HDFDatabase::getBoolWithDefault | ( | const std::string & | key, | |
| const bool & | defaultvalue | |||
| ) | [virtual] |
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.
| Array< bool > SAMRAI::tbox::HDFDatabase::getBoolArray | ( | const std::string & | key | ) | [virtual] |
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.
| void SAMRAI::tbox::HDFDatabase::getBoolArray | ( | const std::string & | key, | |
| bool * | data, | |||
| const int | nelements | |||
| ) | [virtual] |
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.
| bool SAMRAI::tbox::HDFDatabase::isDatabaseBox | ( | const std::string & | key | ) | [virtual] |
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.
| void SAMRAI::tbox::HDFDatabase::putDatabaseBox | ( | const std::string & | key, | |
| const DatabaseBox & | data | |||
| ) | [virtual] |
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.
| void SAMRAI::tbox::HDFDatabase::putDatabaseBoxArray | ( | const std::string & | key, | |
| const Array< DatabaseBox > & | data | |||
| ) | [virtual] |
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.
| void SAMRAI::tbox::HDFDatabase::putDatabaseBoxArray | ( | const std::string & | key, | |
| const DatabaseBox *const | data, | |||
| const int | nelements | |||
| ) | [virtual] |
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.
| DatabaseBox SAMRAI::tbox::HDFDatabase::getDatabaseBox | ( | const std::string & | key | ) | [virtual] |
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.
| DatabaseBox SAMRAI::tbox::HDFDatabase::getDatabaseBoxWithDefault | ( | const std::string & | key, | |
| const DatabaseBox & | defaultvalue | |||
| ) | [virtual] |
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.
| Array< DatabaseBox > SAMRAI::tbox::HDFDatabase::getDatabaseBoxArray | ( | const std::string & | key | ) | [virtual] |
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.
| void SAMRAI::tbox::HDFDatabase::getDatabaseBoxArray | ( | const std::string & | key, | |
| DatabaseBox * | data, | |||
| const int | nelements | |||
| ) | [virtual] |
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.
| bool SAMRAI::tbox::HDFDatabase::isChar | ( | const std::string & | key | ) | [virtual] |
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.
| void SAMRAI::tbox::HDFDatabase::putChar | ( | const std::string & | key, | |
| const char & | data | |||
| ) | [virtual] |
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.
| void SAMRAI::tbox::HDFDatabase::putCharArray | ( | const std::string & | key, | |
| const Array< char > & | data | |||
| ) | [virtual] |
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.
| void SAMRAI::tbox::HDFDatabase::putCharArray | ( | const std::string & | key, | |
| const char *const | data, | |||
| const int | nelements | |||
| ) | [virtual] |
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.
| char SAMRAI::tbox::HDFDatabase::getChar | ( | const std::string & | key | ) | [virtual] |
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.
| char SAMRAI::tbox::HDFDatabase::getCharWithDefault | ( | const std::string & | key, | |
| const char & | defaultvalue | |||
| ) | [virtual] |
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.
| Array< char > SAMRAI::tbox::HDFDatabase::getCharArray | ( | const std::string & | key | ) | [virtual] |
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.
| void SAMRAI::tbox::HDFDatabase::getCharArray | ( | const std::string & | key, | |
| char * | data, | |||
| const int | nelements | |||
| ) | [virtual] |
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.
| bool SAMRAI::tbox::HDFDatabase::isComplex | ( | const std::string & | key | ) | [virtual] |
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.
| void SAMRAI::tbox::HDFDatabase::putComplex | ( | const std::string & | key, | |
| const dcomplex & | data | |||
| ) | [virtual] |
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.
| void SAMRAI::tbox::HDFDatabase::putComplexArray | ( | const std::string & | key, | |
| const Array< dcomplex > & | data | |||
| ) | [virtual] |
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.
| void SAMRAI::tbox::HDFDatabase::putComplexArray | ( | const std::string & | key, | |
| const dcomplex *const | data, | |||
| const int | nelements | |||
| ) | [virtual] |
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.
| dcomplex SAMRAI::tbox::HDFDatabase::getComplex | ( | const std::string & | key | ) | [virtual] |
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.
| dcomplex SAMRAI::tbox::HDFDatabase::getComplexWithDefault | ( | const std::string & | key, | |
| const dcomplex & | defaultvalue | |||
| ) | [virtual] |
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.
| void SAMRAI::tbox::HDFDatabase::getComplexArray | ( | const std::string & | key, | |
| dcomplex * | data, | |||
| const int | nelements | |||
| ) | [virtual] |
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.
| bool SAMRAI::tbox::HDFDatabase::isDouble | ( | const std::string & | key | ) | [virtual] |
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.
| void SAMRAI::tbox::HDFDatabase::putDouble | ( | const std::string & | key, | |
| const double & | data | |||
| ) | [virtual] |
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.
| void SAMRAI::tbox::HDFDatabase::putDoubleArray | ( | const std::string & | key, | |
| const Array< double > & | data | |||
| ) | [virtual] |
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.
| void SAMRAI::tbox::HDFDatabase::putDoubleArray | ( | const std::string & | key, | |
| const double *const | data, | |||
| const int | nelements | |||
| ) | [virtual] |
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.
| double SAMRAI::tbox::HDFDatabase::getDouble | ( | const std::string & | key | ) | [virtual] |
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.
| double SAMRAI::tbox::HDFDatabase::getDoubleWithDefault | ( | const std::string & | key, | |
| const double & | defaultvalue | |||
| ) | [virtual] |
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.
| Array< double > SAMRAI::tbox::HDFDatabase::getDoubleArray | ( | const std::string & | key | ) | [virtual] |
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.
| void SAMRAI::tbox::HDFDatabase::getDoubleArray | ( | const std::string & | key, | |
| double * | data, | |||
| const int | nelements | |||
| ) | [virtual] |
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.
| bool SAMRAI::tbox::HDFDatabase::isFloat | ( | const std::string & | key | ) | [virtual] |
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.
| void SAMRAI::tbox::HDFDatabase::putFloat | ( | const std::string & | key, | |
| const float & | data | |||
| ) | [virtual] |
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.
| void SAMRAI::tbox::HDFDatabase::putFloatArray | ( | const std::string & | key, | |
| const Array< float > & | data | |||
| ) | [virtual] |
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.
| void SAMRAI::tbox::HDFDatabase::putFloatArray | ( | const std::string & | key, | |
| const float *const | data, | |||
| const int | nelements | |||
| ) | [virtual] |
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.
| float SAMRAI::tbox::HDFDatabase::getFloat | ( | const std::string & | key | ) | [virtual] |
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.
| float SAMRAI::tbox::HDFDatabase::getFloatWithDefault | ( | const std::string & | key, | |
| const float & | defaultvalue | |||
| ) | [virtual] |
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.
| Array< float > SAMRAI::tbox::HDFDatabase::getFloatArray | ( | const std::string & | key | ) | [virtual] |
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.
| void SAMRAI::tbox::HDFDatabase::getFloatArray | ( | const std::string & | key, | |
| float * | data, | |||
| const int | nelements | |||
| ) | [virtual] |
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.
| bool SAMRAI::tbox::HDFDatabase::isInteger | ( | const std::string & | key | ) | [virtual] |
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.
| void SAMRAI::tbox::HDFDatabase::putInteger | ( | const std::string & | key, | |
| const int & | data | |||
| ) | [virtual] |
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.
| void SAMRAI::tbox::HDFDatabase::putIntegerArray | ( | const std::string & | key, | |
| const Array< int > & | data | |||
| ) | [virtual] |
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.
| void SAMRAI::tbox::HDFDatabase::putIntegerArray | ( | const std::string & | key, | |
| const int *const | data, | |||
| const int | nelements | |||
| ) | [virtual] |
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.
| int SAMRAI::tbox::HDFDatabase::getInteger | ( | const std::string & | key | ) | [virtual] |
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.
| int SAMRAI::tbox::HDFDatabase::getIntegerWithDefault | ( | const std::string & | key, | |
| const int & | defaultvalue | |||
| ) | [virtual] |
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.
| Array< int > SAMRAI::tbox::HDFDatabase::getIntegerArray | ( | const std::string & | key | ) | [virtual] |
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.
| void SAMRAI::tbox::HDFDatabase::getIntegerArray | ( | const std::string & | key, | |
| int * | data, | |||
| const int | nelements | |||
| ) | [virtual] |
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.
| bool SAMRAI::tbox::HDFDatabase::isString | ( | const std::string & | key | ) | [virtual] |
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.
| void SAMRAI::tbox::HDFDatabase::putString | ( | const std::string & | key, | |
| const std::string & | data | |||
| ) | [virtual] |
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.
| void SAMRAI::tbox::HDFDatabase::putStringArray | ( | const std::string & | key, | |
| const Array< std::string > & | data | |||
| ) | [virtual] |
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.
| void SAMRAI::tbox::HDFDatabase::putStringArray | ( | const std::string & | key, | |
| const std::string *const | data, | |||
| const int | nelements | |||
| ) | [virtual] |
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.
| std::string SAMRAI::tbox::HDFDatabase::getString | ( | const std::string & | key | ) | [virtual] |
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.
| std::string SAMRAI::tbox::HDFDatabase::getStringWithDefault | ( | const std::string & | key, | |
| const std::string & | defaultvalue | |||
| ) | [virtual] |
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.
| Array< std::string > SAMRAI::tbox::HDFDatabase::getStringArray | ( | const std::string & | key | ) | [virtual] |
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.
| void SAMRAI::tbox::HDFDatabase::getStringArray | ( | const std::string & | key, | |
| std::string * | data, | |||
| const int | nelements | |||
| ) | [virtual] |
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.
| void SAMRAI::tbox::HDFDatabase::printClassData | ( | std::ostream & | os = pout |
) | [virtual] |
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.
| int SAMRAI::tbox::HDFDatabase::mount | ( | const std::string & | file_name, | |
| const std::string & | flags | |||
| ) | [virtual] |
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.
| void SAMRAI::tbox::HDFDatabase::unmount | ( | ) | [virtual] |
Close the database file.
| hid_t SAMRAI::tbox::HDFDatabase::getGroupId | ( | ) |
Return the group_id so VisIt can access an object's HDF database.
1.5.1