SensESP 3.3.0
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
10// NOTE: This class currently adds no functionality over SensESPBaseApp.
11// It exists for type distinction in the builder pattern.
12// See GitHub issue #901 for discussion.
14 public:
16 void operator=(SensESPMinimalApp &other) = delete;
17
21 static const std::shared_ptr<SensESPMinimalApp> get() {
22 if (instance_ == nullptr) {
23 instance_ = std::shared_ptr<SensESPMinimalApp>(new SensESPMinimalApp());
24 }
25 return std::static_pointer_cast<SensESPMinimalApp>(instance_);
26 }
27
28 protected:
30
32};
33
34} // namespace sensesp
35
36#endif
static std::shared_ptr< SensESPBaseApp > instance_
SensESPBaseApp()
Construct a new SensESP Base App object.
static const std::shared_ptr< SensESPMinimalApp > get()
Get the singleton instance of the SensESPMinimalApp.
SensESPMinimalApp(SensESPMinimalApp &other)=delete
void operator=(SensESPMinimalApp &other)=delete