00001 #ifndef _Task_H 00002 #define _Task_H 00003 00004 /******************************************************************************* 00005 * ALMA - Atacama Large Millimiter Array 00006 * (c) European Southern Observatory, 2005 00007 * 00008 * This library is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU Lesser General Public 00010 * License as published by the Free Software Foundation; either 00011 * version 2.1 of the License, or (at your option) any later version. 00012 * 00013 * This library is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 * Lesser General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU Lesser General Public 00019 * License along with this library; if not, write to the Free Software 00020 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00021 * 00022 * who when what 00023 * -------- -------- ---------------------------------------------- 00024 * sharring 2005-07-14 created 00025 */ 00026 00027 /************************************************************************ 00028 * 00029 *---------------------------------------------------------------------- 00030 */ 00031 00032 #include <ParameterSet.h> 00033 #include <TaskServices.h> 00034 00035 #ifndef __cplusplus 00036 #error This is a C++ include file and cannot be used from plain C 00037 #endif 00038 00039 using Parameters::ParameterSet; 00040 00041 namespace ACS 00042 { 00047 class Task 00048 { 00049 public: 00053 virtual void go(ParameterSet& pset, const TaskServices& services)=0; //TBD: exception which can be thrown 00054 00055 }; 00056 }; 00057 #endif