00001 /* $Id: flowmapper.h 26166 2013-12-20 14:57:44Z fonsinchen $ */ 00002 00003 /* 00004 * This file is part of OpenTTD. 00005 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. 00006 * OpenTTD 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. 00007 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>. 00008 */ 00009 00012 #ifndef FLOWMAPPER_H_ 00013 #define FLOWMAPPER_H_ 00014 00015 #include "linkgraphjob_base.h" 00016 00024 class FlowMapper : public ComponentHandler { 00025 public: 00026 00032 FlowMapper(bool scale) : scale(scale) {} 00033 virtual void Run(LinkGraphJob &job) const; 00034 00038 virtual ~FlowMapper() {} 00039 private: 00040 00044 const bool scale; 00045 }; 00046 00047 #endif /* FLOWMAPPER_H_ */