Data structure to store command line arguments.  
 More...
#include <JArgs.hh>
 | 
|   | JArgs () | 
|   | Default constructor.  More...
  | 
|   | 
|   | JArgs (const int argc, const char *const argv[]) | 
|   | Constructor.  More...
  | 
|   | 
|   | JArgs (const std::string &PID, JArgs::const_iterator __begin, JArgs::const_iterator __end) | 
|   | Constructor.  More...
  | 
|   | 
|   | JArgs (const std::string &buffer) | 
|   | Constructor.  More...
  | 
|   | 
| std::string  | str (const char ws= ' ') const  | 
|   | Convert to string consisting of sequence of tokens separated by given white space character.  More...
  | 
|   | 
| const char *  | c_str (const char ws= ' ') const  | 
|   | Convert to character array consisting of sequence of tokens separated by given white space character.  More...
  | 
|   | 
Data structure to store command line arguments. 
Definition at line 24 of file JArgs.hh.
 
Default constructor. 
Definition at line 31 of file JArgs.hh.
 
 
  
  
      
        
          | JEEP::JArgs::JArgs  | 
          ( | 
          const int  | 
          argc,  | 
         
        
           | 
           | 
          const char *const  | 
          argv[]  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
The first argument (if any) is assumed to be the process name (PID).
- Parameters
 - 
  
    | argc | number of command line arguments  | 
    | argv | array of command line arguments  | 
  
   
Definition at line 42 of file JArgs.hh.
   48         for (
int i = 1; 
i != argc; ++
i) {
 
 
 
 
  
  
      
        
          | JEEP::JArgs::JArgs  | 
          ( | 
          const std::string &  | 
          PID,  | 
         
        
           | 
           | 
          JArgs::const_iterator  | 
          __begin,  | 
         
        
           | 
           | 
          JArgs::const_iterator  | 
          __end  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
 
- Parameters
 - 
  
    | PID | process identifier  | 
    | __begin | begin of command line arguments  | 
    | __end | end of command line arguments  | 
  
   
Definition at line 66 of file JArgs.hh.
   70       for (const_iterator 
i = __begin; 
i != __end; ++
i) {
 
 
 
 
Constructor. 
- Parameters
 - 
  
  
 
Definition at line 81 of file JArgs.hh.
   85       istringstream 
is(buffer);
 
   89       for (
string word; 
is >> word; ) {
 
 
 
 
  
  
      
        
          | std::string JEEP::JArgs::str  | 
          ( | 
          const char  | 
          ws = ' ' | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Convert to string consisting of sequence of tokens separated by given white space character. 
- Parameters
 - 
  
  
 
- Returns
 - string 
 
Definition at line 101 of file JArgs.hh.
  105       for (const_iterator 
i = this->begin(); 
i != this->end(); ++
i) {
 
 
 
 
  
  
      
        
          | const char* JEEP::JArgs::c_str  | 
          ( | 
          const char  | 
          ws = ' ' | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Convert to character array consisting of sequence of tokens separated by given white space character. 
- Parameters
 - 
  
  
 
- Returns
 - character array 
 
Definition at line 120 of file JArgs.hh.
  124       buffer = this->
str(ws);
 
  126       return buffer.c_str();
 
std::string str(const char ws= ' ') const 
Convert to string consisting of sequence of tokens separated by given white space character...
 
 
 
 
  
  
      
        
          | std::istream& operator>>  | 
          ( | 
          std::istream &  | 
          in,  | 
         
        
           | 
           | 
          JArgs &  | 
          args  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
friend   | 
  
 
Stream input. 
- Parameters
 - 
  
  
 
- Returns
 - input stream 
 
Definition at line 137 of file JArgs.hh.
  142         args.push_back(buffer);
 
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 JArgs &  | 
          args  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
friend   | 
  
 
Stream output. 
- Parameters
 - 
  
    | out | output stream  | 
    | args | args  | 
  
   
- Returns
 - output stream 
 
Definition at line 156 of file JArgs.hh.
  160       for (JArgs::const_iterator 
i = args.begin(); 
i != args.end(); ++
i) {
 
 
 
 
The documentation for this class was generated from the following file: