Auxiliary data structure for reply message.
More...
#include <JReplyMessage.hh>
Auxiliary data structure for reply message.
Definition at line 31 of file JReplyMessage.hh.
◆ JReplyMessage() [1/2]
JDB::JReplyMessage::JReplyMessage |
( |
| ) |
|
|
inline |
◆ JReplyMessage() [2/2]
Copy constructor.
- Parameters
-
Definition at line 44 of file JReplyMessage.hh.
54 istringstream is(datalog.
data);
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Exception for parsing value.
Auxiliary class to specify white space character(s) in currect locale.
std::string toString() const
Convert tag to string.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
KM3NeT DAQ data structures and auxiliaries.
static const JNET::JTag RC_REPLY
static const std::string RUN_CONTROL_CLIENT
static const std::string TOKEN_DELIMETER
◆ match()
bool JDB::JReplyMessage::match |
( |
const JReplyMessage & |
message | ) |
const |
|
inline |
Get match.
- Parameters
-
- Returns
- true if message matches; else false
Definition at line 80 of file JReplyMessage.hh.
83 if (!message.
ip .empty() && message.
ip !=
ip) {
return false; }
84 if (!message.
event .empty() && message.
event !=
event) {
return false; }
85 if (!message.
state .empty() && message.
state !=
state) {
return false; }
◆ operator>>
std::istream& operator>> |
( |
std::istream & |
in, |
|
|
JReplyMessage & |
object |
|
) |
| |
|
friend |
Read message from input.
- Parameters
-
in | input stream |
object | message |
- Returns
- input stream
Definition at line 98 of file JReplyMessage.hh.
100 return in >>
object.key
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const JReplyMessage & |
object |
|
) |
| |
|
friend |
Write message to output.
- Parameters
-
out | output stream |
object | message |
- Returns
- output stream
Definition at line 115 of file JReplyMessage.hh.
117 return out <<
object.key
◆ tag
std::string JDB::JReplyMessage::tag |
◆ key
std::string JDB::JReplyMessage::key |
◆ ip
std::string JDB::JReplyMessage::ip |
◆ nickname
std::string JDB::JReplyMessage::nickname |
◆ event
std::string JDB::JReplyMessage::event |
◆ state
std::string JDB::JReplyMessage::state |
The documentation for this struct was generated from the following file: