#include <Naming_Context_Interface.h>
Collaboration diagram for TAO_Naming_Context:
Public Methods | |
TAO_Naming_Context (TAO_Naming_Context_Impl *impl) | |
Constructor. Initializes <impl_> with a concrete implementation. More... | |
~TAO_Naming_Context (void) | |
Destructor. More... | |
virtual void | bind (const CosNaming::Name &n, CORBA::Object_ptr obj ACE_ENV_ARG_DECL_WITH_DEFAULTS) ACE_THROW_SPEC((CORBA |
Similar to <resolve> as in the CosNaming::NamingContext interface. More... | |
void | to_name_helper (char *dest, const char *&src, Hint hint) |
This private function is used as a helper to <to_name>. More... | |
void | to_string_helper_assign (char *&k, const char *&src) |
This method functions similar to <to_name_helper>. More... | |
void | to_string_helper_length (CORBA::ULong &len, const char *&src) |
This method helps count the number of characters in 'src' so that memory can be allocated for the return parameter. More... | |
Static Public Methods | |
int | to_url_is_alnum_or_punctuation (char c) |
Return 1 if the character is alphanumeric or a non-scaped punctuation. More... | |
size_t | to_url_validate_and_compute_size (const char *add, const char *sn ACE_ENV_ARG_DECL) |
Validate the to_url() method input, and compute the size of the returned URL address. More... | |
Protected Attributes | |
TAO_Naming_Context_Impl * | impl_ |
A concrete implementor of the NamingContext functions. More... |
This class simply forwards all client requests to a concrete NamingContext implementation through its <impl_> pointer. See README file for more info. Comments for the idl methods describe methods semantics - actual actions are carried out by concrete implementors.
|
Constructor. Initializes <impl_> with a concrete implementation.
|
|
Destructor.
|
|
Similar to <resolve> as in the CosNaming::NamingContext interface. It accepts a strigified name as an argument instead of a Name. |
|
This private function is used as a helper to <to_name>. It reads character by character from 'src' and depending on the character, either assigns it to 'dest' or returns back to the calling function. If the character is a seperator between the 'id' and 'kind' fields or a seperator between two name components, the control is returned back to the calling function <to_name>. |
|
This method functions similar to <to_name_helper>. If the character read is '.' or '/' or '\', an escape character '\' is prepended before the character. |
|
This method helps count the number of characters in 'src' so that memory can be allocated for the return parameter. For all '.' , '/' and '\', the count is incremented by 'one' to account for the escape character that needs to be added. Seperators between 'id' and 'kind' as well as seperators between the name components are also counted. |
|
Return 1 if the character is alphanumeric or a non-scaped punctuation.
|
|
Validate the to_url() method input, and compute the size of the returned URL address.
|
|
A concrete implementor of the NamingContext functions.
|