FileOpenerBase::OpenFile

FileOpenerBase::OpenFile
virtual File* OpenFile(const char* purl, int flags = FileConstants::Open_Read|FileConstants::Open_Buffered, int mode = FileConstants::Mode_ReadWrite) = 0;
Description

OpenFile overrides to open a file using user-defined function and/or File class. The default implementation uses a buffer-wrapped SysFile, but only if SF_ENABLE_SYSFILE is defined.

Parameters
Parameters 
Description 
const char* purl 
Url to the file. This should be encoded as UTF-8 to support international file names. 
int flags = FileConstants::Open_Read|FileConstants::Open_Buffered 
Flags set for opening the file with buffering. See FileConstants::OpenFlags
int mode = FileConstants::Mode_ReadWrite 
Modes set for file operations. See FileConstants::Modes
Return Value

A File pointer to the opened file.