SensESP 3.0.1
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
sensesp_minimal_app.h
Go to the documentation of this file.
1#ifndef SENSESP_MINIMAL_APP_H_
2#define SENSESP_MINIMAL_APP_H_
3
4#include <memory>
5
6#include "sensesp_base_app.h"
7
8namespace sensesp {
9
11 public:
13 void operator=(SensESPMinimalApp &other) = delete;
14
18 static const std::shared_ptr<SensESPMinimalApp> get() {
19 if (instance_ == nullptr) {
20 instance_ = std::shared_ptr<SensESPMinimalApp>(new SensESPMinimalApp());
21 }
22 return std::static_pointer_cast<SensESPMinimalApp>(instance_);
23 }
24
25 protected:
27
29};
30
31} // namespace sensesp
32
33#endif
The base class for SensESP applications.
static std::shared_ptr< SensESPBaseApp > instance_
static const std::shared_ptr< SensESPMinimalApp > get()
Get the singleton instance of the SensESPMinimalApp.
SensESPMinimalApp(SensESPMinimalApp &other)=delete
void operator=(SensESPMinimalApp &other)=delete