#ifndef Packers_ih #define Packers_ih #include "packers.hh" // Include the common definitions class Packers_i : public PackersBOAImpl // Implementation using BOA { public: Packers_i(); // Constructor for Packer class ~Packers_i(); // Destructor for Packer class virtual void aShort(CORBA::Short aShort, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); // Member function which sets the internal // short data member virtual CORBA::Short aShort(CORBA::Environment &IT_env= CORBA::default_environment) throw (CORBA::SystemException); // Member function which returns the value // of the internal short data member virtual void aLong(CORBA::Long aLong, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); // Member function which sets the internal // long data member virtual CORBA::Long aLong(CORBA::Environment &IT_env= CORBA::default_environment) throw (CORBA::SystemException); // Member function which returns the value // of the internal long data member virtual void bShort(CORBA::Short bShort, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); // Member function which sets the internal // short data member virtual CORBA::Short bShort(CORBA::Environment &IT_env= CORBA::default_environment) throw (CORBA::SystemException); // Member function which returns the value // of the internal short data member virtual void bLong(CORBA::Long aLong, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); // Member function which sets the internal // long data member virtual CORBA::Long bLong(CORBA::Environment &IT_env= CORBA::default_environment) throw (CORBA::SystemException); // Member function which returns the value // of the internal long data member virtual void aUnsignedShort(CORBA::UShort aUnsignedShort, CORBA::Environment &IT_env= CORBA::default_environment) throw (CORBA::SystemException); // Member function which sets the internal // unsigned short data member virtual CORBA::UShort aUnsignedShort(CORBA::Environment &IT_env= CORBA::default_environment) throw (CORBA::SystemException); // Member function which returns the value // of the internal unsigned short data // member virtual void aUnsignedLong(CORBA::ULong aUnsignedLong, CORBA::Environment &IT_env= CORBA::default_environment) throw (CORBA::SystemException); // Member function which sets the internal // unsigned long data member virtual CORBA::ULong aUnsignedLong(CORBA::Environment &IT_env= CORBA::default_environment) throw (CORBA::SystemException); // Member function which returns the value // of the internal unsigned long data // member virtual void aFloat(CORBA::Float aFloat, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); // Member function which sets the internal // float data member virtual CORBA::Float aFloat(CORBA::Environment &IT_env= CORBA::default_environment) throw (CORBA::SystemException); // Member function which returns the value // of the internal float data member virtual void aDouble(CORBA::Double aDouble, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); // Member function which sets the internal // double data member virtual CORBA::Double aDouble(CORBA::Environment &IT_env= CORBA::default_environment) throw (CORBA::SystemException); // Member function which returns the value // of the internal double data member virtual void bFloat(CORBA::Float bFloat, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); // Member function which sets the internal // float data member virtual CORBA::Float bFloat(CORBA::Environment &IT_env= CORBA::default_environment) throw (CORBA::SystemException); // Member function which returns the value // of the internal float data member virtual void bDouble(CORBA::Double bDouble, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); // Member function which sets the internal // double data member virtual CORBA::Double bDouble(CORBA::Environment &IT_env= CORBA::default_environment) throw (CORBA::SystemException); // Member function which returns the value // of the internal double data member virtual void aCharacter(CORBA::Char aCharacter, CORBA::Environment &IT_env= CORBA::default_environment) throw (CORBA::SystemException); // Member function which sets the internal // character data member virtual CORBA::Char aCharacter(CORBA::Environment &IT_env= CORBA::default_environment) throw (CORBA::SystemException); // Member function which returns the value // of the interal character data member virtual void aBoolean(CORBA::Boolean, CORBA::Environment &IT_env= CORBA::default_environment) throw (CORBA::SystemException); // Member function which sets the internal // boolean data member virtual CORBA::Boolean aBoolean(CORBA::Environment &IT_env= CORBA::default_environment) throw (CORBA::SystemException); // Member function which returns the value // of the boolean data member virtual void aString(const char *aString, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException); // Member function which sets the internal // character array data member virtual char *aString(CORBA::Environment &IT_env= CORBA::default_environment) throw (CORBA::SystemException); // Member function which returns the value // which is stored in the character array virtual void saveObject(CORBA::Environment &IT_env= CORBA::default_environment) throw (CORBA::SystemException); // This member function is responsible for // taking the contents stored in the private // data members within the object and saving // their contents into an `octet' stream virtual CORBA::UShort restoreObject (byteStream& aBuffer, CORBA::Environment &IT_env= CORBA::default_environment) throw (CORBA::SystemException); // This member function is responsible for // taking a byte stream and reconstructing // an object from virtual void aByteStream (const byteStream& aByteStream, CORBA::Environment &IT_env= CORBA::default_environment) throw (CORBA::SystemException); // This member function is responsible for // setting the internal byteStream to the // given byteStream which is passed in virtual byteStream* aByteStream(CORBA::Environment &IT_env= CORBA::default_environment) throw (CORBA::SystemException); // This member function is responsible for // returning the value of the internal byte // data stream virtual void defaultSave (CORBA::Short aShort, CORBA::Long aLong, CORBA::UShort aUnsignedShort, CORBA::ULong aUnsignedLong, CORBA::Float aFloat, CORBA::Double aDouble, CORBA::Char aCharacter, CORBA::Boolean aBoolean, const char * aString, CORBA::Float bFloat, CORBA::Double bDouble, CORBA::Short bShort, CORBA::Long bLong, CORBA::Environment &IT_env= CORBA::default_environment) throw (CORBA::SystemException); // This member function is responsible for // taking a list of parameters and committing // them to the internal data members of the // class virtual void defaultLoad (CORBA::Short& aShort, CORBA::Long& aLong, CORBA::UShort& aUnsignedShort, CORBA::ULong& aUnsignedLong, CORBA::Float& aFloat, CORBA::Double& aDouble, CORBA::Char& aCharacter, CORBA::Boolean& aBoolean, char *& aString, CORBA::Float& bFloat, CORBA::Double& bDouble, CORBA::Short& bShort, CORBA::Long& bLong, CORBA::Environment &IT_env= CORBA::default_environment) throw (CORBA::SystemException); // This member function is responsible for // taking the internal data members and // assigning them to the parameters that are // passed into the function private: CORBA::Short m_aShort; // Private Short Data Member CORBA::Long m_aLong; // Private Long Data Member CORBA::UShort m_aUnsignedShort; // Private Unsigned Short Data Member CORBA::ULong m_aUnsignedLong; // Private Unsigned Long Data Member CORBA::Float m_aFloat; // Private Float Data Member CORBA::Double m_aDouble; // Private Double Data Member CORBA::Char m_aCharacter; // Private Character Data Member CORBA::Boolean m_aBoolean; // Private Boolean Data Member CORBA::string m_aString; // Private Character Array Data Member byteStream m_aByteStream; // Private ByteStream Data Member CORBA::Float m_bFloat; // Private Float Data Member CORBA::Double m_bDouble; // Private Double Data Member CORBA::Short m_bShort; // Private Short Data Member CORBA::Long m_bLong; // Private Long Data Member }; #endif