27 #ifndef PLOTMSAVERAGING_H_
28 #define PLOTMSAVERAGING_H_
51 CHANNEL, TIME, SCAN, FIELD, BASELINE, ANTENNA, SPW,
casacore::String summary() const
Print out a summary of the averaging state:
void getValue(Field f, double &value) const
Specifies averaging parameters for an MS.
void fromRecord(const casacore::RecordInterface &record)
Converts this object to/from a record.
~PlotMSAveraging()
Destructor.
std::map< Field, bool > itsFlags_
Averaging field flags.
#define PMS_ENUM2(NAME, ALLMETHOD, ALLSTRMETHOD, CONVMETHOD,...)
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 do...
void setValue(Field f, double value)
PlotMSAveraging()
Non-Static //.
void setTime(const casacore::String &value)
void setTimeValue(double value)
double getValue(Field f) const
Gets/Sets the double value for the given field, if applicable.
casacore::Record toRecord(bool useStrings=false) const
void setChannel(bool flag)
void getValue(Field f, casacore::String &value) const
void setFlag(Field f, bool on)
casacore::String timeStr() const
bool anyAveraging() const
If any explicit averaging is turned ON, return true.
void getFlag(Field f, bool &flag) const
PMS_ENUM1(Field, fields, fieldStrings, field, CHANNEL, TIME, SCAN, FIELD, BASELINE, ANTENNA, SPW, SCALARAVE) PMS_ENUM2(Field
Static //.
bool channel() const
Convenience methods for returning the standard field values.
casacore::String channelStr() const
bool getFlag(Field f) const
Gets/Sets the on/off flag for the given field.
void setDefaults()
Sets the default values.
A hierarchical collection of named fields of various types.
void setAntenna(bool flag)
std::map< Field, double > itsValues_
Averaging field double values.
bool operator==(const PlotMSAveraging &other) const
Equality operators.
void setBaseline(bool flag)
static bool fieldIsInMutuallyExclusiveGroup(Field f)
Returns true if the given field is in a mutually exclusive group, false otherwise.
casacore::String getValueStr(Field f) const
Gets/Sets the value for the given field as a String.
double channelValue() const
casacore::String toStringShort() const
Print out an abbreviated summary of the averaging state.
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...
String: the storage and methods of handling collections of characters.
static scalar bool fieldHasValue(Field f)
Returns whether the given field has a double value associated with it or not.
Abstract base class for Record classes.
void setScalarAve(bool flag)
void setChannelValue(double value)
void setChannel(const casacore::String &value)
Convenience methods for setting the standard field values.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
bool operator!=(const PlotMSAveraging &other) const