Intel® RealSense™ Cross Platform API  2.13.0
Intel Realsense Cross-platform API
Public Member Functions | List of all members
rs2::mock_context Class Reference

#include <rs_internal.hpp>

Inheritance diagram for rs2::mock_context:
rs2::context

Public Member Functions

 mock_context (const std::string &filename, const std::string &section="")
 
 mock_context ()=delete
 
- Public Member Functions inherited from rs2::context
 context ()
 
device_list query_devices () const
 
std::vector< sensorquery_all_sensors () const
 Generate a flat list of all available sensors from all RealSense devices. More...
 
device get_sensor_parent (const sensor &s) const
 
template<class T >
void set_devices_changed_callback (T callback)
 
playback load_device (const std::string &file)
 
void unload_device (const std::string &file)
 

Additional Inherited Members

- Protected Member Functions inherited from rs2::context
 context (std::shared_ptr< rs2_context > ctx)
 
- Protected Attributes inherited from rs2::context
std::shared_ptr< rs2_context_context
 

Constructor & Destructor Documentation

◆ mock_context() [1/2]

rs2::mock_context::mock_context ( const std::string &  filename,
const std::string &  section = "" 
)
inline

create librealsense context that given a file will respond to calls exactly as the recording did if the user calls a method that was either not called during recording or violates causality of the recording error will be thrown

Parameters
[in]filenamestring of the name of the file

◆ mock_context() [2/2]

rs2::mock_context::mock_context ( )
delete

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