Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/feature/9394_loader_bilby_'
- Loading branch information
Showing
6 changed files
with
665 additions
and
0 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
68 changes: 68 additions & 0 deletions
68
Code/Mantid/Framework/DataHandling/inc/MantidDataHandling/LoadBBY.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,68 @@ | ||
#ifndef DATAHANDING_LOADBBY_H_ | ||
#define DATAHANDING_LOADBBY_H_ | ||
|
||
//--------------------------------------------------- | ||
// Includes | ||
//--------------------------------------------------- | ||
#include "MantidAPI/IFileLoader.h" | ||
|
||
namespace Mantid | ||
{ | ||
namespace DataHandling | ||
{ | ||
/** | ||
Loads a Bilby data file. Implements API::IFileLoader and its file check methods to | ||
recognise a file as the one containing QUOKKA data. | ||
@author David Mannicke (ANSTO), Roman Tolchenov (Tessella plc) | ||
@date 07/02/2014 | ||
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://github.com/mantidproject/mantid> | ||
Code Documentation is available at: <http://doxygen.mantidproject.org> | ||
*/ | ||
class DLLExport LoadBBY : public API::IFileLoader<Kernel::FileDescriptor> | ||
{ | ||
public: | ||
/// (Empty) Constructor | ||
LoadBBY() {} | ||
/// Virtual destructor | ||
virtual ~LoadBBY() {} | ||
/// Algorithm's name | ||
virtual const std::string name() const { return "LoadBBY"; } | ||
/// Algorithm's version | ||
virtual int version() const { return (1); } | ||
/// Algorithm's category for identification | ||
virtual const std::string category() const { return "DataHandling"; } | ||
|
||
/// Returns a confidence value that this algorithm can load a file | ||
virtual int confidence(Kernel::FileDescriptor & descriptor) const; | ||
|
||
///Summary of algorithms purpose | ||
virtual const std::string summary() const {return "Loads a BilBy data file into an workspace.";} | ||
|
||
private: | ||
/// Initialisation code | ||
void init(); | ||
///Execution code | ||
void exec(); | ||
}; | ||
} | ||
} | ||
#endif //DATAHANDING_LOADBBY_H_ |
Oops, something went wrong.