PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
PropWare
string
scannablestring.h
Go to the documentation of this file.
1
26
#pragma once
27
28
#include <
PropWare/hmi/input/scancapable.h
>
29
30
namespace
PropWare
{
31
32
class
ScannableString
:
public
PropWare::ScanCapable
{
33
public
:
34
ScannableString
(
const
char
*
string
)
35
: m_string(
string
),
36
m_index(0) {
37
}
38
39
virtual
char
get_char
() {
40
return
this->m_string[this->m_index++];
41
}
42
43
protected
:
44
const
char
*m_string;
45
size_t
m_index;
46
};
47
48
}
PropWare::ScannableString
Definition:
scannablestring.h:32
PropWare::ScanCapable
Interface for all classes capable of printing.
Definition:
scancapable.h:38
PropWare::ScannableString::get_char
virtual char get_char()
Read and return a single character. Whether the method is blocking or not depends entirely on the imp...
Definition:
scannablestring.h:39
PropWare
Generic definitions and functions for the Parallax Propeller.
Definition:
runnable.h:33
scancapable.h
Generated on Fri May 20 2022 16:48:04 for PropWare by
1.8.17