casacore
Loading...
Searching...
No Matches
CASATask.h
Go to the documentation of this file.
1//# CasaTask.h:
2//# Copyright (C) 2005
3//# Associated Universities, Inc. Washington DC, USA.
4//#
5//# This library is free software; you can redistribute it and/or modify it
6//# under the terms of the GNU Library General Public License as published by
7//# the Free Software Foundation; either version 2 of the License, or (at your
8//# option) any later version.
9//#
10//# This library is distributed in the hope that it will be useful, but WITHOUT
11//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13//# License for more details.
14//#
15//# You should have received a copy of the GNU Library General Public License
16//# along with this library; if not, write to the Free Software Foundation,
17//# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18//#
19//# Correspondence concerning AIPS++ should be addressed as follows:
20//# Internet email: casa-feedback@nrao.edu.
21//# Postal address: AIPS++ Project Office
22//# National Radio Astronomy Observatory
23//# 520 Edgemont Road
24//# Charlottesville, VA 22903-2475 USA
25
26#ifndef _CASA_TASK_H
27#define _CASA_TASK_H
28
29#include <casacore/casa/aips.h>
30#include <casacore/casa/Containers/Record.h>
31#include <casacore/casa/Containers/RecordField.h>
32
33namespace casacore { //# NAMESPACE CASACORE - BEGIN
34
35// <summary>Task interface</summary>
36
37// <use visibility=export>
38
39// <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos="">
40// </reviewed>
41
42// <prerequisite>
43// <li> SomeClass
44// <li> SomeOtherClass
45// <li> some concept
46// </prerequisite>
47//
48// <etymology>
49// </etymology>
50//
51// <synopsis>
52// </synopsis>
53//
54// <example>
55// </example>
56//
57// <motivation>
58// </motivation>
59//
60// <templating arg=T>
61// <li>
62// <li>
63// </templating>
64//
65// <thrown>
66// <li>
67// <li>
68// </thrown>
69//
70// <todo asof="yyyy/mm/dd">
71// <li> add this feature
72// <li> fix this bug
73// <li> start discussion of this possible extension
74// </todo>
75
77{
78 public:
79 CASATask(const Record &params) : pset(params) { }
80 CASATask(const RecordDesc &desc) { pset = Record(desc); }
81 virtual ~CASATask() { }
82
83 Record getParams() const { return pset; }
84 void setParams(const Record &params) { pset = params; }
85
86 private:
88
90};
91
92} //# NAMESPACE CASACORE - END
93
94#endif
CASATask(const Record &params)
Definition CASATask.h:79
virtual ~CASATask()
Definition CASATask.h:81
CASATask(const RecordDesc &desc)
Definition CASATask.h:80
void setParams(const Record &params)
Definition CASATask.h:84
Record getParams() const
Definition CASATask.h:83
this file contains all the compiler specific defines
Definition mainpage.dox:28