cms::ObjectMessage Class Reference

Place holder for interaction with JMS systems that support Java, the C++ client is not responsible for deserializing the contained Object. More...

#include <src/main/cms/ObjectMessage.h>

Inheritance diagram for cms::ObjectMessage:
Inheritance graph
[legend]

Public Member Functions

virtual ~ObjectMessage ()
virtual void setObjectBytes (const std::vector< unsigned char > &bytes)=0
 Sets the payload bytes the represent the Object being transmitted.
virtual std::vector< unsigned
char > 
getObjectBytes () const =0
 Returns the byte array containing the serialized form of the transmitted Object.

Detailed Description

Place holder for interaction with JMS systems that support Java, the C++ client is not responsible for deserializing the contained Object.

The Object can be accessed in its serialized form as a vector of bytes which allows for bridging of message systems.

serialized ObjectMessages.

Since:
1.0

Constructor & Destructor Documentation

virtual cms::ObjectMessage::~ObjectMessage (  )  [virtual]

Member Function Documentation

virtual std::vector<unsigned char> cms::ObjectMessage::getObjectBytes (  )  const [pure virtual]

Returns the byte array containing the serialized form of the transmitted Object.

Returns:
a byte vector containing the serialized Object.
Exceptions:
CMSException - if the operation fails due to an internal error.
MessageNotReadableException - if the message is in write only mode.

Implemented in activemq::commands::ActiveMQObjectMessage.

virtual void cms::ObjectMessage::setObjectBytes ( const std::vector< unsigned char > &  bytes  )  [pure virtual]

Sets the payload bytes the represent the Object being transmitted.

Parameters:
bytes The byte array that contains the serialized object.
Exceptions:
CMSException - if the operation fails due to an internal error.
MessageNotWriteableException - if the Message is in Read-only Mode.

Implemented in activemq::commands::ActiveMQObjectMessage.


The documentation for this class was generated from the following file:

Generated on 1 Dec 2014 for activemq-cpp-3.8.2 by  doxygen 1.6.1