12#include "MantidAPI/DllConfig.h"
16#include <Poco/Net/SocketAddress.h>
38 virtual std::string
name()
const = 0;
52 virtual bool connect(
const Poco::Net::SocketAddress &address) = 0;
68 virtual void start(Types::Core::DateAndTime startTime = Types::Core::DateAndTime()) = 0;
126 virtual void setSpectra(
const std::vector<specnum_t> &specList) = 0;
IAlgorithm is the interface implemented by the Algorithm base class.
ILiveListener is the interface implemented by classes which connect directly to instrument data acqui...
virtual bool supportsHistory() const =0
Does this listener support requests for (recent) past data.
RunStatus
The possible run statuses (initial list taken from SNS SMS protocol) None : No current run Begin : A ...
virtual ILiveListener::RunStatus runStatus()=0
Gets the current run status of the listened-to data stream.
virtual std::string name() const =0
The name of this listener.
virtual bool connect(const Poco::Net::SocketAddress &address)=0
Connect to the specified address and start listening/buffering.
virtual int runNumber() const =0
Returns the run number of the current run.
virtual void setSpectra(const std::vector< specnum_t > &specList)=0
Sets a list of spectra to be extracted.
virtual std::shared_ptr< Workspace > extractData()=0
Get the data that's been buffered since the last call to this method (or since start() was called).
virtual bool buffersEvents() const =0
Does this listener buffer events (true) or histogram data (false)
virtual void start(Types::Core::DateAndTime startTime=Types::Core::DateAndTime())=0
Commence the collection of data from the DAS.
virtual bool isConnected()=0
Has the connection to the DAS been established? Could also be used to check for a continued connectio...
virtual bool dataReset()=0
Indicates that a reset (or period change?) signal has been received from the DAS.
virtual void setAlgorithm(const class IAlgorithm &callingAlgorithm)=0
Allow listener to see calling algorithm.
Property manager helper class.
std::shared_ptr< ILiveListener > ILiveListener_sptr
Shared pointer to an ILiveListener.
Helper class which provides the Collimation Length for SANS instruments.