Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef ___xmldomprocessinginstruction_h___
00023 #define ___xmldomprocessinginstruction_h___
00024
00025 #include <xercesc/dom/DOMProcessingInstruction.hpp>
00026 #include "IXMLDOMNodeImpl.h"
00027
00028 XERCES_CPP_NAMESPACE_USE
00029
00030 class ATL_NO_VTABLE CXMLDOMProcessingInstruction :
00031 public CComObjectRootEx<CComSingleThreadModel>,
00032 public IXMLDOMNodeImpl<IXMLDOMProcessingInstruction, &IID_IXMLDOMProcessingInstruction>
00033 {
00034 public:
00035 CXMLDOMProcessingInstruction()
00036 {}
00037
00038 void FinalRelease()
00039 {
00040 ReleaseOwnerDoc();
00041 }
00042
00043 virtual DOMNode* get_DOMNode() { return processingInstruction;}
00044 virtual DOMNodeType get_DOMNodeType() const { return NODE_PROCESSING_INSTRUCTION; }
00045
00046 DECLARE_NOT_AGGREGATABLE(CXMLDOMProcessingInstruction)
00047 DECLARE_PROTECT_FINAL_CONSTRUCT()
00048
00049 BEGIN_COM_MAP(CXMLDOMProcessingInstruction)
00050 COM_INTERFACE_ENTRY(IXMLDOMProcessingInstruction)
00051 COM_INTERFACE_ENTRY(IXMLDOMNode)
00052 COM_INTERFACE_ENTRY(IIBMXMLDOMNodeIdentity)
00053 COM_INTERFACE_ENTRY(IDispatch)
00054 COM_INTERFACE_ENTRY(ISupportErrorInfo)
00055 END_COM_MAP()
00056
00057
00058 STDMETHOD(get_target)(BSTR *pVal);
00059 STDMETHOD(get_data)(BSTR *pVal);
00060 STDMETHOD(put_data)(BSTR newVal);
00061
00062 DOMProcessingInstruction* processingInstruction;
00063 };
00064
00065 typedef CComObject<CXMLDOMProcessingInstruction> CXMLDOMProcessingInstructionObj;
00066
00067 #endif // ___xmldomprocessinginstruction_h___