SensESP 3.0.1
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
startable.h
Go to the documentation of this file.
1#ifndef SENSESP_SYSTEM_STARTABLE_H
2#define SENSESP_SYSTEM_STARTABLE_H
3
4namespace sensesp {
5
10class Startable {
11 public:
12 Startable(int priority = 0) {}
13 virtual void start() {}
14 const int get_start_priority() { return 0; }
15 void set_start_priority(int priority) {}
16 static void start_all() {}
17};
18
19} // namespace sensesp
20
21#endif // SENSESP_SRC_SENSESP_SYSTEM_STARTABLE_H_
Dummy Startable class for backward compatibility.
Definition startable.h:10
void set_start_priority(int priority)
Definition startable.h:15
static void start_all()
Definition startable.h:16
virtual void start()
Definition startable.h:13
Startable(int priority=0)
Definition startable.h:12
const int get_start_priority()
Definition startable.h:14