/*
    Copyright (C) 2012 Bartosz Broda, Jacek Bochenek, Łukasz Biłeńkij, 
    Damian Jaworski, Wojciech Mazur, Dominik Piasecki, Maciej Piasecki, 
    Radosław Ramocki
    
    This program is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by the Free
Software Foundation; either version 3 of the License, or (at your option)
any later version.

    This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. 

    See the LICENSE and COPYING files for more details.
*/

/// @author Bartosz Broda, bartosz.broda@gmail.com
#ifndef SUPERMATRIX_TOOLS_TUPLESPROC
#define SUPERMATRIX_TOOLS_TUPLESPROC

#include "matrices_all.h"
#include "comparator_all.h"


namespace tuplesd{

class ProcessorError : public std::runtime_error
{
public:
	ProcessorError(const std::string &what)
		: std::runtime_error(what)
	{
	}

	~ProcessorError() throw() {};
	virtual std::string info() const;

};

class TuplesPorcessor
{
public:
	TuplesPorcessor(const std::string &tuplesproc_path);

	bool ProcessTuples(const std::string &infile, const std::string &outdir,
					   const std::string &matrix_name, bool loud = false);

private:
	std::string tuplesproc_path_;

};

} // ns tuplesd

#endif //SUPERMATRIX_TOOLS_TUPLESPROC
