RE: Private variable ?



Thank you for your help...

I have noticed the destructive behavior of --skeleton-impl.

May be the orbit-idl coders would like to add a switch and make it non
destructive, by checking if there is a file already existing and parsing it
to see if structures and functions are declared correctly, like glade does.

Cheers.

Franck Martin
Network and Database Development Officer
SOPAC South Pacific Applied Geoscience Commission
Fiji
E-mail: franck sopac org <mailto:franck sopac org> 
Web site: http://www.sopac.org/
<http://www.sopac.org/> Support FMaps: http://fmaps.sourceforge.net/
<http://fmaps.sourceforge.net/> 

This e-mail is intended for its addresses only. Do not forward this e-mail
without approval. The views expressed in this e-mail may not be necessarily
the views of SOPAC.



-----Original Message-----
From: Andrew Murie [mailto:andrewm treshna com]
Sent: Tuesday, 27 March 2001 10:47 
To: orbit-list gnome org
Subject: Re: Private variable ?


Franck Martin wrote:

> I would like to create an object which has some private variables. ie I
can use
> these variables in my implementation (server), but I don't want them to be
> exposed to the client. These variables are associated with an object off
course.
> How do I do that?
>
> Should they be declared in the IDL or somewhere else?

In the file whatever-skelimpl.h (generated by orbit-idl --skeleton-impl
whatever.idl)
a servant structure is created that has members for every attribute defined
by an
interface.   You're free to add any extra variables to this, and as these
are not
defined in the IDL file, the client has no access to them  (but methods in
the
class
do, and can return the value of those variables to the client.)

IDL files can only be used for public declarations.

Remember that each time you use the --skeleton-impl option to orbit-idl,
that
file is recreated, and any changes you made would be overwritten.


¢¶â¶X¬¶f¢-)à-+-¢¶â¶X¬¶	è(tm)ê+'m§ÿæj)`z?z¢¸?(tm)¨¥(tm)©ÿ-+-SwèþSÛSÙb




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