Example program to test JLANG::JFileStream class.
More...
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <string>
#include <iostream>
#include <iomanip>
#include <vector>
#include <iterator>
#include "JLang/JFileStream.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::JFileStream class.
- Author
- mdejong
Definition in file JFileStream.cc.
◆ main()
| int main |
( |
int | argc, |
|
|
char ** | argv ) |
Definition at line 24 of file JFileStream.cc.
25{
28
29 string file_name = "test_file.txt";
31
32 try {
33
34 JParser<> zap(
"Example program to test file streaming.");
35
38
40 }
41 catch(const exception &error) {
43 }
44
45
47
50
51 {
53
55
57
60 }
61
63 }
64
66
67 {
69
71
73
74 for (
string buffer;
getline(is,buffer); ) {
76 }
77
79 }
80
81 if (
debug >= debug_t) {
84 }
85
87
88 return 0;
89}
#define ASSERT(A,...)
Assert macro.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Template definition of a multi-dimensional oscillation probability interpolation table.
Utility class to parse command line options.
void copy(const Head &from, JHead &to)
Copy header from from to to.
void close(std::istream *pf)
Close file.
T * open(const std::string &file_name)
Open file.
std::istream & getline(std::istream &in, JString &object)
Read string from input stream until end of line.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).