ZFFramework
 
Loading...
Searching...
No Matches
ZFPathInfo Class Reference

path related info storage for impl, actual meaning of the info depends on impl More...

#include <ZFPathInfo.h>

Public Member Functions

ZFPathInfopathType (const zfstring &pathType)
 path type, normal file or res file, etc
 
const zfstringpathType (void) const
 path type, normal file or res file, etc
 
ZFPathInfopathData (const zfstring &pathData)
 path value, such as local relative path or http url, etc
 
const zfstringpathData (void) const
 path value, such as local relative path or http url, etc
 
zfbool isEmpty (void) const
 true if pathType and pathData is both empty
 
void removeAll (void)
 util to remove pathType and pathData
 

Detailed Description

path related info storage for impl, actual meaning of the info depends on impl

recommend to use ZFPATHTYPE_DECLARE/ZFPATHTYPE_DEFINE for each of your path type, and additionally use ZFPATHTYPE_FILEIO_REGISTER to register your own IO type

path info may describe any abstract files, including:

  • normal file
  • res file, which may be bundled in executable
  • url based file, which may be stored in net driver
  • compressed or encrypted file

all file IO are abstracted as these operation:

with all the things above, app can achieve IO operations without knowing the underlying file types


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