#ifndef INPUTCONNECTION_H
#define INPUTCONNECTION_H
#include "FilterConnection.h"
/**
 * InputConnection is a FilterConnection who can only read and cannot write.
 */
template<class SAMPLE>
class InputConnection : public FilterConnection<SAMPLE> {
	public:	
		/**
		 * Constructor which sets the bufferedfile
		 * */
		InputConnection(BufferedFile * fd): FilterConnection<SAMPLE>::FilterConnection(fd) {
		}
		/**
		 * Constructor which sets the bufferedfile and name
		 * */
		InputConnection(BufferedFile * fd,string name): FilterConnection<SAMPLE>::FilterConnection(fd,name){
		}
		/**
		 * get the XML Type of the InputConnection
		 * */
		string InputConnection<SAMPLE>::xmlType() { return "INPUT"; }
		/**
		 * process, does not for input type since this is a pull based system
		 * */
		virtual void process()  { }
		/**
		 * not writable
		 * */
		bool writable() { return false;  }
};
#endif
