BVB Source Codes

CRYENGINE Show XMLCPB_WriterInterface.h Source code

Return Download CRYENGINE: download XMLCPB_WriterInterface.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_WRITERINTERFACE_H
  9.         #define XMLCPB_WRITERINTERFACE_H
  10.  
  11.         #include "XMLCPB_Writer.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. // CWriter should not be used directly from outside
  17. class CWriterInterface
  18. {
  19. public:
  20.  
  21.         void               Init(const char* pRootName, const char* pFileName)  { m_writer.Init(pRootName, pFileName); }
  22.         CNodeLiveWriterRef GetRoot()                                           { return m_writer.GetRoot(); }
  23.         void               Done()                                              { m_writer.Done(); } // should be called when everything is added and finished.
  24.         bool               FinishWritingFile()                                 { return m_writer.FinishWritingFile(); }
  25.         bool               WriteAllIntoMemory(uint8*& rpData, uint32& outSize) { return m_writer.WriteAllIntoMemory(rpData, outSize); }
  26.  
  27. private:
  28.  
  29.         CWriter m_writer;
  30. };
  31.  
  32. }  // end namespace
  33.  
  34. #endif
  35.  
downloadXMLCPB_WriterInterface.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