Mantid
Loading...
Searching...
No Matches
InstrumentMetadata.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2026 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#include "MantidGeometry/DllConfig.h"
11#include "MantidTypes/Core/DateAndTime.h"
12#include <string>
13
14namespace Mantid {
15namespace Geometry {
16
25class MANTID_GEOMETRY_DLL InstrumentMetadata {
26public:
27 InstrumentMetadata(const Types::Core::DateAndTime &validFromDate, const Types::Core::DateAndTime &validToDate,
28 std::string filename, std::string xmlText, std::string defaultView, std::string defaultAxis,
29 Instrument_const_sptr physicalInstrument);
30
31 const Types::Core::DateAndTime &validFromDate() const;
32 const Types::Core::DateAndTime &validToDate() const;
33 const std::string &filename() const;
34 const std::string &xmlText() const;
35 const std::string &defaultView() const;
36 const std::string &defaultAxis() const;
40 Instrument_const_sptr physicalInstrument() const;
41
42private:
43 Types::Core::DateAndTime m_validFromDate;
44 Types::Core::DateAndTime m_validToDate;
45 std::string m_filename;
46 std::string m_xmlText;
47 std::string m_defaultView;
48 std::string m_defaultAxis;
50};
51
52} // namespace Geometry
53} // namespace Mantid
InstrumentMetadata : metadata related to the entire instrument.
Types::Core::DateAndTime m_validFromDate
std::shared_ptr< const Instrument > Instrument_const_sptr
Shared pointer to an const instrument object.
Helper class which provides the Collimation Length for SANS instruments.