c++/parameter-lister/info/globalcode/parameterLister/OutputModule.cpp
changeset 18 25a73772efbd
parent 16 65f51abd5fb8
child 19 48a3c9c50937
     1.1 --- a/c++/parameter-lister/info/globalcode/parameterLister/OutputModule.cpp	Tue May 05 22:21:20 2015 +0200
     1.2 +++ b/c++/parameter-lister/info/globalcode/parameterLister/OutputModule.cpp	Tue May 05 22:27:59 2015 +0200
     1.3 @@ -1,5 +1,3 @@
     1.4 -#include <algorithm>
     1.5 -
     1.6  #include "OutputModule.h"
     1.7  #include "terminalCodes/TerminalCodes.h"
     1.8  
     1.9 @@ -15,9 +13,10 @@
    1.10  
    1.11  	output << "<outputModule>" << endl;
    1.12  
    1.13 -	for_each(args.begin(), args.end(), [&output, command, fgGreen, fgReset](string s) {
    1.14 -		output << fgGreen << command << fgReset << ": " << s << endl;
    1.15 -	});
    1.16 +	for (int i = 0; i < args.size(); i++) {
    1.17 +		string s = args[i];
    1.18 +		output << i + 1 << ":" << s.length() << " = \"" << s << "\"" << endl;
    1.19 +	}
    1.20  
    1.21  	output << "</outputModule>" << endl;
    1.22