Public Member Functions | Private Attributes | List of all members
librealsense::stream_profile_base Class Reference

#include <stream.h>

Inheritance diagram for librealsense::stream_profile_base:
Inheritance graph
[legend]

Public Member Functions

std::shared_ptr< stream_profile_interfaceclone () const override
 
void create_snapshot (std::shared_ptr< stream_profile_interface > &snapshot) const override
 
void enable_recording (std::function< void(const stream_profile_interface &)> record_action) override
 
rs2_stream_profileget_c_wrapper () const override
 
rs2_format get_format () const override
 
uint32_t get_framerate () const override
 
int get_stream_index () const override
 
rs2_stream get_stream_type () const override
 
int get_tag () const override
 
int get_unique_id () const override
 
void set_c_wrapper (rs2_stream_profile *wrapper) override
 
void set_format (rs2_format format) override
 
void set_framerate (uint32_t val) override
 
void set_stream_index (int index) override
 
void set_stream_type (rs2_stream stream) override
 
void set_unique_id (int uid) override
 
 stream_profile_base (platform::stream_profile sp)
 
void tag_profile (int tag) override
 
- Public Member Functions inherited from librealsense::stream_interface
virtual ~stream_interface ()=default
 
- Public Member Functions inherited from librealsense::recordable< stream_profile_interface >
virtual ~recordable ()=default
 
- Public Member Functions inherited from librealsense::backend_stream_profile
 backend_stream_profile (platform::stream_profile sp)
 
platform::stream_profile get_backend_profile () const
 
virtual ~backend_stream_profile ()=default
 

Private Attributes

rs2_stream_profile_c_ptr = nullptr
 
rs2_stream_profile _c_wrapper
 
rs2_format _format = RS2_FORMAT_ANY
 
uint32_t _framerate = 0
 
int _index = 1
 
int _tag = profile_tag::PROFILE_TAG_ANY
 
rs2_stream _type = RS2_STREAM_ANY
 
int _uid = 0
 

Detailed Description

Definition at line 46 of file src/stream.h.

Constructor & Destructor Documentation

librealsense::stream_profile_base::stream_profile_base ( platform::stream_profile  sp)

Definition at line 34 of file src/stream.cpp.

Member Function Documentation

std::shared_ptr< stream_profile_interface > librealsense::stream_profile_base::clone ( ) const
overridevirtual
void librealsense::stream_profile_base::create_snapshot ( std::shared_ptr< stream_profile_interface > &  snapshot) const
overridevirtual

Create a snapshot of the deriving extension. A snapshot of T is a reflection of the state and memory of T at the time of the call

Implements librealsense::recordable< stream_profile_interface >.

Definition at line 109 of file src/stream.cpp.

void librealsense::stream_profile_base::enable_recording ( std::function< void(const stream_profile_interface &)>  recording_function)
overridevirtual

Instruct the derived class to begin notifying on changes Derived class should call the recording_function with a reference of themselves

Implements librealsense::recordable< stream_profile_interface >.

Definition at line 114 of file src/stream.cpp.

rs2_stream_profile * librealsense::stream_profile_base::get_c_wrapper ( ) const
overridevirtual

Implements librealsense::stream_profile_interface.

Definition at line 100 of file src/stream.cpp.

rs2_format librealsense::stream_profile_base::get_format ( ) const
overridevirtual

Implements librealsense::stream_profile_interface.

Definition at line 62 of file src/stream.cpp.

uint32_t librealsense::stream_profile_base::get_framerate ( ) const
overridevirtual

Implements librealsense::stream_profile_interface.

Definition at line 72 of file src/stream.cpp.

int librealsense::stream_profile_base::get_stream_index ( ) const
overridevirtual

Implements librealsense::stream_interface.

Definition at line 42 of file src/stream.cpp.

rs2_stream librealsense::stream_profile_base::get_stream_type ( ) const
overridevirtual

Implements librealsense::stream_interface.

Definition at line 52 of file src/stream.cpp.

int librealsense::stream_profile_base::get_tag ( ) const
overridevirtual

Implements librealsense::stream_profile_interface.

Definition at line 82 of file src/stream.cpp.

int librealsense::stream_profile_base::get_unique_id ( ) const
inlineoverridevirtual

Implements librealsense::stream_interface.

Definition at line 66 of file src/stream.h.

void librealsense::stream_profile_base::set_c_wrapper ( rs2_stream_profile wrapper)
overridevirtual

Implements librealsense::stream_profile_interface.

Definition at line 105 of file src/stream.cpp.

void librealsense::stream_profile_base::set_format ( rs2_format  format)
overridevirtual

Implements librealsense::stream_profile_interface.

Definition at line 67 of file src/stream.cpp.

void librealsense::stream_profile_base::set_framerate ( uint32_t  val)
overridevirtual

Implements librealsense::stream_profile_interface.

Definition at line 77 of file src/stream.cpp.

void librealsense::stream_profile_base::set_stream_index ( int  index)
overridevirtual

Implements librealsense::stream_interface.

Definition at line 47 of file src/stream.cpp.

void librealsense::stream_profile_base::set_stream_type ( rs2_stream  stream)
overridevirtual

Implements librealsense::stream_interface.

Definition at line 57 of file src/stream.cpp.

void librealsense::stream_profile_base::set_unique_id ( int  uid)
inlineoverridevirtual

Implements librealsense::stream_interface.

Definition at line 67 of file src/stream.h.

void librealsense::stream_profile_base::tag_profile ( int  tag)
overridevirtual

Implements librealsense::stream_profile_interface.

Definition at line 87 of file src/stream.cpp.

Member Data Documentation

rs2_stream_profile* librealsense::stream_profile_base::_c_ptr = nullptr
private

Definition at line 88 of file src/stream.h.

rs2_stream_profile librealsense::stream_profile_base::_c_wrapper
private

Definition at line 87 of file src/stream.h.

rs2_format librealsense::stream_profile_base::_format = RS2_FORMAT_ANY
private

Definition at line 84 of file src/stream.h.

uint32_t librealsense::stream_profile_base::_framerate = 0
private

Definition at line 85 of file src/stream.h.

int librealsense::stream_profile_base::_index = 1
private

Definition at line 81 of file src/stream.h.

int librealsense::stream_profile_base::_tag = profile_tag::PROFILE_TAG_ANY
private

Definition at line 86 of file src/stream.h.

rs2_stream librealsense::stream_profile_base::_type = RS2_STREAM_ANY
private

Definition at line 83 of file src/stream.h.

int librealsense::stream_profile_base::_uid = 0
private

Definition at line 82 of file src/stream.h.


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


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