casa
$Rev:20696$
|
00001 //# CasaTask.h: 00002 //# Copyright (C) 2005 00003 //# Associated Universities, Inc. Washington DC, USA. 00004 //# 00005 //# This library is free software; you can redistribute it and/or modify it 00006 //# under the terms of the GNU Library General Public License as published by 00007 //# the Free Software Foundation; either version 2 of the License, or (at your 00008 //# option) any later version. 00009 //# 00010 //# This library is distributed in the hope that it will be useful, but WITHOUT 00011 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00012 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public 00013 //# License for more details. 00014 //# 00015 //# You should have received a copy of the GNU Library General Public License 00016 //# along with this library; if not, write to the Free Software Foundation, 00017 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA. 00018 //# 00019 //# Correspondence concerning AIPS++ should be addressed as follows: 00020 //# Internet email: aips2-request@nrao.edu. 00021 //# Postal address: AIPS++ Project Office 00022 //# National Radio Astronomy Observatory 00023 //# 520 Edgemont Road 00024 //# Charlottesville, VA 22903-2475 USA 00025 //# 00026 //# 00027 //# $Id: CASATask.h 20551 2009-03-25 00:11:33Z Malte.Marquarding $ 00028 00029 #ifndef _CASA_TASK_H 00030 #define _CASA_TASK_H 00031 00032 #include <casa/Containers/Record.h> 00033 #include <casa/Containers/RecordField.h> 00034 00035 namespace casa { //# NAMESPACE CASA - BEGIN 00036 00037 // <summary>Task interface</summary> 00038 00039 // <use visibility=export> 00040 00041 // <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos=""> 00042 // </reviewed> 00043 00044 // <prerequisite> 00045 // <li> SomeClass 00046 // <li> SomeOtherClass 00047 // <li> some concept 00048 // </prerequisite> 00049 // 00050 // <etymology> 00051 // </etymology> 00052 // 00053 // <synopsis> 00054 // </synopsis> 00055 // 00056 // <example> 00057 // </example> 00058 // 00059 // <motivation> 00060 // </motivation> 00061 // 00062 // <templating arg=T> 00063 // <li> 00064 // <li> 00065 // </templating> 00066 // 00067 // <thrown> 00068 // <li> 00069 // <li> 00070 // </thrown> 00071 // 00072 // <todo asof="yyyy/mm/dd"> 00073 // <li> add this feature 00074 // <li> fix this bug 00075 // <li> start discussion of this possible extension 00076 // </todo> 00077 00078 class CASATask 00079 { 00080 public: 00081 CASATask(const Record ¶ms) : pset(params) { } 00082 CASATask(const RecordDesc &desc) { pset = Record(desc); } 00083 virtual ~CASATask() { } 00084 00085 Record getParams() const { return pset; } 00086 void setParams(const Record ¶ms) { pset = params; } 00087 00088 private: 00089 CASATask(); 00090 00091 Record pset; 00092 }; 00093 00094 } //# NAMESPACE CASA - END 00095 00096 #endif