27 #ifndef PLOTMSFLAGGING_H_
28 #define PLOTMSFLAGGING_H_
52 EXTEND, CORR, CORR_ALL,
53 CORR_POLN_DEP, CHANNEL, SPW, ANTENNA,
54 ANTENNA_ANTENNA, ANTENNA_BASELINES, TIME,
55 SCANS, FIELD, SEL_SELECTED, SEL_ALTERNATE)
59 "antenna:antenna-based", "antenna:all-baselines", "
time",
65 static
bool fieldHasValue(Field f);
113 void setFlag(Field f,
bool on);
void setChannel(bool flag)
bool selectionSelected() const
PlotMSSelection getSelectionValue(Field f) const
Gets/Sets the selection value for the given field, if applicable.
void getSelectionValue(Field f, PlotMSSelection &value) const
static const casacore::String RKEY_SELVALUE
void setSelectionValue(Field f, const PlotMSSelection &value)
#define PMS_ENUM2(NAME, ALLMETHOD, ALLSTRMETHOD, CONVMETHOD,...)
~PlotMSFlagging()
Destructor.
void setCorr(const casacore::String &value)
static bool fieldDefault(Field f)
Returns whether the given field is on or off by default.
void setCorrPolnDep(bool flag)
bool antennaBaselinesBased() const
void setSelectionAlternate(bool flag)
Specifies an casacore::MS selection.
static bool fieldIsInMutuallyExclusiveGroup(Field f)
Returns true if the given field is in a mutually exclusive group, false otherwise.
static const casacore::String RKEY_VALUE
casacore::String constant for what to append to the enum name in the record to get the key for the va...
void setAntennaAntennaBasedValue(double value)
static const std::vector< Field > & fieldMutuallyExclusiveGroup(Field f)
Returns the list of fields, NOT including the given, with which the given field is mutually exclusive...
void setAntenna(bool flag)
void fromRecord(const casacore::RecordInterface &record)
Converts this object to/from a record.
double getValue(Field f) const
Gets/Sets the double value for the given field, if applicable.
casacore::String antennaStr() const
void setAntennaAntennaBased(bool flag)
std::map< Field, double > itsValues_
Flagging field double values.
void setAntennaBaselinesBased(bool flag)
void getValue(Field f, casacore::String &value) const
static bool fieldHasSelectionValue(Field f)
Returns whether the given field has a PlotMSSelection value associated with it or not...
std::map< Field, PlotMSSelection > itsSelectionValues_
Flagging field selection values.
Specifies flagging parameters (including possibly flag extension) for an MS.
bool getFlag(Field f) const
Gets/Sets the on/off flag for the given field.
casacore::Record toRecord(bool useStrings=false) const
bool operator==(const PlotMSFlagging &other) const
Equality operators.
A hierarchical collection of named fields of various types.
PlotMSSelection selectionAlternateSelection() const
PlotMSFlagging()
Non-Static //.
bool antennaAntennaBased() const
void setDefaults()
Sets the default values.
std::map< Field, bool > itsFlags_
Flagging field flags.
void setFlag(Field f, bool on)
void setValue(Field f, double value)
void setSelectionAlternateSelection(const PlotMSSelection &value)
casacore::String corrStr() const
double antennaAntennaBasedValue() const
void setCorrAll(bool flag)
casacore::String getValueStr(Field f) const
Gets/Sets the value for the given field as a String.
void getFlag(Field f, bool &flag) const
bool selectionAlternate() const
String: the storage and methods of handling collections of characters.
void setAntenna(const casacore::String &value)
PMS_ENUM1(Field, fields, fieldStrings, field, EXTEND, CORR, CORR_ALL, CORR_POLN_DEP, CHANNEL, SPW, ANTENNA, ANTENNA_ANTENNA, ANTENNA_BASELINES, TIME, SCANS, FIELD, SEL_SELECTED, SEL_ALTERNATE) PMS_ENUM2(Field
Static //.
Abstract base class for Record classes.
LatticeExprNode all(const LatticeExprNode &expr)
void setExtend(bool flag)
Convenience methods for setting the standard field values.
bool extend() const
Convenience methods for returning the standard field values.
void setSelectionSelected(bool flag)
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
void getValue(Field f, double &value) const
bool operator!=(const PlotMSFlagging &other) const