typedef sequence byteStream; // Type definition to define the // byte stream. interface Packers // Interface Definition for Packers { ////////////////////////////////////////////////////////////////////////////// // Data Members // ///////////////////////////////////////////////////////////////////////////// attribute short aShort; // Maps to CORBA::Short (32 bits) attribute long aLong; // Maps to CORBA::Long (32 bits) attribute unsigned short aUnsignedShort; // Maps to CORBA::UShort (32 bits) attribute unsigned long aUnsignedLong; // Maps to CORBA::ULong (32 bits) attribute float aFloat; // Maps to CORBA::Float (32 bits) attribute double aDouble; // Maps to CORBA::Double (64 bits) attribute char aCharacter; // Maps to CORBA::Char (8 bits) attribute boolean aBoolean; // Maps to CORBA::Boolean (8 bits) attribute string aString; // Maps to CORBA::String attribute byteStream aByteStream; // Maps to byteStream attribute float bFloat; // Maps to CORBA::Float (32 bits) attribute double bDouble; // Maps to CORBA::Double (64 bits) attribute short bShort; // Maps to CORBA::Short (32 bits) attribute long bLong; // Maps to CORBA::Long (32 bits) ////////////////////////////////////////////////////////////////////////////// // Member Functions // ////////////////////////////////////////////////////////////////////////////// void saveObject(); // Octet Version of Saving the object unsigned short restoreObject(inout byteStream aBuffer); // Octet Version of Restoring the // object void defaultSave(in short aShort, // Default Save option using the // CORBA default marshalling in long aLong, in unsigned short aUnsignedShort, in unsigned long aUnsignedLong, in float aFloat, in double aDouble, in char aCharacter, in boolean aBoolean, in string aString, in float bFloat, in double bDouble, in short bShort, in long bLong); void defaultLoad(out short aShort, // Default Load option using the // CORBA default marshalling out long aLong, out unsigned short aUnsignedShort, out unsigned long aUnsignedLong, out float aFloat, out double aDouble, out char aCharacter, out boolean aBoolean, out string aString, out float bFloat, out double bDouble, out short bShort, out long bLong); };