| 1 | #pragma once |
|---|---|
| 2 | |
| 3 | #include "unit.hpp" |
| 4 | |
| 5 | struct Path : public Unit |
| 6 | { |
| 7 | explicit Path(const std::string &id, toml::table &table, std::shared_ptr<const Template> template_ = nullptr, const ArgumentMap &args = {}); |
| 8 | const std::string path; |
| 9 | |
| 10 | private: |
| 11 | UnitType GetType() const override |
| 12 | { |
| 13 | return UnitType::Path; |
| 14 | } |
| 15 | bool Start() override; |
| 16 | bool Stop() override; |
| 17 | void onPrint(std::ostream &os) const override; |
| 18 | }; |
| 19 |