Example program to test JLANG::JBaseClass class.
More...
#include <iostream>
#include <iomanip>
#include "JLang/JBaseClass.hh"
#include "JLang/JTypeList.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::JBaseClass class.
- Author
- mdejong
Definition in file JBaseClass.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 38 of file JBaseClass.cc.
46 JParser<> zap(
"Example program to test selection of base class.");
52 catch(
const exception &error) {
53 FATAL(error.what() << endl);
58 typedef JTYPELIST<__A__,
61 __D__>::typelist typelistABCD;
63 typedef JTYPELIST<__B__,
66 __D__>::typelist typelistBACD;
68 typedef JTYPELIST<__B__,
71 __D__>::typelist typelistBCAD;
73 typedef JTYPELIST<__B__,
76 __A__>::typelist typelistBCDA;
78 DEBUG(
"A,B,C,D <- A? " << (JBaseType_t<__A__, typelistABCD>::is_base) << endl);
79 DEBUG(
"A,B,C,D <- B? " << (JBaseType_t<__B__, typelistABCD>::is_base) << endl);
Utility class to parse command line options.
#define ASSERT(A)
Assert macro.
T get(const JHead &head)
Get object from header.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
#define DEBUG(A)
Message macros.