19int main(
int argc,
char **argv)
27 JParser<> zap(
"Example program to test shell I/O.");
33 catch(
const exception &error) {
34 FATAL(error.what() << endl);
42 for (
string buffer; shell; ) {
44 cout <<
"> " << flush;
48 if (buffer !=
"" && buffer !=
"exit") {
50 shell << buffer << endl;
53 cout << buffer << 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)
Shell interaction via I/O streams.
Utility class to parse command line options.
The JShell clas can be used to interact with the shell via I/O streams.
bool getline(std::string &buffer, const char eol='\n')
Get line of text.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).