Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
librealsense::md_attribute_parser< S, Attribute, Flag > Class Template Reference

The metadata parser class directly access the metadata attribute in the blob received from HW. Given the metadata-nested construct, and the c++ lack of pointers to the inner struct, we pre-calculate and store the attribute offset internally http://stackoverflow.com/questions/1929887/is-pointer-to-inner-struct-member-forbidden. More...

#include <metadata-parser.h>

Inheritance diagram for librealsense::md_attribute_parser< S, Attribute, Flag >:
Inheritance graph
[legend]

Public Member Functions

rs2_metadata_type get (const librealsense::frame &frm) const override
 
 md_attribute_parser (Attribute S::*attribute_name, Flag flag, unsigned long long offset, attrib_modifyer mod)
 
bool supports (const librealsense::frame &frm) const override
 
- Public Member Functions inherited from librealsense::md_attribute_parser_base
virtual ~md_attribute_parser_base ()=default
 

Protected Member Functions

bool is_attribute_valid (const S *s) const
 

Private Member Functions

 md_attribute_parser ()=delete
 
 md_attribute_parser (const md_attribute_parser &)=delete
 

Private Attributes

Attribute S::* _md_attribute
 
Flag _md_flag
 
attrib_modifyer _modifyer
 
unsigned long long _offset
 

Detailed Description

template<class S, class Attribute, typename Flag>
class librealsense::md_attribute_parser< S, Attribute, Flag >

The metadata parser class directly access the metadata attribute in the blob received from HW. Given the metadata-nested construct, and the c++ lack of pointers to the inner struct, we pre-calculate and store the attribute offset internally http://stackoverflow.com/questions/1929887/is-pointer-to-inner-struct-member-forbidden.

Definition at line 111 of file metadata-parser.h.

Constructor & Destructor Documentation

template<class S , class Attribute , typename Flag >
librealsense::md_attribute_parser< S, Attribute, Flag >::md_attribute_parser ( Attribute S::*  attribute_name,
Flag  flag,
unsigned long long  offset,
attrib_modifyer  mod 
)
inline

Definition at line 114 of file metadata-parser.h.

template<class S , class Attribute , typename Flag >
librealsense::md_attribute_parser< S, Attribute, Flag >::md_attribute_parser ( )
privatedelete
template<class S , class Attribute , typename Flag >
librealsense::md_attribute_parser< S, Attribute, Flag >::md_attribute_parser ( const md_attribute_parser< S, Attribute, Flag > &  )
privatedelete

Member Function Documentation

template<class S , class Attribute , typename Flag >
rs2_metadata_type librealsense::md_attribute_parser< S, Attribute, Flag >::get ( const librealsense::frame frm) const
inlineoverridevirtual

Implements librealsense::md_attribute_parser_base.

Definition at line 117 of file metadata-parser.h.

template<class S , class Attribute , typename Flag >
bool librealsense::md_attribute_parser< S, Attribute, Flag >::is_attribute_valid ( const S *  s) const
inlineprotected

Definition at line 139 of file metadata-parser.h.

template<class S , class Attribute , typename Flag >
bool librealsense::md_attribute_parser< S, Attribute, Flag >::supports ( const librealsense::frame frm) const
inlineoverridevirtual

Implements librealsense::md_attribute_parser_base.

Definition at line 130 of file metadata-parser.h.

Member Data Documentation

template<class S , class Attribute , typename Flag >
Attribute S::* librealsense::md_attribute_parser< S, Attribute, Flag >::_md_attribute
private

Definition at line 168 of file metadata-parser.h.

template<class S , class Attribute , typename Flag >
Flag librealsense::md_attribute_parser< S, Attribute, Flag >::_md_flag
private

Definition at line 169 of file metadata-parser.h.

template<class S , class Attribute , typename Flag >
attrib_modifyer librealsense::md_attribute_parser< S, Attribute, Flag >::_modifyer
private

Definition at line 171 of file metadata-parser.h.

template<class S , class Attribute , typename Flag >
unsigned long long librealsense::md_attribute_parser< S, Attribute, Flag >::_offset
private

Definition at line 170 of file metadata-parser.h.


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


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:37