#include #include #include #include #include #include "Jeep/JPrint.hh" #include "Jeep/JParser.hh" #include "Jeep/JMessage.hh" /** * \file * Example program to test print auxiliaries. * \author mdejong */ int main(int argc, char* argv[]) { using namespace std; using namespace JPP; int debug; try { JParser<> zap; zap['d'] = make_field(debug) = 1; zap(argc, argv); } catch(const exception &error) { FATAL(error.what() << endl); } { vector buffer; for (int i = 0; i != 10; ++i) { buffer.push_back(i); } //cout << buffer << endl; // compiler error cout << "JEEPZ " << JEEPZ() << buffer << endl; } { map buffer; for (int i = 0; i != 10; ++i) { buffer[i] = i*i; } //cout << buffer << endl; // compiler error cout << "JEEPZ " << JEEPZ() << buffer << endl; } { string buffer = MAKE_STRING("hello world " << 1 << ' ' << 123.456); cout << buffer << endl; } { const char* const buffer = MAKE_CSTRING("hello world " << 1 << ' ' << 123.456); cout << buffer << endl; } }