ZFFramework
 
Loading...
Searching...
No Matches
ZFPathType_file.h File Reference

ZFPathInfo impl as normal file More...

#include "ZFFile.h"

Go to the source code of this file.

Classes

class  ZFFileIOImpl::FileIO< T_Holder >
 util for ZFPATHTYPE_FILEIO_REGISTER impl More...
 

Namespaces

namespace  ZFFileIOImpl
 util for ZFPATHTYPE_FILEIO_REGISTER impl
 

Functions

const zfstringZFPathType_file ()
 see ZFPathInfo
 
ZFInput ZFInputForFile (const zfchar *filePath, ZFFileOpenOptionFlags flags=(v_ZFFileOpenOption::e_Read))
 util to create a file input callback
 
ZFOutput ZFOutputForFile (const zfchar *filePath, ZFFileOpenOptionFlags flags=(v_ZFFileOpenOption::e_Create))
 util to create a file output callback
 

Detailed Description

ZFPathInfo impl as normal file

Function Documentation

◆ ZFPathType_file()

const zfstring & ZFPathType_file ( )
inline

see ZFPathInfo

pathData is the file path

Note
path must be well formed, use ZFPathFormat if necessary

◆ ZFInputForFile()

ZFInput ZFInputForFile ( const zfchar * filePath,
ZFFileOpenOptionFlags flags = (v_ZFFileOpenOption::e_Read) )
inline

util to create a file input callback

param:

  • (const zfchar *)filePath: file path to use
  • (ZFFileOpenOption)flags: flags to open file

auto open and auto close files, may return a null callback if open file error
auto setup callback cache id with res file path

◆ ZFOutputForFile()

ZFOutput ZFOutputForFile ( const zfchar * filePath,
ZFFileOpenOptionFlags flags = (v_ZFFileOpenOption::e_Create) )
inline

util to create a file output callback

param:

  • (const zfchar *)filePath: file path to use
  • (ZFFileOpenOption)flags: flags to open file

auto open and auto close files, may return a null callback if open file error