casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ProcessorRecord.h
Go to the documentation of this file.
1 /*
2  * ProcessorRecord.h
3  *
4  * Created on: Jan 27, 2016
5  * Author: nakazato
6  */
7 
8 #ifndef SINGLEDISH_FILLER_PROCESSORRECORD_H_
9 #define SINGLEDISH_FILLER_PROCESSORRECORD_H_
10 
14 
15 namespace casa { //# NAMESPACE CASA - BEGIN
16 namespace sdfiller { //# NAMESPACE SDFILLER - BEGIN
17 
21 
22  // mandatory
27 
28  // method
29  void clear() {
30  type = "";
31  sub_type = "";
32  type_id = -1;
33  mode_id = -1;
34  }
35 
37  type = other.type;
38  sub_type = other.sub_type;
39  type_id = other.type_id;
40  mode_id = other.mode_id;
41  return *this;
42  }
43 
44  void add(AssociatingTable &table, AssociatingColumns &/*columns*/) {
45  table.addRow(1, true);
46  }
47 
49  if (columns.nrow() <= irow) {
50  return false;
51  }
52 
53  columns.type().put(irow, type);
54  columns.subType().put(irow, sub_type);
55  columns.typeId().put(irow, type_id);
56  columns.modeId().put(irow, mode_id);
57 
58  return true;
59  }
60 };
61 
62 } //# NAMESPACE SDFILLER - END
63 } //# NAMESPACE CASA - END
64 
65 #endif /* SINGLEDISH_FILLER_PROCESSORRECORD_H_ */
void addRow(uInt nrrow=1, Bool initialize=False)
Add one or more rows at the end of the table.
Definition: Table.h:1235
A Table intended to hold a MeasurementSet PROCESSOR table.
Definition: MSProcessor.h:77
ScalarColumn< Int > & typeId()
int Int
Definition: aipstype.h:50
uInt nrow() const
Convenience function that returns the number of rows in any of the columns.
void add(AssociatingTable &table, AssociatingColumns &)
casacore::MSProcessorColumns AssociatingColumns
ScalarColumn< String > & type()
casacore::String type
mandatory
casacore::Bool fill(casacore::uInt irow, AssociatingColumns &columns)
ScalarColumn< Int > & modeId()
A class to provide easy read-write access to MSProcessor columns.
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
casacore::MSProcessor AssociatingTable
void put(uInt rownr, const T &value)
Put the value in a particular cell (i.e.
Definition: ScalarColumn.h:198
ScalarColumn< String > & subType()
ProcessorRecord & operator=(ProcessorRecord const &other)
String: the storage and methods of handling collections of characters.
Definition: String.h:223
unsigned int uInt
Definition: aipstype.h:51