TAO
2.3.3
|
The policy manager implementation. More...
#include <Tagged_Components.h>
Public Member Functions | |
TAO_Tagged_Components (void) | |
Constructor. More... | |
void | set_orb_type (CORBA::ULong orb_type) |
The the IOP::TAG_ORB_TYPE component value. More... | |
int | get_orb_type (CORBA::ULong &orb_type) const |
void | set_code_sets (const CONV_FRAME::CodeSetComponentInfo &) |
void | set_code_sets (CONV_FRAME::CodeSetComponentInfo &) |
int | get_code_sets (const CONV_FRAME::CodeSetComponentInfo *&) const |
int | get_code_sets (CONV_FRAME::CodeSetComponentInfo &) const |
void | set_component (const IOP::TaggedComponent &component) |
void | set_component (IOP::TaggedComponent &component) |
int | get_component (IOP::TaggedComponent &component) const |
int | remove_component (IOP::ComponentId id) |
int | encode (TAO_OutputCDR &cdr) const |
Marshal the list. More... | |
int | decode (TAO_InputCDR &cdr) |
Demarshal the list. More... | |
IOP::MultipleComponentProfile & | components (void) |
Private Attributes | |
CORBA::ULong | orb_type_ |
The ORB_TYPE component value. More... | |
CONV_FRAME::CodeSetComponentInfo | code_sets_ |
The ORB_TYPE component value. More... | |
IOP::MultipleComponentProfile | components_ |
CORBA::Octet | orb_type_set_ |
A flag for each component... More... | |
CORBA::Octet | code_sets_set_ |
The policy manager implementation.
This class is used to manipulate and access the <components> field of an IIOP profile (and other GIOP profiles). The definition for that field is simply a sequence of the following structures: typedef unsigned long ComponentId; struct TaggedComponent { ComponentId tag; sequence<octet> component_data; }; the real motivation is to minimize the marshaling and demarshaling of the <component_data> field for certain critical components.
TAO_Tagged_Components::TAO_Tagged_Components | ( | void | ) |
Constructor.
|
private |
|
private |
IOP::MultipleComponentProfile & TAO_Tagged_Components::components | ( | void | ) |
Read/Write access to the underlying MutipleComponentProfile. Added by request from Chris Hafey chris @ste ntors oft. com
int TAO_Tagged_Components::decode | ( | TAO_InputCDR & | cdr | ) |
Demarshal the list.
int TAO_Tagged_Components::encode | ( | TAO_OutputCDR & | cdr | ) | const |
Marshal the list.
int TAO_Tagged_Components::get_code_sets | ( | const CONV_FRAME::CodeSetComponentInfo *& | ci | ) | const |
Gets a reference of the IOP::TAG_CODE_SETS component value, return 0 if the component is not present.
int TAO_Tagged_Components::get_code_sets | ( | CONV_FRAME::CodeSetComponentInfo & | ci | ) | const |
Gets a copy of the IOP::TAG_CODE_SETS component value, return 0 if the component is not present.
int TAO_Tagged_Components::get_component | ( | IOP::TaggedComponent & | component | ) | const |
Get a copy of the component identified by <component.tag>, return 0 if the component is not present.
|
private |
|
private |
Helper methods to implement set_component()
int TAO_Tagged_Components::get_orb_type | ( | CORBA::ULong & | orb_type | ) | const |
Gets the IOP::TAG_ORB_TYPE component value, return 0 if the component is not present.
|
private |
Is tag a well-known component?
int TAO_Tagged_Components::remove_component | ( | IOP::ComponentId | id | ) |
Remove a component, if present. Return number of components removed.
|
private |
|
private |
Helper methods to implement remove_component()
void TAO_Tagged_Components::set_code_sets | ( | const CONV_FRAME::CodeSetComponentInfo & | ci | ) |
The the IOP::TAG_CODE_SETS component value, the first version copies the data, the second version steal all the sequence buffers.
void TAO_Tagged_Components::set_code_sets | ( | CONV_FRAME::CodeSetComponentInfo & | ci | ) |
|
private |
Helper method to implement set_code_sets()
void TAO_Tagged_Components::set_component | ( | const IOP::TaggedComponent & | component | ) |
Insert the component into the list, making a copy of the octet sequence.
void TAO_Tagged_Components::set_component | ( | IOP::TaggedComponent & | component | ) |
Insert the component into the list, but efficiently stealing the contents of the octet sequence.
|
private |
|
private |
|
private |
|
private |
Helper methods to implement set_component()
void TAO_Tagged_Components::set_orb_type | ( | CORBA::ULong | orb_type | ) |
The the IOP::TAG_ORB_TYPE component value.
|
private |
Does tag show up only once?
|
private |
The ORB_TYPE component value.
|
private |
|
private |
The rest of the components, to be compliant we cannot drop a bunch of them.
|
private |
The ORB_TYPE component value.
|
private |
A flag for each component...