10#include <Poco/DOM/Element.h>
18Logger
g_log(
"TopicInfo");
40 g_log.
warning() <<
"Kafka topic provided without a suitable name for instrument " << inst->
name()
41 <<
". No attempts will be made to connect to this topic." << std::endl;
43 std::string
type = elem->getAttribute(
"type");
47 else if (
type ==
"chopper")
49 else if (
type ==
"sample")
51 else if (
type ==
"run")
53 else if (
type ==
"monitor")
56 g_log.
warning() <<
"Kafka topic provided without a suitable type for instrument " << inst->
name()
57 <<
". No attempts will be made to connect to this topic." << std::endl;
70 buffer << topic.
name() <<
"(" << typeToString(topic.
type()) <<
", "
A class that holds information about an instrument.
const std::string name() const
Return the name of the instrument.
void warning(const std::string &msg)
Logs at warning level.
TopicInfo : Class that holds information on a kafka topic.
const std::string & name() const
TopicInfo(InstrumentInfo *inst, const Poco::XML::Element *elem)
Logger g_log("DateAndTime")
MANTID_KERNEL_DLL std::ostream & operator<<(std::ostream &, CPUTimer &)
Convenience function to provide for easier debug printing.