ezEngine  Milestone 7
ezDataDirectoryReaderWriterBase Class Referenceabstract

This is the base class for all data directory readers/writers. More...

#include <DataDirType.h>

Inheritance diagram for ezDataDirectoryReaderWriterBase:

Public Member Functions

 ezDataDirectoryReaderWriterBase (bool bIsReader)
 The derived class should pass along whether it is a reader or writer.
 
ezResult Open (const char *szFilePath, ezDataDirectoryType *pOwnerDataDirectory)
 Used by ezDataDirectoryType's to try to open the given file. They need to pass along their own pointer.
 
void Close ()
 Closes this data stream.
 
const ezString128GetFilePath () const
 Returns the relative path of this file within the owner data directory.
 
ezDataDirectoryTypeGetDataDirectory () const
 Returns the pointer to the data directory, which created this reader/writer.
 
bool IsReader () const
 Returns true if this is a reader stream, false if it is a writer stream.
 
virtual ezUInt64 GetFileSize () const =0
 Returns the current total size of the file.
 

Private Member Functions

 EZ_DISALLOW_COPY_AND_ASSIGN (ezDataDirectoryReaderWriterBase)
 
virtual ezResult InternalOpen ()=0
 This function must be implemented by the derived class.
 
virtual void InternalClose ()=0
 This function must be implemented by the derived class.
 

Private Attributes

bool m_bIsReader
 
ezDataDirectoryTypem_pDataDirectory
 
ezString128 m_sFilePath
 

Detailed Description

This is the base class for all data directory readers/writers.

Different data directory types (ZIP file, simple folder, etc.) use different reader/writer types.


The documentation for this class was generated from the following files: