#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.
◆ main()
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());
104 buffer.begin(), buffer.end()));
111 JSTDObjectWriter<double> out(buffer);
117 print(cout,
debug,
"JSTDObjectWriter<double>(set<double>&);", buffer.begin(), buffer.end());
120 buffer.begin(), buffer.end()));