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
NvSIPLTrace.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 INVSIPLTRACE_H
11 #define INVSIPLTRACE_H
12 
20 namespace nvsipl
21 {
22 
33 {
34 public:
35 
38  {
39  LevelNone = 0,
44  };
45 
46  using TraceFuncPtr = void(*)(const char*, int);
47 
53  static INvSIPLTrace* GetInstance(void);
54 
64  virtual void SetHook(TraceFuncPtr traceHook,
65  bool bCallDefaultRenderer) = 0;
66 
77  virtual void SetLevel(TraceLevel eLevel) = 0;
78 
84  virtual void DisableLineInfo(void) = 0;
85 
87  virtual ~INvSIPLTrace() = default;
88 };
89 
92 } // namespace nvsipl
93 
94 #endif // INVSIPLTRACE_H
Defines the public interfaces to control the logging/tracing of the libnvsipl.so library for debug pu...
Definition: NvSIPLTrace.hpp:32
virtual void SetLevel(TraceLevel eLevel)=0
Sets the log level.
static INvSIPLTrace * GetInstance(void)
Gets a handle to INvSIPLTrace instance.
Indicates logging is turned on for information level messages.
Definition: NvSIPLTrace.hpp:42
virtual ~INvSIPLTrace()=default
Default destructor.
TraceLevel
Defines the tracing/logging levels.
Definition: NvSIPLTrace.hpp:37
Indicates logging is turned on for every print statement.
Definition: NvSIPLTrace.hpp:43
Indicates logging is turned on for errors.
Definition: NvSIPLTrace.hpp:40
void(*)(const char *, int) TraceFuncPtr
Definition: NvSIPLTrace.hpp:46
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 off.
Definition: NvSIPLTrace.hpp:39
Indicates logging is turned on for critical warnings.
Definition: NvSIPLTrace.hpp:41