|
It is currently Thu Feb 09, 2012 12:34 am
|
View unanswered posts | View active topics
| 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. |
 |
|
 |
|
| Author |
Message |
|
HateVista
|
Post subject: Rhapsody 7.2 C++ - DistributedComm Factory Posted: Fri Apr 11, 2008 5:36 pm |
Joined: Tue Oct 30, 2007 7:40 pm Posts: 9
|
|
|
|
 |
|
BALAS009
|
Post subject: Posted: Mon Apr 14, 2008 2:38 pm |
Joined: Mon Mar 03, 2008 5:39 pm Posts: 13
|
|
Hi Hatevista ...I am having rhapsody 7.1.1 but it is showing that there is some version incompatiblity with this one....can you please upload a model which works in 7.1.1
|
|
|
|
 |
|
HateVista
|
Post subject: Posted: Thu Apr 17, 2008 1:20 pm |
Joined: Tue Oct 30, 2007 7:40 pm Posts: 9
|
|
The Model is for Rhapsody 7.2 ... download the latest version
|
|
|
|
 |
|
bitblit
|
Post subject: Posted: Sun Jan 11, 2009 9:34 pm |
Joined: Wed Dec 10, 2008 10:51 pm Posts: 138
|
|
I've been studying this sample for a couple days now. Please correct me if I'm wrong, but isn't the point of the Factory pattern to allow the user to create the concrete class by only accessing the Abstract class? I would expect a static parameterized constructor in the abstract class that returns a pointer to the concrete class. Where is the constructor? Without the ability to create the concrete object via the abstract class, the user still has to create the concrete object specifically. Am I missing something?
|
|
|
|
 |
|
Farquad
|
Post subject: Posted: Mon Jan 12, 2009 8:37 am |
Joined: Thu Sep 13, 2007 7:34 pm Posts: 397 Location: London
|
|
I haven't downloaded it but it looks familiar. There's probably a static instance() method in the factory that gets implemented by each concrete. Therefore the way to access the factory methods would be via the instance method, e.g.
itsIOXFServerRx = DistributedCommsFactory::instance()->CreateServerRx(...);
This is the same pattern that is used to implement the OSAL (operating system adapter layer). See the OXF model in <rhapsody>/share/langcpp/oxf/model or os.h (generated from that model) in <rhapsody>/share/langcpp/oxf.
|
|
|
|
 |
|
|
 |
|
 |
|
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
|
|