BVB Source Codes

CRYENGINE Show ExecutionStackFileLogger.h Source code

Return Download CRYENGINE: download ExecutionStackFileLogger.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. #ifndef ExecutionStackFileLogger_h
  4. #define ExecutionStackFileLogger_h
  5.  
  6. #pragma once
  7.  
  8. #include <CryAISystem/BehaviorTree/IBehaviorTree.h>
  9.  
  10. #ifdef USING_BEHAVIOR_TREE_EXECUTION_STACKS_FILE_LOG
  11. namespace BehaviorTree
  12. {
  13. class ExecutionStackFileLogger
  14. {
  15. public:
  16.         explicit ExecutionStackFileLogger(const EntityId entityId);
  17.         ~ExecutionStackFileLogger();
  18.         void LogDebugTree(const DebugTree& debugTree, const UpdateContext& updateContext, const BehaviorTreeInstance& instance);
  19.  
  20. private:
  21.         enum LogFileOpenState
  22.         {
  23.                 CouldNotAdjustFileName,
  24.                 NotYetAttemptedToOpenForWriteAccess,
  25.                 OpenForWriteAccessFailed,
  26.                 OpenForWriteAccessSucceeded
  27.         };
  28.  
  29.         ExecutionStackFileLogger(const ExecutionStackFileLogger&);
  30.         ExecutionStackFileLogger& operator=(const ExecutionStackFileLogger&);
  31.  
  32.         void                      LogNodeRecursively(const DebugNode& debugNode, const UpdateContext& updateContext, const BehaviorTreeInstance& instance, const int indentLevel);
  33.  
  34.         string           m_agentName;
  35.         char             m_logFilePath[ICryPak::g_nMaxPath];
  36.         LogFileOpenState m_openState;
  37.         CCryFile         m_logFile;
  38. };
  39. }
  40. #endif  // USING_BEHAVIOR_TREE_EXECUTION_STACKS_FILE_LOG
  41.  
  42. #endif  // ExecutionStackFileLogger_h
  43.  
downloadExecutionStackFileLogger.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