Auxiliary class for itemization of process list.  
 More...
#include <JRuncontrolToolkit.hh>
 | 
| static const char  | SEPARATOR = ':' | 
|   | Separation character between hostname and port number.  More...
  | 
|   | 
Auxiliary class for itemization of process list. 
Definition at line 464 of file JRuncontrolToolkit.hh.
 
  
  
      
        
          | KM3NETDAQ::JDAQProcess::JDAQProcess  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Default constructor. 
Definition at line 471 of file JRuncontrolToolkit.hh.
std::string index
index in process list 
 
JHostname()
Default constructor. 
 
 
 
 
  
  
      
        
          | KM3NETDAQ::JDAQProcess::JDAQProcess  | 
          ( | 
          const JHostname &  | 
          hostname,  | 
         
        
           | 
           | 
          const std::string &  | 
          key = ""  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
    | hostname | host name  | 
    | key | index  | 
  
   
Definition at line 483 of file JRuncontrolToolkit.hh.
std::string index
index in process list 
 
JHostname()
Default constructor. 
 
 
 
 
  
  
      
        
          | JTag KM3NETDAQ::JDAQProcess::getUniqueTag  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get unique tag. 
- Returns
 - tag 
 
Definition at line 495 of file JRuncontrolToolkit.hh.
  498       using namespace JSYSTEM;
 
  504       return JTag(os.str());
 
int getIPnumber(const std::string &host_name)
Get IP number. 
 
unsigned short getSubaddress(const int ip)
Get host identifier within network. 
 
std::string index
index in process list 
 
 
 
 
  
  
      
        
          | bool KM3NETDAQ::JDAQProcess::equals  | 
          ( | 
          const JTag &  | 
          tag | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Test whether given tag equals. 
The comparison is based on the unique tag.
- Parameters
 - 
  
  
 
- Returns
 - true if match; else false 
 
Definition at line 515 of file JRuncontrolToolkit.hh.
JTag getUniqueTag() const 
Get unique tag. 
 
 
 
 
  
  
      
        
          | bool KM3NETDAQ::JDAQProcess::equals  | 
          ( | 
          int  | 
          port | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Test whether given port equals. 
The comparison is based on the IP number and port number.
- Parameters
 - 
  
  
 
- Returns
 - true if match; else false 
 
Definition at line 528 of file JRuncontrolToolkit.hh.
int getIPnumber(const std::string &host_name)
Get IP number. 
 
 
 
 
  
  
      
        
          | bool KM3NETDAQ::JDAQProcess::equals  | 
          ( | 
          const JHostname &  | 
          hostname | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Test whether given host name equals. 
The comparison is based on the IP number and port number.
- Parameters
 - 
  
  
 
- Returns
 - true if match; else false 
 
Definition at line 541 of file JRuncontrolToolkit.hh.
int getIPnumber(const std::string &host_name)
Get IP number. 
 
then usage $script< detector file >< detectorfile > nIf the range of floors is the first detector file is aligned to the second before the comparison nIn this
 
 
 
 
  
  
      
        
          | void JNET::JHostname::set  | 
          ( | 
          const std::string &  | 
          buffer | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Set hostname and port number. 
The argument correponds to the hostname and an optional port number of the server. The syntax is hostname[:port]. The default port number is DISPATCH_PORT. If the complete buffer corresponds to an integer value, it is interpreted as the port number.
- Parameters
 - 
  
    | buffer | host name and optional port number  | 
  
   
Definition at line 87 of file JHostname.hh.
   91       const string::size_type pos = buffer.find(
SEPARATOR);
 
   93       if (pos != string::npos) {
 
   95         this->
hostname = buffer.substr(0, pos);
 
   97         istringstream(buffer.substr(pos + 1)) >> this->
port;
 
  101         bool is_number = 
true;
 
  103         for (string::const_iterator i = buffer.begin(); is_number && i != buffer.end(); ++i) {
 
  104           is_number &= isdigit(*i);
 
  111           istringstream(buffer) >> this->
port;
 
static const int DISPATCH_PORT
Default ControlHost port. 
 
static const char SEPARATOR
Separation character between hostname and port number. 
 
 
 
 
  
  
      
        
          | std::istream& operator>>  | 
          ( | 
          std::istream &  | 
          in,  | 
         
        
           | 
           | 
          JDAQProcess &  | 
          object  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
friend   | 
  
 
Read process from input stream. 
- Parameters
 - 
  
    | in | input stream  | 
    | object | process  | 
  
   
- Returns
 - input stream 
 
Definition at line 554 of file JRuncontrolToolkit.hh.
JHostname()
Default constructor. 
 
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
 
 
 
 
  
  
      
        
          | std::ostream& operator<<  | 
          ( | 
          std::ostream &  | 
          out,  | 
         
        
           | 
           | 
          const JDAQProcess &  | 
          object  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
friend   | 
  
 
Write process to output stream. 
- Parameters
 - 
  
    | out | output stream  | 
    | object | process  | 
  
   
- Returns
 - output stream 
 
Definition at line 570 of file JRuncontrolToolkit.hh.
  574       out << static_cast<const JHostname&>(object);
 
 
 
 
      
        
          | std::string KM3NETDAQ::JDAQProcess::index | 
        
      
 
 
  
  
      
        
          | const char JNET::JHostname::SEPARATOR = ':' | 
         
       
   | 
  
staticinherited   | 
  
 
Separation character between hostname and port number. 
Definition at line 35 of file JHostname.hh.
 
 
  
  
      
        
          | std::string JNET::JHostname::hostname | 
         
       
   | 
  
inherited   | 
  
 
 
  
  
      
        
          | int JNET::JHostname::port | 
         
       
   | 
  
inherited   | 
  
 
 
The documentation for this class was generated from the following file: