Mantid
Loading...
Searching...
No Matches
TopicInfo.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2019 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 "MantidKernel/DllConfig.h"
10#include <string>
11
12//----------------------------------------------------------------------
13// Forward declarations
14//----------------------------------------------------------------------
15namespace Poco {
16namespace XML {
17class Element;
18}
19} // namespace Poco
20
21namespace Mantid {
22namespace Kernel {
23
24//----------------------------------------------------------------------
25// Forward declarations
26//----------------------------------------------------------------------
27class InstrumentInfo;
28
32class MANTID_KERNEL_DLL TopicInfo {
33public:
34 TopicInfo(InstrumentInfo *inst, const Poco::XML::Element *elem);
35 TopicInfo(std::string name, TopicType type);
36 const std::string &name() const { return m_name; }
37 TopicType type() const { return m_type; }
38
39private:
40 std::string m_name;
42};
43
45MANTID_KERNEL_DLL std::ostream &operator<<(std::ostream &buffer, const TopicInfo &topic);
46
47} // namespace Kernel
48} // namespace Mantid
A class that holds information about an instrument.
TopicInfo : Class that holds information on a kafka topic.
Definition: TopicInfo.h:32
const std::string & name() const
Definition: TopicInfo.h:36
TopicType type() const
Definition: TopicInfo.h:37
MANTID_KERNEL_DLL std::ostream & operator<<(std::ostream &, CPUTimer &)
Convenience function to provide for easier debug printing.
Definition: CPUTimer.cpp:86
Helper class which provides the Collimation Length for SANS instruments.
Definition: Algorithm.h:30