Product breakdown structure (PBS).  
 More...
#include <JPBS_t.hh>
 | 
|   | JPBS_t () | 
|   | Default constructor.  More...
  | 
|   | 
|   | JPBS_t (const int i0, const int i1=-1, const int i2=-1, const int i3=-1, const int i4=-1, const int i5=-1, const int i6=-1, const int i7=-1, const int i8=-1, const int i9=-1) | 
|   | Constructor.  More...
  | 
|   | 
|   | JPBS_t (const std::string &input) | 
|   | Constructor.  More...
  | 
|   | 
| const JPBS_t &  | getPBS () const  | 
|   | Get PBS.  More...
  | 
|   | 
| bool  | is_valid () const  | 
|   | Check validity.  More...
  | 
|   | 
|   | ClassDefNV (JPBS_t, 1) | 
|   | 
 | 
| static const char  | DOT = '.' | 
|   | Separator between PBS values.  More...
  | 
|   | 
Product breakdown structure (PBS). 
The PBS consists of one (or more) integer value(s), separated by JPBS_t::DOT.
The corresponding ASCII format reads "<int>[.<int>]*". 
Definition at line 25 of file JPBS_t.hh.
 
  
  
      
        
          | JDATABASE::JPBS_t::JPBS_t  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Default constructor. 
Definition at line 37 of file JPBS_t.hh.
 
 
  
  
      
        
          | JDATABASE::JPBS_t::JPBS_t  | 
          ( | 
          const int  | 
          i0,  | 
         
        
           | 
           | 
          const int  | 
          i1 = -1,  | 
         
        
           | 
           | 
          const int  | 
          i2 = -1,  | 
         
        
           | 
           | 
          const int  | 
          i3 = -1,  | 
         
        
           | 
           | 
          const int  | 
          i4 = -1,  | 
         
        
           | 
           | 
          const int  | 
          i5 = -1,  | 
         
        
           | 
           | 
          const int  | 
          i6 = -1,  | 
         
        
           | 
           | 
          const int  | 
          i7 = -1,  | 
         
        
           | 
           | 
          const int  | 
          i8 = -1,  | 
         
        
           | 
           | 
          const int  | 
          i9 = -1  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
Note that the parsing of arguments terminates at the first occurrence of a negative value.
- Parameters
 - 
  
    | i0 | PBS number  | 
    | i1 | PBS number  | 
    | i2 | PBS number  | 
    | i3 | PBS number  | 
    | i4 | PBS number  | 
    | i5 | PBS number  | 
    | i6 | PBS number  | 
    | i7 | PBS number  | 
    | i8 | PBS number  | 
    | i9 | PBS number  | 
  
   
Definition at line 57 of file JPBS_t.hh.
   68       if (i0 >= 0) { push_back(i0); } 
else { 
return; }
 
   69       if (i1 >= 0) { push_back(i1); } 
else { 
return; }
 
   70       if (i2 >= 0) { push_back(i2); } 
else { 
return; }
 
   71       if (i3 >= 0) { push_back(i3); } 
else { 
return; }
 
   72       if (i4 >= 0) { push_back(i4); } 
else { 
return; }
 
   73       if (i5 >= 0) { push_back(i5); } 
else { 
return; }
 
   74       if (i6 >= 0) { push_back(i6); } 
else { 
return; }
 
   75       if (i7 >= 0) { push_back(i7); } 
else { 
return; }
 
   76       if (i8 >= 0) { push_back(i8); } 
else { 
return; }
 
   77       if (i9 >= 0) { push_back(i9); } 
else { 
return; }
 
 
 
 
  
  
      
        
          | JDATABASE::JPBS_t::JPBS_t  | 
          ( | 
          const std::string &  | 
          input | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
  
 
Definition at line 86 of file JPBS_t.hh.
   88       std::istringstream 
is(input);
 
 
 
 
  
  
      
        
          | const JPBS_t& JDATABASE::JPBS_t::getPBS  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get PBS. 
- Returns
 - PBS 
 
Definition at line 99 of file JPBS_t.hh.
  101       return static_cast<const JPBS_t&
>(*this);
 
Product breakdown structure (PBS). 
 
 
 
 
  
  
      
        
          | bool JDATABASE::JPBS_t::is_valid  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Check validity. 
- Returns
 - true if valid; else false 
 
Definition at line 110 of file JPBS_t.hh.
  112       return !this->empty();
 
 
 
 
      
        
          | JDATABASE::JPBS_t::ClassDefNV  | 
          ( | 
          JPBS_t  | 
          ,  | 
        
        
           | 
           | 
          1  | 
            | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
  
  
      
        
          | bool operator==  | 
          ( | 
          const JPBS_t &  | 
          first,  | 
         
        
           | 
           | 
          const JPBS_t &  | 
          second  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
friend   | 
  
 
Equality operator. 
- Parameters
 - 
  
    | first | first PBS  | 
    | second | second PBS  | 
  
   
- Returns
 - true if PBS is equal; else false 
 
Definition at line 123 of file JPBS_t.hh.
  125       if (first.size() == second.size()) {
 
  127         for (const_iterator p = first.begin(), q = second.begin(); p != first.end(); ++p, ++q) {
 
 
 
 
  
  
      
        
          | bool operator<  | 
          ( | 
          const JPBS_t &  | 
          first,  | 
         
        
           | 
           | 
          const JPBS_t &  | 
          second  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
friend   | 
  
 
Less-than operator. 
- Parameters
 - 
  
    | first | first PBS  | 
    | second | second PBS  | 
  
   
- Returns
 - true if first PBS higher in hierarchy; else false 
 
Definition at line 147 of file JPBS_t.hh.
  149       for (const_iterator p = first.begin(), q = second.begin(); p != first.end() && q != second.end(); ++p, ++q) {
 
  155       return first.size() < second.size();
 
 
 
 
  
  
      
        
          | std::istream& operator>>  | 
          ( | 
          std::istream &  | 
          in,  | 
         
        
           | 
           | 
          JPBS_t &  | 
          object  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
friend   | 
  
 
Read PBS from input stream. 
- Parameters
 - 
  
  
 
- Returns
 - input stream 
 
Definition at line 166 of file JPBS_t.hh.
  176         object.push_back(
pbs);
 
  180             object.push_back(
pbs);
 
  182             in.setstate(ios::failbit);
 
  187         in.setstate(ios::failbit);
 
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
 
static const char DOT
Separator between PBS values. 
 
 
 
 
  
  
      
        
          | std::ostream& operator<<  | 
          ( | 
          std::ostream &  | 
          out,  | 
         
        
           | 
           | 
          const JPBS_t &  | 
          object  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
friend   | 
  
 
Write PBS to output stream. 
- Parameters
 - 
  
    | out | output stream  | 
    | object | PBS  | 
  
   
- Returns
 - output stream 
 
Definition at line 201 of file JPBS_t.hh.
  208       if (!
object.empty()) {
 
  210         const_iterator i = 
object.begin();
 
  214         while (++i != 
object.end()) {
 
  219       return out << os.str();
 
static const char DOT
Separator between PBS values. 
 
 
 
 
  
  
      
        
          | const char JDATABASE::JPBS_t::DOT = '.' | 
         
       
   | 
  
static   | 
  
 
Separator between PBS values. 
Definition at line 31 of file JPBS_t.hh.
 
 
The documentation for this struct was generated from the following file: