UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | List of all members
hds::db::TrHeader Class Reference

#include <tr_header.hpp>

Public Types

typedef std::vector< char > Data
 

Public Member Functions

 TrHeader ()
 
template<typename T >
const T & attr (TrHeaderAttrId id) const
 
template<typename T >
T & attr (TrHeaderAttrId id)
 
size_t attrLength (TrHeaderAttrId id) const
 
const std::string & name (TrHeaderAttrId id) const
 
const TrHeaderAttrTypetype (TrHeaderAttrId id) const
 
size_t attrSize (TrHeaderAttrId id) const
 
size_t attrOffset (TrHeaderAttrId id) const
 
bool hasKey (TrHeaderAttrId id) const
 
size_t size () const
 
Datadata ()
 
const Datadata () const
 
void info (std::ostream &stream=std::cout) const
 

Detailed Description

Header of the trace.

Member Typedef Documentation

typedef std::vector<char> hds::db::TrHeader::Data

Data storage type.

Constructor & Destructor Documentation

hds::db::TrHeader::TrHeader ( )

Default constructor. All the fields are equal to zero.

Member Function Documentation

template<typename T >
const T & TrHeader::attr ( TrHeaderAttrId  id) const

Access to attribute for reading.

template<typename T >
T & TrHeader::attr ( TrHeaderAttrId  id)

Access to attribute.

size_t hds::db::TrHeader::attrLength ( TrHeaderAttrId  id) const
Lenght of attribute in terms of its type. 

E.g. int[n], float[n], ...

size_t hds::db::TrHeader::attrOffset ( TrHeaderAttrId  id) const

Offset of the attribute in bytes.

size_t hds::db::TrHeader::attrSize ( TrHeaderAttrId  id) const

Size of the attribute with provided id in bytes.

Data& hds::db::TrHeader::data ( )

Aceess to internal data.

const Data& hds::db::TrHeader::data ( ) const

Access to internal data for reading.

bool hds::db::TrHeader::hasKey ( TrHeaderAttrId  id) const

Does attribute with provided id has key.

void hds::db::TrHeader::info ( std::ostream &  stream = std::cout) const

Print info about header into provided stream.

const std::string& hds::db::TrHeader::name ( TrHeaderAttrId  id) const

Symbolic name of the attribute with provided id.

size_t hds::db::TrHeader::size ( ) const

Return number of attributes.

const TrHeaderAttrType& hds::db::TrHeader::type ( TrHeaderAttrId  id) const

Type of the attribute with provided id.


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