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

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

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

Go to the source code of this file.

Macros

#define PRINT(OUT, T)   OUT << #T << ": typedef = " << JTypedef<T>::has_typedef << endl;
 

Functions

int main (int argc, char **argv)
 

Detailed Description

Example program to test JLANG::JTypedef class.

Author
mdejong

Definition in file JTypedef.cc.

Macro Definition Documentation

#define PRINT (   OUT,
  T 
)    OUT << #T << ": typedef = " << JTypedef<T>::has_typedef << endl;

Definition at line 35 of file JTypedef.cc.

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 45 of file JTypedef.cc.

46 {
47  using namespace std;
48 
49  int debug;
50 
51  try {
52 
53  JParser<> zap("Example program to test type defs.");
54 
55  zap['d'] = make_field(debug) = 3;
56 
57  zap(argc, argv);
58  }
59  catch(const exception &error) {
60  FATAL(error.what() << endl);
61  }
62 
63 
64  PRINT(cout, __A__);
65  PRINT(cout, __B__);
66 }
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
#define PRINT(OUT, T)
Definition: JTypedef.cc:35