ESPHome
2024.12.2
esphome
esphome
components
text
text_call.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/helpers.h
"
4
#include "
text_traits.h
"
5
6
namespace
esphome
{
7
namespace
text {
8
9
class
Text;
10
11
class
TextCall
{
12
public
:
13
explicit
TextCall
(
Text
*parent) :
parent_
(parent) {}
14
void
perform
();
15
16
TextCall
&
set_value
(
const
std::string &value);
17
18
protected
:
19
Text
*
const
parent_
;
20
optional<std::string>
value_
;
21
void
validate_
();
22
};
23
24
}
// namespace text
25
}
// namespace esphome
esphome::text::TextCall
Definition:
text_call.h:11
text_traits.h
esphome::text::TextCall::TextCall
TextCall(Text *parent)
Definition:
text_call.h:13
esphome::text::TextCall::set_value
TextCall & set_value(const std::string &value)
Definition:
text_call.cpp:10
esphome::text::TextCall::parent_
Text *const parent_
Definition:
text_call.h:19
esphome::text::Text
Base-class for all text inputs.
Definition:
text.h:24
esphome::text::TextCall::perform
void perform()
Definition:
text_call.cpp:38
esphome::optional< std::string >
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
helpers.h
esphome::text::TextCall::validate_
void validate_()
Definition:
text_call.cpp:15
esphome::text::TextCall::value_
optional< std::string > value_
Definition:
text_call.h:20
Generated by
1.8.13