| This is meant to be a superclass that encapsulates certain HDF5 open/close operations. The idea is to instantiate a class each time you need to do an open/close operation, then put the class on a stack. At the end of a series of operations, you can 'pop' each class from the stack and then call 'close' and the HDF5 object will be closed, thus saving resource leaks. The thinking was to combine this with the boost::shared_ptr and create a std::stack<boost::shared_ptr<IH5Operations*> >. That way you can just 'pop' each pointer from the stack and the destructor would be called on the object. More...
|