BVB Source Codes

CRYENGINE Show XMLCPB_ReaderInterface.h Source code

Return Download CRYENGINE: download XMLCPB_ReaderInterface.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_READERINTERFACE_H
  9.         #define XMLCPB_READERINTERFACE_H
  10.  
  11.         #include "XMLCPB_Reader.h"
  12.  
  13. namespace XMLCPB {
  14.  
  15. // this class is just to give a clear access to the intended interface functions and only them, without using a bunch of friend declarations
  16. class CReaderInterface
  17. {
  18. public:
  19.         explicit CReaderInterface(IGeneralMemoryHeap* pHeap)
  20.                 : m_reader(pHeap)
  21.         {
  22.         }
  23.  
  24.         CNodeLiveReaderRef GetRoot()                                          { return m_reader.GetRoot(); }
  25.         CNodeLiveReaderRef CreateNodeRef()                                    { return m_reader.CreateNodeRef(); }
  26.         bool               ReadBinaryFile(const char* pFileName)              { return m_reader.ReadBinaryFile(pFileName); }
  27.         bool               ReadBinaryMemory(const uint8* pData, uint32 uSize) { return m_reader.ReadBinaryMemory(pData, uSize); }
  28.         void               SaveTestFiles()                                    { m_reader.SaveTestFiles(); }
  29.  
  30. private:
  31.  
  32.         CReader m_reader;
  33. };
  34.  
  35. }  // end namespace
  36.  
  37. #endif
  38.  
downloadXMLCPB_ReaderInterface.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