Source

Technical Machine / source / clients / client.hpp

// Connect to an arbitrary Pokemon sim
// Copyright (C) 2013 David Stone
//
// This file is part of Technical Machine.
//
// Technical Machine is free software: you can redistribute it and / or modify
// it under the terms of the GNU Affero 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
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

#ifndef CLIENTS__CLIENT_HPP_
#define CLIENTS__CLIENT_HPP_

#include "../evaluate/evaluate.hpp"

#include "../team_predictor/detailed_stats.hpp"

namespace technicalmachine {
class Settings;

class Client {
	public:
		void print_with_time_stamp(std::ostream & stream, std::string const & message) const;
		DetailedStats const & detailed() const;
		Evaluate const & evaluation_constants() const;
		virtual ~Client() { }
	protected:
		Settings load_settings();
		void reload_settings();
	private:
		std::string time_stamp() const;
		DetailedStats detailed_stats;
		Evaluate m_evaluation_constants;
		std::string time_format;
};

}	// namespace technicalmachine
#endif	// CLIENTS__CLIENT_HPP_