Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

XMLDOMAttribute.h

Go to the documentation of this file.
00001 /* 00002 * Copyright 1999-2001,2004 The Apache Software Foundation. 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 00017 /* 00018 * $Id: XMLDOMAttribute.h,v 1.7 2004/09/08 13:55:35 peiyongz Exp $ 00019 */ 00020 00021 #ifndef ___xmldomattribute_h___ 00022 #define ___xmldomattribute_h___ 00023 00024 #include <xercesc/dom/DOMAttr.hpp> 00025 #include "IXMLDOMNodeImpl.h" 00026 XERCES_CPP_NAMESPACE_USE 00027 00028 class ATL_NO_VTABLE CXMLDOMAttribute : 00029 public CComObjectRootEx<CComSingleThreadModel>, 00030 public IXMLDOMNodeImpl<IXMLDOMAttribute, &IID_IXMLDOMAttribute> 00031 { 00032 public: 00033 CXMLDOMAttribute() 00034 {} 00035 00036 void FinalRelease() 00037 { 00038 ReleaseOwnerDoc(); 00039 } 00040 00041 virtual DOMNode* get_DOMNode() { return attr;} 00042 virtual DOMNodeType get_DOMNodeType() const { return NODE_ATTRIBUTE; } 00043 00044 DECLARE_NOT_AGGREGATABLE(CXMLDOMAttribute) 00045 DECLARE_PROTECT_FINAL_CONSTRUCT() 00046 00047 BEGIN_COM_MAP(CXMLDOMAttribute) 00048 COM_INTERFACE_ENTRY(IXMLDOMAttribute) 00049 COM_INTERFACE_ENTRY(IXMLDOMNode) 00050 COM_INTERFACE_ENTRY(IIBMXMLDOMNodeIdentity) 00051 COM_INTERFACE_ENTRY(ISupportErrorInfo) 00052 COM_INTERFACE_ENTRY(IDispatch) 00053 END_COM_MAP() 00054 00055 // IXMLDOMNode method 00056 STDMETHOD(get_specified)(VARIANT_BOOL *pVal); 00057 00058 00059 // IXMLDOMAttribute methods 00060 STDMETHOD(get_name)(BSTR *pVal); 00061 STDMETHOD(get_value)(VARIANT *pVal); 00062 STDMETHOD(put_value)(VARIANT newVal); 00063 00064 // 00065 // override IXMLDOMNodeImpl to always return a string 00066 // even when empty 00067 // 00068 STDMETHOD(get_nodeValue)(VARIANT* pVal); 00069 00070 DOMAttr* attr; 00071 }; 00072 00073 typedef CComObject<CXMLDOMAttribute> CXMLDOMAttributeObj; 00074 00075 #endif // ___xmldomattribute_h___

Generated on Thu Apr 30 02:30:52 2009 for ACS C++ API by doxygen 1.3.8