gwnavgeneration/generator/generatorvisualdebugoptions.h Source File

generatorvisualdebugoptions.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 
8 #pragma once
9 
12 
13 namespace Kaim
14 {
15 
16 class GeneratorVisualDebugOptions
17 {
18  KY_DEFINE_NEW_DELETE_OPERATORS(Stat_Default_Mem)
19 public:
20  GeneratorVisualDebugOptions()
21  {
22  SetDefaultValues();
23  }
24 
25  void SetDefaultValues()
26  {
27  m_filename[0] = '\0';
28  m_isActive = false;
29  }
30 
31  void Activate(const char* filename = "GeneratorSystem.VisualDebug")
32  {
33  SFsprintf(m_filename, 256, "%s", filename);
34  m_isActive = true;
35  }
36 
37  void Deactivate() { m_isActive = false; }
38 
39  const char* GetFileName() const { return m_filename; }
40  bool IsActive() const { return m_isActive; }
41 
42 private:
43  char m_filename[256]; // MAX_PATH
44  bool m_isActive; // Can be really deactivated in some condition (multicore)
45 };
46 
47 
48 } // namespace Kaim
49 
50 
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:132
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17