#include #include #include #include #include "Jeep/JParser.hh" #include "Jeep/JMessage.hh" #include "JLang/JString.hh" #include "JLang/JCppFacet.hh" /** * Auxiliary program to test JCppFacet class. */ int main(int argc, char **argv) { using namespace std; using namespace JPP; string buffer; int debug; try { JParser<> zap; zap['t'] = make_field(buffer); zap['d'] = make_field(debug) = 0; if (zap.read(argc, argv) != 0) return 1; } catch(const exception &error) { FATAL(error.what() << endl); } const JCppFacet cpp; JString var; istringstream is(buffer); is.imbue(locale(cout.getloc(), cpp.clone())); while (is >> var) { cout << "<" << var << ">" << endl; } }