VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtIndirectLog.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 
12 #include <vrvOsg/vrvOsg.h>
13 
16 #include <vrvUtil/DtDebugLog.h>
17 
18 namespace makVrv
19 {
20  class DtDe;
21  class DtDebugLog;
22 
23  #define DT_INDIRECT_LOG_WARN log().out(DtDebugLog::Warning) << "Warning: " << __FILE__ << " +" << __LINE__ << " " << __FUNCTION__ << ": "
24  #define DT_INDIRECT_LOG_INFO log().out(DtDebugLog::Information) << "Info: " << __FILE__ << " +" << __LINE__ << " " << __FUNCTION__ << ": "
25  #define DT_INDIRECT_LOG_DEBUG log().out(DtDebugLog::Debug) << "Debug: " << __FILE__ << " +" << __LINE__ << " " << __FUNCTION__ << ": "
26 
31  {
32  public:
34  virtual ~DtIndirectLog();
35 
37  static DtIndirectLog& instance(DtDe& de);
38  public:
39  DtDebugLog& log();
40 
41  protected:
43  DtIndirectLog(DtDe& de);
44 
45  protected:
46  virtual void slot_driverStarted();
47  virtual void slot_driverStopped();
48 
49  private:
51  DtIndirectLog() = delete;
52 
54  DtIndirectLog(const DtIndirectLog&) = delete;
55 
57  DtIndirectLog& operator=(const DtIndirectLog&) = delete;
58 
59  protected:
61 
62  DtDebugLog* myDebugLog = nullptr;
63 
66  };
67 }
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
DtDe & myDe
Definition: DtIndirectLog.h:60
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
This is a simple class for logging information to a file. To be used, the caller must specify a loggi...
Definition: DtDebugLog.h:37
Contains makVrv::DtVirtualBaseClass class.
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
This class is specifically used by the indirect system It&#39;s separate so that it doesn&#39;t interfere wit...
Definition: DtIndirectLog.h:30
Base class to provide boost signal/slot management.
Contains DLL export macros.
DtSignalConnectionManager myConnections
manager for connections
Definition: DtIndirectLog.h:65
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:72
Contains makVrv::DtIGLogger class.

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)