Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATStreamFile::Open
CATResult CATStreamFile::Open ( const CATWChar pathname,
OPEN_MODE  mode 
) [virtual]

Open() opens a file from a pathname.

Call close when done.

Parameters:
pathname - ptr to string specifying the path.
mode - combination of OPEN_MODE enumerated flags.
Returns:
CATResult - CAT_SUCCESS on success.
See also:
Close()

Implements CATStream.

Definition at line 41 of file CATStreamFile.cpp.

References CAT_ERR_FILE_OPEN, CAT_ERR_FILE_UNSUPPORTED_MODE, CAT_SUCCESS, CATASSERT, CATRESULT, CATRESULTFILE, fFileHandle, fFilename, CATStream::READ_ONLY, CATStream::READ_WRITE_CREATE_TRUNC, CATStream::READ_WRITE_EXISTING_FIRST, CATStream::READ_WRITE_EXISTING_ONLY, and CATStream::WRITE_CREATE_ONLY.

Referenced by CATImage::DbgSave(), CATStreamRAM::FromFile(), CATXMLParser::Parse(), CATImage::Save(), CATDLLInjector::StartDLLWithProcess(), CATStreamRAM::ToFile(), and CATXMLParser::Write().


Generated on Mon Feb 11 04:10:56 2008 for Game Accessibility Suite by doxygen 1.5.4