#ifndef OUTPUTCONNECTION_H
#define OUTPUTCONNECTION_H
#include "FilterConnection.h"
/**
 * A Write Only connection
 */
template<class SAMPLE>
class OutputConnection : public FilterConnection<SAMPLE> {
	public:	
		/**
		 * OutputConnections aren't readable
		 * */
		bool readable() {
			return false;
		}
		/**
		 * get the OutputConnection xml type
		 * */
		string xmlType()  {
			return "OUTPUT";
		}
		/**
		 * Constructor OutputConnection provides the file descriptor
		 * */
		OutputConnection(BufferedFile * fd):  FilterConnection<SAMPLE>::FilterConnection(fd) {
		}
		/**
		 * Process A step taken which will read in data and output data, fills and dumps one buffer. Must be called to move audio.
		 * */
		void process() {
			FilterConnection<SAMPLE>::process();
		}
		/**
		 * Constructor OutputConnection provides the file descriptor and name
		 * */
		OutputConnection(BufferedFile * fd,string name): FilterConnection<SAMPLE>::FilterConnection(fd,name)  {
		}
	private:
};
#endif
