Classes | Namespaces | Enumerations | Functions | Variables
recorder.cpp File Reference
#include "recorder.h"
#include <fstream>
#include "sql.h"
#include <algorithm>
#include "types.h"
#include <iostream>
Include dependency graph for recorder.cpp:

Go to the source code of this file.

Classes

class  librealsense::platform::playback_backend_exception
 

Namespaces

 librealsense
 
 librealsense::platform
 

Enumerations

enum  librealsense::platform::device_type {
  librealsense::platform::device_type::uvc, librealsense::platform::device_type::usb, librealsense::platform::device_type::hid, librealsense::platform::device_type::hid_sensor,
  librealsense::platform::device_type::hid_input
}
 

Functions

static bool librealsense::platform::is_heighr_or_equel_to_min_version (std::string api_version, std::string min_api_version)
 

Variables

const char * API_VERSION_KEY = "api_version"
 
const char * BLOBS_CREATE = "CREATE TABLE rs_blobs(section NUMBER, data BLOB)"
 
const char * BLOBS_INSERT = "INSERT INTO rs_blobs(section, data) VALUES(?, ?)"
 
const char * BLOBS_SELECT_ALL = "SELECT * FROM rs_blobs WHERE section = ?"
 
const char * CALLS_CREATE = "CREATE TABLE rs_calls(section NUMBER, type NUMBER, timestamp NUMBER, entity_id NUMBER, txt TEXT, param1 NUMBER, param2 NUMBER, param3 NUMBER, param4 NUMBER, param5 NUMBER, param6 NUMBER, had_errors NUMBER, param7 NUMBER, param8 NUMBER, param9 NUMBER, param10 NUMBER, param11 NUMBER, param12 NUMBER)"
 
const char * CALLS_INSERT = "INSERT INTO rs_calls(section, type, timestamp, entity_id, txt, param1, param2, param3, param4, param5, param6, had_errors, param7, param8, param9, param10, param11, param12) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?, ?, ?, ?, ?, ?,?)"
 
const char * CALLS_SELECT_ALL = "SELECT * FROM rs_calls WHERE section = ?"
 
const char * CONFIG_CREATE = "CREATE TABLE rs_config(section NUMBER, key TEXT, value TEXT)"
 
const char * CONFIG_INSERT = "INSERT OR REPLACE INTO rs_config(section, key, value) VALUES(?, ?, ?)"
 
const char * CONFIG_QUERY = "SELECT value FROM rs_config WHERE section = ? AND key = ?"
 
const char * CONFIG_TABLE = "rs_config"
 
const char * CREATED_AT_KEY = "created_at"
 
const char * DEVICE_INFO_CREATE = "CREATE TABLE rs_device_info(section NUMBER, type NUMBER, id TEXT, uid TEXT, pid NUMBER, vid NUMBER, mi NUMBER)"
 
const char * DEVICE_INFO_INSERT = "INSERT INTO rs_device_info(section, type, id, uid, pid, vid, mi) VALUES(?, ?, ?, ?, ?, ?, ?)"
 
const char * DEVICE_INFO_SELECT_ALL = "SELECT * FROM rs_device_info WHERE section = ?"
 
const char * PROFILES_CREATE = "CREATE TABLE rs_profile(section NUMBER, width NUMBER, height NUMBER, fps NUMBER, fourcc NUMBER)"
 
const char * PROFILES_INSERT = "INSERT INTO rs_profile(section, width, height, fps, fourcc) VALUES(?, ? ,? ,? ,?)"
 
const char * PROFILES_SELECT_ALL = "SELECT * FROM rs_profile WHERE section = ?"
 
const char * SECTIONS_COUNT_ALL = "SELECT COUNT(*) FROM rs_sections"
 
const char * SECTIONS_COUNT_BY_NAME = "SELECT COUNT(*) FROM rs_sections WHERE name = ?"
 
const char * SECTIONS_CREATE = "CREATE TABLE rs_sections(key NUMBER PRIMARY KEY, name TEXT)"
 
const char * SECTIONS_FIND_BY_NAME = "SELECT key FROM rs_sections WHERE name = ?"
 
const char * SECTIONS_INSERT = "INSERT INTO rs_sections(key, name) VALUES (?, ?)"
 
const char * SECTIONS_SELECT_MAX_ID = "SELECT max(key) from rs_sections"
 
const char * SECTIONS_TABLE = "rs_sections"
 

Variable Documentation

const char* API_VERSION_KEY = "api_version"

Definition at line 18 of file recorder.cpp.

