Auxiliary class for ROOT I/O of application specific meta data.  
 More...
#include <JMeta.hh>
Auxiliary class for ROOT I/O of application specific meta data. 
Definition at line 71 of file JMeta.hh.
 
◆ JMeta() [1/2]
  
  
      
        
          | JSUPPORT::JMeta::JMeta  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Default constructor. 
Definition at line 77 of file JMeta.hh.
 
 
◆ JMeta() [2/2]
  
  
      
        
          | JSUPPORT::JMeta::JMeta  | 
          ( | 
          const int  | 
          argc,  | 
         
        
           | 
           | 
          const char *const  | 
          argv[]  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
    | argc | number of command line arguments  | 
    | argv | array of command line arguments  | 
  
   
Definition at line 87 of file JMeta.hh.
  100         for (
int i = 1; i != argc; ++i) {
 
  107         const JUTSName buffer;
 
  110                                         << buffer.sysname  << 
' ' 
  111                                         << buffer.nodename << 
' ' 
  112                                         << buffer.release  << 
' ' 
  113                                         << buffer.version  << 
' ' 
 
 
 
◆ operator JComment()
  
  
      
        
          | JSUPPORT::JMeta::operator JComment  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Type conversion operator. 
- Returns
 - comment 
 
Definition at line 124 of file JMeta.hh.
  128       for (const_iterator i = this->begin(); i != this->end(); ++i) {
 
  129         comment.add(i->first + 
' ' + i->second);
 
 
 
 
◆ copy()
  
  
      
        
          | void JSUPPORT::JMeta::copy  | 
          ( | 
          const char *const  | 
          file_name,  | 
         
        
           | 
           | 
          TFile &  | 
          out  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Copy meta data. 
- Parameters
 - 
  
    | file_name | name of input file  | 
    | out | output file  | 
  
   
Definition at line 396 of file JMeta.hh.
  400     JRootFileReader<JMeta> in(file_name);
 
  402     while (in.hasNext()) {
 
  404       const JMeta* p = in.next();
 
 
 
 
◆ getEquationParameters()
Get equation parameters. 
- Returns
 - equation parameters 
 
Definition at line 150 of file JMeta.hh.
  152       static const JEquationParameters parameters(
"=", 
"\n", 
"", 
"");
 
 
 
 
◆ valueOf()
  
  
      
        
          | static JMeta JSUPPORT::JMeta::valueOf  | 
          ( | 
          const std::string &  | 
          buffer | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
Extract meta data. 
- Parameters
 - 
  
  
 
- Returns
 - meta data 
 
Definition at line 164 of file JMeta.hh.
  171       istringstream is(buffer);
 
  175       for (JEquation equation; is >> equation; ) {
 
  176         meta[equation.getKey()] = equation.getValue();
 
 
 
 
◆ toString()
  
  
      
        
          | std::string JSUPPORT::JMeta::toString  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Convert meta data to string. 
- Returns
 - string 
 
Definition at line 188 of file JMeta.hh.
  197       for (JMeta::const_iterator i = this->begin(); i != this->end(); ++i) {
 
  198         os << JEquation::make_equation(i->first, i->second);
 
 
 
 
◆ operator<<
  
  
      
        
          | std::ostream& operator<<  | 
          ( | 
          std::ostream &  | 
          out,  | 
         
        
           | 
           | 
          const JMeta &  | 
          meta  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
friend   | 
  
 
Write meta data to output. 
- Parameters
 - 
  
    | out | output stream  | 
    | meta | meta data  | 
  
   
- Returns
 - output stream 
 
Definition at line 212 of file JMeta.hh.
  218       if (p != meta.end()) { 
 
  219         for (const_iterator i = meta.begin(); i != meta.end(); ++i) {
 
  221             out << p->second << 
' ' << i->second << endl; 
 
 
 
 
The documentation for this struct was generated from the following file: