Auxiliary class for emitter identification.  
 More...
#include <JEmitterID.hh>
 | 
| int  | operator() (const int id) const  | 
|   | Get emitter identifier for given waveform identifier.  More...
  | 
|   | 
Auxiliary class for emitter identification. 
This class can be used to map the identfier of a waveform (i.e. column "EMITTERID" the database table "toashort" or JDATABASE::JToAshort::EMITTERID) to the identifier of the corresponding emitter (c.q. tripod). 
Definition at line 39 of file JEmitterID.hh.
 
  
  
      
        
          | int JACOUSTICS::JEmitterID::operator()  | 
          ( | 
          const int  | 
          id | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get emitter identifier for given waveform identifier. 
- Parameters
 - 
  
  
 
- Returns
 - emitter identifier 
 
Definition at line 48 of file JEmitterID.hh.
   50       const_iterator p = this->find(
id);
 
   55         THROW(JValueOutOfRange, 
"Invalid waveform identifier " << 
id);
 
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message. 
 
 
 
 
  
  
      
        
          | std::istream& operator>>  | 
          ( | 
          std::istream &  | 
          in,  | 
         
        
           | 
           | 
          JEmitterID &  | 
          object  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
friend   | 
  
 
Read emitter data from input. 
- Parameters
 - 
  
    | in | input stream  | 
    | object | emitter data  | 
  
   
- Returns
 - input stream 
 
Definition at line 66 of file JEmitterID.hh.
   83       while (
is >> waveform >> emitter) {
 
   84         object[waveform] = emitter;
 
static JStat getFileStatus
Function object for file status. 
 
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 source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
 
 
 
 
  
  
      
        
          | std::ostream& operator<<  | 
          ( | 
          std::ostream &  | 
          out,  | 
         
        
           | 
           | 
          const JEmitterID &  | 
          object  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
friend   | 
  
 
Write emitter data to output. 
- Parameters
 - 
  
    | out | output stream  | 
    | object | emitter data  | 
  
   
- Returns
 - output stream 
 
Definition at line 98 of file JEmitterID.hh.
  102       out << 
object.comment;
 
  104       for (JEmitterID::const_iterator i = 
object.begin(); i != 
object.end(); ++i) {
 
  105         out << setw(3) << i->first << 
' ' << setw(2) << i->second << endl;
 
 
 
 
      
        
          | JComment JACOUSTICS::JEmitterID::comment | 
        
      
 
 
The documentation for this struct was generated from the following file: