00001 /***************************************************************************** 00002 * Copyright (C) 2011 by Benjamin Hadorn (b_hadorn@bluewin.ch) 00003 ***************************************************************************** 00004 * Project : Zeus Base Library 00005 * Module : IXProcProject 00006 * Package : Zeus.ZeusBase.Processing.Interfaces 00007 * Author : Benjamin Hadorn 00008 * Date : 27.12.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 * Changes: 00029 * 27.12.2011 bha: created zeus 2.0 00030 *****************************************************************************/ 00031 00032 #ifndef IXProcProjectHPP 00033 #define IXProcProjectHPP 00034 00035 #include <zeusbase/Processing/Interfaces/IXProcess.hpp> 00036 #include <zeusbase/System/Interfaces/IZUnknown.hpp> 00037 #include <zeusbase/System/Interfaces/IString.hpp> 00038 00039 BEGIN_NAMESPACE_Zeus 00040 00041 // {BDF00810-B43B-49e3-A686-0F5B5788EDE7} 00042 #define INTERFACE_IXProcProject TIID(0xbdf00810, 0xb43b, 0x49e3, 0xa6, 0x86, 0xf, 0x5b, 0x57, 0x88, 0xed, 0xe7) 00043 00044 class IBatchContext; 00045 class IXProcTarget; 00046 class IVariableResolver; 00047 class IXProcessMonitor; 00048 00049 /*****************************************************************************/ 00052 /*****************************************************************************/ 00053 class IXProcProject : public IZUnknown 00054 { 00055 public: 00056 /*************************************************************************/ 00067 /*************************************************************************/ 00068 virtual Retval MQUALIFIER callTarget(const IString& rName, 00069 IVariableResolver& rResolver, 00070 IBatchContext& rContext, 00071 IXProcessMonitor& rMonitor, 00072 IXProcess::EProcessingMode eMode) = 0; 00073 00074 /*************************************************************************/ 00081 /*************************************************************************/ 00082 virtual Retval MQUALIFIER getTarget(Int iIndex, IXProcTarget*& rpTarget) const = 0; 00083 00084 /*************************************************************************/ 00091 /*************************************************************************/ 00092 virtual Retval MQUALIFIER getTargetByName(const IString& rName, IXProcTarget*& rpTarget) const = 0; 00093 00094 /*************************************************************************/ 00098 /*************************************************************************/ 00099 virtual Int MQUALIFIER getTargetCount() const = 0; 00100 00101 /*************************************************************************/ 00109 /*************************************************************************/ 00110 virtual Retval MQUALIFIER processTarget(const IString& rName, 00111 IBatchContext& rContext, 00112 IXProcessMonitor& rMonitor) = 0; 00113 00114 /*************************************************************************/ 00122 /*************************************************************************/ 00123 virtual Retval MQUALIFIER processTargetWithoutAbort(const IString& rName, 00124 IBatchContext& rContext, 00125 IXProcessMonitor& rMonitor) = 0; 00126 00127 /*************************************************************************/ 00136 /*************************************************************************/ 00137 virtual Retval MQUALIFIER processDryRun(const IString& rName, 00138 IBatchContext& rContext, 00139 IXProcessMonitor& rMonitor) = 0; 00140 }; 00141 00142 END_NAMESPACE_Zeus 00143 00144 #endif 00145 00146