00001 #ifndef DOMNodeFilter_HEADER_GUARD_
00002 #define DOMNodeFilter_HEADER_GUARD_
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064 #include "DOMNode.hpp"
00065
00066 XERCES_CPP_NAMESPACE_BEGIN
00067
00068
00088 class DOMNodeFilter
00089 {
00090 protected:
00091
00092
00093
00096 DOMNodeFilter() {};
00098
00099 private:
00100
00101
00102
00105 DOMNodeFilter(const DOMNodeFilter &);
00106 DOMNodeFilter & operator = (const DOMNodeFilter &);
00108
00109 public:
00110
00111
00112
00119 virtual ~DOMNodeFilter() {};
00121
00122
00123
00124
00151 enum FilterAction {FILTER_ACCEPT = 1,
00152 FILTER_REJECT = 2,
00153 FILTER_SKIP = 3};
00154
00216 enum ShowType {
00217 SHOW_ALL = 0x0000FFFF,
00218 SHOW_ELEMENT = 0x00000001,
00219 SHOW_ATTRIBUTE = 0x00000002,
00220 SHOW_TEXT = 0x00000004,
00221 SHOW_CDATA_SECTION = 0x00000008,
00222 SHOW_ENTITY_REFERENCE = 0x00000010,
00223 SHOW_ENTITY = 0x00000020,
00224 SHOW_PROCESSING_INSTRUCTION = 0x00000040,
00225 SHOW_COMMENT = 0x00000080,
00226 SHOW_DOCUMENT = 0x00000100,
00227 SHOW_DOCUMENT_TYPE = 0x00000200,
00228 SHOW_DOCUMENT_FRAGMENT = 0x00000400,
00229 SHOW_NOTATION = 0x00000800
00230 };
00232
00233
00234
00235
00250 virtual short acceptNode (const DOMNode* node) const =0;
00252
00253 };
00254
00255 XERCES_CPP_NAMESPACE_END
00256
00257 #endif