Skip to content
Snippets Groups Projects
Commit 8843ff2e authored by Owen Arnold's avatar Owen Arnold
Browse files

refs #8589. Create a base algorithm class.

parent e2128e72
No related branches found
No related tags found
No related merge requests found
......@@ -170,6 +170,7 @@ set ( SRC_FILES
src/Rebunch.cpp
src/RecordPythonScript.cpp
src/ReflectometryReductionOne.cpp
src/ReflectometryWorkflowBase.cpp
src/Regroup.cpp
src/RemoveBins.cpp
src/RemoveExpDecay.cpp
......@@ -394,6 +395,7 @@ set ( INC_FILES
inc/MantidAlgorithms/Rebunch.h
inc/MantidAlgorithms/RecordPythonScript.h
inc/MantidAlgorithms/ReflectometryReductionOne.h
inc/MantidAlgorithms/ReflectometryWorkflowBase.h
inc/MantidAlgorithms/Regroup.h
inc/MantidAlgorithms/RemoveBins.h
inc/MantidAlgorithms/RemoveExpDecay.h
......
......@@ -2,7 +2,7 @@
#define MANTID_ALGORITHMS_CREATETRANSMISSIONWORKSPACE_H_
#include "MantidKernel/System.h"
#include "MantidAPI/DataProcessorAlgorithm.h"
#include "MantidAlgorithms/ReflectometryWorkflowBase.h"
namespace Mantid
{
......@@ -31,7 +31,7 @@ namespace Algorithms
File change history is stored at: <https://github.com/mantidproject/mantid>
Code Documentation is available at: <http://doxygen.mantidproject.org>
*/
class DLLExport CreateTransmissionWorkspace : public API::DataProcessorAlgorithm
class DLLExport CreateTransmissionWorkspace : public ReflectometryWorkflowBase
{
public:
CreateTransmissionWorkspace();
......
......@@ -2,11 +2,11 @@
#define MANTID_ALGORITHMS_REFLECTOMETRYREDUCTIONONE_H_
#include "MantidKernel/System.h"
#include "MantidAPI/DataProcessorAlgorithm.h"
#include "MantidAPI/MatrixWorkspace.h"
#include "MantidGeometry/Instrument.h"
#include "MantidGeometry/IComponent.h"
#include "MantidGeometry/IDetector.h"
#include "MantidAlgorithms/ReflectometryWorkflowBase.h"
#include <boost/optional.hpp>
#include <boost/tuple/tuple.hpp>
#include <vector>
......@@ -38,7 +38,7 @@ namespace Mantid
File change history is stored at: <https://github.com/mantidproject/mantid>
Code Documentation is available at: <http://doxygen.mantidproject.org>
*/
class DLLExport ReflectometryReductionOne: public API::DataProcessorAlgorithm
class DLLExport ReflectometryReductionOne: public ReflectometryWorkflowBase
{
public:
......
#ifndef MANTID_ALGORITHMS_REFLECTOMETRYWORKFLOWBASE_H_
#define MANTID_ALGORITHMS_REFLECTOMETRYWORKFLOWBASE_H_
#include "MantidKernel/System.h"
#include "MantidAPI/DataProcessorAlgorithm.h"
namespace Mantid
{
namespace Algorithms
{
/** ReflectometryWorkflowBase : Abstract workflow algortithm base class containing common implementation functionality usable
* by concrete reflectometry workflow algorithms.
Copyright &copy; 2013 ISIS Rutherford Appleton Laboratory & NScD Oak Ridge National Laboratory
This file is part of Mantid.
Mantid is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
Mantid is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
File change history is stored at: <https://github.com/mantidproject/mantid>
Code Documentation is available at: <http://doxygen.mantidproject.org>
*/
class DLLExport ReflectometryWorkflowBase : public API::DataProcessorAlgorithm
{
public:
ReflectometryWorkflowBase();
virtual ~ReflectometryWorkflowBase();
//protected:
};
} // namespace Algorithms
} // namespace Mantid
#endif /* MANTID_ALGORITHMS_REFLECTOMETRYWORKFLOWBASE_H_ */
/*WIKI*
TODO: Enter a full wiki-markup description of your algorithm here. You can then use the Build/wiki_maker.py script to generate your full wiki page.
*WIKI*/
#include "MantidAlgorithms/ReflectometryWorkflowBase.h"
namespace Mantid
{
namespace Algorithms
{
//----------------------------------------------------------------------------------------------
/** Constructor
*/
ReflectometryWorkflowBase::ReflectometryWorkflowBase()
{
}
//----------------------------------------------------------------------------------------------
/** Destructor
*/
ReflectometryWorkflowBase::~ReflectometryWorkflowBase()
{
}
} // namespace Algorithms
} // namespace Mantid
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment