BVB Source Codes

CRYENGINE Show AIDbgRecorder.h Source code

Return Download CRYENGINE: download AIDbgRecorder.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. /********************************************************************
  4.    -------------------------------------------------------------------------
  5.    File name:   AIDbgRecorder.h
  6.    Description: Simple text AI debugging event recorder
  7.  
  8.    -------------------------------------------------------------------------
  9.    History:
  10.    - 1:07:2005 : Created by Kirill Bulatsev
  11.    -19:11:2008 : Separated out by Matthew
  12.  
  13.    Notes:        Really, this class is two separate debuggers - consider splitting
  14.               Move the access point to gAIEnv
  15.               Only creates the files on files on first logging - add some kind of init
  16.  
  17.  *********************************************************************/
  18.  
  19. #ifndef __AIDBGRECORDER_H__
  20. #define __AIDBGRECORDER_H__
  21.  
  22. #pragma once
  23.  
  24. #ifdef CRYAISYSTEM_DEBUG
  25.  
  26. // Simple text debug recorder
  27. // Completely independent from CAIRecorder, which is more sophisticated
  28. class CAIDbgRecorder
  29. {
  30. public:
  31.  
  32.         CAIDbgRecorder() {};
  33.         ~CAIDbgRecorder() {};
  34.  
  35.         bool IsRecording(const IAIObject* pTarget, IAIRecordable::e_AIDbgEvent event) const;
  36.         void Record(const IAIObject* pTarget, IAIRecordable::e_AIDbgEvent event, const char* pString) const;
  37.  
  38. protected:
  39.         void InitFile() const;
  40.         void InitFileSecondary() const;
  41.  
  42.         void LogString(const char* pString) const;
  43.         void LogStringSecondary(const char* pString) const;
  44.  
  45.         // Empty indicates currently unused
  46.         // Has to be mutable right now because it changes on first logging
  47.         mutable string m_sFile, m_sFileSecondary;
  48. };
  49.  
  50. #endif //CRYAISYSTEM_DEBUG
  51.  
  52. #endif //__AIDBGRECORDER_H__
  53.  
downloadAIDbgRecorder.h Source code - Download CRYENGINE Source code
Related Source Codes/Software:
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top