#include <ola/io/SelectServer.h>
#include <iostream>
public:
: m_stdin_handler(&m_ss,
}
void Run() { m_ss.
Run(); }
private:
void Input(int c);
};
void ExampleStdinHandler::Input(int c) {
switch (c) {
case 'q':
break;
default:
std::cout << "Got " << static_cast<char>(c) << " - " << c << std::endl;
break;
}
}
int main(int argc, char* argv[]) {
handler.Run();
}
Functions called during program startup.
[Example] NOLINT(whitespace/comments)
Definition stdin_handler.cpp:24
Definition StdinHandler.h:60
bool AppInit(int *argc, char *argv[], const string &first_line, const string &description)
Used to initialize a application. Installs the SEGV handler and initializes the random number generat...
Definition Init.cpp:221
The namespace containing all OLA symbols.
Definition Credentials.cpp:44
When