NVIDIA DRIVE OS Linux SDK API Reference

5.1.15.2 Release
For Test and Development only
NvSIPLDeviceBlockTrace.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
3  *
4  * NVIDIA CORPORATION and its licensors retain all intellectual property
5  * and proprietary rights in and to this software, related documentation
6  * and any modifications thereto. Any use, reproduction, disclosure or
7  * distribution of this software and related documentation without an express
8  * license agreement from NVIDIA CORPORATION is strictly prohibited.
9  */
10 #ifndef NVSIPLDEVBLKTRACE_H
11 #define NVSIPLDEVBLKTRACE_H
12 
20 namespace nvsipl
21 {
22 
35 {
36 public:
37 
40  {
41  LevelNone = 0,
46  };
47 
48  using TraceFuncPtr = void(*)(const char*, int);
49 
56 
66  virtual void SetHook(TraceFuncPtr traceHook,
67  bool bCallDefaultRenderer) = 0;
68 
79  virtual void SetLevel(TraceLevel eLevel) = 0;
80 
86  virtual void DisableLineInfo(void) = 0;
87 
89  virtual ~INvSIPLDeviceBlockTrace() = default;
90 };
91 
94 } // namespace nvsipl
95 
96 
97 #endif // NVSIPLDEVBLKTRACE_H
nvsipl::INvSIPLDeviceBlockTrace::~INvSIPLDeviceBlockTrace
virtual ~INvSIPLDeviceBlockTrace()=default
Default destructor.
nvsipl::INvSIPLDeviceBlockTrace::SetLevel
virtual void SetLevel(TraceLevel eLevel)=0
Sets the log level.
nvsipl::INvSIPLDeviceBlockTrace::LevelError
@ LevelError
Indicates logging is turned on for errors.
Definition: NvSIPLDeviceBlockTrace.hpp:42
nvsipl::INvSIPLDeviceBlockTrace::TraceFuncPtr
void(*)(const char *, int) TraceFuncPtr
Definition: NvSIPLDeviceBlockTrace.hpp:48
nvsipl::INvSIPLDeviceBlockTrace::TraceLevel
TraceLevel
Defines tracing/logging levels.
Definition: NvSIPLDeviceBlockTrace.hpp:39
nvsipl::INvSIPLDeviceBlockTrace::DisableLineInfo
virtual void DisableLineInfo(void)=0
Disable line info (FUNCTION : LINE: ) prefix.
nvsipl::INvSIPLDeviceBlockTrace::LevelNone
@ LevelNone
Indicates logging is turned off.
Definition: NvSIPLDeviceBlockTrace.hpp:41
nvsipl::INvSIPLDeviceBlockTrace::LevelInfo
@ LevelInfo
Indicates logging is turned on for information level messages.
Definition: NvSIPLDeviceBlockTrace.hpp:44
nvsipl::INvSIPLDeviceBlockTrace::LevelDebug
@ LevelDebug
Indicates logging is turned on for every print statement.
Definition: NvSIPLDeviceBlockTrace.hpp:45
nvsipl::INvSIPLDeviceBlockTrace::LevelWarning
@ LevelWarning
Indicates logging is turned on for critical warnings.
Definition: NvSIPLDeviceBlockTrace.hpp:43
nvsipl::INvSIPLDeviceBlockTrace
Describes the interfaces of NvSIPLDeviceBlockTrace.
Definition: NvSIPLDeviceBlockTrace.hpp:34
nvsipl
Contains the classes and variables for implementation of Sensor Input Processing Library (SIPL).
Definition: NvSIPLDeviceBlock.hpp:32
nvsipl::INvSIPLDeviceBlockTrace::GetInstance
static INvSIPLDeviceBlockTrace * GetInstance(void)
Gets a handle to INvSIPLDeviceBlockTrace instance.
nvsipl::INvSIPLDeviceBlockTrace::SetHook
virtual void SetHook(TraceFuncPtr traceHook, bool bCallDefaultRenderer)=0
Sets a callable trace hook.