OpenBarnyard
 
Loading...
Searching...
No Matches
TNullFileSystem.h
Go to the documentation of this file.
1#pragma once
2#include "TFile.h"
3
5
7 , public TSingleton<TNullFileSystem>
8{
9public:
10 TNullFileSystem( const TCHAR* name )
11 : TFileSystem( name )
12 {
14 }
15
16 //-----------------------------------------------------------------------------
17 // TFileSystem
18 //-----------------------------------------------------------------------------
19 virtual TFile* CreateFile( const TString8& a_rcFileName, TFILEMODE a_eFileMode ) OVERRIDE;
20 virtual void DestroyFile( TFile* a_pFile ) OVERRIDE;
21 virtual TString8 MakeInternalPath( const TString8& a_rcPath ) OVERRIDE;
22};
23
Core file system interface for the Toshi engine.
TUINT16 TFILEMODE
Definition TFile.h:35
#define OVERRIDE
Definition Defines.h:12
#define TOSHI_NAMESPACE_START
Definition Defines.h:47
#define TOSHI_NAMESPACE_END
Definition Defines.h:50
char TCHAR
Definition Typedefs.h:20
TFileSystem(const TCHAR *a_szName)
Definition TFile.h:128
void MountFileSystem(TFileSystem *a_pFileSystem)
TNullFileSystem(const TCHAR *name)
virtual void DestroyFile(TFile *a_pFile) OVERRIDE
Destroys specified file.
virtual TFile * CreateFile(const TString8 &a_rcFileName, TFILEMODE a_eFileMode) OVERRIDE
Creates file.
virtual TString8 MakeInternalPath(const TString8 &a_rcPath) OVERRIDE
Not documented.
TSingleton(const TSingleton &)=delete
static TFORCEINLINE TFileManager * GetSingletonSafe()
Definition TSingleton.h:37