|
MPQC
3.0.0-alpha
|
Top-level file object that holds groups. More...
#include <mpqc/file.hpp>
Classes | |
| struct | Dataset |
| Array-like collection of data. More... | |
| struct | Dataspace |
| A subset of File::Dataset. More... | |
| struct | Driver |
| Base file driver. More... | |
| struct | Group |
| Directory-like container that holds datasets and other groups. More... | |
| struct | POSIXDriver |
| POSIX I/O file driver, the default. More... | |
Public Types | |
| typedef detail::File::Object | Object |
| typedef detail::File::Attribute | Attribute |
| typedef detail::File::Properties | Properties |
Public Member Functions | |
| File () | |
| Constructs a null file object. More... | |
| File (const std::string &name, const Driver &driver=POSIXDriver()) | |
| Create or open File. More... | |
| Group | group (const std::string &name="/") |
| Creates or opens a file group. More... | |
Public Member Functions inherited from mpqc::detail::File::Object | |
| Object () | |
| Default constructor with an invalid handle. | |
| Object (const Object &o) | |
| Copy constructor. | |
| Object (const Object &parent, hid_t id, void(*close)(hid_t), bool increment) | |
| void | operator= (const Object &o) |
| hid_t | id () const |
| const Object & | parent () const |
| hid_t | file () const |
| operator bool () const | |
Additional Inherited Members | |
Static Public Member Functions inherited from mpqc::detail::File::Object | |
| static std::string | filename (hid_t id) |
Protected Member Functions inherited from mpqc::detail::File::Object | |
| template<class F > | |
| void | update (hid_t id, F close, bool increment) |
Protected Attributes inherited from mpqc::detail::File::Object | |
| std::auto_ptr< Object > | parent_ |
| hid_t | id_ |
| void(* | close_ )(hid_t) |
Top-level file object that holds groups.
All I/O is done through Dataspace objects which belong to group. The file storage and access properties are determined by the Driver. File objects are copyable, referenced-counted using HDF5 Identifier API
|
inline |
Constructs a null file object.
Creating objects with this file as parent will fail
|
inlineexplicit |
Create or open File.
File may be opened multiple times: if an open file by that name already exists, that existing instance will be used.
| [in] | name | file name |
| [in] | driver | File driver, determining how file is created. |
The list of opened files is stored internally in a static set