/*
    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.
*/

#ifndef MATRIXSAVERINTERFACE_H
#define MATRIXSAVERINTERFACE_H


/**
 * Class interfacing all possible ways of saving result matrix
 */
class MatrixSaverInterface
{
public:
	/**
	 * Function initializing results output, eg. initializing matrix, opening files, ...
	 */
	virtual void initialize()=0;

	/**
	 * Function saying if data can be computed simetrically considering diagonal of matrix
	 * \param cmpSimetrical Tells function if measure used is simetrical
	 */
	virtual bool isSimetrical(bool cmpSimetrical)=0;

	/**
	 * Function adding values to results' output
	 * \param rowNumber Number of row with results
	 * \param numOfValues Length of results being inserted
	 * \param indexTable Table with column numbers
	 * \param valueTable Table with values
	 */
	virtual void addValues(int rowNumber,int numOfValues,int *indexTable,double *valueTable)=0;

	/**
	 * Function finalizing work of instance, eg. saving matrix, closing file, ...
	 */
	virtual void finalize()=0;

	virtual ~MatrixSaverInterface(){}

};



#endif // MATRIXSAVERINTERFACE_H
