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

ZFPathInfo impl as compressed file More...

#include "ZFCompress.h"

Go to the source code of this file.

Functions

const zfstringZFPathType_compress ()
 see ZFPathInfo
 
ZFLIB_ZFAlgorithm ZFInput ZFInputForCompress (const ZFPathInfo &refPathInfo, const zfchar *relPath, ZFFileOpenOptionFlags flags=(v_ZFFileOpenOption::e_Read))
 util to create a file input callback
 
ZFLIB_ZFAlgorithm ZFOutput ZFOutputForCompress (const ZFPathInfo &refPathInfo, const zfchar *relPath, ZFFileOpenOptionFlags flags=(v_ZFFileOpenOption::e_Create))
 util to create a compress file output callback
 

Detailed Description

ZFPathInfo impl as compressed file

Function Documentation

◆ ZFPathType_compress()

const zfstring & ZFPathType_compress ( )
inline

see ZFPathInfo

pathData is "refPathInfo|relPath"

the refPathInfo is a chained ZFPathInfo, a typical case:

compress:file:some/path/to/a.zip|inner/path/to/content.txt
compress:res:some/path/to/a.zip|inner/path/to/content.txt
compress:http:http://abc.com/some/path/to/a.zip|inner/path/to/content.txt

see ZFPathInfoChainDecode for more info

◆ ZFInputForCompress()

ZFLIB_ZFAlgorithm ZFInput ZFInputForCompress ( const ZFPathInfo & refPathInfo,
const zfchar * relPath,
ZFFileOpenOptionFlags flags = (v_ZFFileOpenOption::e_Read) )
extern

util to create a file input callback

param:

  • (const ZFPathInfo &)refPathInfo: the compress file path to use, see ZFPathType_compress for more info
  • (const zfchar *)relPath: the relative file path inside the compress file

◆ ZFOutputForCompress()

ZFLIB_ZFAlgorithm ZFOutput ZFOutputForCompress ( const ZFPathInfo & refPathInfo,
const zfchar * relPath,
ZFFileOpenOptionFlags flags = (v_ZFFileOpenOption::e_Create) )
extern

util to create a compress file output callback

param:

  • (const ZFPathInfo &)refPathInfo: the compress file path to use, see ZFPathType_compress for more info
  • (const zfchar *)relPath: the relative file path inside the compress file