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.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 61 of file JSTDObjectWriter.cc.
69 JParser<> zap(
"Example program to test object output using STD containers.");
75 catch(
const exception &error) {
76 FATAL(error.what() << endl);
88 print(cout,
debug,
"data", data.begin(), data.end());
95 JSTDObjectWriter<double> out(buffer);
101 print(cout,
debug,
"JSTDObjectWriter<double>(vector<double>&);", buffer.begin(), buffer.end());
103 ASSERT(equals(data.begin(), data.end(),
104 buffer.begin(), buffer.end()));
111 JSTDObjectWriter<double> out(buffer);
117 print(cout,
debug,
"JSTDObjectWriter<double>(set<double>&);", buffer.begin(), buffer.end());
119 ASSERT(equals(data.rbegin(), data.rend(),
120 buffer.begin(), buffer.end()));
Utility class to parse command line options.
void print(const TH1 &h1, std::ostream &out)
Print histogram parameters.
#define ASSERT(A)
Assert macro.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object