Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature/9394_loader_bilby_'
Browse files Browse the repository at this point in the history
  • Loading branch information
KarlPalmen committed Jun 26, 2014
2 parents fd74eed + 8f8a1eb commit cbf47f0
Show file tree
Hide file tree
Showing 6 changed files with 665 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Code/Mantid/Framework/DataHandling/CMakeLists.txt
Expand Up @@ -22,6 +22,7 @@ set ( SRC_FILES
src/Load.cpp
src/LoadAscii.cpp
src/LoadAscii2.cpp
src/LoadBBY.cpp
src/LoadCalFile.cpp
src/LoadCanSAS1D.cpp
src/LoadCanSAS1D2.cpp
Expand Down Expand Up @@ -161,6 +162,7 @@ set ( INC_FILES
inc/MantidDataHandling/Load.h
inc/MantidDataHandling/LoadAscii.h
inc/MantidDataHandling/LoadAscii2.h
inc/MantidDataHandling/LoadBBY.h
inc/MantidDataHandling/LoadCalFile.h
inc/MantidDataHandling/LoadCanSAS1D.h
inc/MantidDataHandling/LoadCanSAS1D2.h
Expand Down Expand Up @@ -298,6 +300,7 @@ set ( TEST_FILES
InstrumentRayTracerTest.h
LoadAscii2Test.h
LoadAsciiTest.h
LoadBBYTest.h
LoadCalFileTest.h
LoadCanSAS1dTest.h
LoadDaveGrpTest.h
Expand Down
@@ -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_

0 comments on commit cbf47f0

Please sign in to comment.