main() or
WinMain() function, but when you use Rogus as an
application framework, you only need to supply your parser code. If
you like, you can think of the Rogus application framework as a
library that includes a rather general-purpose example application.
When you use Rogus as a library, be sure to remember to define the
global variables default_input,
default_output, and statistics_on. (See
below)
"Rogus McBogus main.cpp"
into your project. When the program runs, it will create a menu of
parsers which you have registered with ParserRegistration objects.
There
are three preference variables in
"preferences.cpp" which you can modify:
Bool statistics_on = True; const char* default_input = "sound blaster"; const char* default_output = "sound blaster";The
statistics_on variable determines whether Rogus
gathers statistics on each parser used and writes them to the file
"Rogus.log". The default_input and
default_output variables specify what nodes should be the
default for input and output.