NVIDIA DRIVE OS Linux API Reference

5.1.6.1 Release
For Test and Development only

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 INVSIPLDEVBLKTRACE_H
11 #define INVSIPLDEVBLKTRACE_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 // INVSIPLDEVBLKTRACE_H
Indicates logging is turned on for every print statement.
Indicates logging is turned on for errors.
TraceLevel
Defines tracing/logging levels.
Describes the interfaces of NvSIPLDeviceBlockTrace.
Indicates logging is turned on for information level messages.
virtual void SetLevel(TraceLevel eLevel)=0
Sets the log level.
static INvSIPLDeviceBlockTrace * GetInstance(void)
Gets a handle to INvSIPLDeviceBlockTrace instance.
void(*)(const char *, int) TraceFuncPtr
virtual void DisableLineInfo(void)=0
Disable line info (FUNCTION : LINE: ) prefix.
virtual void SetHook(TraceFuncPtr traceHook, bool bCallDefaultRenderer)=0
Sets a callable trace hook.
Indicates logging is turned on for critical warnings.
virtual ~INvSIPLDeviceBlockTrace()=default
Default destructor.