h5cpp  0.5.0
A modern C++ wrapper for the HDF5 C library
hdf5::FixedLengthStringTrait< std::string > Struct Reference

#include <fixed_length_string.hpp>

Public Types

using DataType = std::string
 
using BufferType = FixedLengthStringBuffer< char >
 

Static Public Member Functions

static BufferType to_buffer (const DataType &data, const datatype::String &memory_type, const dataspace::Dataspace &memory_space)
 create fixed length string buffer from data More...
 
static DataType from_buffer (const BufferType &buffer, const datatype::String &, const dataspace::Dataspace &)
 store data from buffer in target memory More...
 

Member Typedef Documentation

◆ BufferType

◆ DataType

using hdf5::FixedLengthStringTrait< std::string >::DataType = std::string

Member Function Documentation

◆ from_buffer()

static DataType hdf5::FixedLengthStringTrait< std::string >::from_buffer ( const BufferType buffer,
const datatype::String ,
const dataspace::Dataspace  
)
inlinestatic
Parameters
bufferreference to the IO buffer
Returns
new data instance

◆ to_buffer()

static BufferType hdf5::FixedLengthStringTrait< std::string >::to_buffer ( const DataType data,
const datatype::String memory_type,
const dataspace::Dataspace memory_space 
)
inlinestatic

Returns an IO buffer for fixed length strings for data in memory.

Parameters
datareference to the original data
memory_typeHDF5 data type for the data in memory
memory_spaceHDF5 dataspace for the data in memory
Returns
buffer instance with data

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