Definition of H5Fed C++ interface, class definition and implementation, first material.

This commit is contained in:
Benedikt Oswald
2007-12-17 12:41:37 +00:00
parent 5e0c8a67cd
commit bfcacfddc8
2 changed files with 18 additions and 7 deletions
+17
View File
@@ -34,6 +34,15 @@
/** include proprietary header files */
#include <H5Fed.hh>
/** \brief make the C API functions available so that
* we can used them in the implementation of the H5Fed class
* member functions implementations.
*/
extern "C"
{
#include <H5Fed.h>
}
/** activate namespaces */
using namespace H5Fed;
@@ -63,6 +72,14 @@ H5Fed::H5Fed(std::string filename)
}
/** \brief implement constructor */
~H5Fed::H5Fed()
{
/** initialize internal variables */
filename_.erase();
}
/** \brief Set name of H5Fed file to be accessed */
H5FED_RETURN_CODE H5Fed::filename(std::string filename)
{
+1 -7
View File
@@ -72,16 +72,10 @@ namespace H5Fed
/****** INQUIRY routines *****************************************************/
protected:
private:
/** book keeping */
std::string filename_; /** \brief Name of H5Fed file to be accessed */