1.1 --- a/c++/parameter-lister/info/globalcode/parameterLister/TerminalOutputModule.cpp Sun May 03 23:41:43 2015 +0200
1.2 +++ b/c++/parameter-lister/info/globalcode/parameterLister/TerminalOutputModule.cpp Mon May 04 00:12:33 2015 +0200
1.3 @@ -13,8 +13,16 @@
1.4 TerminalOutputModule::~TerminalOutputModule() {
1.5 }
1.6
1.7 -void TerminalOutputModule::process(std::ostream &output) {
1.8 - output << "TerminalOutputModule!" << std::endl;
1.9 +void TerminalOutputModule::process(std::ostream &output, std::string &command, std::vector<std::string> &args) {
1.10 + using namespace std;
1.11 + output << "<terminalOutputModule>" << endl;
1.12 +
1.13 + for (int i = 0; i < args.size(); i++) {
1.14 + string s = args[i];
1.15 + cout << i + 1 << ":" << s.length() << " = \"" << s << "\"" << endl;
1.16 + }
1.17 +
1.18 + output << "</terminalOutputModule>" << endl;
1.19 }
1.20
1.21 }