[omniORB] sequence definition and mapping

Henrik Schulz henrik.schulz@anite-systems.lu
Thu, 03 Sep 1998 12:50:48 +0100


Hi,
creating a sequence or an array by specifiing in the IDL file:

typedef sequence <short,1024> ShortBuffer;

and using a method like this:

long method(ShortBuffer& buffer)
  {
  return  streamBuffer->Write(buffer._buffer,buffer._length);
  }

I defined as written in the CORBA specs the struct such as this :

  #ifndef _CORBA_sequence_short_defined
  #define _CORBA_sequence_short_defined

  typedef struct
    {
    CORBA_unsigned_long  _maximum;
    CORBA_unsigned_long  _length;
    short*              _buffer;
    } CORBA_sequence_short;
  #endif

but the compiler complaints of CORBA_unsigned_long, because it is not
existing in the header files of
omniORB.
How the sequence struct for the implementation should look like instead?

thanks in advance,
cheers,
henrik


--
Henrik Schulz
MELISSA-Team
Anite-Systems Luxembourg
13, Rue Robert Stumper
L-2557 Luxembourg
http://www.Anite-Systems.lu
mailto:Henrik.Schulz@Anite-Systems.lu
Tel: ++352 405161-37
Fax: ++352 403150