Public Types | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
RSContext Class Reference
Inheritance diagram for RSContext:
Inheritance graph
[legend]

Public Types

enum  ContextType { kNormal = 0, kRecording, kPlayback }
 

Static Public Member Functions

static void Init (v8::Local< v8::Object > exports)
 
static v8::Local< v8::Object > NewInstance (rs2_context *ctx_ptr=nullptr)
 

Private Member Functions

void DestroyMe ()
 
void RegisterDevicesChangedCallbackMethod ()
 
 RSContext (ContextType type=kNormal)
 
 ~RSContext ()
 

Static Private Member Functions

static NAN_METHOD (Create)
 
static NAN_METHOD (Destroy)
 
static NAN_METHOD (SetDevicesChangedCallback)
 
static NAN_METHOD (LoadDeviceFile)
 
static NAN_METHOD (UnloadDeviceFile)
 
static NAN_METHOD (CreateDeviceFromSensor)
 
static NAN_METHOD (QueryDevices)
 
static void New (const Nan::FunctionCallbackInfo< v8::Value > &info)
 

Private Attributes

rs2_contextctx_
 
std::string device_changed_callback_name_
 
rs2_errorerror_
 
std::string file_name_
 
rs2_recording_mode mode_
 
std::string section_
 
ContextType type_
 

Static Private Attributes

static Nan::Persistent< v8::Function > constructor_
 

Friends

class DevicesChangedCallbackInfo
 
class RSDeviceHub
 
class RSPipeline
 

Detailed Description

Definition at line 3210 of file addon.cpp.

Member Enumeration Documentation

Enumerator
kNormal 
kRecording 
kPlayback 

Definition at line 3212 of file addon.cpp.

Constructor & Destructor Documentation

RSContext::RSContext ( ContextType  type = kNormal)
inlineexplicitprivate

Definition at line 3256 of file addon.cpp.

RSContext::~RSContext ( )
inlineprivate

Definition at line 3259 of file addon.cpp.

Member Function Documentation

void RSContext::DestroyMe ( )
inlineprivate

Definition at line 3265 of file addon.cpp.

static void RSContext::Init ( v8::Local< v8::Object >  exports)
inlinestatic

Definition at line 3217 of file addon.cpp.

static RSContext::NAN_METHOD ( Create  )
inlinestaticprivate

Definition at line 3297 of file addon.cpp.

static RSContext::NAN_METHOD ( Destroy  )
inlinestaticprivate

Definition at line 3321 of file addon.cpp.

static RSContext::NAN_METHOD ( SetDevicesChangedCallback  )
inlinestaticprivate

Definition at line 3329 of file addon.cpp.

static RSContext::NAN_METHOD ( LoadDeviceFile  )
inlinestaticprivate

Definition at line 3339 of file addon.cpp.

static RSContext::NAN_METHOD ( UnloadDeviceFile  )
inlinestaticprivate

Definition at line 3353 of file addon.cpp.

static RSContext::NAN_METHOD ( CreateDeviceFromSensor  )
inlinestaticprivate

Definition at line 3363 of file addon.cpp.

static RSContext::NAN_METHOD ( QueryDevices  )
inlinestaticprivate

Definition at line 3377 of file addon.cpp.

static void RSContext::New ( const Nan::FunctionCallbackInfo< v8::Value > &  info)
inlinestaticprivate

Definition at line 3272 of file addon.cpp.

static v8::Local<v8::Object> RSContext::NewInstance ( rs2_context ctx_ptr = nullptr)
inlinestatic

Definition at line 3238 of file addon.cpp.

void RSContext::RegisterDevicesChangedCallbackMethod ( )
private

Definition at line 3470 of file addon.cpp.

Friends And Related Function Documentation

friend class DevicesChangedCallbackInfo
friend

Definition at line 3400 of file addon.cpp.

friend class RSDeviceHub
friend

Definition at line 3402 of file addon.cpp.

friend class RSPipeline
friend

Definition at line 3401 of file addon.cpp.

Member Data Documentation

Nan::Persistent< v8::Function > RSContext::constructor_
staticprivate

Definition at line 3391 of file addon.cpp.

rs2_context* RSContext::ctx_
private

Definition at line 3393 of file addon.cpp.

std::string RSContext::device_changed_callback_name_
private

Definition at line 3395 of file addon.cpp.

rs2_error* RSContext::error_
private

Definition at line 3394 of file addon.cpp.

std::string RSContext::file_name_
private

Definition at line 3397 of file addon.cpp.

rs2_recording_mode RSContext::mode_
private

Definition at line 3399 of file addon.cpp.

std::string RSContext::section_
private

Definition at line 3398 of file addon.cpp.

ContextType RSContext::type_
private

Definition at line 3396 of file addon.cpp.


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:32