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

XMLDOMParseError.h

Go to the documentation of this file.
00001 /* 00002 * Copyright 1999-2000,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 * $Log: XMLDOMParseError.h,v $ 00019 * Revision 1.6 2004/09/08 13:55:36 peiyongz 00020 * Apache License Version 2.0 00021 * 00022 * Revision 1.5 2004/02/12 13:49:43 amassari 00023 * Updated version to 2.5 00024 * 00025 * Revision 1.4 2003/11/21 12:05:48 amassari 00026 * Updated version to 2.4 00027 * 00028 * Revision 1.3 2003/10/21 21:21:32 amassari 00029 * When the COM object is loaded by a late-binding engine (like WSH, or 00030 * Visual Basic when the type library is not preloaded in the editor), the type 00031 * library version stored in the resource must match the version specified in the 00032 * IDispatchImpl template (defaulted to 1.0), or trying to invoke a method will fail 00033 * 00034 * Revision 1.2 2003/03/14 12:44:49 tng 00035 * [Bug 17147] C++ namespace breaks build of XercesCOM DLL 00036 * 00037 * Revision 1.1.1.1 2002/02/01 22:21:42 peiyongz 00038 * sane_include 00039 * 00040 * Revision 1.3 2000/06/03 00:29:01 andyh 00041 * COM Wrapper changes from Curt Arnold 00042 * 00043 * Revision 1.2 2000/03/30 02:00:10 abagchi 00044 * Initial checkin of working code with Copyright Notice 00045 * 00046 */ 00047 00048 #ifndef ___xmldomparseerror_h___ 00049 #define ___xmldomparseerror_h___ 00050 00051 #include <xercesc/util/XercesDefs.hpp> 00052 XERCES_CPP_NAMESPACE_USE 00053 00054 class ATL_NO_VTABLE CXMLDOMParseError : 00055 public CComObjectRootEx<CComSingleThreadModel>, 00056 public IDispatchImpl<IXMLDOMParseError, &IID_IXMLDOMParseError, &LIBID_Xerces, 2, 50> 00057 { 00058 public: 00059 CXMLDOMParseError() 00060 :m_Code (0) 00061 ,m_url (_T("")) 00062 ,m_Reason (_T("")) 00063 ,m_Source (_T("")) 00064 ,m_LineNumber(0) 00065 ,m_LinePos (0) 00066 ,m_FilePos (0) 00067 {} 00068 00069 HRESULT FinalConstruct(); 00070 void FinalRelease(); 00071 00072 DECLARE_NOT_AGGREGATABLE(CXMLDOMParseError) 00073 00074 DECLARE_PROTECT_FINAL_CONSTRUCT() 00075 00076 BEGIN_COM_MAP(CXMLDOMParseError) 00077 COM_INTERFACE_ENTRY(IXMLDOMParseError) 00078 COM_INTERFACE_ENTRY(IDispatch) 00079 END_COM_MAP() 00080 00081 // IXMLDOMParseError methods 00082 STDMETHOD(get_errorCode)(/* [out][retval] */ long *errorCode); 00083 STDMETHOD(get_url)(/* [out][retval] */ BSTR *urlString); 00084 STDMETHOD(get_reason)(/* [out][retval] */ BSTR *reasonString); 00085 STDMETHOD(get_srcText)(/* [out][retval] */ BSTR *sourceString); 00086 STDMETHOD(get_line)(/* [out][retval] */ long *lineNumber); 00087 STDMETHOD(get_linepos)(/* [out][retval] */ long *linePosition); 00088 STDMETHOD(get_filepos)(/* [out][retval] */ long *filePosition); 00089 00090 void SetData(long code, 00091 const _bstr_t &url, 00092 const _bstr_t &reason, 00093 const _bstr_t &source, 00094 long lineNumber, 00095 long linePos, 00096 long filePos); 00097 void Reset(); 00098 00099 private: 00100 00101 long m_Code; 00102 _bstr_t m_url; 00103 _bstr_t m_Reason; 00104 _bstr_t m_Source; 00105 long m_LineNumber; 00106 long m_LinePos; 00107 long m_FilePos; 00108 00109 CComCriticalSection m_CS; 00110 }; 00111 00112 typedef CComObject<CXMLDOMParseError> CXMLDOMParseErrorObj; 00113 00114 #endif // ___xmldomparseerror_h___

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