Mantid
|
A class that holds information about a LiveListener connection. More...
#include <LiveListenerInfo.h>
Public Member Functions | |
const std::string & | address () const |
Returns the address string of this LiveListener connection. More... | |
const std::string & | listener () const |
Returns the classname of the specific LiveListener to use. More... | |
LiveListenerInfo (InstrumentInfo *inst, const Poco::XML::Element *elem) | |
Construct from Facility Info XML. More... | |
LiveListenerInfo (std::string listener="", std::string address="", std::string name="") | |
Construct manually. More... | |
const std::string & | name () const |
Return the name of this LiveListener connection. More... | |
bool | operator== (const LiveListenerInfo &rhs) const |
Required for Python bindings. More... | |
Private Attributes | |
std::string | m_address |
Listener address. More... | |
std::string | m_listener |
Listener classname. More... | |
std::string | m_name |
Listener name. More... | |
A class that holds information about a LiveListener connection.
Definition at line 37 of file LiveListenerInfo.h.
Mantid::Kernel::LiveListenerInfo::LiveListenerInfo | ( | InstrumentInfo * | inst, |
const Poco::XML::Element * | elem | ||
) |
Construct from Facility Info XML.
inst | Pointer to InstrumentInfo that this LiveListenerInfo belongs to |
elem | The Poco::XML::Element to read the data from |
Definition at line 32 of file LiveListenerInfo.cpp.
References Mantid::Kernel::Logger::error(), Mantid::Kernel::DateAndTimeHelpers::g_log, m_address, m_listener, m_name, and Mantid::Kernel::InstrumentInfo::name().
Mantid::Kernel::LiveListenerInfo::LiveListenerInfo | ( | std::string | listener = "" , |
std::string | address = "" , |
||
std::string | name = "" |
||
) |
Construct manually.
listener | Class name of specific listener to use |
address | Address which listener should use to connect |
name | Name designator for this listener connection info |
Definition at line 52 of file LiveListenerInfo.cpp.
const std::string & Mantid::Kernel::LiveListenerInfo::address | ( | ) | const |
Returns the address string of this LiveListener connection.
Definition at line 61 of file LiveListenerInfo.cpp.
References m_address.
Referenced by Mantid::API::LiveListenerFactoryImpl::create(), export_LiveListenerInfo(), Mantid::Kernel::InstrumentInfo::liveDataAddress(), Mantid::Kernel::operator<<(), and operator==().
const std::string & Mantid::Kernel::LiveListenerInfo::listener | ( | ) | const |
Returns the classname of the specific LiveListener to use.
Definition at line 63 of file LiveListenerInfo.cpp.
References m_listener.
Referenced by Mantid::API::LiveListenerFactoryImpl::create(), export_LiveListenerInfo(), Mantid::Kernel::InstrumentInfo::liveListener(), and Mantid::Kernel::operator<<().
const std::string & Mantid::Kernel::LiveListenerInfo::name | ( | ) | const |
Return the name of this LiveListener connection.
Definition at line 59 of file LiveListenerInfo.cpp.
References m_name.
Referenced by export_LiveListenerInfo(), and Mantid::Kernel::operator<<().
bool Mantid::Kernel::LiveListenerInfo::operator== | ( | const LiveListenerInfo & | rhs | ) | const |
Required for Python bindings.
Definition at line 55 of file LiveListenerInfo.cpp.
|
private |
Listener address.
Definition at line 56 of file LiveListenerInfo.h.
Referenced by address(), and LiveListenerInfo().
|
private |
Listener classname.
Definition at line 57 of file LiveListenerInfo.h.
Referenced by listener(), and LiveListenerInfo().
|
private |
Listener name.
Definition at line 55 of file LiveListenerInfo.h.
Referenced by LiveListenerInfo(), and name().