FwLogMsg.java
Go to the documentation of this file.
1 package com.intel.realsense.librealsense;
2 
3 public class FwLogMsg extends LrsClass{
4 
5  FwLogMsg(long handle){
6  mHandle = handle;
7  }
8 
9  public enum LogSeverity {
10  DEBUG(0),
11  INFO(1),
12  WARN(2),
13  ERROR(4),
14  FATAL(5);
15 
16  private final int mValue;
17 
18  private LogSeverity(int value) { mValue = value; }
19  public int value() { return mValue; }
20  }
21 
22  @Override
23  public void close() {
24  nRelease(mHandle);
25  }
26 
27  public LogSeverity getSeverity() { return LogSeverity.values()[nGetSeverity(mHandle)]; }
28  public String getSeverityStr(){ return nGetSeverityStr(mHandle); }
29  public long getTimestamp(){return nGetTimestamp(mHandle);}
30  public byte[] getData(byte[] buffer){ return nGetData(mHandle, buffer);}
31  public int getSize() { return nGetSize(mHandle);}
32 
33 
34  private native static void nRelease(long handle);
35  private native static int nGetSeverity(long handle);
36  private native static String nGetSeverityStr(long handle);
37  private native static long nGetTimestamp(long handle);
38  private native static byte[] nGetData(long handle, byte[] buffer);
39  private native static int nGetSize(long handle);
40 }
static native int nGetSeverity(long handle)
static native byte[] nGetData(long handle, byte[] buffer)
static native String nGetSeverityStr(long handle)
GLuint64 GLenum void * handle
Definition: glext.h:7785
static native int nGetSize(long handle)
GLfloat value
GLenum GLfloat * buffer
::std_msgs::String_< std::allocator< void > > String
Definition: String.h:47
static native long nGetTimestamp(long handle)
static native void nRelease(long handle)
unsigned char byte
Definition: src/types.h:52


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