Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
MockQtAlgorithmRunner Class Reference

#include <MockQtAlgorithmRunner.h>

Inheritance diagram for MockQtAlgorithmRunner:
MantidQt::API::QtAlgorithmRunner

Public Member Functions

Mantid::API::IAlgorithm_sptr algorithm () const
 
 MOCK_CONST_METHOD0 (getAlgorithm, Mantid::API::IAlgorithm_sptr())
 
 MOCK_METHOD1 (startAlgorithmImpl, void(Mantid::API::IAlgorithm_sptr))
 
 MockQtAlgorithmRunner ()=default
 
void startAlgorithm (Mantid::API::IAlgorithm_sptr alg)
 Begin asynchronous execution of an algorithm and observe its execution.
 
- Public Member Functions inherited from MantidQt::API::QtAlgorithmRunner
void cancelRunningAlgorithm ()
 If an algorithm is already running, cancel it.
 
virtual Mantid::API::IAlgorithm_sptr getAlgorithm () const
 Get back a pointer to the running algorithm.
 
 QtAlgorithmRunner (QObject *parent=nullptr)
 
 ~QtAlgorithmRunner () override
 

Private Attributes

Mantid::API::IAlgorithm_sptr m_algorithm
 

Additional Inherited Members

- Signals inherited from MantidQt::API::QtAlgorithmRunner
void algorithmComplete (bool error)
 Signal emitted when the algorithm has completed execution/encountered an error.
 
void algorithmProgress (double p, const std::string &msg)
 Signal emitted when the algorithm reports progress.
 
- Protected Member Functions inherited from MantidQt::API::QtAlgorithmRunner
void handleAlgorithmErrorNotification (const Poco::AutoPtr< Mantid::API::Algorithm::ErrorNotification > &pNf)
 Observer called when the async algorithm has encountered an error.
 
void handleAlgorithmFinishedNotification (const Poco::AutoPtr< Mantid::API::Algorithm::FinishedNotification > &pNf)
 Algorithm notification handlers.
 
void handleAlgorithmProgressNotification (const Poco::AutoPtr< Mantid::API::Algorithm::ProgressNotification > &pNf)
 Observer called when the async algorithm has progress to report.
 
- Protected Attributes inherited from MantidQt::API::QtAlgorithmRunner
Mantid::API::IAlgorithm_sptr m_asyncAlg
 Reference to the algorithm executing asynchronously.
 
Poco::ActiveResult< bool > * m_asyncResult
 For the asynchronous call in dynamic rebinning.
 
Poco::NObserver< QtAlgorithmRunner, Mantid::API::Algorithm::ErrorNotificationm_errorObserver
 
Poco::NObserver< QtAlgorithmRunner, Mantid::API::Algorithm::FinishedNotificationm_finishedObserver
 
Poco::NObserver< QtAlgorithmRunner, Mantid::API::Algorithm::ProgressNotificationm_progressObserver
 

Detailed Description

Definition at line 19 of file MockQtAlgorithmRunner.h.

Constructor & Destructor Documentation

◆ MockQtAlgorithmRunner()

MockQtAlgorithmRunner::MockQtAlgorithmRunner ( )
default

Member Function Documentation

◆ algorithm()

Mantid::API::IAlgorithm_sptr MockQtAlgorithmRunner::algorithm ( ) const
inline

Definition at line 32 of file MockQtAlgorithmRunner.h.

References m_algorithm.

◆ MOCK_CONST_METHOD0()

MockQtAlgorithmRunner::MOCK_CONST_METHOD0 ( getAlgorithm  ,
Mantid::API::IAlgorithm_sptr()   
)

◆ MOCK_METHOD1()

MockQtAlgorithmRunner::MOCK_METHOD1 ( startAlgorithmImpl  ,
void(Mantid::API::IAlgorithm_sptr  
)

◆ startAlgorithm()

void MockQtAlgorithmRunner::startAlgorithm ( Mantid::API::IAlgorithm_sptr  alg)
inlinevirtual

Begin asynchronous execution of an algorithm and observe its execution.

Parameters
alg:: algorithm to execute. All properties should have been set properly.

Reimplemented from MantidQt::API::QtAlgorithmRunner.

Definition at line 27 of file MockQtAlgorithmRunner.h.

References m_algorithm.

Member Data Documentation

◆ m_algorithm

Mantid::API::IAlgorithm_sptr MockQtAlgorithmRunner::m_algorithm
private

Definition at line 35 of file MockQtAlgorithmRunner.h.

Referenced by algorithm(), and startAlgorithm().


The documentation for this class was generated from the following file: