c++/parameter-lister/info/globalcode/parameterLister/OutputModule.cpp
author František Kučera <franta-hg@frantovo.cz>
Tue, 05 May 2015 22:30:28 +0200
changeset 19 48a3c9c50937
parent 18 25a73772efbd
child 20 0684883953ba
permissions -rw-r--r--
default OutputModule: basic text output
     1 #include "OutputModule.h"
     2 #include "terminalCodes/TerminalCodes.h"
     3 
     4 namespace info {
     5 namespace globalcode {
     6 namespace parameterLister {
     7 
     8 using namespace std;
     9 
    10 int OutputModule::process(ostream &output, string &command, vector<std::string> &args) {
    11 
    12 	for (int i = 0; i < args.size(); i++) {
    13 		string s = args[i];
    14 		output << i + 1 << ":" << s.length() << " = \"" << s << "\"" << endl;
    15 	}
    16 
    17 	return 0;
    18 }
    19 
    20 
    21 }
    22 }
    23 }
    24