UFO: Alien Invasion
ScopedFile Class Reference

#include <filesys.h>

Collaboration diagram for ScopedFile:
Collaboration graph

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::ScopedFile ( )
inline

Definition at line 190 of file filesys.h.

◆ ~ScopedFile()

ScopedFile::~ScopedFile ( )
inline

Definition at line 194 of file filesys.h.

References FS_CloseFile().

Member Function Documentation

◆ file()

bool ScopedFile::file ( ) const
inline

Definition at line 206 of file filesys.h.

References qFILE::f.

◆ getFile()

FILE * ScopedFile::getFile ( ) const
inline

Definition at line 214 of file filesys.h.

References qFILE::getFile().

Referenced by WriteBSPFile().

◆ operator bool()

ScopedFile::operator bool ( ) const
inline

Definition at line 202 of file filesys.h.

◆ operator&()

qFILE * ScopedFile::operator& ( )
inline

Definition at line 198 of file filesys.h.

◆ zip()

bool ScopedFile::zip ( ) const
inline

Definition at line 210 of file filesys.h.

References qFILE::z.

Field Documentation

◆ _file

qFILE ScopedFile::_file
private

Definition at line 188 of file filesys.h.


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