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 }
const CommandHandler * dispatch(const char *command) const
Definition: command_list.cpp:8
bool handle(const char *command) const
void writeLine(const char *line)
Definition: console_line.cpp:9
Definition: backlight.h:6