c++/parameter-lister/info/globalcode/parameterLister/OutputModule.cpp
author František Kučera <franta-hg@frantovo.cz>
Sun, 11 Sep 2016 00:00:21 +0200
changeset 26 6e5c4e267ddb
parent 20 0684883953ba
child 28 bfef9f34e438
permissions -rw-r--r--
c++: some colors + start script
     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() << " = \"" << escapeValue(s, true) << "\"" << endl;
    15 	}
    16 
    17 	return 0;
    18 }
    19 
    20 string OutputModule::escapeValue(string value, bool colorize) {
    21 	return value;
    22 }
    23 
    24 }
    25 }
    26 }
    27