echelon  0.8.0
Public Member Functions | Friends | List of all members
echelon::attribute Class Reference

A handle to an echelon attribute. More...

#include <attribute.hpp>

Public Member Functions

 attribute ()=default
 Initializes the handle with its null state.
 
type datatype () const
 The value type of the attribute.
 
native_handle_type native_handle () const
 The underlying HDF5 low-level handle.
 
 operator bool () const
 Tests the validity of the handle.
 

Friends

template<typename T >
void operator<<= (attribute &attr, const T &value)
 Writes the content of a variable into the attribute. More...
 
template<typename T >
void operator<<= (T &value, const attribute &attr)
 Reads the content of an attribute into a variable. More...
 

Detailed Description

A handle to an echelon attribute.

Friends And Related Function Documentation

template<typename T >
void operator<<= ( attribute attr,
const T &  value 
)
friend

Writes the content of a variable into the attribute.

Template Parameters
TType of the written value.
Parameters
attrattribute, to which the value is written
valuevalue, which is written into the attribute
template<typename T >
void operator<<= ( T &  value,
const attribute attr 
)
friend

Reads the content of an attribute into a variable.

Template Parameters
TType of the read value.
Parameters
valuevalue, which is read from the attribute
attrattribute, from which the value is read

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