Jpp  pmt_effective_area_update_2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
JPrintHelper.cc File Reference

Example program to test JLANG::JPrintHelper class. More...

#include <iostream>
#include <iomanip>
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
#include "JLang/JPrintHelper.hh"
#include "JLang/JStreamAvailable.hh"

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Detailed Description

Example program to test JLANG::JPrintHelper class.

Author
mdejong

Definition in file JPrintHelper.cc.

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 49 of file JPrintHelper.cc.

50 {
51  using namespace std;
52 
53  int debug;
54 
55  try {
56 
57  JParser<> zap("Example program to test print helper.");
58 
59  zap['d'] = make_field(debug) = 0;
60 
61  zap(argc, argv);
62  }
63  catch(const exception &error) {
64  FATAL(error.what() << endl);
65  }
66 
67 
68  __A__ a;
69  __B__ b;
70  __C__ c;
71  //__D__ d;
72 
73  cout << JStreamAvailable<__A__>::has_ostream << endl;
74  cout << JStreamAvailable<__B__>::has_ostream << endl;
75  cout << JStreamAvailable<__C__>::has_ostream << endl;
76  cout << JStreamAvailable<__D__>::has_ostream << endl;
77 
78  cout << a << endl;
79  cout << b << endl;
80  cout << c << endl;
81  //cout << d << endl; // compiler error
82 }
Utility class to parse command line options.
Definition: JParser.hh:1500
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Definition: JParser.hh:1961
int debug
debug level
Definition: JSirene.cc:63
#define FATAL(A)
Definition: JMessage.hh:67
then JCalibrateToT a
Definition: JTuneHV.sh:116