summaryrefslogtreecommitdiff
path: root/Source/Library/Userland/App/StreamApp.proto.h
blob: 462b1f3a7f2458ebe6200a621d25c53fcbb96115 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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