msg_hnd
array based on the
type of the message. If msg_hnd
for that message
type is NULL, Rogus ignores the message. Otherwise, it calls the
message handler whose address is in msg_hnd
.
class parser { public: typedef void (*handlerp)( MIDI_msg* ); handlerp msg_hnd[8]; // handlers for the basic message types parser(); virtual ~parser(); };
handlerp msg_hnd[8]
parser()
parser
. Yes, parser should
really be an abstract base class, but I haven't gotten around to doing
that.virtual ~parser()
parser
to do whatever cleanup you want to do.