TRIQS/h5 1.3.0
C++ interface to HDF5
Loading...
Searching...
No Matches
string.hpp File Reference
#include "../group.hpp"
#include <string>
#include <vector>

Detailed Description

Provides functions to read/write std::string, char* and h5::char_buf objects from/to HDF5.

Definition in file string.hpp.

Go to the source code of this file.

Classes

struct  h5::char_buf
 Stores an arbitrary number of strings in a 1-dimensional std::vector<char>. More...
 
struct  h5::hdf5_format_impl< std::string >
 Specialization of h5::hdf5_format_impl for std::string. More...
 

Functions

void h5::h5_read (group g, std::string const &name, char *s)=delete
 Read a string from an HDF5 dataset into a char*.
 
void h5::h5_read (group g, std::string const &name, char_buf &cb)
 Read an h5::char_buf from an HDF5 dataset.
 
void h5::h5_read (group g, std::string const &name, std::string &s)
 Read a string from an HDF5 dataset into a std::string.
 
void h5::h5_read_attribute (object obj, std::string const &name, char *s)=delete
 Read a string from an HDF5 attribute into a char*.
 
void h5::h5_read_attribute (object obj, std::string const &name, char_buf &cb)
 Read an h5::char_buf from an HDF5 attribute.
 
void h5::h5_read_attribute (object obj, std::string const &name, std::string &s)
 Read a string from an HDF5 attribute into a std::string.
 
void h5::h5_read_attribute_from_key (group g, std::string const &key, std::string const &name, std::string &s)
 Read a string from an HDF5 attribute into a std::string.
 
void h5::h5_write (group g, std::string const &name, char_buf const &cb)
 Write an h5::char_buf to an HDF5 dataset.
 
void h5::h5_write (group g, std::string const &name, const char *s)
 Write a const char* to an HDF5 dataset.
 
void h5::h5_write (group g, std::string const &name, std::string const &s)
 Write a std::string to an HDF5 dataset.
 
void h5::h5_write_attribute (object obj, std::string const &name, char_buf const &cb)
 Write an h5::char_buf to an HDF5 attribute.
 
void h5::h5_write_attribute (object obj, std::string const &name, const char *s)
 Write a const char* to an HDF5 attribute.
 
void h5::h5_write_attribute (object obj, std::string const &name, std::string const &s)
 Write a std::string to an HDF5 attribute.
 
void h5::h5_write_attribute_to_key (group g, std::string const &key, std::string const &name, const char *s)
 Write a const char* to an HDF5 attribute.
 
void h5::h5_write_attribute_to_key (group g, std::string const &key, std::string const &name, std::string const &s)
 Write a std::string to an HDF5 attribute.