c++/parameter-lister/info/globalcode/parameterLister/OutputModule.h
author František Kučera <franta-hg@frantovo.cz>
Tue, 05 May 2015 22:46:40 +0200
changeset 20 0684883953ba
parent 16 65f51abd5fb8
child 28 bfef9f34e438
permissions -rw-r--r--
TODO: escapeValue()
     1 #ifndef OUTPUTMODULE_H
     2 #define	OUTPUTMODULE_H
     3 
     4 #include <iostream>
     5 #include <vector>
     6 
     7 namespace info {
     8 namespace globalcode {
     9 namespace parameterLister {
    10 
    11 using namespace std;
    12 
    13 class OutputModule {
    14 public:
    15 	/**
    16 	 * 
    17 	 * @param output
    18 	 * @param command
    19 	 * @param args
    20 	 * @return exit code
    21 	 */
    22 	virtual int process(ostream &output, string &command, vector<string> &args);
    23 
    24 protected:
    25 	/**
    26 	 * TODO: escape line ends, tabs, esc + deal with unicode/encoding + colorize
    27 	 * @param value
    28 	 * @param colorize
    29 	 * @return 
    30 	 */
    31 	virtual string escapeValue(string value, bool colorize);
    32 
    33 private:
    34 
    35 };
    36 
    37 }
    38 }
    39 }
    40 
    41 #endif	/* OUTPUTMODULE_H */
    42