h5cpp  0.6.0
A modern C++ wrapper for the HDF5 C library
hdf5::file::DirectDriver Class Reference

direct write without buffering (for hdf5 compiled with H5_HAVE_DIRECT)

#include <direct_driver.hpp>

Inheritance diagram for hdf5::file::DirectDriver:
Collaboration diagram for hdf5::file::DirectDriver:

Public Member Functions

 DirectDriver ()
 default constructor More...
 
 DirectDriver (size_t alignment, size_t block_size, size_t copy_buffer_size)
 constructor More...
 
 DirectDriver (const DirectDriver &)=default
 copy constructor More...
 
size_t alignment () const noexcept
 get alignment value More...
 
void alignment (size_t value)
 set alignment value More...
 
size_t block_size () const noexcept
 get block size More...
 
void block_size (size_t value)
 set block size More...
 
size_t copy_buffer_size () const noexcept
 get copy buffer size More...
 
void copy_buffer_size (size_t value)
 set copy buffer size More...
 
virtual void operator() (const property::FileAccessList &fapl) const
 set a driver More...
 
virtual DriverID id () const noexcept
 get driver ID More...
 
- Public Member Functions inherited from hdf5::file::Driver
virtual ~Driver ()
 

Additional Inherited Members

- Public Types inherited from hdf5::file::Driver
using UniquePointer = std::unique_ptr< Driver >
 unique pointer type More...
 

Constructor & Destructor Documentation

◆ DirectDriver() [1/3]

hdf5::file::DirectDriver::DirectDriver ( )

◆ DirectDriver() [2/3]

hdf5::file::DirectDriver::DirectDriver ( size_t  alignment,
size_t  block_size,
size_t  copy_buffer_size 
)

◆ DirectDriver() [3/3]

hdf5::file::DirectDriver::DirectDriver ( const DirectDriver )
default

Member Function Documentation

◆ alignment() [1/2]

size_t hdf5::file::DirectDriver::alignment ( ) const
noexcept

◆ alignment() [2/2]

void hdf5::file::DirectDriver::alignment ( size_t  value)
Exceptions
std::runtime_errorin case of an error
Parameters
valuethe new alignment value

◆ block_size() [1/2]

size_t hdf5::file::DirectDriver::block_size ( ) const
noexcept

◆ block_size() [2/2]

void hdf5::file::DirectDriver::block_size ( size_t  value)
Exceptions
std::runtime_errorin case of a failure
Parameters
valuethe new block size

◆ copy_buffer_size() [1/2]

size_t hdf5::file::DirectDriver::copy_buffer_size ( ) const
noexcept

◆ copy_buffer_size() [2/2]

void hdf5::file::DirectDriver::copy_buffer_size ( size_t  value)
Exceptions
std::runtime_errorin case of a failure
Parameters
valuethe new copy buffer size

◆ id()

virtual DriverID hdf5::file::DirectDriver::id ( ) const
virtualnoexcept

Return the ID of a particular driver.

Implements hdf5::file::Driver.

◆ operator()()

virtual void hdf5::file::DirectDriver::operator() ( const property::FileAccessList fapl) const
virtual

Sets a driver to a particular file access property list.

Implements hdf5::file::Driver.


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