15#include <Poco/DOM/Element.h>
23Logger
g_log(
"InstrumentInfo");
33 : m_name(elem->getAttribute(
"name")), m_address(elem->getAttribute(
"address")),
34 m_listener(elem->getAttribute(
"listener")) {
38 <<
"is not defined. This listener will not be selectable.\n";
40 g_log.
error() <<
"Listener address for " << inst->
name() <<
" is not defined.\n";
42 g_log.
error() <<
"Listener class for " << inst->
name() <<
" is not defined.\n";
53 : m_name(
std::move(name)), m_address(
std::move(address)), m_listener(
std::move(listener)) {}
76 buffer << listener.
name() <<
"(" << listener.
address() <<
", " << listener.
listener() <<
")";
const std::vector< double > & rhs
A class that holds information about an instrument.
const std::string name() const
Return the name of the instrument.
A class that holds information about a LiveListener connection.
std::string m_address
Listener address.
LiveListenerInfo(InstrumentInfo *inst, const Poco::XML::Element *elem)
Construct from Facility Info XML.
const std::string & name() const
Return the name of this LiveListener connection.
std::string m_name
Listener name.
bool operator==(const LiveListenerInfo &rhs) const
Required for Python bindings.
std::string m_listener
Listener classname.
const std::string & address() const
Returns the address string of this LiveListener connection.
const std::string & listener() const
Returns the classname of the specific LiveListener to use.
void error(const std::string &msg)
Logs at error level.
Logger g_log("DateAndTime")
MANTID_KERNEL_DLL std::ostream & operator<<(std::ostream &, CPUTimer &)
Convenience function to provide for easier debug printing.