UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ScopedFile Class Reference

#include <filesys.h>

Public Member Functions

 ScopedFile ()
 
 ~ScopedFile ()
 
qFILEoperator& ()
 
 operator bool () const
 
bool file () const
 
bool zip () const
 
FILEgetFile () const
 

Private Attributes

qFILE _file
 

Detailed Description

Definition at line 186 of file filesys.h.

Constructor & Destructor Documentation

ScopedFile::ScopedFile ( )
inline

Definition at line 190 of file filesys.h.

ScopedFile::~ScopedFile ( )
inline

Definition at line 194 of file filesys.h.

References FS_CloseFile().

Member Function Documentation

bool ScopedFile::file ( ) const
inline

Definition at line 206 of file filesys.h.

References qFILE_s::f.

Referenced by Com_WriteConfigToFile(), and Con_SaveConsoleHistory().

FILE* ScopedFile::getFile ( ) const
inline

Definition at line 214 of file filesys.h.

References qFILE_s::getFile().

Referenced by Con_LoadConsoleHistory(), WEB_CGameDownloadFromUser(), and WriteBSPFile().

ScopedFile::operator bool ( ) const
inline

Definition at line 202 of file filesys.h.

qFILE* ScopedFile::operator& ( )
inline

Definition at line 198 of file filesys.h.

bool ScopedFile::zip ( ) const
inline

Definition at line 210 of file filesys.h.

References qFILE_s::z.

Field Documentation

qFILE ScopedFile::_file
private

Definition at line 188 of file filesys.h.


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