Numworks Epsilon
1.4.1
Graphing Calculator Operating System
command_list.cpp
Go to the documentation of this file.
1
#include "
command_list.h
"
2
#include <
ion.h
>
3
4
namespace
Ion
{
5
namespace
Device {
6
namespace
Bench {
7
8
const
CommandHandler
*
CommandList::dispatch
(
const
char
* command)
const
{
9
const
CommandHandler
* handler = m_handlers;
10
while
(handler->
valid
()) {
11
if
(handler->
handle
(command)) {
12
return
handler;
13
}
14
handler++;
15
}
16
Console::writeLine
(
"NOT_FOUND"
);
17
return
nullptr
;
18
}
19
20
}
21
}
22
}
ion.h
Ion::Device::Bench::CommandList::dispatch
const CommandHandler * dispatch(const char *command) const
Definition:
command_list.cpp:8
Ion::Device::Bench::CommandHandler
Definition:
command_handler.h:10
Ion::Device::Bench::CommandHandler::handle
bool handle(const char *command) const
Definition:
command_handler.cpp:12
command_list.h
Ion::Console::writeLine
void writeLine(const char *line)
Definition:
console_line.cpp:9
Ion::Device::Bench::CommandHandler::valid
bool valid() const
Definition:
command_handler.cpp:8
Ion
Definition:
backlight.h:6
epsilon
ion
src
device
bench
command_list.cpp
Generated by
1.8.14