It is currently Thu Feb 09, 2012 12:42 am

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 [ 4 posts ] 
Author Message
 Post subject: wrting animserialize functions for class
PostPosted: Wed Mar 11, 2009 3:55 pm 

Joined: Wed Mar 11, 2009 3:50 pm
Posts: 9
I have a function argument of type class ,say Message(const ClassA& obj) .For animation,I believe I have to write animserialize function for type ClassA.

However I see that I dont have animserialize propoerty under a class , but only under Type.So should I create a new Type for the class and then define my serialize fns for it ? Can i not have these functions for a class as such.


Offline
 Profile  
 
 Post subject:
PostPosted: Wed Mar 11, 2009 6:28 pm 
User avatar

Joined: Thu Sep 13, 2007 7:34 pm
Posts: 397
Location: London
You don't need to serialize a class passed as a parameter for animation.

What is the issue?


Offline
 Profile  
 
 Post subject:
PostPosted: Thu Mar 12, 2009 10:56 am 

Joined: Wed Mar 11, 2009 3:50 pm
Posts: 9
I jsut trying out some examples using animserialize functions.I read in the document,that I should write these functions when trying to animate comlex data types.

Please let me know in what scenarios I should be using these functions?
Any example would be of great help.


Offline
 Profile  
 
 Post subject:
PostPosted: Thu Mar 12, 2009 12:18 pm 
User avatar

Joined: Thu Sep 13, 2007 7:34 pm
Posts: 397
Location: London
If you don't provide these functions then things will still work in animation but you'll just see addresses of the data rather than a textual representation. Exception to this is when you want to inject 'complex' data but you can deal with this by enhancing the capabilities in your actors and then nudge them through a simpler interface.

Having said that, in my opinion you should never have to do this. I know that may seem simplistic but 'complex types' don't get passed between objects in any system I've modeled. Classes do but they're defined by their behaviours (methods), not by their implementation.

I know that if you've come to Rhapsody from a software background that hasn't been completely OO then you may be sceptical. It takes time to evolve a mindset that makes it easy to model but Rhapsody gives good feedback. Basically, if it's complicated then it's probably not the best approach.


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 4 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