RsUsageEnvironment.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2020 Intel Corporation. All Rights Reserved.
3 
4 #pragma once
5 
6 #include <BasicUsageEnvironment.hh>
7 #include <easylogging++.h>
8 
9 #define RS_MAX_LOG_MSG_SIZE 1024
10 #define RS_MAX_LOG_MSG_THLD 128
11 
12 class RSUsageEnvironment : public BasicUsageEnvironment
13 {
14 public:
15  static RSUsageEnvironment* createNew(TaskScheduler& taskScheduler);
16 
17  virtual UsageEnvironment& operator<<(char const* str);
18  virtual UsageEnvironment& operator<<(int i);
19  virtual UsageEnvironment& operator<<(unsigned u);
20  virtual UsageEnvironment& operator<<(double d);
21  virtual UsageEnvironment& operator<<(void* p);
22 
23 protected:
24  RSUsageEnvironment(TaskScheduler& taskScheduler);
25  // called only by "createNew()" (or subclass constructors)
26  virtual ~RSUsageEnvironment();
27 
28 private:
29  void flush();
30  void check();
31 
33  char* ptr;
34 
37 };
GLfloat GLfloat p
Definition: glext.h:12687
d
Definition: rmse.py:171
GLenum GLfloat * buffer
RSUsageEnvironment(TaskScheduler &taskScheduler)
virtual UsageEnvironment & operator<<(char const *str)
int i
Represents a logger holding ID and configurations we need to write logs.
static RSUsageEnvironment * createNew(TaskScheduler &taskScheduler)
#define RS_MAX_LOG_MSG_SIZE


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