gwnavgeneration/generator/generatorvisualdebugoptions.h Source File

generatorvisualdebugoptions.h
Go to the documentation of this file.
1 /*
2 * Copyright 2015 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 // primary contact: GUAL - secondary contact: LASI
9 #ifndef GwNavGen_GeneratorVisualDebugOptions_H
10 #define GwNavGen_GeneratorVisualDebugOptions_H
11 
14 
15 namespace Kaim
16 {
17 
18 class GeneratorVisualDebugOptions
19 {
20  KY_DEFINE_NEW_DELETE_OPERATORS(Stat_Default_Mem)
21 public:
22  GeneratorVisualDebugOptions()
23  {
24  SetDefaultValues();
25  }
26 
27  void SetDefaultValues()
28  {
29  m_filename[0] = '\0';
30  m_isActive = false;
31  }
32 
33  void Activate(const char* filename = "GeneratorSystem.VisualDebug")
34  {
35  SFsprintf(m_filename, 256, "%s", filename);
36  m_isActive = true;
37  }
38 
39  void Deactivate() { m_isActive = false; }
40 
41  const char* GetFileName() const { return m_filename; }
42  bool IsActive() const { return m_isActive; }
43 
44 private:
45  char m_filename[256]; // MAX_PATH
46  bool m_isActive; // Can be really deactivated in some condition (multicore)
47 };
48 
49 
50 } // namespace Kaim
51 
52 #endif // GwNavGen_GeneratorVisualDebugOptions_H
53 
Definition: gamekitcrowddispersion.h:20
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137