Auxiliary data structure for reply message.  
 More...
#include <JReplyMessage.hh>
Auxiliary data structure for reply message. 
Definition at line 31 of file JReplyMessage.hh.
 
◆ JReplyMessage() [1/2]
  
  
      
        
          | JDB::JReplyMessage::JReplyMessage  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ JReplyMessage() [2/2]
Copy constructor. 
- Parameters
 - 
  
  
 
Definition at line 44 of file JReplyMessage.hh.
   45    {
   49 
   50      if (datalog.source == RC_REPLY.toString()) {
   51 
   52        this->
tag = datalog.source;
 
   53 
   54        istringstream is(datalog.data);
   55 
   57      
   59          
   61          
   62        } else {
   63 
   64          THROW(
JParseError, 
"Invalid string " << datalog.source << 
" " << datalog.data);
 
   65        }
   66 
   67      } else {
   68 
   70      }
   71    }
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
 
Exception for parsing value.
 
Auxiliary class to specify white space character(s) in currect locale.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
KM3NeT DAQ data structures and auxiliaries.
 
 
 
 
◆ match()
  
  
      
        
          | bool JDB::JReplyMessage::match  | 
          ( | 
          const JReplyMessage & |           message | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get match. 
- Parameters
 - 
  
  
 
- Returns
 - true if message matches; else false 
 
Definition at line 80 of file JReplyMessage.hh.
   81    {
   82      if (!message.nickname.empty() && message.nickname != 
nickname) { 
return false; }
 
   83      if (!message.ip      .empty() && message.ip       != 
ip)       { 
return false; }
 
   84      if (!message.event   .empty() && message.event    != 
event)    { 
return false; }
 
   85      if (!message.state   .empty() && message.state    != 
state)    { 
return false; }
 
   86 
   87      return true;
   88    }
 
 
 
◆ operator>>
  
  
      
        
          | std::istream & operator>>  | 
          ( | 
          std::istream & |           in,  | 
         
        
           | 
           | 
          JReplyMessage & |           object ) | 
         
       
   | 
  
friend   | 
  
 
Read message from input. 
- Parameters
 - 
  
    | in | input stream  | 
    | object | message  | 
  
   
- Returns
 - input stream 
 
Definition at line 98 of file JReplyMessage.hh.
   99    {
  100      return in >> object.key
  101                >> object.ip
  102                >> object.nickname
  103                >> object.event
  104                >> object.state;
  105    }
 
 
 
◆ operator<<
  
  
      
        
          | std::ostream & operator<<  | 
          ( | 
          std::ostream & |           out,  | 
         
        
           | 
           | 
          const JReplyMessage & |           object ) | 
         
       
   | 
  
friend   | 
  
 
Write message to output. 
- Parameters
 - 
  
    | out | output stream  | 
    | object | message  | 
  
   
- Returns
 - output stream 
 
Definition at line 115 of file JReplyMessage.hh.
  116    {
  117      return out << object.key
  118                 << object.ip
  119                 << object.nickname
  120                 << object.event
  121                 << object.state;
  122    }
 
 
 
◆ tag
      
        
          | std::string JDB::JReplyMessage::tag | 
        
      
 
 
◆ key
      
        
          | std::string JDB::JReplyMessage::key | 
        
      
 
 
◆ ip
      
        
          | std::string JDB::JReplyMessage::ip | 
        
      
 
 
◆ nickname
      
        
          | std::string JDB::JReplyMessage::nickname | 
        
      
 
 
◆ event
      
        
          | std::string JDB::JReplyMessage::event | 
        
      
 
 
◆ state
      
        
          | std::string JDB::JReplyMessage::state | 
        
      
 
 
The documentation for this struct was generated from the following file: