It is currently Tue Feb 07, 2012 9:26 pm

All times are UTC



Welcome
Welcome to RHAPSODY4YOU

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, respond to polls, upload and download content, and access many other special features. Registration is fast, simple, and absolutely free, so please, register to join our community today.





 Page 1 of 1 [ 2 posts ] 
Author Message
 Post subject: Statchart Codegeneration for switch{ default:
PostPosted: Fri Sep 25, 2009 6:37 am 

Joined: Fri Sep 25, 2009 6:16 am
Posts: 1
Statchart are codegenerated with switch() { case: and default: }
Is it possible to implement code for switch/default: ?

switch(rootState_active){
case:
break;
case:
break;
default:
HOW TO PLACE CODE HERE??????
break:

}



Code:
static RiCTakeEventStatus rootState_dispatchEvent(void * const void_me, si16 id) {
RiCTakeEventStatus res = eventNotConsumed;
switch (error_o.rootState_active) {
case error_o_init:
{
if(id == Null_id)
{
/*## transition 1 */
....

}
}
break;
case error_o_error:
{
if(id == Null_id)
{
/*## transition 2 */
.....
}
}
break;
default:

HOW TO PLACE CODE HERE??????

break;
}
return res;
}


Offline
 Profile  
 
 Post subject: Re: Statchart Codegeneration for switch{ default:
PostPosted: Fri Sep 25, 2009 8:20 am 

Joined: Thu Aug 30, 2007 4:31 pm
Posts: 152
Location: Germany
I think there is no way
But you can use the frameworkfunktion handlenotconsumedto catch events that are not consumed -
I guess that's what you want ?
Take a look on this example in the sample section....


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:


suspicion-preferred