class Rogus_McBogus { public: enum { msg, warn, err }; Rogus_McBogus(void (*func)(const char*, int) = NULL); ~Rogus_McBogus(); void setParser(parserPtr, const char*); };
Rogus_McBogus(void (*func)(const char*, int) = NULL)
Rogus_McBogus
object. The
constructor initalizes the Rogus Library. Only one Rogus_McBogus
object may exist at one time. func
is a function which
should handle the messages which Rogus McBogus prints. Its first
argument is the message to print, and the second argument is one of
msg
, warn
, or err
, to indicate
the type of message. If func
is NULL, then a default
output routine is used. Under Windows NT, this default output routine
sends the output to the console associated with the process. If no
console is associated with the process, one is created.
~Rogus_McBogus()
void setParser(parserPtr p, const char* n)
p
is the
new parser, and n
is the name of the new parser.