Re: on actions received by the kernel

From: Mohsen Izadi (roboresc_mi@yahoo.com)
Date: Tue 03 Feb 2004 - 15:11:55 GMT


Dear Gorka,
> 1) How can I trace the SAY/TELL actions received by
> the kernel?

Inherited from 'System' is a class named
'RescueSystem'. The actual body of Rescue
Simulation Kernel is there. The method
you're trying to modify (System::processCommand)
is overriden by 'RescueSystem'.
'RescueSystem::processCommand' method calls
the parent method in specific situations.
So if you want to catch all the commands
you have to modify 'processCommand'
method in 'RescueSystem'.

There are also two methods called 'tell' and
'say' in which you can log AK_SAY, AK_TELL
commands.

> 2) In the previous code, I get an empty string from
> the
> input.getString().c_str() parameter. How can I get
> the proper string-value
> of the action being traced?

Actions posted to kernel are not in string
format. They're consisted of binary values
of action types and parameters. So you can
not threat them as strings.

Regards,
Mohsen Izadi,
S.O.S. Member

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/



This archive was generated by hypermail 2.1.3 : Tue 03 Feb 2004 - 15:13:05 GMT