blob: 462b1f3a7f2458ebe6200a621d25c53fcbb96115 (
plain) (
tree)
|
|
#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
|