ESPHome
2026.1.0-dev
Loading...
Searching...
No Matches
esphome
components
select
select_traits.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/helpers.h
"
4
#include <initializer_list>
5
6
namespace
esphome::select
{
7
8
class
SelectTraits
{
9
public
:
10
void
set_options
(
const
std::initializer_list<const char *> &
options
);
11
void
set_options
(
const
FixedVector<const char *>
&
options
);
12
const
FixedVector<const char *>
&
get_options
()
const
;
13
14
protected
:
15
FixedVector<const char *>
options_
;
16
};
17
18
}
// namespace esphome::select
esphome::FixedVector
Fixed-capacity vector - allocates once at runtime, never reallocates This avoids std::vector template...
Definition
helpers.h:184
esphome::select::SelectTraits
Definition
select_traits.h:8
esphome::select::SelectTraits::get_options
const FixedVector< const char * > & get_options() const
Definition
select_traits.cpp:14
esphome::select::SelectTraits::options_
FixedVector< const char * > options_
Definition
select_traits.h:15
esphome::select::SelectTraits::set_options
void set_options(const std::initializer_list< const char * > &options)
Definition
select_traits.cpp:5
options
uint8_t options
Definition
e131_packet.cpp:15
helpers.h
esphome::select
Definition
automation.h:7
Generated by
1.12.0