casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
casa::PlotMSSelection Class Reference

Specifies an MS selection. More...

#include <PlotMSSelection.h>

List of all members.

Public Member Functions

 PMS_ENUM1 (Field, fields, fieldStrings, field, FIELD, SPW, TIMERANGE, UVRANGE, ANTENNA, SCAN, CORR, ARRAY, OBSERVATION, MSSELECT) PMS_ENUM2(Field
 Static //.
 PlotMSSelection ()
 Non-Static //.
 PlotMSSelection (const PlotMSSelection &copy)
 Copy constructor.
 ~PlotMSSelection ()
 Destructor.
void fromRecord (const RecordInterface &record)
 Converts this object to/from a record.
Record toRecord () const
void apply (MeasurementSet &ms, MeasurementSet &selectedMS, Vector< Vector< Slice > > &chansel, Vector< Vector< Slice > > &corrsel) const
 Applies this selection using the first MS into the second MS.
void apply (NewCalTable &ct, NewCalTable &selectedCT, Vector< Vector< Slice > > &chansel, Vector< Vector< Slice > > &corrsel) const
 Applies this selection to a NewCaltable.
const StringgetValue (Field f) const
 Gets/Sets the value for the given selection field.
void getValue (Field f, String &value) const
void setValue (Field f, const String &value)
const Stringfield () const
 Convenience methods for returning the standard selection fields.
const Stringspw () const
const Stringtimerange () const
const Stringuvrange () const
const Stringantenna () const
const Stringscan () const
const Stringcorr () const
const Stringarray () const
const Stringobservation () const
const Stringmsselect () const
const IntforceNew () const
void setField (const String &v)
 Convenience methods for setting the standard selection fields.
void setSpw (const String &v)
void setTimerange (const String &v)
void setUvrange (const String &v)
void setAntenna (const String &v)
void setScan (const String &v)
void setCorr (const String &v)
void setArray (const String &v)
void setObservation (const String &v)
void setMsselect (const String &v)
void setForceNew (const Int &forcenew)
bool operator== (const PlotMSSelection &other) const
 Equality operators.
bool operator!= (const PlotMSSelection &other) const
bool fieldsEqual (const PlotMSSelection &other) const
bool fieldsNotEqual (const PlotMSSelection &other) const
PlotMSSelectionoperator= (const PlotMSSelection &copy)
 Copy operator.

Static Public Member Functions

static msselect String defaultValue (Field f)
 Returns the default value for the given selection field.

Public Attributes

 fields
 fieldStrings
 field
 spw
 timerange
 uvrange
 antenna
 scan
 corr
 array
 observation

Private Member Functions

void initDefaults ()
 Initializes the values to their defaults.

Private Attributes

map< Field, StringitsValues_
 Selection field values.
Int forceNew_
 Force appearance of new selection (even when not new)

Detailed Description

Specifies an MS selection.

See the mssSetData method in ms/MeasurementSets/MSSelectionTools.h for details.

Definition at line 46 of file PlotMSSelection.h.


Constructor & Destructor Documentation

Non-Static //.

Default constructor.

Copy constructor.

See operator=().

Destructor.


Member Function Documentation

const String& casa::PlotMSSelection::antenna ( ) const [inline]

Definition at line 111 of file PlotMSSelection.h.

void casa::PlotMSSelection::apply ( MeasurementSet ms,
MeasurementSet selectedMS,
Vector< Vector< Slice > > &  chansel,
Vector< Vector< Slice > > &  corrsel 
) const

Applies this selection using the first MS into the second MS.

(See the mssSetData method in ms/MeasurementSets/MSSelectionTools.h for details.)

void casa::PlotMSSelection::apply ( NewCalTable ct,
NewCalTable selectedCT,
Vector< Vector< Slice > > &  chansel,
Vector< Vector< Slice > > &  corrsel 
) const

Applies this selection to a NewCaltable.

const String& casa::PlotMSSelection::array ( ) const [inline]

Definition at line 114 of file PlotMSSelection.h.

const String& casa::PlotMSSelection::corr ( ) const [inline]

Definition at line 113 of file PlotMSSelection.h.

static msselect String casa::PlotMSSelection::defaultValue ( Field  f) [static]

Returns the default value for the given selection field.

Returns an empty String except for FIELD which returns "2".

const String& casa::PlotMSSelection::field ( ) const [inline]

Convenience methods for returning the standard selection fields.

Definition at line 107 of file PlotMSSelection.h.

bool casa::PlotMSSelection::fieldsEqual ( const PlotMSSelection other) const
bool casa::PlotMSSelection::fieldsNotEqual ( const PlotMSSelection other) const [inline]

Definition at line 142 of file PlotMSSelection.h.

const Int& casa::PlotMSSelection::forceNew ( ) const [inline]

Definition at line 117 of file PlotMSSelection.h.

Converts this object to/from a record.

The record keys are the values of the Field enum in String form, and the values are the String values.

const String& casa::PlotMSSelection::getValue ( Field  f) const

Gets/Sets the value for the given selection field.

void casa::PlotMSSelection::getValue ( Field  f,
String value 
) const [inline]

Definition at line 101 of file PlotMSSelection.h.

References getValue().

Referenced by getValue().

Initializes the values to their defaults.

const String& casa::PlotMSSelection::msselect ( ) const [inline]

Definition at line 116 of file PlotMSSelection.h.

const String& casa::PlotMSSelection::observation ( ) const [inline]

Definition at line 115 of file PlotMSSelection.h.

bool casa::PlotMSSelection::operator!= ( const PlotMSSelection other) const [inline]

Definition at line 138 of file PlotMSSelection.h.

References casa::operator==().

PlotMSSelection& casa::PlotMSSelection::operator= ( const PlotMSSelection copy)

Copy operator.

bool casa::PlotMSSelection::operator== ( const PlotMSSelection other) const

Equality operators.

casa::PlotMSSelection::PMS_ENUM1 ( Field  ,
fields  ,
fieldStrings  ,
field  ,
FIELD  ,
SPW  ,
TIMERANGE  ,
UVRANGE  ,
ANTENNA  ,
SCAN  ,
CORR  ,
ARRAY  ,
OBSERVATION  ,
MSSELECT   
)

Static //.

Enum and methods to define the different fields for an MS selection. If these are changed, also update: convenience methods below, xmlcasa/implement/plotms/plotms*, xmlcasa/tasks/plotms.xml, xmlcasa/scripts/task_plotms.py.

const String& casa::PlotMSSelection::scan ( ) const [inline]

Definition at line 112 of file PlotMSSelection.h.

void casa::PlotMSSelection::setAntenna ( const String v) [inline]

Definition at line 126 of file PlotMSSelection.h.

void casa::PlotMSSelection::setArray ( const String v) [inline]

Definition at line 129 of file PlotMSSelection.h.

void casa::PlotMSSelection::setCorr ( const String v) [inline]

Definition at line 128 of file PlotMSSelection.h.

void casa::PlotMSSelection::setField ( const String v) [inline]

Convenience methods for setting the standard selection fields.

Definition at line 122 of file PlotMSSelection.h.

void casa::PlotMSSelection::setForceNew ( const Int forcenew) [inline]

Definition at line 132 of file PlotMSSelection.h.

void casa::PlotMSSelection::setMsselect ( const String v) [inline]

Definition at line 131 of file PlotMSSelection.h.

void casa::PlotMSSelection::setObservation ( const String v) [inline]

Definition at line 130 of file PlotMSSelection.h.

void casa::PlotMSSelection::setScan ( const String v) [inline]

Definition at line 127 of file PlotMSSelection.h.

void casa::PlotMSSelection::setSpw ( const String v) [inline]

Definition at line 123 of file PlotMSSelection.h.

void casa::PlotMSSelection::setTimerange ( const String v) [inline]

Definition at line 124 of file PlotMSSelection.h.

void casa::PlotMSSelection::setUvrange ( const String v) [inline]

Definition at line 125 of file PlotMSSelection.h.

void casa::PlotMSSelection::setValue ( Field  f,
const String value 
)
const String& casa::PlotMSSelection::spw ( ) const [inline]

Definition at line 108 of file PlotMSSelection.h.

const String& casa::PlotMSSelection::timerange ( ) const [inline]

Definition at line 109 of file PlotMSSelection.h.

const String& casa::PlotMSSelection::uvrange ( ) const [inline]

Definition at line 110 of file PlotMSSelection.h.


Member Data Documentation

Definition at line 58 of file PlotMSSelection.h.

Definition at line 58 of file PlotMSSelection.h.

Definition at line 58 of file PlotMSSelection.h.

Definition at line 58 of file PlotMSSelection.h.

Definition at line 58 of file PlotMSSelection.h.

Definition at line 58 of file PlotMSSelection.h.

Force appearance of new selection (even when not new)

Definition at line 155 of file PlotMSSelection.h.

Selection field values.

Definition at line 152 of file PlotMSSelection.h.

Definition at line 58 of file PlotMSSelection.h.

Definition at line 58 of file PlotMSSelection.h.

Definition at line 58 of file PlotMSSelection.h.

Definition at line 58 of file PlotMSSelection.h.

Definition at line 58 of file PlotMSSelection.h.


The documentation for this class was generated from the following file: