[omniORB] "Persistent" IORs

Peter Craig pcraig@coactive.com
Thu, 3 Dec 1998 09:34:36 -0800


Sorry for the confusion,

>>>>>Thor =C5ge Eldby wrote:
> I could not find the "objectKeyVariant" structure anywhere; is it =
your
> own? Anyway I created a similar "TTTTTTTTTTTT" string this way.
> =20
>   omniORB::objectKey Key;
>   Key.lo =3D Key.med =3D Key.hi =3D ((84*256 + 84)*256 + 84)*256 + =
84;

the parameter to the constructor is of type objectKey

	struct omniObjectKey {
	  _CORBA_ULong hi;
	  _CORBA_ULong med;
	  _CORBA_ULong lo;
	};
	typedef omniObjectKey objectKey;  =20

we had created a union so we could easily fill in part of the key with
characters:

	struct modKeyType
	{
	    unsigned long hi;
	    char 	  cstrKey[8];
	};

	typedef union {
	    modKeyType  	modKey;
	    omniORB::objectKey  objKey;=20
	} objectKeyVariant;


Peter Craig (pcraig@coactive.com)
Sr.Software Engineer    =20
Coactive Networks, Inc. (http://www.coactive.com)
4000 Bridgeway, Suite 303, Sausalito, CA 94965
Voice:415-289-8658 Fax:415-289-1320=20
> =20