Files @ r21861:c724235732d2
Branch filter:

Location: cpp/openttd-patchpack/source/src/linkgraph/init.h

rubidium
(svn r27013) -Codechange: extract the functionality to determine the number of digits to make space for when drawing an unit number into a separate function
/** @file init.h Declaration of initializing link graph handler. */

#ifndef INIT_H
#define INIT_H

#include "linkgraphjob_base.h"

/**
 * Stateless, thread safe initialization hander. Initializes node and edge
 * annotations.
 */
class InitHandler : public ComponentHandler {
public:

	/**
	 * Initialize the link graph job.
	 * @param job Job to be initialized.
	 */
	virtual void Run(LinkGraphJob &job) const { job.Init(); }

	/**
	 * Virtual destructor has to be defined because of virtual Run().
	 */
	virtual ~InitHandler() {}
};

#endif /* INIT_H */