Mantid
Loading...
Searching...
No Matches
LiveListenerInfo.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2016 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//----------------------------------------------------------------------
12#include "MantidKernel/DllConfig.h"
13#include <string>
14
15//----------------------------------------------------------------------
16// Forward declarations
17//----------------------------------------------------------------------
18namespace Poco {
19namespace XML {
20class Element;
21}
22} // namespace Poco
23
24namespace Mantid {
25namespace Kernel {
26
27//----------------------------------------------------------------------
28// Forward declarations
29//----------------------------------------------------------------------
30class InstrumentInfo;
31
37class MANTID_KERNEL_DLL LiveListenerInfo {
38public:
39 LiveListenerInfo(InstrumentInfo *inst, const Poco::XML::Element *elem);
40 LiveListenerInfo(std::string listener = "", std::string address = "", std::string name = "");
41
43 bool operator==(const LiveListenerInfo &rhs) const;
44
46 const std::string &name() const;
47
49 const std::string &address() const;
50
52 const std::string &listener() const;
53
54private:
55 std::string m_name;
56 std::string m_address;
57 std::string m_listener;
58};
59
61MANTID_KERNEL_DLL std::ostream &operator<<(std::ostream &buffer, const LiveListenerInfo &listener);
62
63} // namespace Kernel
64} // namespace Mantid
const std::vector< double > & rhs
A class that holds information about an instrument.
A class that holds information about a LiveListener connection.
std::string m_address
Listener address.
std::string m_name
Listener name.
std::string m_listener
Listener classname.
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
constexpr bool operator==(const wide_integer< Bits, Signed > &lhs, const wide_integer< Bits2, Signed2 > &rhs)