00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00034 #ifndef WBXML_ENCODER_H
00035 #define WBXML_ENCODER_H
00036
00037
00038 #ifdef __cplusplus
00039 extern "C" {
00040 #endif
00041
00049 typedef struct WBXMLEncoder_s WBXMLEncoder;
00050
00055 typedef enum WBXMLEncoderXMLGenType_e {
00056 WBXML_ENCODER_XML_GEN_COMPACT = 0,
00057 WBXML_ENCODER_XML_GEN_INDENT,
00058 WBXML_ENCODER_XML_GEN_CANONICAL
00059 } WBXMLEncoderXMLGenType;
00060
00061
00062
00063
00069 WBXML_DECLARE(WBXMLEncoder *) wbxml_encoder_create_real(void);
00070 #define wbxml_encoder_create() wbxml_mem_cleam(wbxml_encoder_create_real())
00071
00076 WBXML_DECLARE(void) wbxml_encoder_destroy(WBXMLEncoder *encoder);
00077
00078
00079
00080
00087 WBXML_DECLARE(void) wbxml_encoder_set_ignore_empty_text(WBXMLEncoder *encoder, WB_BOOL set_ignore);
00088
00095 WBXML_DECLARE(void) wbxml_encoder_set_remove_text_blanks(WBXMLEncoder *encoder, WB_BOOL set_remove);
00096
00097
00098
00099
00106 WBXML_DECLARE(void) wbxml_encoder_set_use_strtbl(WBXMLEncoder *encoder, WB_BOOL use_strtbl);
00107
00113 WBXML_DECLARE(void) wbxml_encoder_set_wbxml_version(WBXMLEncoder *encoder, WBXMLVersion version);
00114
00115
00116
00117
00123 WBXML_DECLARE(void) wbxml_encoder_set_xml_gen_type(WBXMLEncoder *encoder, WBXMLEncoderXMLGenType gen_type);
00124
00130 WBXML_DECLARE(void) wbxml_encoder_set_indent(WBXMLEncoder *encoder, WB_UTINY indent);
00131
00132
00133
00134
00141 WBXML_DECLARE(void) wbxml_encoder_set_tree(WBXMLEncoder *encoder, WBXMLTree *tree);
00142
00151 WBXML_DECLARE(WBXMLError) wbxml_encoder_encode_to_wbxml(WBXMLEncoder *encoder, WB_UTINY **wbxml, WB_ULONG *wbxml_len);
00152
00160 WBXML_DECLARE(WBXMLError) wbxml_encoder_encode_to_xml(WBXMLEncoder *encoder, WB_UTINY **xml);
00161
00164 #ifdef __cplusplus
00165 }
00166 #endif
00167
00168 #endif