-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refs #4401 further separating algorithm body from internal methods
- Loading branch information
Showing
14 changed files
with
327 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
Code/Mantid/Framework/MDAlgorithms/inc/MantidMDAlgorithms/ConvertToMDEventsSubalgFactory.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
#ifndef H_CONVERT_TO_MDEVENTS_SUBALG_FACTORY | ||
#define H_CONVERT_TO_MDEVENTS_SUBALG_FACTORY | ||
|
||
|
||
#include "MantidMDAlgorithms/ConvertToMDEventsParams.h" | ||
#include "MantidMDAlgorithms/IConvertToMDEventsMethods.h" | ||
#include "MantidMDAlgorithms/ConvertToMDEventsHistoWS.h" | ||
#include "MantidMDAlgorithms/ConvertToMDEventsEventWS.h" | ||
|
||
namespace Mantid | ||
{ | ||
namespace MDAlgorithms | ||
{ | ||
|
||
/** The helper class for ConvertToMDEvents, which instantiates various subalgorithms, availible to convert a workspace into MDEvent workspace | ||
* and accessed on request: | ||
* | ||
* @date 16-03-2012 | ||
* | ||
* Gateway for number of subalgorithms, some are very important, some are questionable | ||
* Intended to cover wide range of cases; | ||
Copyright © 2010 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://svn.mantidproject.org/mantid/trunk/Code/Mantid> | ||
Code Documentation is available at: <http://doxygen.mantidproject.org> | ||
*/ | ||
class DLLExport ConvertToMDEventsSubalgFactory | ||
{ | ||
/// map to select an algorithm as function of the key, which describes it | ||
std::map<std::string, IConvertToMDEventsMethods *> alg_selector; | ||
public: | ||
/// constructor | ||
ConvertToMDEventsSubalgFactory(); | ||
~ConvertToMDEventsSubalgFactory(); | ||
/// access to a subalgorithm | ||
IConvertToMDEventsMethods * getAlg(const std::string &AlgName); | ||
/// initiate the subalgorithm creation | ||
void initSubalgorithms(const ConvertToMDEventsParams &SubAlgDescriptor); | ||
private: | ||
//-------------------------------------------------------------------------------------------------- | ||
/// helper class to orginize metaloop instantiating various subalgorithms | ||
template<Q_state Q,size_t N_ALGORITHMS > | ||
friend class LOOP_ALGS; | ||
}; | ||
} | ||
} | ||
|
||
|
||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.