#include <operation_details.h>
Collaboration diagram for TAO_Operation_Details:
Public Member Functions | |
TAO_Operation_Details (const char *name, CORBA::ULong len, CORBA::Boolean argument_flag, TAO::Argument **args=0, CORBA::ULong num_args=0, TAO::Exception_Data *ex_data=0, CORBA::Long ex_count=0) | |
Constructor. | |
const char * | opname (void) const |
Operation name. | |
CORBA::ULong | opname_len (void) const |
Length of the operation name. | |
CORBA::Boolean | argument_flag (void) const |
void | response_flags (CORBA::Octet flags) |
Set the response flags. | |
CORBA::Octet | response_flags (void) |
Get the response flags. | |
CORBA::Octet | response_flags (void) const |
IOP::ServiceContextList & | request_service_info (void) |
Accessors for the service context list. | |
const IOP::ServiceContextList & | request_service_info (void) const |
IOP::ServiceContextList & | reply_service_info (void) |
const IOP::ServiceContextList & | reply_service_info (void) const |
TAO_Service_Context & | request_service_context (void) |
Access the TAO_Service_Context. | |
const TAO_Service_Context & | request_service_context (void) const |
TAO_Service_Context & | reply_service_context (void) |
const TAO_Service_Context & | reply_service_context (void) const |
void | reset_request_service_info (void) |
void | reset_reply_service_info (void) |
void | request_id (CORBA::ULong id) |
Cache the request id. | |
CORBA::ULong | request_id (void) const |
Return the request ID associated with the operation. | |
TAO_Target_Specification::TAO_Target_Address | addressing_mode (void) |
Accessor method for the addressing mode. | |
TAO_Target_Specification::TAO_Target_Address | addressing_mode (void) const |
void | addressing_mode (CORBA::Short addr) |
Set method for the addressing mode. | |
CORBA::Exception * | corba_exception (const char *ex ACE_ENV_ARG_DECL) throw (CORBA::SystemException) |
TAO::Argument ** | args (void) const |
Accessors for the argumet list. | |
CORBA::ULong | args_num (void) const |
Helper methods used by the Invocation classes. | |
bool | marshal_args (TAO_OutputCDR &cdr) |
Marshals the list of <this->arg_> into the cdr. | |
bool | demarshal_args (TAO_InputCDR &cdr) |
Demarshals the list of <this->arg_> into the cdr. | |
bool | exception_list (Dynamic::ExceptionList &) |
bool | parameter_list (Dynamic::ParameterList &) |
Marshals the list of <this->arg_> into the cdr. | |
bool | result (CORBA::Any *) |
Marshals the list of <this->arg_> into the cdr. | |
Private Attributes | |
const char * | opname_ |
Name of the operation being invoked. | |
CORBA::ULong | opname_len_ |
Precalculated length of opname_. | |
CORBA::ULong | request_id_ |
Request ID of this operation. | |
CORBA::Boolean | argument_flag_ |
CORBA::Octet | response_flags_ |
Response flags. | |
TAO_Service_Context | request_service_info_ |
TAO_Service_Context | reply_service_info_ |
TAO_Target_Specification::TAO_Target_Address | addressing_mode_ |
Addressing mode for this request. | |
TAO::Argument ** | args_ |
CORBA::ULong | num_args_ |
TAO::Exception_Data * | ex_data_ |
The type of exceptions that the operations can throw. | |
CORBA::ULong | ex_count_ |
Count of the exceptions that operations can throw. |
This class stores some of the "operation" details that would be required by the invocation classes. This class is in its infancy now but I expect this one to grow as we come with different varieties of use cases.
|
Constructor.
|
|
Set method for the addressing mode.
|
|
|
|
Accessor method for the addressing mode.
|
|
Accessors for the argumet list.
|
|
|
|
Return the flag that indicates whether the operation has any arguments |
|
This step is important to decode the exception that the client got from the server. If the exception received from the server is not found in the list of exceptions specified by the operation this call would raise an UNKNOWN exception. |
|
Demarshals the list of <this->arg_> into the cdr.
|
|
The following methods are used by client interceptors to extract the list of parameters passed by the operation, exceptions declared for the operation, and the result when available. |
|
Marshals the list of <this->arg_> into the cdr.
|
|
Operation name.
|
|
Length of the operation name.
|
|
Marshals the list of <this->arg_> into the cdr.
|
|
|
|
|
|
|
|
|
|
Return the request ID associated with the operation.
|
|
Cache the request id.
|
|
|
|
Access the TAO_Service_Context.
|
|
|
|
Accessors for the service context list.
|
|
|
|
Reset the contents of the service context lists that we hold. |
|
|
|
Get the response flags.
|
|
Set the response flags.
|
|
Marshals the list of <this->arg_> into the cdr.
|
|
Addressing mode for this request.
|
|
|
|
Flag that indicates whether the operation has any arguments. If there are any arguments the flag will have a value of 1, 0 otherwise. |
|
Count of the exceptions that operations can throw.
|
|
The type of exceptions that the operations can throw.
|
|
|
|
Name of the operation being invoked.
|
|
Precalculated length of opname_.
|
|
The ServiceContextList received from the server side. Only valid when sending a request. |
|
Request ID of this operation.
|
|
The ServiceContextList sent to the server side. Only valid when sending a request. |
|
Response flags.
|