SensESP
3.4.1-alpha
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
config_item.cpp
Go to the documentation of this file.
1
#include "
config_item.h
"
2
3
namespace
sensesp
{
4
5
std::map<String, std::shared_ptr<ConfigItemBase>>
ConfigItemBase::config_items_
;
6
7
void
ConfigItemBase::clear_registry
() {
config_items_
.clear(); }
8
9
template
<>
10
const
char
*
get_schema_type_string
(
const
int
/*dummy*/
) {
11
return
"number"
;
12
}
13
14
template
<>
15
const
char
*
get_schema_type_string
(
const
float
/*dummy*/
) {
16
return
"number"
;
17
}
18
19
template
<>
20
const
char
*
get_schema_type_string
(
const
String&
/*dummy*/
) {
21
return
"string"
;
22
}
23
24
template
<>
25
const
char
*
get_schema_type_string
(
const
bool
/*dummy*/
) {
26
return
"boolean"
;
27
}
28
29
}
// namespace sensesp
sensesp::ConfigItemBase::config_items_
static std::map< String, std::shared_ptr< ConfigItemBase > > config_items_
Definition
config_item.h:188
sensesp::ConfigItemBase::clear_registry
static void clear_registry()
Empty the config item registry.
Definition
config_item.cpp:7
config_item.h
sensesp
Definition
sensesp.cpp:7
sensesp::get_schema_type_string
const char * get_schema_type_string(const int)
Definition
config_item.cpp:10
src
sensesp
ui
config_item.cpp
Generated by
1.9.8