const char* BLOBS_CREATE = "CREATE TABLE rs_blobs(section NUMBER, data BLOB)"

Definition at line 37 of file recorder.cpp.

const char* BLOBS_INSERT = "INSERT INTO rs_blobs(section, data) VALUES(?, ?)"

Definition at line 38 of file recorder.cpp.

const char* BLOBS_SELECT_ALL = "SELECT * FROM rs_blobs WHERE section = ?"

Definition at line 39 of file recorder.cpp.

const char* CALLS_CREATE = "CREATE TABLE rs_calls(section NUMBER, type NUMBER, timestamp NUMBER, entity_id NUMBER, txt TEXT, param1 NUMBER, param2 NUMBER, param3 NUMBER, param4 NUMBER, param5 NUMBER, param6 NUMBER, had_errors NUMBER, param7 NUMBER, param8 NUMBER, param9 NUMBER, param10 NUMBER, param11 NUMBER, param12 NUMBER)"

Definition at line 29 of file recorder.cpp.

const char* CALLS_INSERT = "INSERT INTO rs_calls(section, type, timestamp, entity_id, txt, param1, param2, param3, param4, param5, param6, had_errors, param7, param8, param9, param10, param11, param12) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?, ?, ?, ?, ?, ?,?)"

Definition at line 30 of file recorder.cpp.

const char* CALLS_SELECT_ALL = "SELECT * FROM rs_calls WHERE section = ?"

Definition at line 31 of file recorder.cpp.

const char* CONFIG_CREATE = "CREATE TABLE rs_config(section NUMBER, key TEXT, value TEXT)"

Definition at line 16 of file recorder.cpp.

const char* CONFIG_INSERT = "INSERT OR REPLACE INTO rs_config(section, key, value) VALUES(?, ?, ?)"

Definition at line 17 of file recorder.cpp.

const char* CONFIG_QUERY = "SELECT value FROM rs_config WHERE section = ? AND key = ?"

Definition at line 15 of file recorder.cpp.

const char* CONFIG_TABLE = "rs_config"

Definition at line 14 of file recorder.cpp.

const char* CREATED_AT_KEY = "created_at"

Definition at line 19 of file recorder.cpp.

const char* DEVICE_INFO_CREATE = "CREATE TABLE rs_device_info(section NUMBER, type NUMBER, id TEXT, uid TEXT, pid NUMBER, vid NUMBER, mi NUMBER)"

Definition at line 33 of file recorder.cpp.

const char* DEVICE_INFO_INSERT = "INSERT INTO rs_device_info(section, type, id, uid, pid, vid, mi) VALUES(?, ?, ?, ?, ?, ?, ?)"

Definition at line 35 of file recorder.cpp.

const char* DEVICE_INFO_SELECT_ALL = "SELECT * FROM rs_device_info WHERE section = ?"

Definition at line 34 of file recorder.cpp.

const char* PROFILES_CREATE = "CREATE TABLE rs_profile(section NUMBER, width NUMBER, height NUMBER, fps NUMBER, fourcc NUMBER)"

Definition at line 41 of file recorder.cpp.

const char* PROFILES_INSERT = "INSERT INTO rs_profile(section, width, height, fps, fourcc) VALUES(?, ? ,? ,? ,?)"

Definition at line 42 of file recorder.cpp.

const char* PROFILES_SELECT_ALL = "SELECT * FROM rs_profile WHERE section = ?"

Definition at line 43 of file recorder.cpp.

const char* SECTIONS_COUNT_ALL = "SELECT COUNT(*) FROM rs_sections"

Definition at line 26 of file recorder.cpp.

const char* SECTIONS_COUNT_BY_NAME = "SELECT COUNT(*) FROM rs_sections WHERE name = ?"

Definition at line 25 of file recorder.cpp.

const char* SECTIONS_CREATE = "CREATE TABLE rs_sections(key NUMBER PRIMARY KEY, name TEXT)"

Definition at line 23 of file recorder.cpp.

const char* SECTIONS_FIND_BY_NAME = "SELECT key FROM rs_sections WHERE name = ?"

Definition at line 27 of file recorder.cpp.

const char* SECTIONS_INSERT = "INSERT INTO rs_sections(key, name) VALUES (?, ?)"

Definition at line 24 of file recorder.cpp.

const char* SECTIONS_SELECT_MAX_ID = "SELECT max(key) from rs_sections"

Definition at line 22 of file recorder.cpp.

const char* SECTIONS_TABLE = "rs_sections"

Definition at line 21 of file recorder.cpp.



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