ESPHome 2025.5.0
Loading...
Searching...
No Matches
text_traits.h
Go to the documentation of this file.
1#pragma once
2
3#include <utility>
4
6
7namespace esphome {
8namespace text {
9
10enum TextMode : uint8_t {
13};
14
16 public:
17 // Set/get the number value boundaries.
18 void set_min_length(int min_length) { this->min_length_ = min_length; }
19 int get_min_length() const { return this->min_length_; }
20 void set_max_length(int max_length) { this->max_length_ = max_length; }
21 int get_max_length() const { return this->max_length_; }
22
23 // Set/get the pattern.
24 void set_pattern(std::string pattern) { this->pattern_ = std::move(pattern); }
25 std::string get_pattern() const { return this->pattern_; }
26
27 // Set/get the frontend mode.
28 void set_mode(TextMode mode) { this->mode_ = mode; }
29 TextMode get_mode() const { return this->mode_; }
30
31 protected:
34 std::string pattern_;
36};
37
38} // namespace text
39} // namespace esphome
BedjetMode mode
BedJet operating mode.
void set_mode(TextMode mode)
Definition text_traits.h:28
TextMode get_mode() const
Definition text_traits.h:29
void set_pattern(std::string pattern)
Definition text_traits.h:24
void set_max_length(int max_length)
Definition text_traits.h:20
std::string get_pattern() const
Definition text_traits.h:25
void set_min_length(int min_length)
Definition text_traits.h:18
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7