Auxiliary class for comment.  
 More...
#include <JComment.hh>
Auxiliary class for comment. 
A comment starts with a JComment::START_COMMENT and ends with a JComment::CLOSE_COMMENT.
The text between the quotes JComment::QUOTE is considered as one block which may cross newlines, etc.
The comments are appended. 
Definition at line 29 of file JComment.hh.
 
  
  
      
        
          | JEEP::JComment::JComment  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | JComment& JEEP::JComment::add  | 
          ( | 
          const std::string &  | 
          comment | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Add comment. 
- Parameters
 - 
  
  
 
- Returns
 - this comment 
 
Definition at line 51 of file JComment.hh.
   53       this->push_back(comment);
 
 
 
 
Add comment. 
- Parameters
 - 
  
  
 
- Returns
 - this comment 
 
Definition at line 65 of file JComment.hh.
   67       for (const_iterator i = comment.begin(); i != comment.end(); ++i) {
 
 
 
 
  
  
      
        
          | std::istream& operator>>  | 
          ( | 
          std::istream &  | 
          in,  | 
         
        
           | 
           | 
          JComment &  | 
          comment  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
friend   | 
  
 
Read comment from input. 
- Parameters
 - 
  
    | in | input stream  | 
    | comment | comment  | 
  
   
- Returns
 - input stream 
 
Definition at line 82 of file JComment.hh.
   90         if (
in.peek() == (int) 
' ') {
 
   99           buffer.push_back((
char) c);
 
  101           if (c == (
int) 
QUOTE) {
 
  103             while ((c = 
in.get()) != EOF && c != (
int) 
QUOTE) {
 
  104               buffer.push_back((
char) c);
 
  107             buffer.push_back(QUOTE);
 
  111         comment.push_back(buffer);
 
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
 
 
 
 
  
  
      
        
          | std::ostream& operator<<  | 
          ( | 
          std::ostream &  | 
          out,  | 
         
        
           | 
           | 
          const JComment &  | 
          comment  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
friend   | 
  
 
Write comment to output. 
- Parameters
 - 
  
    | out | output stream  | 
    | comment | comment  | 
  
   
- Returns
 - output stream 
 
Definition at line 125 of file JComment.hh.
  129       for (JComment::const_iterator i = comment.begin(); i != comment.end(); ++i) {
 
 
 
 
  
  
      
        
          | const char JEEP::JComment::START_COMMENT = '#' | 
         
       
   | 
  
static   | 
  
 
 
  
  
      
        
          | const char JEEP::JComment::CLOSE_COMMENT = '\n' | 
         
       
   | 
  
static   | 
  
 
 
  
  
      
        
          | const char JEEP::JComment::QUOTE = '"' | 
         
       
   | 
  
static   | 
  
 
 
The documentation for this struct was generated from the following file: