[omniORB] Polymorphic methods
Wernke zur Borg
wernke.zur.borg at vega.de
Fri Jan 13 09:21:27 GMT 2006
Hi,
you do not need to redeclare the inherited operations. In fact, IDL does
not allow it, as you have seen.
Implement the polymorphism in your servant classes, depending on your
language binding. It will work!
Regards, Wernke
________________________________
From: omniorb-list-bounces at omniorb-support.com
[mailto:omniorb-list-bounces at omniorb-support.com] On Behalf Of Warren
Brown
Sent: 13 January 2006 08:44
To: omniorb-list at omniorb-support.com
Subject: [omniORB] Polymorphic methods
Hi
Can somebody please tell me how to implement polymorphism using
Corba?
I am modifying an application and making it distributed.
I have 3 classes with a boolean method called is_able().
The abstract base class is called base_Check. This class is
inherited by First_Check and Last_Check.
A list is created using stl list<base_Check*> mlist which
contains First_Check objects and Last_Check objects.
These objects are called in the program using
*(iterator_var)->is_able().
I haven't got a clue as to how this would be implemented in IDL.
I tried using inheritance but I get:-
Declaration of operation 'is_able' clashes with inherited
operation 'is_able'
So maybe I'm on the wrong track?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20060113/d95246b9/attachment.htm
More information about the omniORB-list
mailing list