c++/parameter-lister/info/globalcode/parameterLister/TerminalOutputModule.cpp
author František Kučera <franta-hg@frantovo.cz>
Mon, 04 May 2015 00:16:12 +0200
changeset 12 fde958908539
parent 11 870b868b6b57
child 14 d81d0a119e76
permissions -rw-r--r--
remove constructors
franta-hg@7
     1
#include "TerminalOutputModule.h"
franta-hg@7
     2
franta-hg@8
     3
namespace info {
franta-hg@8
     4
namespace globalcode {
franta-hg@8
     5
namespace parameterLister {
franta-hg@8
     6
franta-hg@11
     7
void TerminalOutputModule::process(std::ostream &output, std::string &command, std::vector<std::string> &args) {
franta-hg@11
     8
	using namespace std;
franta-hg@11
     9
	output << "<terminalOutputModule>" << endl;
franta-hg@11
    10
	
franta-hg@11
    11
	for (int i = 0; i < args.size(); i++) {
franta-hg@11
    12
		string s = args[i];
franta-hg@11
    13
		cout << i + 1 << ":" << s.length() << " = \"" << s << "\"" << endl;
franta-hg@11
    14
	}
franta-hg@11
    15
	
franta-hg@11
    16
	output << "</terminalOutputModule>" << endl;
franta-hg@8
    17
}
franta-hg@8
    18
franta-hg@9
    19
}
franta-hg@9
    20
}
franta-hg@9
    21
}
franta-hg@9
    22