#include #include #include #include #include "JSupport/JMeta.hh" #include "Jeep/JComment.hh" #include "Jeep/JParser.hh" #include "Jeep/JMessage.hh" /** * \file * * Example program to test file name handling using JEEP::JComment. * \author mdejong */ int main(int argc, char **argv) { using namespace std; using namespace JPP; int debug; try { JParser<> zap("Example program to test comments."); zap['d'] = make_field(debug) = 1; zap(argc, argv); } catch(const exception &error) { FATAL(error.what() << endl); } JComment comment; comment.add("This is a comment"); comment.add(JMeta(argc, argv)); NOTICE(comment); stringstream io; io << comment; JComment buffer; io >> buffer; DEBUG(buffer); ASSERT(comment == buffer); return 0; }