Auxiliary class for itemization of process list.
More...
#include <JRuncontrolToolkit.hh>
|
static const char | SEPARATOR = ':' |
| Separation character between hostname and port number. More...
|
|
Auxiliary class for itemization of process list.
Definition at line 464 of file JRuncontrolToolkit.hh.
◆ JDAQProcess() [1/2]
KM3NETDAQ::JDAQProcess::JDAQProcess |
( |
| ) |
|
|
inline |
◆ JDAQProcess() [2/2]
KM3NETDAQ::JDAQProcess::JDAQProcess |
( |
const JHostname & |
hostname, |
|
|
const std::string & |
key = "" |
|
) |
| |
|
inline |
◆ getUniqueTag()
JTag KM3NETDAQ::JDAQProcess::getUniqueTag |
( |
| ) |
const |
|
inline |
◆ equals() [1/3]
bool KM3NETDAQ::JDAQProcess::equals |
( |
const JTag & |
tag | ) |
const |
|
inline |
Test whether given tag equals.
The comparison is based on the unique tag.
- Parameters
-
- Returns
- true if match; else false
Definition at line 515 of file JRuncontrolToolkit.hh.
◆ equals() [2/3]
bool KM3NETDAQ::JDAQProcess::equals |
( |
int |
port | ) |
const |
|
inline |
Test whether given port equals.
The comparison is based on the IP number and port number.
- Parameters
-
- Returns
- true if match; else false
Definition at line 528 of file JRuncontrolToolkit.hh.
◆ equals() [3/3]
bool KM3NETDAQ::JDAQProcess::equals |
( |
const JHostname & |
hostname | ) |
const |
|
inline |
Test whether given host name equals.
The comparison is based on the IP number and port number.
- Parameters
-
- Returns
- true if match; else false
Definition at line 541 of file JRuncontrolToolkit.hh.
◆ set()
void JNET::JHostname::set |
( |
const std::string & |
buffer | ) |
|
|
inlineinherited |
Set hostname and port number.
The argument correponds to the hostname and an optional port number of the server. The syntax is hostname[:port]
. The default port number is DISPATCH_PORT. If the complete buffer corresponds to an integer value, it is interpreted as the port number.
- Parameters
-
buffer | host name and optional port number |
Definition at line 87 of file JHostname.hh.
91 const string::size_type pos = buffer.find(
SEPARATOR);
93 if (pos != string::npos) {
95 this->
hostname = buffer.substr(0, pos);
97 istringstream(buffer.substr(pos + 1)) >> this->
port;
101 bool is_number =
true;
103 for (string::const_iterator i = buffer.begin(); is_number && i != buffer.end(); ++i) {
104 is_number &= isdigit(*i);
111 istringstream(buffer) >> this->
port;
◆ operator>>
std::istream& operator>> |
( |
std::istream & |
in, |
|
|
JDAQProcess & |
object |
|
) |
| |
|
friend |
Read process from input stream.
- Parameters
-
in | input stream |
object | process |
- Returns
- input stream
Definition at line 554 of file JRuncontrolToolkit.hh.
557 in >> static_cast<JHostname&>(
object);
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const JDAQProcess & |
object |
|
) |
| |
|
friend |
Write process to output stream.
- Parameters
-
out | output stream |
object | process |
- Returns
- output stream
Definition at line 570 of file JRuncontrolToolkit.hh.
574 out << static_cast<const JHostname&>(
object);
◆ index
std::string KM3NETDAQ::JDAQProcess::index |
◆ SEPARATOR
const char JNET::JHostname::SEPARATOR = ':' |
|
staticinherited |
Separation character between hostname and port number.
Definition at line 35 of file JHostname.hh.
◆ hostname
std::string JNET::JHostname::hostname |
|
inherited |
◆ port
int JNET::JHostname::port |
|
inherited |
The documentation for this class was generated from the following file: