Numworks Epsilon
1.4.1
Graphing Calculator Operating System
event_printer.cpp
Go to the documentation of this file.
1
#include <iostream>
2
#include <cassert>
3
#include <
ion/events.h
>
4
5
int
main
(
int
argc,
char
* argv[]) {
6
unsigned
char
c
= 0;
7
while
(std::cin >>
c
) {
8
Ion::Events::Event
event(
c
);
9
if
(event.
isDefined
()) {
10
if
(event.name() ==
nullptr
) {
11
std::cerr <<
"*** UNNAMED("
<< (int)
c
<<
") ***"
<< std::endl;
12
}
else
{
13
std::cout <<
event
.name() << std::endl;
14
}
15
}
else
{
16
std::cerr <<
"*** INVALID("
<< (int)
c
<<
") ***"
<< std::endl;
17
}
18
}
19
}
Ion::Events::Event::isDefined
bool isDefined() const
Definition:
events.cpp:126
events.h
Ion::Events::Event
Definition:
events.h:9
c
c(generic_all_nodes)
main
int main(int argc, char *argv[])
Definition:
event_printer.cpp:5
epsilon
ion
src
shared
tools
event_printer.cpp
Generated by
1.8.14