NVIDIA DRIVE OS Linux SDK API Reference

5.1.15.0 Release
For Test and Development only
NvSIPLQueryTrace.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 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 NVSIPLQUERYTRACE_H
11 #define NVSIPLQUERYTRACE_H
12 
20 namespace nvsipl
21 {
32 {
33  public:
34 
37  {
38  LevelNone = 0,
45  };
46 
47  using TraceFuncPtr = void(*)(const char*, int);
48 
54  static INvSIPLQueryTrace* GetInstance(void);
55 
65  virtual void SetHook(TraceFuncPtr traceHook,
66  bool bCallDefaultRenderer) = 0;
67 
78  virtual void SetLevel(TraceLevel eLevel) = 0;
79 
85  virtual void DisableLineInfo(void) = 0;
86 
88  virtual ~INvSIPLQueryTrace() = default;
89 };
90 
93 } // namespace nvsipl
94 
95 #endif // NVSIPLQUERYTRACE_H
nvsipl::INvSIPLQueryTrace::LevelAll
@ LevelAll
Indicates logging is turned on for all messages.
Definition: NvSIPLQueryTrace.hpp:44
nvsipl::INvSIPLQueryTrace::DisableLineInfo
virtual void DisableLineInfo(void)=0
Disable line info (FUNCTION : LINE: ) prefix.
nvsipl::INvSIPLQueryTrace::TraceFuncPtr
void(*)(const char *, int) TraceFuncPtr
Definition: NvSIPLQueryTrace.hpp:47
nvsipl::INvSIPLQueryTrace::LevelNone
@ LevelNone
Indicates logging is turned off.
Definition: NvSIPLQueryTrace.hpp:38
nvsipl::INvSIPLQueryTrace::LevelVerbose
@ LevelVerbose
Indicates logging is turned on for verbose information.
Definition: NvSIPLQueryTrace.hpp:42
nvsipl::INvSIPLQueryTrace
Definition: NvSIPLQueryTrace.hpp:31
nvsipl::INvSIPLQueryTrace::LevelError
@ LevelError
Indicates logging is turned on for errors.
Definition: NvSIPLQueryTrace.hpp:39
nvsipl::INvSIPLQueryTrace::SetHook
virtual void SetHook(TraceFuncPtr traceHook, bool bCallDefaultRenderer)=0
Sets a callable trace hook.
nvsipl::INvSIPLQueryTrace::LevelInfo
@ LevelInfo
Indicates logging is turned on for information level messages.
Definition: NvSIPLQueryTrace.hpp:41
nvsipl::INvSIPLQueryTrace::GetInstance
static INvSIPLQueryTrace * GetInstance(void)
Gets a handle to INvSIPLTrace instance.
nvsipl::INvSIPLQueryTrace::LevelCritical
@ LevelCritical
Indicates logging is turned on for critical messages.
Definition: NvSIPLQueryTrace.hpp:40
nvsipl::INvSIPLQueryTrace::~INvSIPLQueryTrace
virtual ~INvSIPLQueryTrace()=default
Default destructor.
nvsipl::INvSIPLQueryTrace::LevelSpew
@ LevelSpew
Indicates logging is turned on for very verbose information.
Definition: NvSIPLQueryTrace.hpp:43
nvsipl
Contains the classes and variables for implementation of Sensor Input Processing Library (SIPL).
Definition: NvSIPLDeviceBlock.hpp:32
nvsipl::INvSIPLQueryTrace::TraceLevel
TraceLevel
Defines tracing/logging levels.
Definition: NvSIPLQueryTrace.hpp:36
nvsipl::INvSIPLQueryTrace::SetLevel
virtual void SetLevel(TraceLevel eLevel)=0
Sets the log level.