27 #ifndef PLOTMSWATCHEDPARAMETERS_H_
28 #define PLOTMSWATCHEDPARAMETERS_H_
37 class PlotMSWatchedParameters;
193 static std::vector<casacore::String>
NAMES;
static void UNREGISTER_UPDATE_FLAG(const casacore::String &name)
Unregisters the given update flag, if it is registered.
static std::vector< int > FLAGS
Static //.
static std::vector< casacore::String > NAMES
Registered flag names.
virtual ~PlotMSParametersWatcher()
Destructor.
void addWatcher(PlotMSParametersWatcher *watcher)
Adds/Removes the given watcher for this PlotMSParameters.
virtual bool equals(const PlotMSWatchedParameters &other, int updateFlags) const =0
ABSTRACT METHODS //.
static std::vector< casacore::String > UPDATE_FLAG_NAMES()
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the if a human readable name(i.e."black").In many places throughout the plotter
void releaseNotification()
Releases update notification; notifies all watchers of an update except for the one (if any) that cal...
Abstract class for parameters that may be watched by one or more interested classes.
virtual void parametersHaveChanged(const PlotMSWatchedParameters ¶ms, int updateFlag)=0
This method is called whenever the watched parameters have been changed.
void holdNotification(PlotMSParametersWatcher *updater=NULL)
Holds update notifications for any registered watchers.
int currentUpdateFlag() const
Returns the current update flag.
void updateFlags(int updateFlags)
Provides access to children to indicate which update flags are on.
static int ALL_UPDATE_FLAGS()
Returns all registered update flags as one or-ed value.
PlotMSWatchedParameters()
Non-Static //.
virtual ~PlotMSWatchedParameters()
Destructor.
virtual bool operator!=(const PlotMSWatchedParameters &other) const
PlotMSParametersWatcher * itsUpdater_
Watcher that is currently holding notifications, or NULL for none.
PlotMSParametersWatcher()
Constructor.
static std::vector< int > UPDATE_FLAGS()
Returns all registered update flags.
void removeWatcher(PlotMSParametersWatcher *watcher)
static int REGISTER_UPDATE_FLAG(const casacore::String &name)
Registers an update flag with the given name (if it is not already registered) and returns its flag v...
static const int NO_UPDATES
Static //.
static int UPDATE_FLAG(const casacore::String &name)
Converts between an update flag's name and value, if valid.
int itsUpdateFlags_
Current update flags.
Interface for classes that wish to be notified when PlotMSWatchedParameters have changed.
String: the storage and methods of handling collections of characters.
bool isHolding_
Flag for whether notifications are currently being held or not.
std::vector< PlotMSParametersWatcher * > itsWatchers_
Watchers.
virtual bool operator==(const PlotMSWatchedParameters &other) const
Equality operators.
void updateFlag(int updateFlag, bool on=true)
Provides access to children to indicate whether the given update flag should be turned on or off...
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.