This info would be a great candidate for the NOX dox :) -David
kk yap wrote: > Hi Teemu, > > Thanks. That does the trick. The missing component is to register > with Component::register. > > To summarize for those who are lazy to read the entire story (people > like myself). To add a new event, > 1) Create an event as child of Event or some other event. (Remember > to redefine the get_static_name function or the parent event will be > said to be missing.) > 2) Add to nox.xml > 3) Call Component::register in the configure function of the component. > Then you can register handler for the event and so on. Hope this > helps those that try to add new events in the future. > > Regards > KK > > > > 2008/7/15 Teemu Koponen <[EMAIL PROTECTED]>: > >> On Jul 15, 2008, at 23:28 , kk yap wrote: >> >> >>> Hi, >>> >>> I have declared the event in routing.cc, routing.hh and put it in >>> nox.xml. Is there anywhere else I would need to register it in? >>> >> Before calling register_handler() for an event, you need to: >> >> a) define the event in the nox.xml configuration file. (Crosscheck the name >> in the file and in your code does match.) >> b) register the event class with 'Component::register<class>()'. >> >> If you have done these, it would help to see the actual code to resolve this >> one... >> >> Teemu >> >> -- >> >> >> > > _______________________________________________ > nox-dev mailing list > [email protected] > http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org > > _______________________________________________ nox-dev mailing list [email protected] http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org
