1#ifndef __JDB_JDATALOGSTRING__ 
    2#define __JDB_JDATALOGSTRING__ 
   24namespace JPP { 
using namespace JDB; }
 
   35    static const char* 
const getName() { 
return "datalogstrings"; } 
 
   50      if (!datalog.
data     .empty() && !regex_match(
data, regex(datalog.
data))) { 
return false; }
 
 
   72      while (in.peek() != EOF && isspace((
char) in.peek())) { in.ignore(1); }
 
   74      return getline(in, 
object.
data);
 
 
   92      out << 
object.utc       << 
' ';
 
   94      out << 
object.source    << 
' ';
 
   95      out << 
object.parameter << 
' ';
 
 
 
  134      for (const_iterator i = this->begin(); i != this->end(); ++i) {
 
  135        if (
target.find(*i) != std::string::npos) {
 
 
 
  152    "LocalAuthenticationProvider",
 
  153    "MasterControlProgram",
 
 
  201    void load(
const std::string& file_name)
 
  206      if        (getFilenameExtension(file_name) == 
"log" ||
 
  207                 getFilenameExtension(file_name) == 
"txt") {
 
  209        ifstream in(file_name.c_str());
 
  211        in.ignore(numeric_limits<std::streamsize>::max(), 
'\n');
 
  217      } 
else if (getFilenameExtension(file_name) == 
"gz") {
 
  221        in.ignore(numeric_limits<std::streamsize>::max(), 
'\n');
 
 
  249      for (
string buffer; getline(in, buffer); ) {
 
  251        istringstream is(buffer);
 
  259            while (is.peek() != EOF && isspace((
char) is.peek())) { is.ignore(1); }
 
  261            getline(is, datalog.
data);
 
  265            if (
object.
sources.empty() || 
object.sources.count(datalog.
source) != 0) {
 
  267              object.push_back(datalog);
 
  277          if (!
object.empty()) {
 
  278            object.rbegin()->data.append(
" " + buffer);
 
 
 
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
 
Exception for opening of file.
 
const JKeywords IGNORED_PARAMETER_NAMES
Ignored parameter names.
 
const JKeywords SOURCE_NAMES
Valid source names.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
Auxiliary data structure for datalog strings.
 
friend std::ostream & operator<<(std::ostream &out, const JDatalogString &object)
Write datalog to output.
 
bool match(const JDatalogString &datalog) const
Get match.
 
friend std::istream & operator>>(std::istream &in, JDatalogString &object)
Read datalog from input.
 
static const char *const getName()
Table name.
 
Container for datalog strings.
 
JDatalogs_t(const std::initializer_list< std::string > &buffer={})
Constructor.
 
std::set< std::string > sources
 
friend std::istream & operator>>(std::istream &in, JDatalogs_t &object)
Read message from input.
 
void load(const std::string &file_name)
Load message from input file.
 
JDatalogs_t(const std::set< std::string > &buffer)
Constructor.
 
Auxiliary data structure for selecting data.
 
JKeywords(const std::initializer_list< std::string > &buffer)
Constructor.
 
bool operator()(const std::string &target) const
Test validity of target.
 
Auxiliary class for date and time.