Example program to test JLANG::JStorage class.
More...
#include <iostream>
#include <iomanip>
#include "JLang/JStorage.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::JStorage class.
- Author
- mdejong
Definition in file JStorage.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 34 of file JStorage.cc.
42 JParser<> zap(
"Example program to test creation and deletion of objects.");
48 catch(
const exception &error) {
49 FATAL(error.what() << endl);
56 cout <<
"JStorage<double>" << endl;
58 JStorage<double> storage;
64 cout << *storage << endl;
70 cout <<
"JStorage<__A__>" << endl;
72 JStorage<__A__> storage;
74 for (
int i = 0; i != 4; ++i) {
76 cout << i <<
' ' <<
"recreate()" << endl;
81 cout <<
"reset()" << endl;
87 cout <<
"JStorage<__A__, JNewCArray>" << endl;
89 JStorage<__A__, JNewCArray> storage;
91 cout <<
"reset()" << endl;
97 cout <<
"create(" << N <<
")" << endl;
101 cout <<
"reset()" << endl;
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object