diff options
author | Alexis211 <alexis211@gmail.com> | 2009-12-20 16:30:30 +0100 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2009-12-20 16:30:30 +0100 |
commit | 13d720389a01161a327a30918ad7ac9eec4a3d6c (patch) | |
tree | e1b6ebb12f00e476284684c8deb4a513c4960e2a /Source/Library/Userland/App/StreamApp.proto.h | |
parent | 2d3c5a9c47d99c8f4f5561f9eae16497c1cde63a (diff) | |
download | Melon-13d720389a01161a327a30918ad7ac9eec4a3d6c.tar.gz Melon-13d720389a01161a327a30918ad7ac9eec4a3d6c.zip |
[not tested] Introduced StreamApp.class
Diffstat (limited to 'Source/Library/Userland/App/StreamApp.proto.h')
-rw-r--r-- | Source/Library/Userland/App/StreamApp.proto.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Source/Library/Userland/App/StreamApp.proto.h b/Source/Library/Userland/App/StreamApp.proto.h new file mode 100644 index 0000000..462b1f3 --- /dev/null +++ b/Source/Library/Userland/App/StreamApp.proto.h @@ -0,0 +1,27 @@ +#ifndef DEF_STREAMAPP_PROTO_H +#define DEF_STREAMAPP_PROTO_H + +#include "ShellApp.proto.h" + +#include <IStream.proto.h> +#include <OStream.proto.h> + +/* + * This class implements basic utilities for apps that simply take some input, process it and output something. + * Examples : cat, grep, ... + */ + +class StreamApp : public ShellApp { + protected: + + IStream *in; + OStream *out; + + public: + StreamApp(const String& name, const String& desc); + ~StreamApp(); + + virtual void init(); +}; + +#endif |