00001 /***************************************************************************** 00002 * Copyright (C) 2011 by Benjamin Hadorn (b_hadorn@bluewin.ch) 00003 ***************************************************************************** 00004 * Project : Zeus Base Library 00005 * Module : IXMLDocument 00006 * Package : Zeus.ZeusBase.System.Interfaces 00007 * Author : Benjamin Hadorn 00008 * Date : 24.10.2011 00009 * System : Zeus-Framework 00010 ***************************************************************************** 00011 * Licence: * 00012 * This library is free software; you can redistribute it and/or modify * 00013 * it under the terms of the GNU Lesser General Public License as * 00014 * published by the Free Software Foundation; either version * 00015 * 2.1 of the License, or (at your option) any later version. * 00016 * * 00017 * This library is distributed in the hope that it will be useful, * 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00020 * GNU Lesser General Public License for more details. * 00021 * * 00022 * You should have received a copy of the GNU Lesser General Public * 00023 * License along with this library; if not, write to the Free Software * 00024 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA * 00025 *****************************************************************************/ 00026 00027 00028 /*************************************************************************** 00029 GENERATED : xIDL COMPILER 1.0 00030 DATE : 2012-01-16 18:50:29 00031 CAUTION : Don't change the file manualy. Change xidl file instead. 00032 ***************************************************************************/ 00033 00034 #ifndef IXMLDocumentHPP 00035 #define IXMLDocumentHPP 00036 00037 #include <zeusbase/System/Interfaces/IZUnknown.hpp> 00038 #include <zeusbase/System/Interfaces/IString.hpp> 00039 #include <zeusbase/System/Interfaces/IXMLNode.hpp> 00040 #include <zeusbase/System/Interfaces/IXMLErrorReporter.hpp> 00041 00042 BEGIN_NAMESPACE_Zeus 00043 00044 //Forward declarations 00045 class IXMLNodeList; 00046 00047 // {997DBBE8-12F8-4c56-A6B6-2E734970EFDE} 00048 #define INTERFACE_IXMLDocument TIID(0x997DBBE8, 0x12F8, 0x4c56, 0xA6, 0xB6, 0x2E, 0x73, 0x49, 0x70, 0xEF, 0xDE) 00049 00050 /*****************************************************************************/ 00053 /*****************************************************************************/ 00054 class IXMLDocument : public IZUnknown 00055 { 00056 HIDE_ASSIGNMENT_OPERATOR(IXMLDocument) 00057 00058 public: 00059 /*************************************************************************/ 00065 /*************************************************************************/ 00066 virtual Retval MQUALIFIER getMainNode(IXMLNode*& rpMainNode) = 0; 00067 00068 /*************************************************************************/ 00074 /*************************************************************************/ 00075 virtual Retval MQUALIFIER getStream(IString& rstrStream) const = 0; 00076 00077 /*************************************************************************/ 00083 /*************************************************************************/ 00084 virtual Retval MQUALIFIER save() = 0; 00085 00086 /*************************************************************************/ 00095 /*************************************************************************/ 00096 virtual Retval MQUALIFIER saveAs(const IString& rstrFilename, bool bKeepOrginalFileName = false) = 0; 00097 00098 /*************************************************************************/ 00110 /*************************************************************************/ 00111 virtual Retval MQUALIFIER createNewNode(IXMLNode::ENodeType eNodeType, const IString& rstrName, const IString& rstrUri, IXMLNode*& rpNode) = 0; 00112 00113 /*************************************************************************/ 00120 /*************************************************************************/ 00121 virtual Retval MQUALIFIER validate(IXMLErrorReporter* pReporter = NULL) = 0; 00122 00123 /*************************************************************************/ 00129 /*************************************************************************/ 00130 virtual Retval MQUALIFIER getNodeList(IXMLNodeList*& rpList) = 0; 00131 00132 /*************************************************************************/ 00137 /*************************************************************************/ 00138 virtual void MQUALIFIER getFileName(IString& rstrFileName) const = 0; 00139 00140 /*************************************************************************/ 00146 /*************************************************************************/ 00147 virtual void MQUALIFIER useNamespace(const IString& rstrPrefix, const IString& rstrNameSpace) = 0; 00148 00149 /*************************************************************************/ 00153 /*************************************************************************/ 00154 virtual void MQUALIFIER removeNamespace(const IString& rstrPrefix) = 0; 00155 00156 }; 00157 00158 END_NAMESPACE_Zeus 00159 00160 #endif //define IXMLDocumentHPP