VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtDeScopedLogLevel.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2023 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 #include <vrvCore/vrvCore.h>
12 
13 #include <vrvUtil/DtDebugLog.h>
14 
15 namespace makVrv
16 {
17  class DtDe;
18  class DtDebugLog;
19 
22  {
23  public:
25  DtDeScopedLogLevel(DtDe& de, DtDebugLog& log, int newLevel);
26 
28  virtual ~DtDeScopedLogLevel();
29 
31  DtDeScopedLogLevel() = delete;
33  DtDeScopedLogLevel(const DtDeScopedLogLevel& rhs) = delete;
35  DtDeScopedLogLevel& operator=(const DtDeScopedLogLevel& rhs) = delete;
36  protected:
39  bool myChanged = false;
41  };
42 
44  {
45  public:
47  DtScopedLogLevel(int newLevel);
48 
50  virtual ~DtScopedLogLevel();
51  protected:
53  bool myChanged = false;
54  };
55 }
DtDe & myDe
Definition: DtDeScopedLogLevel.h:37
DtDebugLog::PrintLevel myOldLevel
Definition: DtDeScopedLogLevel.h:38
sets the log level when scope is entered, and restores the old log level when scope is exited ...
Definition: DtDeScopedLogLevel.h:21
This is a simple class for logging information to a file. To be used, the caller must specify a loggi...
Definition: DtDebugLog.h:38
PrintLevel
Definition: DtDebugLog.h:42
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
Definition: DtDeScopedLogLevel.h:43
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
DtDebugLog & myLog
Definition: DtDeScopedLogLevel.h:40
Contains makVrv::DtIGLogger class.
int myOldLevel
Definition: DtDeScopedLogLevel.h:52
Contains DLL export macros.

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)