Mantid
Loading...
Searching...
No Matches
LoadEmptyInstrument.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2007 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
9//----------------------------------------------------------------------
10// Includes
11//----------------------------------------------------------------------
13#include "MantidDataHandling/DllConfig.h"
16
17namespace Mantid {
18namespace DataHandling {
47class MANTID_DATAHANDLING_DLL LoadEmptyInstrument : public API::IFileLoader<Kernel::FileDescriptor> {
48public:
50 const std::string name() const override { return "LoadEmptyInstrument"; }
52 const std::string summary() const override {
53 return "Loads an Instrument Definition File (IDF) into a workspace rather "
54 "than a data file.";
55 }
56
58 int version() const override { return 1; }
59 const std::vector<std::string> seeAlso() const override { return {"LoadInstrument"}; }
61 const std::string category() const override { return "DataHandling\\Instrument"; }
63 int confidence(Kernel::FileDescriptor &descriptor) const override;
64
65private:
67 void init() override;
69 void exec() override;
70
71 API::MatrixWorkspace_sptr runLoadInstrument(const std::string &filename, const std::string &instrumentname);
72};
73
74} // namespace DataHandling
75} // namespace Mantid
Defines an interface to an algorithm that loads a file so that it can take part in the automatic sele...
Definition: IFileLoader.h:19
Loads an instrument definition file into a workspace, with the purpose of being able to visualise an ...
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
const std::string summary() const override
Summary of algorithms purpose.
int version() const override
Algorithm's version for identification overriding a virtual method.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
Defines a wrapper around an open file.
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.