/*
    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 CONFIG_H
#define CONFIG_H

#include <iostream>
#include <string>
#include <fstream>
#include "matrices_all.h"
#include "compare/FunctionFactory.h"


class Config
{
public:


	std::string dir;
	std::string matrixName;
	std::string function;
	std::string resultsFile;
	std::string wordsFile; //File with target words
	bool ccs;
	bool crs;
	double minimalSimilarity;
	int kBestResults;
	std::string typeOfMatrix;
	bool WeightMatrix;

	/**
	 * Function returning static instance of Config
	 * \returns Static instance of Config
	 */
	static Config* getInstance();
	/**
	 * Function initializing config based on input parameters
	 * \param ac Input argument count
	 * \param av Input arguments
	 */
	static void initialize(int ac, char**av);

private:
	/**
	 * Function filling attributes based on input parameters
	 * \param ac Input argument count
	 * \param av Input arguments
	 */
	void loadOptions(int ac,char** av);
	static Config* instance;

};


#endif // CONFIG_H
