hdf5serie  2.0.0
HDF5 Serie
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Friends | List of all members
H5::File Class Reference
Inheritance diagram for H5::File:
[legend]

Classes

struct  IPC
 

Public Types

enum  FileAccess { read, write }
 
- Public Types inherited from fmatvec::Atom
enum  MsgType
 

Public Member Functions

 File (const boost::filesystem::path &filename, FileAccess type_)
 
void reopenAsSWMR ()
 
void refresh () override
 
void flush () override
 
void requestWriterFlush ()
 
bool waitForWriterFlush ()
 
void flushIfRequested ()
 
void refreshAfterWriterFlush ()
 
- Public Member Functions inherited from H5::GroupBase
template<class T >
Container< Object, GroupBase >::Creator< T > createChildObject (const std::string &path)
 
template<class T >
T * openChildObject (const std::string &path)
 
Object * openChildObject (const std::string &name_, ElementType *objectType=nullptr, hid_t *type=nullptr)
 
std::set< std::string > getChildObjectNames ()
 
bool hasChildObject (const std::string &name_)
 
bool isExternalLink (const std::string &name_)
 
std::pair< boost::filesystem::path, std::string > getExternalLink (const std::string &name_)
 
void createExternalLink (const std::string &name_, const std::pair< boost::filesystem::path, std::string > &target)
 
void createSoftLink (const std::string &name_, const std::string &target)
 
- Public Member Functions inherited from H5::Object
template<class T >
Creator< T > createChildAttribute (const std::string &path)
 
template<class T >
T * openChildAttribute (const std::string &path)
 
Attribute * openChildAttribute (const std::string &name_, ElementType *attributeType=nullptr, hid_t *type=nullptr)
 
std::set< std::string > getChildAttributeNames ()
 
bool hasChildAttribute (const std::string &name_)
 
GroupBase * getParent ()
 
File * getFile ()
 
std::string getPath ()
 
- Public Member Functions inherited from H5::Element
hid_t getID ()
 Note: use the returned hid_t only temporarily since its value may change, at least when File::reopenAsSWMR is called.
 
std::string getName ()
 
- Public Member Functions inherited from fmatvec::Atom
Atom & operator= (const Atom &)
 
void setMessageStreamActive (MsgType type, bool activeFlag)
 
void getMessageStream (MsgType type, std::shared_ptr< bool > &a, std::shared_ptr< std::ostream > &s) const
 
void adoptMessageStreams (const Atom *src=nullptr)
 
std::ostream & msg (MsgType type) const
 
bool msgAct (MsgType type) const
 

Static Public Member Functions

static void reopenAllFilesAsSWMR ()
 
static int getDefaultCompression ()
 
static void setDefaultCompression (int comp)
 
static int getDefaultChunkSize ()
 
static void setDefaultChunkSize (int chunk)
 
static void flushAllFiles ()
 
static void flushAllFilesIfRequested ()
 
static void refreshAllFiles ()
 
static void refreshFilesAfterWriterFlush (const std::set< H5::File * > &files)
 
static void refreshAllFilesAfterWriterFlush ()
 
- Static Public Member Functions inherited from fmatvec::Atom
static void setCurrentMessageStream (MsgType type, const std::shared_ptr< bool > &a=std::make_shared< bool >(true), const std::shared_ptr< std::ostream > &s=std::make_shared< std::ostream >(std::cout.rdbuf()))
 
static std::ostream & msgStatic (MsgType type)
 
static bool msgActStatic (MsgType type)
 

Protected Member Functions

void close () override
 
void open () override
 
void addFileToNotifyOnRefresh (const boost::filesystem::path &filename)
 
- Protected Member Functions inherited from H5::GroupBase
 GroupBase (int dummy, GroupBase *parent_, const std::string &name_)
 
 GroupBase (GroupBase *parent_, const std::string &name_)
 
void close () override
 
void open () override
 
void refresh () override
 
void flush () override
 
Dataset * openChildDataset (const std::string &name_, ElementType *objectType, hid_t *type)
 
void handleExternalLink (const std::string &name_)
 
GroupBase * getFileAsGroup ()
 
- Protected Member Functions inherited from H5::Object
 Object (GroupBase *parent_, const std::string &name_)
 
void close () override
 
void open () override
 
void refresh () override
 
void flush () override
 
Object * getFileAsObject ()
 
Object * getAttrParent (const std::string &path, size_t pos)
 
- Protected Member Functions inherited from H5::Element
 Element (std::string name_)
 
- Protected Member Functions inherited from fmatvec::Atom
 Atom (const Atom &src)
 
- Protected Member Functions inherited from H5::Container< Child, Self >
void close ()
 
void open ()
 
void refresh ()
 
void flush ()
 
template<class T >
Creator< T > createChild (const std::string &name_)
 
template<class T >
T * openChild (const std::string &name_)
 
- Protected Member Functions inherited from H5::Container< Object, GroupBase >
void close ()
 
void open ()
 
void refresh ()
 
void flush ()
 
Creator< T > createChild (const std::string &name_)
 
T * openChild (const std::string &name_)
 

Protected Attributes

FileAccess type
 
bool isSWMR
 
std::string interprocessName
 
IPC ipc
 
std::vector< IPC > ipcAdd
 
- Protected Attributes inherited from H5::Object
GroupBase * parent
 
File * file
 
- Protected Attributes inherited from H5::Element
ScopedHID id
 
std::string name
 
- Protected Attributes inherited from H5::Container< Child, Self >
std::map< std::string, Child * > childs
 
- Protected Attributes inherited from H5::Container< Object, GroupBase >
std::map< std::string, Object * > childs
 

Static Protected Attributes

static int defaultCompression =1
 
static int defaultChunkSize =100
 
static std::set< File * > writerFiles
 
static std::set< File * > readerFiles
 

Friends

class Dataset
 
class GroupBase
 

The documentation for this class was generated from the following files: