Re: Using the Object in the server



Hi Sadi,

On Thu, 19 Jul 2001, Sadi Yigit wrote:
> I have a CORBA-Object that I want to update in the server. How can I
> do this? I don't want to use the CORBA-Functions, because that is not
> neccessary, but though there is no server-variable I don't know how to  
> do it. If my object has for instance the variable status, and I would
> in the implementation of the skeletonfunctions write server->ststus =
> "rrr", what do I have to write in the server to have the same effect?
  
        Assuming if you are asking essentialy whether you can set
attributes on a remote structure using the C pointer dereference operator.
Then you certainly can't.

        You must setup an attribute or accessor method on the remote
object, and this has to be invoked to set the remote property eg.

        Calculator__set_status (calc, "rrr", ev);

        This is with a CORBA attribute in the 'Calculator' interface.
If you have a lot of simple properties - or you just want life making
easier for you - you might consider checking out bonobo / oaf, which have
a property bag interface and helper wrappers to make setting properties   
somewhat easier.
 
        Regards,
  
                Michael.

-- 
 mmeeks@gnu.org  <><, Pseudo Engineer, itinerant idiot





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]