Re: Using the Object in the server
- From: Sadi Yigit <sadi bwh harvard edu>
- To: orbit-list gnome org
- Subject: Re: Using the Object in the server
- Date: Tue, 24 Jul 2001 15:50:38 -0400
Thank you for you answer Michael,
but I don't want to use a CORBA-function, though I want to change the data of
the object on the server side (the server does the changes), so I would need
something like:
Calculator->status = "rrr" (but this is not working).
Do you (or someone else) know how I can do this?
Greetings,
Sadi.
Michael Meeks wrote:
> 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
>
> _______________________________________________
> orbit-list mailing list
> orbit-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/orbit-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]