[omniORB] class constructors

Stefan Seefeld stefan@berlin-consortium.org
Mon, 18 Dec 2000 10:52:19 -0500


> Marco Verlato wrote:
> 
> This is a question concerning more CORBA than omniORB, but perhaps here someone can help me.
> I`m using omniORB 3.0.2 to build a CORBA server in C++, so i map IDL intefaces to C++ classes with
> attributes and methods to be called by remote clients. I would like to have classes with a
> constructor which takes a parameter to initialize for example a private variable of that class,
> but the IDL interface statement does not accept "in" parameters, how can i achieve this?
> Thanks in advance, Marco.

if you instantiate objects remotely, you use some form of factory. It is the factory's
responsability
to pass any desired parameters to the servant's constructor. There is nothing to publish as part
of the IDL, as private class members (of the servant class that implements a specific interface)
are an implementation detail, i.e. may vary between two implementations of the same interface.

Regards,	Stefan
_______________________________________________________              
              
Stefan Seefeld
Departement de Physique
Universite de Montreal
email: seefelds@magellan.umontreal.ca

_______________________________________________________

      ...ich hab' noch einen Koffer in Berlin...