#include <CDR_Encaps_Codec.h>
Inheritance diagram for TAO_CDR_Encaps_Codec:
Public Methods | |
TAO_CDR_Encaps_Codec (CORBA::Octet major, CORBA::Octet minor, TAO_ORB_Core *orb_core) | |
Constructor. | |
virtual CORBA::OctetSeq * | encode (const CORBA::Any &data ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException, IOP::Codec::InvalidTypeForEncoding) |
virtual CORBA::Any * | decode (const CORBA::OctetSeq &data ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException, IOP::Codec::FormatMismatch) |
virtual CORBA::OctetSeq * | encode_value (const CORBA::Any &data ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException, IOP::Codec::InvalidTypeForEncoding) |
virtual CORBA::Any * | decode_value (const CORBA::OctetSeq &data, CORBA::TypeCode_ptr tc ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException, IOP::Codec::FormatMismatch, IOP::Codec::TypeMismatch) |
Protected Methods | |
~TAO_CDR_Encaps_Codec (void) | |
Destructor. | |
void | check_type_for_encoding (const CORBA::Any &data ACE_ENV_ARG_DECL) |
Private Methods | |
TAO_CDR_Encaps_Codec (const TAO_CDR_Encaps_Codec &) | |
void | operator= (const TAO_CDR_Encaps_Codec &) |
Private Attributes | |
CORBA::Octet | major_ |
The major GIOP version associated with this Codec. | |
CORBA::Octet | minor_ |
The minor GIOP version associated with this Codec. | |
TAO_ORB_Core * | orb_core_ |
This coder/decoder (Codec) class encodes and decodes data to and from a CDR encapsulation, respectively. It is useful for creation of octet sequences that contain CDR encapsulations. Those octet sequences can then be placed in a IOP::ServiceContext or an IOP::TaggedComponent, for example.
|
Constructor.
|
|
Destructor. Only allow this class to be instantiated on the heap since it is reference counted. |
|
Prevent copying through the copy constructor and the assignment operator. |
|
Typical reasons for failure include attempting to encode a type that isn't supported for the version of GIOP associated with this Codec. |
|
Extract the TypeCode and the value from the octet sequence and place them into an Any. Implements IOP::Codec. |
|
Extract the value from the octet sequence, based on the given TypeCode, and place it into an Any. Implements IOP::Codec. |
|
Encode the given data, including the TypeCode, into an octet sequence. Implements IOP::Codec. |
|
Encode the given data, excluding the TypeCode, into an octet sequence. Implements IOP::Codec. |
|
|
|
The major GIOP version associated with this Codec.
|
|
The minor GIOP version associated with this Codec.
|
|
The ORB Core to be used when decoding values from a CDR encapsulation. Reimplemented from CORBA::Object. |