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-- |
1 #ifndef OUTPUTMODULE_H
2 #define OUTPUTMODULE_H
4 #include <iostream>
5 #include <vector>
7 namespace info {
8 namespace globalcode {
9 namespace parameterLister {
11 using namespace std;
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);
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);
33 private:
35 };
37 }
38 }
39 }
41 #endif /* OUTPUTMODULE_H */