gwnavruntime/basesystem/baselog.h Source File

baselog.h
Go to the documentation of this file.
1 /*
2 * Copyright 2016 Autodesk, Inc. All rights reserved.
3 * Use of this software is subject to the terms of the Autodesk license agreement and any attachments or Appendices thereto provided at the time of installation or download,
4 * or which otherwise accompanies this software in either electronic or hard copy form, or which is signed by you and accepted by Autodesk.
5 */
6 
7 #pragma once
8 
10 
11 namespace Kaim
12 {
13 
14 class VisualDebugServer;
15 
18 class BaseLog : public Log
19 {
20 public:
21  virtual void SetVisualDebugServer(VisualDebugServer* server) = 0;
22  virtual VisualDebugServer* GetVisualDebugServer() = 0;
23 
24  // from Kaim::Log interface
25  // virtual void LogMessageVarg(LogMessageId messageId, const char* fmt, va_list argList);
26 
30  virtual void ReleaseMemorySystemResources() {}
31 
33  static void SetGlobalBaseLog(BaseLog *log) { SetGlobalLog(log); }
34  static BaseLog* GetGlobalBaseLog() { return (BaseLog*)GetGlobalLog(); }
35 };
36 
37 }
38 
static void SetGlobalBaseLog(BaseLog *log)
SetGlobalBaseLog(BaseLog* log) must be used instead of SetGlobalLog(Log* log)
Definition: baselog.h:33
virtual void ReleaseMemorySystemResources()
This is called in Kaim::BaseSystem::Destroy() before Navigation memory system is destroyed.
Definition: baselog.h:30
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
In Navigation, BaseLog MUST be used instead of Kaim::Log.
Definition: baselog.h:18