Loading [MathJax]/extensions/tex2jax.js
  • <xmp id="om0om">
  • <table id="om0om"><noscript id="om0om"></noscript></table>
  • NVIDIA DRIVE OS Linux SDK API Reference

    6.0.9 Release
    All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
    NvSIPLTrace.hpp
    Go to the documentation of this file.
    1 /*
    2  * Copyright (c) 2018-2022, 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 
    73  static INvSIPLTrace* GetInstance(void);
    74 
    104  virtual void SetHook(TraceFuncPtr pfnTraceHook,
    105  bool bCallDefaultRenderer) = 0;
    106 
    137  virtual void SetLevel(TraceLevel eLevel) = 0;
    138 
    164  virtual void DisableLineInfo(void) = 0;
    165 
    167  virtual ~INvSIPLTrace() = default;
    168 };
    169 #endif
    170 
    171 
    173 } // namespace nvsipl
    174 
    175 #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
    人人超碰97caoporen国产