metadata-helper.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
5 namespace rs2
6 {
7  // Helper class that is responsible for enabling per-frame metadata on different platforms
8  // Currently implemented for Windows
10  {
11  public:
12  static metadata_helper& instance();
13 
14  // Check if metadata is enabled using Physical Port ID
15  // (can be retrieved with device::get_info(RS2_CAMERA_INFO_PHYSICAL_PORT))
16  // throws runtime_error in case of errors
17  virtual bool is_enabled(std::string id) const { return true; }
18 
19  // Enable metadata for all connected devices
20  // throws runtime_error in case of errors
21  virtual void enable_metadata() { }
22 
23  static bool can_support_metadata(const std::string& product)
24  {
25  return product == "D400" || product == "SR300" || product == "L500";
26  }
27 
28  // This is the command-line parameter that gets passed to another process (running as admin) in order to enable metadata -- see WinMain
29  static std::string get_command_line_param() { return "--enable_metadata"; }
30  };
31 }
static std::string get_command_line_param()
static bool can_support_metadata(const std::string &product)
Definition: cah-model.h:10
static metadata_helper & instance()
GLsizei const GLchar *const * string
virtual void enable_metadata()
virtual bool is_enabled(std::string id) const


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