high level object IO More...
#include "ZFFile.h"
Go to the source code of this file.
Macros | |
#define | ZFOBJECTIO_DEFINE(registerSig, level, checkerAction, fromInputAction, toOutputAction) |
see ZFObjectIOLoad | |
#define | ZFStyleDecoder_ZFObjectIO |
see ZFSTYLE_DECODER_DEFINE | |
Functions | |
zfauto | ZFObjectIOLoad (const ZFInput &input, zfstring *outErrorHint=zft_zfnull) |
high level object IO | |
zfbool | ZFObjectIOLoadT (zfauto &ret, const ZFInput &input, zfstring *outErrorHint=zft_zfnull) |
see ZFObjectIOLoad | |
zfbool | ZFObjectIOSave (const ZFOutput &output, ZFObject *obj, zfstring *outErrorHint=zft_zfnull) |
see ZFObjectIOLoad | |
high level object IO
#define ZFOBJECTIO_DEFINE | ( | registerSig, | |
level, | |||
checkerAction, | |||
fromInputAction, | |||
toOutputAction ) |
see ZFObjectIOLoad
usage:
#define ZFStyleDecoder_ZFObjectIO |
styleKey should start with '@' and holds a ZFPathInfo, the result style object would be created by ZFInputForPathInfo and ZFObjectIOLoad
high level object IO
most object of ZFFramework are seraizliable, and can be stored as different type (such as xml or json), to make app level code more convenient, we introduced this method to load/save serializable object without knowing underlying storage type
typical usage:
how it works:
to add your own type, please refer to ZFOBJECTIO_DEFINE