Auxiliary class for comment.  
 More...
#include <JComment.hh>
 | 
| static bool  | is_special (const std::string &buffer) | 
|   | Check if given string is special.  More...
  | 
|   | 
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 41 of file JComment.hh.
 
| Enumerator | 
|---|
| UUID_t  | 
 index of UUID  
 | 
Definition at line 44 of file JComment.hh.
 
 
  
  
      
        
          | JEEP::JComment::JComment  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
Update this comment with given UUID. 
- Parameters
 - 
  
  
 
- Returns
 - this comment 
 
Definition at line 68 of file JComment.hh.
   71         if ((
int) this->size() <= 
UUID_t)
 
   74           this->insert(this->begin() + 
UUID_t, value_type());
 
#define MAKE_STRING(A)
Make string. 
 
 
 
 
Update this comment with random UUID. 
- Returns
 - this comment 
 
Definition at line 88 of file JComment.hh.
static const JUUID & rndm()
Generate random UUID. 
 
 
 
 
  
  
      
        
          | JComment& JEEP::JComment::add  | 
          ( | 
          const std::string &  | 
          comment | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Add comment. 
- Parameters
 - 
  
  
 
- Returns
 - this comment 
 
Definition at line 100 of file JComment.hh.
  102       this->push_back(comment);
 
 
 
 
Add comment block. 
- Parameters
 - 
  
  
 
- Returns
 - this comment 
 
Definition at line 114 of file JComment.hh.
  116       for (const_iterator i = comment.begin(); i != comment.end(); ++i) {
 
 
 
 
  
  
      
        
          | bool JEEP::JComment::hasUUID  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Check if this comment has UUID. 
- Returns
 - true if UUID present; else false 
 
Definition at line 129 of file JComment.hh.
 
 
  
  
      
        
          | JUUID JEEP::JComment::getUUID  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get UUID. 
- Returns
 - UUID 
 
Definition at line 140 of file JComment.hh.
  144         const std::string& buffer = (*this)[
UUID_t];
 
  150         THROW(JNoValue, 
"No UUID in comment.");
 
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message. 
 
static JUUID valueOf(const std::string &buffer)
Extract UUID. 
 
 
 
 
  
  
      
        
          | static bool JEEP::JComment::is_special  | 
          ( | 
          const std::string &  | 
          buffer | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
Check if given string is special. 
- Parameters
 - 
  
  
 
- Returns
 - true if special; else false 
 
Definition at line 223 of file JComment.hh.
  225       const int N = buffer.size();
 
then JShowerPostfit f $INPUT_FILE o $OUTPUT_FILE N
 
 
 
 
  
  
      
        
          | 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 162 of file JComment.hh.
  170         if (
in.peek() == (int) 
' ') {
 
  179           buffer.push_back((
char) c);
 
  181           if (c == (
int) 
QUOTE) {
 
  183             while ((c = 
in.get()) != EOF && c != (
int) 
QUOTE) {
 
  184               buffer.push_back((
char) c);
 
  187             buffer.push_back(QUOTE);
 
  191         comment.push_back(buffer);
 
$WORKDIR ev_configure_domsimulator txt echo process $DOM_SIMULATOR $i $SOURCE_HOST[$index] csh c(setenv ROOTSYS $ROOTSYS &&source $JPP_DIR/setenv.csh $JPP_DIR &&($DOM_SIMULATOR\-u\$NAME\$\-H\$SERVER\$\-M\$LOGGER\$\-d $DEBUG</dev/null > &/dev/null &))'
 
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 JComment &  | 
          comment  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
friend   | 
  
 
Write comment to output. 
- Parameters
 - 
  
    | out | output stream  | 
    | comment | comment  | 
  
   
- Returns
 - output stream 
 
Definition at line 205 of file JComment.hh.
  209       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::START_SPECIAL = '$' | 
         
       
   | 
  
static   | 
  
 
 
  
  
      
        
          | const char JEEP::JComment::CLOSE_SPECIAL = '$' | 
         
       
   | 
  
static   | 
  
 
 
  
  
      
        
          | const char JEEP::JComment::QUOTE = '"' | 
         
       
   | 
  
static   | 
  
 
 
The documentation for this struct was generated from the following file: