ZFFramework
 
Loading...
Searching...
No Matches
ZFProtocolZFXml.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFProtocolZFXml_h_
7#define _ZFI_ZFProtocolZFXml_h_
8
9#include "ZFCore/ZFProtocol.h"
10#include "ZFAlgorithm/ZFXml.h"
12
17public:
21 virtual void xmlEscapeCharEncode(
22 ZF_OUT const ZFOutput &dst
23 , ZF_IN const zfchar *src
24 , ZF_IN_OPT zfindex count = zfindexMax()
25 );
29 virtual void xmlEscapeCharDecode(
30 ZF_OUT const ZFOutput &dst
31 , ZF_IN const zfchar *src
32 , ZF_IN_OPT zfindex count = zfindexMax()
33 );
34
35public:
45 virtual ZFXml xmlParse(
46 ZF_IN const zfchar *src
48 , ZF_OUT_OPT zfstring *errorHint = zfnull
53 virtual ZFXml xmlParse(
54 ZF_IN const ZFInput &inputCallback
55 , ZF_OUT_OPT zfstring *errorHint = zfnull
58
60#endif // #ifndef _ZFI_ZFProtocolZFXml_h_
61
#define ZFLIB_ZFAlgorithm
used to export symbols
Definition ZFAlgorithmDef.h:14
_ZFT_t_zfchar zfchar
char wrapper
Definition ZFCoreTypeDef_CharType.h:17
#define ZF_OUT_OPT
dummy macro that shows the param used as optional output
Definition ZFCoreTypeDef_ClassType.h:192
#define zfpurevirtual
dummy macro shows that a method is pure virtual method
Definition ZFCoreTypeDef_ClassType.h:68
#define ZF_IN
dummy macro that shows the param used as required input
Definition ZFCoreTypeDef_ClassType.h:180
#define ZF_IN_OPT
dummy macro that shows the param used as optional input
Definition ZFCoreTypeDef_ClassType.h:184
#define ZF_OUT
dummy macro that shows the param used as required output
Definition ZFCoreTypeDef_ClassType.h:188
_ZFT_t_zfindex zfindex
similar to size_t, used for index and size only
Definition ZFCoreTypeDef_CoreType.h:154
#define zfindexMax()
(zfindex)-1, indicate a max index value, see zfindex
Definition ZFCoreTypeDef_CoreType.h:159
#define zfnull
same as NULL, defined for future use
Definition ZFCoreTypeDef_CoreType.h:88
zft_zfstring< zfchar > zfstring
see zft_zfstring
Definition ZFCoreTypeDef_StringType.h:15
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
protocol definitions for ZFFramework
#define ZFPROTOCOL_INTERFACE_END(ModuleName)
for more information, please refer to ZFPROTOCOL_INTERFACE_BEGIN
Definition ZFProtocol.h:414
#define ZFPROTOCOL_INTERFACE_BEGIN(ZFLIB_, ModuleName)
declare a protocol interface for ZFFramework
Definition ZFProtocol.h:408
DOM XML processing.
general input callback
Definition ZFIOCallback_input.h:37
general output callback
Definition ZFIOCallback_output.h:37
virtual void xmlEscapeCharEncode(const ZFOutput &dst, const zfchar *src, zfindex count=((zfindex) -1))
see ZFXmlEscapeCharEncode
virtual void xmlEscapeCharDecode(const ZFOutput &dst, const zfchar *src, zfindex count=((zfindex) -1))
see ZFXmlEscapeCharEncode
virtual ZFXml xmlParse(const zfchar *src, zfindex size=((zfindex) -1), zfstring *errorHint=zft_zfnull)=0
parse xml document
virtual ZFXml xmlParse(const ZFInput &inputCallback, zfstring *errorHint=zft_zfnull)=0
parse xml document
xml item that holds the xml DOM
Definition ZFXml.h:194