NVIDIA DRIVE OS Linux SDK API Reference

5.1.12.0 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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
Indicates logging is turned on for errors.
static INvSIPLQueryTrace * GetInstance(void)
Gets a handle to INvSIPLTrace instance.
virtual void SetLevel(TraceLevel eLevel)=0
Sets the log level.
void(*)(const char *, int) TraceFuncPtr
Indicates logging is turned on for all messages.
virtual void DisableLineInfo(void)=0
Disable line info (FUNCTION : LINE: ) prefix.
Defines the public interfaces to control the logging/tracing of the NvSIPL Query (libnvsipl_query.so) for debugging.
Indicates logging is turned on for very verbose information.
Indicates logging is turned on for critical messages.
Indicates logging is turned on for verbose information.
virtual ~INvSIPLQueryTrace()=default
Default destructor.
Indicates logging is turned on for information level messages.
Indicates logging is turned off.
virtual void SetHook(TraceFuncPtr traceHook, bool bCallDefaultRenderer)=0
Sets a callable trace hook.
TraceLevel
Defines tracing/logging levels.