Example program to test JLANG::JSTDObjectWriter class.  
More...
#include <string>
#include <iostream>
#include <iomanip>
#include <vector>
#include <set>
#include "JLang/JSTDObjectWriter.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
 
Go to the source code of this file.
 | 
| int  | main (int argc, char **argv) | 
|   | 
Example program to test JLANG::JSTDObjectWriter class. 
- Author
 - mdejong 
 
Definition in file JSTDObjectWriter.cc.
 
◆ main()
      
        
          | int main  | 
          ( | 
          int |           argc,  | 
        
        
           | 
           | 
          char ** |           argv ) | 
        
      
 
Definition at line 61 of file JSTDObjectWriter.cc.
   62{
   64 
   66 
   67  try {
   68 
   69    JParser<> zap(
"Example program to test object output using STD containers.");
 
   70 
   72 
   73    zap(argc, argv);
   74  }
   75  catch(const exception &error) {
   76    FATAL(error.what() << endl);
 
   77  }
   78 
   79 
   81 
   83 
   87 
   89 
   90  {
   92  
   94 
   96 
   97    for (vector<double>::const_iterator i = 
data.begin(); i != 
data.end(); ++i) {
 
   98      out.put(*i);
   99    }
  100 
  101    print(cout, 
debug, 
"JSTDObjectWriter<double>(vector<double>&);", buffer.begin(), buffer.end());
 
  102 
  104                  buffer.begin(), buffer.end()));
  105  }
  106  {
  108  
  110 
  112 
  113    for (vector<double>::const_iterator i = 
data.begin(); i != 
data.end(); ++i) {
 
  114      out.put(*i);
  115    }
  116    
  117    print(cout, 
debug, 
"JSTDObjectWriter<double>(set<double>&);", buffer.begin(), buffer.end());
 
  118 
  120                  buffer.begin(), buffer.end()));
  121  }
  122 
  123  return 0;
  124}
#define ASSERT(A,...)
Assert macro.
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
void print(const TH1 &h1, std::ostream &out)
Print histogram parameters.
 
Implementation of object output from STD container.
 
Utility class to parse command line options.
 
bool equals(const JFirst_t &first, const JSecond_t &second, const double precision=std::numeric_limits< double >::min())
Check equality.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).