Mantid
Loading...
Searching...
No Matches
LiveListener.cpp
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
9
10namespace Mantid::API {
11
14 const bool retval = m_dataReset;
15 // Should this be done here or should extractData do it?
16 m_dataReset = false;
17 return retval;
18}
19
24void LiveListener::setSpectra(const std::vector<specnum_t> &specList) { UNUSED_ARG(specList); }
25
30void LiveListener::setAlgorithm(const IAlgorithm &callingAlgorithm) { this->updatePropertyValues(callingAlgorithm); }
31
32} // namespace Mantid::API
#define UNUSED_ARG(x)
Function arguments are sometimes unused in certain implmentations but are required for documentation ...
Definition: System.h:64
IAlgorithm is the interface implemented by the Algorithm base class.
Definition: IAlgorithm.h:45
void setAlgorithm(const class IAlgorithm &callingAlgorithm) override
Default behaviour updates property values on Listener using those on calling algorithm.
void setSpectra(const std::vector< specnum_t > &specList) override
Default behaviour reads all spectrum numbers.
bool m_dataReset
Indicates receipt of a reset signal from the DAS.
Definition: LiveListener.h:25
bool dataReset() override
Indicates that a reset (or period change?) signal has been received from the DAS.
void updatePropertyValues(const IPropertyManager &other)
Update values of the existing properties.