1 #ifndef __JDB_JDATALOGSTRING__ 
    2 #define __JDB_JDATALOGSTRING__ 
   24 namespace 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); }
 
   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)
 
  209         ifstream in(file_name.c_str());
 
  211         in.ignore(numeric_limits<std::streamsize>::max(), 
'\n');
 
  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); }
 
  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.
std::string getFilenameExtension(const std::string &file_name)
Get file name extension, i.e. part after last JEEP::FILENAME_SEPARATOR if any.
std::istream & getline(std::istream &in, JString &object)
Read string from input stream until end of line.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary data structure for datalog strings.
friend std::istream & operator>>(std::istream &in, JDatalogString &object)
Read datalog from input.
bool match(const JDatalogString &datalog) const
Get match.
static const char *const getName()
Table name.
friend std::ostream & operator<<(std::ostream &out, const JDatalogString &object)
Write datalog to output.
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.