00001 #ifndef DOMWriter_HEADER_GUARD_
00002 #define DOMWriter_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
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00315 #include <xercesc/dom/DOMNode.hpp>
00316 #include <xercesc/dom/DOMWriterFilter.hpp>
00317 #include <xercesc/dom/DOMErrorHandler.hpp>
00318 #include <xercesc/framework/XMLFormatter.hpp>
00319
00320 XERCES_CPP_NAMESPACE_BEGIN
00321
00322 class DOMWriter {
00323 protected :
00324
00325
00326
00329 DOMWriter() {};
00331 private:
00332
00333
00334
00337 DOMWriter(const DOMWriter &);
00338 DOMWriter & operator = (const DOMWriter &);
00340
00341
00342 public:
00343
00344
00345
00352 virtual ~DOMWriter() {};
00354
00355
00356
00357
00360
00361
00362
00378 virtual bool canSetFeature(const XMLCh* const featName
00379 , bool state) const = 0;
00399 virtual void setFeature(const XMLCh* const featName
00400 , bool state) = 0;
00401
00418 virtual bool getFeature(const XMLCh* const featName) const = 0;
00419
00420
00421
00422
00439 virtual void setEncoding(const XMLCh* const encoding) = 0;
00440
00469 virtual void setNewLine(const XMLCh* const newLine) = 0;
00470
00484 virtual void setErrorHandler(DOMErrorHandler *errorHandler) = 0;
00485
00498 virtual void setFilter(DOMWriterFilter *filter) = 0;
00499
00500
00501
00502
00512 virtual const XMLCh* getEncoding() const = 0;
00513
00524 virtual const XMLCh* getNewLine() const = 0;
00525
00536 virtual DOMErrorHandler* getErrorHandler() const = 0;
00537
00547 virtual DOMWriterFilter* getFilter() const = 0;
00548
00549
00550
00551
00575 virtual bool writeNode(XMLFormatTarget* const destination
00576 , const DOMNode &nodeToWrite) = 0;
00577
00596 virtual XMLCh* writeToString(const DOMNode &nodeToWrite) = 0;
00597
00599
00600
00601
00602
00611 virtual void release() = 0;
00613
00614
00615 };
00616
00617 XERCES_CPP_NAMESPACE_END
00618
00619 #endif