Auxiliary data structure for datalog strings.
More...
#include <JDatalogString.hh>
|
static const char *const | getName () |
| Table name.
|
|
Auxiliary data structure for datalog strings.
Definition at line 33 of file JDatalogString.hh.
◆ getName()
static const char *const JDB::JDatalogString::getName |
( |
| ) |
|
|
inlinestatic |
◆ match()
bool JDB::JDatalogString::match |
( |
const JDatalogString & | datalog | ) |
const |
|
inline |
Get match.
- Parameters
-
- Returns
- true if datalog matches; else false
Definition at line 44 of file JDatalogString.hh.
45 {
47
48 if (!datalog.source .empty() && datalog.source !=
source) {
return false; }
49 if (!datalog.parameter.empty() && datalog.parameter !=
parameter) {
return false; }
50 if (!datalog.data .empty() && !regex_match(
data, regex(datalog.data))) {
return false; }
51
52 return true;
53 }
◆ operator>>
std::istream & operator>> |
( |
std::istream & | in, |
|
|
JDatalogString & | object ) |
|
friend |
Read datalog from input.
- Parameters
-
in | input stream |
object | datalog |
- Returns
- input stream
Definition at line 63 of file JDatalogString.hh.
64 {
65 object = JDatalogString();
66
67 in >> object.run
68 >> object.utc
69 >> object.source
70 >> object.parameter;
71
72 while (in.peek() != EOF && isspace((char) in.peek())) { in.ignore(1); }
73
75 }
std::istream & getline(std::istream &in, JString &object)
Read string from input stream until end of line.
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & | out, |
|
|
const JDatalogString & | object ) |
|
friend |
Write datalog to output.
- Parameters
-
out | output stream |
object | datalog |
- Returns
- output stream
Definition at line 85 of file JDatalogString.hh.
86 {
88
90
91
92 out << object.utc << ' ';
94 out << object.source << ' ';
95 out << object.parameter << ' ';
96 out << object.data;
97
98 return out;
99 }
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary class for date and time.
◆ run
int JDB::JDatalogString::run |
◆ utc
long int JDB::JDatalogString::utc |
◆ source
std::string JDB::JDatalogString::source |
◆ parameter
std::string JDB::JDatalogString::parameter |
◆ data
std::string JDB::JDatalogString::data |
The documentation for this struct was generated from the following file: