c++/parameter-lister/info/globalcode/parameterLister/OutputModule.h
author František Kučera <franta-hg@frantovo.cz>
Sun, 11 Sep 2016 00:00:55 +0200
changeset 27 f08e42c1efc0
parent 20 0684883953ba
child 28 bfef9f34e438
permissions -rw-r--r--
c++ Makefiles + java: .hgignore
     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