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 }
bool isDefined() const
Definition: events.cpp:126
c(generic_all_nodes)
int main(int argc, char *argv[])