NVIDIA DRIVE OS Linux SDK API Reference

5.2.6 Release
For Test and Development only
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 NVSIPLTRACE_HPP
11 #define NVSIPLTRACE_HPP
12 
20 namespace nvsipl
21 {
22 
31 #if !NV_IS_SAFETY
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 pfnTraceHook,
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 #endif
90 
91 
93 } // namespace nvsipl
94 
95 #endif // NVSIPLTRACE_HPP
nvsipl::INvSIPLTrace::TraceLevel
TraceLevel
Defines the tracing/logging levels.
Definition: NvSIPLTrace.hpp:37
nvsipl::INvSIPLTrace::LevelNone
@ LevelNone
Indicates logging is turned off.
Definition: NvSIPLTrace.hpp:39
nvsipl::INvSIPLTrace
Defines the public interfaces to control the logging/tracing of SIPL.
Definition: NvSIPLTrace.hpp:32
nvsipl::INvSIPLTrace::DisableLineInfo
virtual void DisableLineInfo(void)=0
Disable line info (FUNCTION : LINE: ) prefix.
nvsipl::INvSIPLTrace::LevelWarning
@ LevelWarning
Indicates logging is turned on for critical warnings.
Definition: NvSIPLTrace.hpp:41
nvsipl::INvSIPLTrace::TraceFuncPtr
void(*)(const char *, int) TraceFuncPtr
Definition: NvSIPLTrace.hpp:46
nvsipl::INvSIPLTrace::LevelError
@ LevelError
Indicates logging is turned on for errors.
Definition: NvSIPLTrace.hpp:40
nvsipl::INvSIPLTrace::SetLevel
virtual void SetLevel(TraceLevel eLevel)=0
Sets the log level.
nvsipl::INvSIPLTrace::GetInstance
static INvSIPLTrace * GetInstance(void)
Gets a handle to INvSIPLTrace instance.
nvsipl::INvSIPLTrace::LevelInfo
@ LevelInfo
Indicates logging is turned on for information level messages.
Definition: NvSIPLTrace.hpp:42
nvsipl::INvSIPLTrace::~INvSIPLTrace
virtual ~INvSIPLTrace()=default
Default destructor.
nvsipl::INvSIPLTrace::SetHook
virtual void SetHook(TraceFuncPtr pfnTraceHook, bool bCallDefaultRenderer)=0
Sets a callable trace hook.
nvsipl
Contains the classes and variables for implementation of SIPL.
Definition: INvSiplControlAuto.hpp:33
nvsipl::INvSIPLTrace::LevelDebug
@ LevelDebug
Indicates logging is turned on for every print statement.
Definition: NvSIPLTrace.hpp:43