Zurück zu Willert.de

overriding >> operator for passing complex params.

For questions around OS environment, the OXF or RTOS Adapter Layer

overriding >> operator for passing complex params.

Postby monika_86 » April 17th, 2011, 8:27 am

hello rhapsody guys,

my issue is that i have to Generate events with user defined structure as arguments in my statecharts
(and animate it).In rhapsody help its written If you pass complex parameters (such as structs) and use animation, you must override the >> operator.I does anyone has done it before?would appreciate any input from you guys.
monika_86
 
Posts: 3
Joined: April 11th, 2011, 7:56 am

Re: overriding >> operator for passing complex params.

Postby shanz » April 17th, 2011, 4:45 pm

I think your best option is to fill-in two properties to do with serialization rather than override.
http://publib.boulder.ibm.com/infocente ... 1%6c%22%20
shanz
 
Posts: 180
Joined: May 7th, 2008, 5:50 pm
Location: Horsham, W Sussex, England

Re: overriding >> operator for passing complex params.

Postby monika_86 » April 17th, 2011, 6:57 pm

@SHANZ
thanx for response.i have already created serialize n unserialize funtion for that structure so that now i am able to send structure paramters while animation but issue is i am not able to capture values of those paramters in further states using param-> keyword..for that i need to override >> but no clue how to..
monika_86
 
Posts: 3
Joined: April 11th, 2011, 7:56 am

Re: overriding >> operator for passing complex params.

Postby Farquad » April 18th, 2011, 2:31 pm

"i am not able to capture values of those paramters in further states using param-> keyword..for that i need to override >>"

I don't understand? Why do you need to override >>?

What do you mean by "param-> keyword.."?
Farquad
 
Posts: 407
Joined: September 13th, 2007, 9:34 pm
Location: London

Re: overriding >> operator for passing complex params.

Postby monika_86 » April 26th, 2011, 6:56 pm

actually i want to pass complex structure as event argument.in rhapsody help it is written for doing this i need to override >> operator however i have used serialize n unserialize function of my own for passing parameter of structure while animation but it is not fulfilling my job..i want to access those parameter at any point while my statechart is active.
monika_86
 
Posts: 3
Joined: April 11th, 2011, 7:56 am


Return to Framework

Who is online

Users browsing this forum: No registered users and 2 guests

cron