00001 /***************************************************************************** 00002 * Copyright (C) 2011 by Michael Lüthi 00003 ***************************************************************************** 00004 * Project : Zeus Base Library 00005 * Module : IXObjectFactory 00006 * Package : Zeus.ZeusBase.System.Interfaces 00007 * Author : Michael Lüthi 00008 * Date : 22.11.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 IXObjectFactoryHPP 00035 #define IXObjectFactoryHPP 00036 00037 #include <zeusbase/System/Interfaces/IZUnknown.hpp> 00038 #include <zeusbase/System/Interfaces/IXObject.hpp> 00039 #include <zeusbase/System/Interfaces/IXMLNode.hpp> 00040 #include <zeusbase/System/Interfaces/IXMLDocument.hpp> 00041 00042 BEGIN_NAMESPACE_Zeus 00043 00044 // {CC4A6C6F-E41A-4127-9E70-320D551BED4A} 00045 #define INTERFACE_IXObjectFactory TIID(0xCC4A6C6F, 0xE41A, 0x4127, 0x9E, 0x70, 0x32, 0x0D, 0x55, 0x1B, 0xED, 0x4A) 00046 00047 /*****************************************************************************/ 00051 /*****************************************************************************/ 00052 class IXObjectFactory : public IZUnknown 00053 { 00054 HIDE_ASSIGNMENT_OPERATOR(IXObjectFactory) 00055 00056 public: 00057 /*************************************************************************/ 00068 /*************************************************************************/ 00069 virtual Retval MQUALIFIER createObjectFromStream(const IString& rstrStream, IXObject*& rpObj, bool bOnlyRoot = true, bool bDoUnfreeze = true) = 0; 00070 00071 /*************************************************************************/ 00082 /*************************************************************************/ 00083 virtual Retval MQUALIFIER createObjectFromFile(const IString& rstrFileName, IXObject*& rpObj, bool bOnlyRoot = true, bool bDoUnfreeze = true) = 0; 00084 00085 /*************************************************************************/ 00096 /*************************************************************************/ 00097 virtual Retval MQUALIFIER createChildObjects(IXMLNode& rParentNode, IXObject& rParent, bool bDoUnfreeze = true) = 0; 00098 00099 /*************************************************************************/ 00112 /*************************************************************************/ 00113 virtual Retval MQUALIFIER addNewChildObjects(IXMLNode& rNewNode, IXObject& rParent, IXObject*& rpChild, bool bDoUnfreeze = true, IXObject* pRightSibling = NULL) = 0; 00114 00115 /*************************************************************************/ 00123 /*************************************************************************/ 00124 virtual Uint MQUALIFIER registerXClassOfCodeModule(const IString& rstrClassName, const IString& rstrCodeModule, IXObject::DltCreateXObject pdltFunct) = 0; 00125 00126 /*************************************************************************/ 00133 /*************************************************************************/ 00134 virtual Uint MQUALIFIER registerXClass(const IString& rstrClassName, IXObject::DltCreateXObject pdltFunct) = 0; 00135 00136 /*************************************************************************/ 00143 /*************************************************************************/ 00144 virtual bool MQUALIFIER unregisterXClass(Uint hHandle, const IString& rstrClassName) = 0; 00145 00146 /*************************************************************************/ 00158 /*************************************************************************/ 00159 virtual Retval MQUALIFIER createObjectFromDocument(NAMESPACE_Zeus::IXMLDocument& rDocument, IXObject*& rpObj, bool bOnlyRoot = true, bool bDoUnfreeze = true) = 0; 00160 00161 /*************************************************************************/ 00170 /*************************************************************************/ 00171 virtual void MQUALIFIER setErrorObjectExpandProperty(bool bValue) = 0; 00172 00173 /*************************************************************************/ 00191 /*************************************************************************/ 00192 virtual Retval MQUALIFIER createChildObjectBySchema(const IString& rstrName, IXObject& rParent, IXMLNode& rSchemaNode, IXObject*& rpChildObj, bool bDoUnfreeze = true) = 0; 00193 00194 /*************************************************************************/ 00206 /*************************************************************************/ 00207 virtual Retval MQUALIFIER createObjectByXMLNode(IXMLNode& rMainNode, NAMESPACE_Zeus::IXMLDocument* pDocu, IXObject*& rpObj, bool bDoUnfreeze = true) = 0; 00208 00209 /*************************************************************************/ 00216 /*************************************************************************/ 00217 virtual bool MQUALIFIER isRegistered(const IString& rstrClassName, const IString& rstrCodeModule) const = 0; 00218 00219 }; 00220 00221 END_NAMESPACE_Zeus 00222 00223 #endif //define IXObjectFactoryHPP