![]() |
UNIVERS
15.3
UNIVERS base processing software API
|
#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 TrHeaderAttrType & | type (TrHeaderAttrId id) const |
| size_t | attrSize (TrHeaderAttrId id) const |
| size_t | attrOffset (TrHeaderAttrId id) const |
| bool | hasKey (TrHeaderAttrId id) const |
| size_t | size () const |
| Data & | data () |
| const Data & | data () const |
| void | info (std::ostream &stream=std::cout) const |
Header of the trace.
| typedef std::vector<char> hds::db::TrHeader::Data |
Data storage type.
| hds::db::TrHeader::TrHeader | ( | ) |
Default constructor. All the fields are equal to zero.
| const T & TrHeader::attr | ( | TrHeaderAttrId | id | ) | const |
Access to attribute for reading.
| 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.
1.8.5