BVB Source Codes

CRYENGINE Show XMLCPB_Utils.h Source code

Return Download CRYENGINE: download XMLCPB_Utils.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. /*************************************************************************
  4. *************************************************************************/
  5.  
  6. #pragma once
  7.  
  8. #ifndef XMLCPB_UTILS_H
  9.         #define XMLCPB_UTILS_H
  10.  
  11.         #include "Reader/XMLCPB_NodeLiveReader.h"
  12.         #include <CryCore/Platform/IPlatformOS.h>
  13.  
  14. namespace XMLCPB {
  15.  
  16.         #ifdef XMLCPB_DEBUGUTILS
  17.  
  18. class CDebugUtils : public IPlatformOS::IPlatformListener
  19. {
  20. public:
  21.  
  22.         static void Create()
  23.         {
  24.                 if (!s_pThis)
  25.                 {
  26.                         s_pThis = new CDebugUtils();
  27.                 }
  28.         }
  29.  
  30.         static void Destroy()
  31.         {
  32.                 SAFE_DELETE(s_pThis);
  33.         }
  34.  
  35.         static XmlNodeRef BinaryFileToXml(const char* pBinaryFileName);
  36.         static void       DumpToXmlFile(CNodeLiveReaderRef BRoot, const char* pXmlFileName);
  37.         static void       DumpToLog(CNodeLiveReaderRef BRoot);
  38.         static void       SetLastFileNameSaved(const char* pFileName);
  39.  
  40.         // IPlatformOS::IPlatformListener
  41.         virtual void OnPlatformEvent(const IPlatformOS::SPlatformEvent& event);
  42.         // ~IPlatformOS::IPlatformListener
  43.  
  44. private:
  45.  
  46.         CDebugUtils();
  47.         virtual ~CDebugUtils();
  48.         static void RecursiveCopyAttrAndChildsIntoXmlNode(XmlNodeRef xmlNode, const CNodeLiveReaderRef& BNode);
  49.         static void GenerateXMLFromLastSaveCmd(IConsoleCmdArgs* args);
  50.         static void GenerateXmlFileWithSizeInformation(const char* pBinaryFileName, const char* pXmlFileName);
  51.  
  52. private:
  53.         string              m_lastFileNameSaved;
  54.         static CDebugUtils* s_pThis;
  55. };
  56.  
  57.         #else //XMLCPB_DEBUGUTILS
  58. class CDebugUtils
  59. {
  60. public:
  61.         static void Create()  {}
  62.         static void Destroy() {};
  63. };
  64.         #endif
  65. } // end namespace
  66.  
  67. #endif
  68.  
downloadXMLCPB_Utils.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