18int main(
int argc,
char* argv[])
29 JParser<> zap(
"Example for testing inter-process communication.");
37 catch(
const exception &error) {
38 FATAL(error.what() << endl);
50 for (
string buffer; getline(in, buffer); ) {
51 cout << buffer << endl;
59 for (
string buffer; getline(cin, buffer) && buffer !=
""; ) {
61 out << buffer << endl;
66 reverse(buffer.begin(), buffer.end());
69 cout << buffer << endl;
74 cerr << error.what() << endl;
General purpose messaging.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
int main(int argc, char *argv[])
Utility class to parse command line options.
Streaming of input and output from Linux command.
JFileInputStreamBuffer * getInputStreamBuffer(const std::size_t size=65536)
Get pointer to input stream buffer connected to the normal output stream.
JFileOutputStreamBuffer * getOutputStreamBuffer(const std::size_t size=65536)
Get pointer to output stream buffer connected to the normal input stream.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).