Static Public Member Functions | List of all members
Hi5Base Class Reference

Base class for Reader and Writer, essentially just wrapping some utilities. More...

#include <Hi5.h>

Inheritance diagram for Hi5Base:
Inheritance graph
[legend]

Static Public Member Functions

static void handleStatus (herr_t status, const std::string &message, drain::Logger &mout, int lineNo=0)
 
template<int L, class T >
static void handleStatus (drain::Logger &mout, herr_t status, const std::string &message, const T &arg, int lineNo=0)
 
static hid_t getH5StandardType (const std::type_info &type)
 Give a native C++ type, returns a standard(?) HDF5 data type.
 
static hid_t getH5NativeDataType (const std::type_info &t)
 Given a native C++ type, returns a native HDF5 data type. More...
 
template<class T >
static hid_t getH5NativeDataType ()
 Given a native C++ type, returns a native HDF5 data type.
 
static hid_t getH5StringVariableLength ()
 
static drain::image::ImagegetPalette (Hi5Tree &dst)
 Creates a 256-element RGB palette to be referenced with linkPalette().
 
static void linkPalette (const Hi5Tree &palette, Hi5Tree &dst)
 Links the palette that has been (or will be) created with createPalette().
 
static void writeText (const Hi5Tree &src, const std::list< typename Hi5Tree::path_t > &paths, std::ostream &ostr=std::cout)
 Dumps the H5 structure, attributes and data properties.
 
static void writeText (const Hi5Tree &src, std::ostream &ostr=std::cout)
 Dumps the H5 structure, attributes and data properties. (Calls writeText(src, src.getKeys(), ostr)).
 
static void readText (Hi5Tree &src, std::istream &istr=std::cin)
 Constructs a tree from formatted text. See writeText(). More...
 
static void parsePath (const std::string &line, Hi5Tree::path_t &path, std::string &attrKey, std::string &attrValue)
 Split full path string to path object and attribute key. More...
 
static void readTextLine (Hi5Tree &src, const std::string &line)
 Assign a value with optional type specification. More...
 
static void assignAttribute (Hi5Tree &dst, const std::string &assignment)
 
static void deleteExcluded (Hi5Tree &src)
 Traverse subtree setting exclude=true . More...
 

Detailed Description

Base class for Reader and Writer, essentially just wrapping some utilities.

Member Function Documentation

◆ assignAttribute()

void assignAttribute ( Hi5Tree &  dst,
const std::string &  assignment 
)
static

Create the node always

◆ deleteExcluded()

void deleteExcluded ( Hi5Tree &  src)
static

Traverse subtree setting exclude=true .

Delete branches that have been marked with exclude=true .

◆ getH5NativeDataType()

hid_t getH5NativeDataType ( const std::type_info &  t)
static

Given a native C++ type, returns a native HDF5 data type.

TODO

◆ parsePath()

void parsePath ( const std::string &  line,
Hi5Tree::path_t &  path,
std::string &  attrKey,
std::string &  attrValue 
)
static

Split full path string to path object and attribute key.

Parameters
s- string containing path and/or attribute

Given a path like /dataset1/data3

◆ readText()

void readText ( Hi5Tree &  src,
std::istream &  istr = std::cin 
)
static

Constructs a tree from formatted text. See writeText().

The grammar should follow to that produced by writeText().

◆ readTextLine()

void readTextLine ( Hi5Tree &  src,
const std::string &  line 
)
static

Assign a value with optional type specification.

Creates a node in src, creates the desired attribute with given value of specified storage type. If the attribute is "image", creates an image with specified value (width,height ) and type.


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