Example program to test JLANG::JRedirectString class.
More...
#include <string>
#include <iostream>
#include <iomanip>
#include "JLang/JRedirectString.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::JRedirectString class.
- Author
- mdejong
Definition in file JRedirectString.cc.
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 18 of file JRedirectString.cc.
27 JParser<> zap(
"Example program to test redirection of I/O streams.");
34 catch(
const exception &error) {
35 FATAL(error.what() << endl);
49 DEBUG(
"Message " << message << endl);
50 DEBUG(
"Redirect " << buffer << endl);
#define DEBUG(A)
Message macros.
#define ASSERT(A,...)
Assert macro.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
This class can be used to temporarily redirect an input stream to an input string.
Utility class to parse command line options.
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).