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

compress ZFPathInfo More...

#include "ZFCompress.h"

Go to the source code of this file.

Functions

const zfstringZFPathType_compress ()
 see ZFPathInfo
 
ZFInput ZFInputForCompress (const ZFPathInfo &refPathInfo, const zfstring &itemPath=(zfstring::shared("content")))
 util to create a file input callback
 
ZFOutput ZFOutputForCompress (const ZFPathInfo &refPathInfo, const zfstring &itemPath=(zfstring::shared("content")), ZFIOOpenOptionFlags flags=(v_ZFIOOpenOption::e_Modify))
 util to create a compress file output callback
 
ZFInput ZFInputForCompress (const ZFInput &refInput, const zfstring &itemPath=(zfstring::shared("content")))
 util to create a file input callback
 
ZFOutput ZFOutputForCompress (const ZFOutput &refOutput, const zfstring &itemPath=(zfstring::shared("content")))
 util to create a compress file output callback
 

Detailed Description

compress ZFPathInfo

Function Documentation

◆ ZFPathType_compress()

const zfstring & ZFPathType_compress ( )
extern

see ZFPathInfo

pathData is "refPathInfo|itemPath", see ZFPathInfoChainDecode for more info

typical case:

compress:file:some/path/to/file.zip|item/path
compress:res:some/path/to/file.zip|item/path
compress:http:http://abc.com/some/path/to/file.zip|item/path

◆ ZFInputForCompress()

ZFInput ZFInputForCompress ( const ZFPathInfo & refPathInfo,
const zfstring & itemPath = (zfstring::shared("content")) )
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 zfstring &)itemPath : the inner item path

◆ ZFOutputForCompress() [1/2]

ZFOutput ZFOutputForCompress ( const ZFPathInfo & refPathInfo,
const zfstring & itemPath = (zfstring::shared("content")),
ZFIOOpenOptionFlags flags = (v_ZFIOOpenOption::e_Modify) )
extern

util to create a compress file output callback

param:

◆ ZFOutputForCompress() [2/2]

ZFOutput ZFOutputForCompress ( const ZFOutput & refOutput,
const zfstring & itemPath = (zfstring::shared("content")) )
extern

util to create a compress file output callback

note, the target compress file specified by refOutput would be overwrite instead of append, use refPathInfo verion of ZFOutputForCompress is recommended