Add standard library header includes to precompiled header. Fix several uses of strin...
[openttd-joker.git] / src / linkgraph / init.h
blob34c6392b5c3f3bcb350459a4c1a7192db9baf40b
1 /** @file init.h Declaration of initializing link graph handler. */
3 #ifndef INIT_H
4 #define INIT_H
6 #include "linkgraphjob_base.h"
8 /**
9 * Stateless, thread safe initialization hander. Initializes node and edge
10 * annotations.
12 class InitHandler : public ComponentHandler {
13 public:
15 /**
16 * Initialize the link graph job.
17 * @param job Job to be initialized.
19 virtual void Run(LinkGraphJob &job) const { job.Init(); }
21 /**
22 * Virtual destructor has to be defined because of virtual Run().
24 virtual ~InitHandler() {}
27 #endif /* INIT_H */