quadEM  7-0
Public Member Functions | Static Public Attributes | List of all members
hdf5::LayoutXML Class Reference

Used to define layout of HDF5 file with NDFileHDF5 plugin. More...

#include <NDFileHDF5LayoutXML.h>

Public Member Functions

 LayoutXML ()
 
 ~LayoutXML ()
 
int load_xml ()
 
int load_xml (const std::string &filename)
 
int verify_xml (const std::string &filename)
 
int unload_xml ()
 Free all resources and reset the xml tree. More...
 
Rootget_hdftree ()
 
std::string get_global (const std::string &name)
 
bool getAutoNDAttrDefault ()
 

Static Public Attributes

static const std::string ATTR_ELEMENT_NAME = "name"
 
static const std::string ATTR_ROOT = "hdf5_layout"
 
static const std::string ATTR_GROUP = "group"
 
static const std::string ATTR_DATASET = "dataset"
 
static const std::string ATTR_ATTRIBUTE = "attribute"
 
static const std::string ATTR_GLOBAL = "global"
 
static const std::string ATTR_HARDLINK = "hardlink"
 
static const std::string ATTR_ROOT_NDATTR_DEFAULT = "auto_ndattr_default"
 
static const std::string ATTR_SOURCE = "source"
 
static const std::string ATTR_SRC_DETECTOR = "detector"
 
static const std::string ATTR_SRC_DET_DEFAULT = "det_default"
 
static const std::string ATTR_SRC_NDATTR = "ndattribute"
 
static const std::string ATTR_SRC_CONST = "constant"
 
static const std::string ATTR_SRC_CONST_VALUE = "value"
 
static const std::string ATTR_SRC_CONST_TYPE = "type"
 
static const std::string ATTR_GRP_NDATTR_DEFAULT = "ndattr_default"
 
static const std::string ATTR_SRC_WHEN = "when"
 
static const std::string ATTR_GLOBAL_NAME = "name"
 
static const std::string ATTR_GLOBAL_VALUE = "ndattribute"
 
static const std::string ATTR_HARDLINK_NAME = "name"
 
static const std::string ATTR_HARDLINK_TARGET = "target"
 
static const std::string DEFAULT_LAYOUT
 

Detailed Description

Used to define layout of HDF5 file with NDFileHDF5 plugin.

Constructor & Destructor Documentation

hdf5::LayoutXML::LayoutXML ( )
hdf5::LayoutXML::~LayoutXML ( )

Member Function Documentation

std::string hdf5::LayoutXML::get_global ( const std::string &  name)
Root * hdf5::LayoutXML::get_hdftree ( )
bool hdf5::LayoutXML::getAutoNDAttrDefault ( )
int hdf5::LayoutXML::load_xml ( )
int hdf5::LayoutXML::load_xml ( const std::string &  filename)
int hdf5::LayoutXML::unload_xml ( )

Free all resources and reset the xml tree.

int hdf5::LayoutXML::verify_xml ( const std::string &  filename)

Member Data Documentation

const std::string hdf5::LayoutXML::ATTR_ATTRIBUTE = "attribute"
static
const std::string hdf5::LayoutXML::ATTR_DATASET = "dataset"
static
const std::string hdf5::LayoutXML::ATTR_ELEMENT_NAME = "name"
static
const std::string hdf5::LayoutXML::ATTR_GLOBAL = "global"
static
const std::string hdf5::LayoutXML::ATTR_GLOBAL_NAME = "name"
static
const std::string hdf5::LayoutXML::ATTR_GLOBAL_VALUE = "ndattribute"
static
const std::string hdf5::LayoutXML::ATTR_GROUP = "group"
static
const std::string hdf5::LayoutXML::ATTR_GRP_NDATTR_DEFAULT = "ndattr_default"
static
const std::string hdf5::LayoutXML::ATTR_HARDLINK = "hardlink"
static
const std::string hdf5::LayoutXML::ATTR_HARDLINK_NAME = "name"
static
const std::string hdf5::LayoutXML::ATTR_HARDLINK_TARGET = "target"
static
const std::string hdf5::LayoutXML::ATTR_ROOT = "hdf5_layout"
static
const std::string hdf5::LayoutXML::ATTR_ROOT_NDATTR_DEFAULT = "auto_ndattr_default"
static
const std::string hdf5::LayoutXML::ATTR_SOURCE = "source"
static
const std::string hdf5::LayoutXML::ATTR_SRC_CONST = "constant"
static
const std::string hdf5::LayoutXML::ATTR_SRC_CONST_TYPE = "type"
static
const std::string hdf5::LayoutXML::ATTR_SRC_CONST_VALUE = "value"
static
const std::string hdf5::LayoutXML::ATTR_SRC_DET_DEFAULT = "det_default"
static
const std::string hdf5::LayoutXML::ATTR_SRC_DETECTOR = "detector"
static
const std::string hdf5::LayoutXML::ATTR_SRC_NDATTR = "ndattribute"
static
const std::string hdf5::LayoutXML::ATTR_SRC_WHEN = "when"
static
const std::string hdf5::LayoutXML::DEFAULT_LAYOUT
static
Initial value:
= " \
<group name=\"entry\"> \
<attribute name=\"NX_class\" source=\"constant\" value=\"NXentry\" type=\"string\"></attribute> \
<group name=\"instrument\"> \
<attribute name=\"NX_class\" source=\"constant\" value=\"NXinstrument\" type=\"string\"></attribute> \
<group name=\"detector\"> \
<attribute name=\"NX_class\" source=\"constant\" value=\"NXdetector\" type=\"string\"></attribute> \
<dataset name=\"data\" source=\"detector\" det_default=\"true\"> \
<attribute name=\"signal\" source=\"constant\" value=\"1\" type=\"int\"></attribute> \
</dataset> \
<group name=\"NDAttributes\"> \
<attribute name=\"NX_class\" source=\"constant\" value=\"NXcollection\" type=\"string\"></attribute> \
<dataset name=\"ColorMode\" source=\"ndattribute\" ndattribute=\"ColorMode\"> \
</dataset> \
</group> <!-- end group NDAttribute --> \
</group> <!-- end group detector --> \
<group name=\"NDAttributes\" ndattr_default=\"true\"> \
<attribute name=\"NX_class\" source=\"constant\" value=\"NXcollection\" type=\"string\"></attribute> \
</group> <!-- end group NDAttribute (default) --> \
<group name=\"performance\"> \
<dataset name=\"timestamp\"></dataset> \
</group> <!-- end group performance --> \
</group> <!-- end group instrument --> \
<group name=\"data\"> \
<attribute name=\"NX_class\" source=\"constant\" value=\"NXdata\" type=\"string\"></attribute> \
<hardlink name=\"data\" target=\"/entry/instrument/detector/data\"></hardlink> \
</group> <!-- end group data --> \
</group> <!-- end group entry --> "

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