TAO
2.3.3
|
A TAO_Profile class to handle foreign profiles. More...
#include <Profile.h>
Public Member Functions | |
TAO_Unknown_Profile (CORBA::ULong tag, TAO_ORB_Core *orb_core) | |
Create the profile. More... | |
virtual void | parse_string (const char *string) |
virtual char | object_key_delimiter (void) const |
The object key delimiter. More... | |
virtual char * | to_string (void) const |
virtual int | decode (TAO_InputCDR &cdr) |
Initialize this object using the given CDR octet string. More... | |
virtual int | encode (TAO_OutputCDR &stream) const |
Encode this profile in a stream, i.e. marshal it. More... | |
virtual int | encode_endpoints (void) |
virtual TAO::ObjectKey * | _key (void) const |
virtual TAO_Endpoint * | endpoint (void) |
virtual CORBA::ULong | endpoint_count (void) const |
Return how many endpoints this profile contains. More... | |
virtual CORBA::ULong | hash (CORBA::ULong max) |
Return a hash value for this object. More... | |
virtual int | decode_profile (TAO_InputCDR &cdr) |
Decode the protocol specific profile details. More... | |
virtual int | decode_endpoints (void) |
Public Member Functions inherited from TAO_Profile | |
TAO_Profile (CORBA::ULong tag, TAO_ORB_Core *orb_core, const TAO_GIOP_Message_Version &version) | |
Constructor. More... | |
CORBA::ULong | tag (void) const |
The tag, each concrete class will have a specific tag value. More... | |
const TAO_GIOP_Message_Version & | version (void) const |
TAO_ORB_Core * | orb_core (void) const |
Get a pointer to the TAO_ORB_Core. More... | |
unsigned long | _incr_refcnt (void) |
Increase the reference count by one on this object. More... | |
unsigned long | _decr_refcnt (void) |
void | forward_to (TAO_MProfile *mprofiles) |
Keep a pointer to the forwarded profile. More... | |
TAO_MProfile * | forward_to (void) |
MProfile accessor. More... | |
const TAO_Tagged_Components & | tagged_components (void) const |
TAO_Tagged_Components & | tagged_components (void) |
The tag, each concrete class will have a specific tag value. More... | |
void | add_tagged_component (const IOP::TaggedComponent &component) |
Add the given tagged component to the profile. More... | |
CORBA::Short | addressing_mode (void) const |
const TAO::ObjectKey & | object_key (void) const |
TAO::ObjectKey * | _key (void) const |
IOP::TaggedProfile * | create_tagged_profile (void) |
virtual void | policies (CORBA::PolicyList *policy_list) |
virtual void | get_policies (CORBA::PolicyList &policy_list) |
Accessor for the client exposed policies of this profile. More... | |
virtual int | supports_multicast (void) const |
Returns true if this profile can specify multicast endpoints. More... | |
virtual bool | supports_non_blocking_oneways (void) const |
Returns true if this profile supports non blocking oneways. More... | |
virtual void | addressing_mode (CORBA::Short addr_mode) |
virtual int | encode_alternate_endpoints (void) |
virtual TAO_Endpoint * | base_endpoint (void) |
TAO_Endpoint * | first_filtered_endpoint (void) |
TAO_Endpoint * | next_filtered_endpoint (TAO_Endpoint *source) |
virtual void | remove_generic_endpoint (TAO_Endpoint *ep) |
virtual void | add_generic_endpoint (TAO_Endpoint *ep) |
Add a protocol-agnostic endpoint. More... | |
CORBA::Boolean | is_equivalent (const TAO_Profile *other_profile) |
Verify profile equivalance. More... | |
CORBA::Boolean | compare_key (const TAO_Profile *other) const |
Protected Member Functions | |
virtual CORBA::Boolean | do_is_equivalent (const TAO_Profile *other_profile) |
Profile equivalence template method invoked on subclasses. More... | |
virtual TAO_Service_Callbacks::Profile_Equivalence | is_equivalent_hook (const TAO_Profile *other_profile) |
Allow services to apply their own definition of "equivalence.". More... | |
Protected Member Functions inherited from TAO_Profile | |
virtual | ~TAO_Profile (void) |
If you have a virtual method you need a virtual dtor. More... | |
TAO_Profile (CORBA::ULong tag, TAO_ORB_Core *orb_core, const TAO::ObjectKey &key, const TAO_GIOP_Message_Version &version) | |
To be used by inherited classes. More... | |
void | set_tagged_components (TAO_OutputCDR &cdr) |
CORBA::ULong | hash_service_i (CORBA::ULong m) |
Private Member Functions | |
virtual void | create_profile_body (TAO_OutputCDR &encap) const |
Creates an encapsulation of the ProfileBody struct in the cdr. More... | |
virtual void | parse_string_i (const char *string) |
Protocol specific implementation of parse_string () More... | |
Private Attributes | |
TAO_opaque | body_ |
Additional Inherited Members | |
Protected Attributes inherited from TAO_Profile | |
TAO_GIOP_Message_Version | version_ |
IIOP version number. More... | |
TAO_Tagged_Components | tagged_components_ |
The tagged components. More... | |
CORBA::Boolean | are_policies_parsed_ |
CORBA::Short | addressing_mode_ |
IOP::TaggedProfile * | tagged_profile_ |
Our tagged profile. More... | |
TAO::Refcounted_ObjectKey * | ref_object_key_ |
Object_key associated with this profile. More... | |
A TAO_Profile class to handle foreign profiles.
The CORBA spec implies that ORBs must be prepared to save and pass around profiles for protocols it does not recognize. It is not mandatory to use those profiles but they shouldn't be dropped. This class stores the information required to marshal and demarshal an unknown profile, but simply returns an error if any of the TAO internal methods are invoked.
TAO_Unknown_Profile::TAO_Unknown_Profile | ( | CORBA::ULong | tag, |
TAO_ORB_Core * | orb_core | ||
) |
Create the profile.
|
virtual |
|
privatevirtual |
Creates an encapsulation of the ProfileBody struct in the cdr.
Implements TAO_Profile.
|
virtual |
Initialize this object using the given CDR octet string.
Reimplemented from TAO_Profile.
|
virtual |
Helper for decode(). Decodes endpoints from a tagged component. Decode only if RTCORBA is enabled. Furthermore, we may not find TAO_TAG_ENDPOINTS component, e.g., if we are talking to nonRT version of TAO or some other ORB. This is not an error, and we must proceed. Return 0 on success and -1 on failure.
Implements TAO_Profile.
|
virtual |
Decode the protocol specific profile details.
Implements TAO_Profile.
|
protectedvirtual |
Profile equivalence template method invoked on subclasses.
TAO_Profile subclasses must implement this template method so that they can apply their own definition of profile equivalence.
Implements TAO_Profile.
|
virtual |
Encode this profile in a stream, i.e. marshal it.
Reimplemented from TAO_Profile.
|
virtual |
Encodes this profile's endpoints into a tagged component. This is done only if RTCORBA is enabled, since currently this is the only case when we have more than one endpoint per profile.
Implements TAO_Profile.
|
virtual |
Return a pointer to this profile's endpoint. If the profile contains more than one endpoint, i.e., a list, the method returns the head of the list.
Implements TAO_Profile.
|
virtual |
Return how many endpoints this profile contains.
Implements TAO_Profile.
|
virtual |
Return a hash value for this object.
Implements TAO_Profile.
|
protectedvirtual |
Allow services to apply their own definition of "equivalence.".
This method differs from the do_is_equivalent()
template method in that it has a default implementation that may or not be applicable to all TAO_Profile subclasses.
Reimplemented from TAO_Profile.
|
virtual |
The object key delimiter.
Implements TAO_Profile.
|
virtual |
Initialize this object using the given input string. Supports URL style of object references
Reimplemented from TAO_Profile.
|
privatevirtual |
Protocol specific implementation of parse_string ()
Implements TAO_Profile.
|
virtual |
Return a string representation for this profile. Client must deallocate memory. Only one endpoint is included into the string.
Implements TAO_Profile.
|
private |