1 #ifndef __JDB_JLOGGERMESSAGE__ 
    2 #define __JDB_JLOGGERMESSAGE__ 
   24 namespace JPP { 
using namespace JDB; }
 
   53       using namespace KM3NETDAQ;
 
   59         istringstream 
is(datalog.
data);
 
   63           this->
datim.
set(datalog.
utc / 1000, (
float) (datalog.
utc%1000) * 1.0e-3, 
true);
 
   65           while (is.peek() != EOF && isspace((
char) is.peek())) { is.ignore(1); }
 
   91       if (!message.
tag     .empty() && message.
tag      != 
tag)                 { 
return false; }
 
   94       if (!message.
ip      .empty() && message.
ip       != 
ip)                  { 
return false; }
 
   96       if (!message.
level   .empty() && message.
level    != 
level)               { 
return false; }
 
   97       if (!message.
data    .empty() && !regex_match(
data, regex(message.
data))) { 
return false; }
 
  124       return (
long int) 1000 * (
long int) 
datim.
getTime() + (
long int) 500;
 
  141       in >> 
object.file_name
 
  153         while (in.peek() != EOF && isspace((
char) in.peek())) { in.ignore(1); }
 
  159         return in >> 
object.fullname;
 
  180             << 
object.tag       << 
' ' << right;
 
  181         out << 
object.datim     << 
' ';
 
  184         out << 
object.nickname  << 
' ';
 
  190         out << 
object.tag       << 
' ';
 
  192         out << 
object.fullname;
 
Exception for opening of file. 
 
friend std::ostream & operator<<(std::ostream &out, const JLoggerMessage &object)
Write message to output. 
 
static const JTag DISPTAG_Died("Died")
 
time_t getTime() const 
time 
 
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message. 
 
JLoggerMessage(const JDatalogString &datalog)
Copy constructor. 
 
void set(const bool utc=false)
Set to current local time. 
 
static const std::string MESSAGE_TAG
Message logging tag. 
 
long int getTime() const 
Get UTC time. 
 
Auxiliary data structure for logger message. 
 
bool hasTime() const 
Check if message has date and time. 
 
Auxiliary data structure for datalog strings. 
 
friend std::istream & operator>>(std::istream &in, JLoggerMessage &object)
Read message from input. 
 
std::istream & getline(std::istream &in, JString &object)
Read string from input stream until end of line. 
 
bool match(const JLoggerMessage &message) const 
Get match. 
 
static const JTag DISPTAG_Born("Born")
 
std::string toString() const 
Convert tag to string. 
 
General purpose message reporting. 
 
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
 
Auxiliary class for date and time. 
 
Exception for parsing value. 
 
JLoggerMessage()
Default constructor.