/**
 * 最初の著者:: トゥイー
 * リポジトリ情報:: $Id: ChainProcessor.hpp 25 2011-05-10 03:46:00Z yutaka_at_home $
 * 著作権:: Copyright (C) Ownway.info, 2011. All rights reserved.
 * ライセンス:: CPL(Common Public Licence)
 */

#include "spcf/core/Processor.hpp"

#include <boost/shared_ptr.hpp>

namespace spcf {

	typedef boost::shared_ptr<Processor> ProcessorPtr;

	class ChainProcessor_i;

	class ChainProcessor : public Processor {
	private:
		ChainProcessor_i* impl;

	public:
		ChainProcessor();
		virtual ~ChainProcessor();

	public:
		void addProcessor(const ProcessorPtr& processor);

	public:
		void start(Context& context);
		void soundStarted(Context& context);
		void soundStoped(Context& context);
		void recognized(Context& context, Recognition& recognition);
		void stop(Context& context);
		void finish(Context& context);
	};

}  // namespace spcf
