Base class for port activations. More...
#include <Port_Activator.h>
Public Member Functions | |
Port_Activator_i (const char *oid, const char *name, Port_Activator_Types::Type t) | |
virtual | ~Port_Activator_i (void) |
virtual char * | oid (void) |
Return the oid of port that this activator encapulates. | |
virtual void | oid (const char *oid) |
Set the oid. | |
virtual char * | name (void) |
Return the oid of port that this activator encapulates. | |
virtual PortableServer::Servant | activate (const PortableServer::ObjectId &oid)=0 |
Activate the servant reponsible for this port. | |
virtual void | deactivate (::PortableServer::Servant servant, CORBA::Boolean remaining_activations)=0 |
Protected Attributes | |
CORBA::String_var | oid_ |
The object ID that is used to activate the servant within the POA. | |
CORBA::String_var | name_ |
Name of the port. | |
Port_Activator_Types::Type const | t_ |
What type of port is it, a consumer or facet. |
Base class for port activations.
This is a ABC for the Port_Activator_T <> template class where the bulk of the work is done. This class is simply a place holder so that we could use the pointer to this class to achieve polymorphism for facet and consumer servant activations.
CIAO::Port_Activator_i::Port_Activator_i | ( | const char * | oid, | |
const char * | name, | |||
Port_Activator_Types::Type | t | |||
) |
CIAO::Port_Activator_i::~Port_Activator_i | ( | void | ) | [virtual] |
virtual PortableServer::Servant CIAO::Port_Activator_i::activate | ( | const PortableServer::ObjectId & | oid | ) | [pure virtual] |
Activate the servant reponsible for this port.
There are intentionally no throw specifications. It is the caller's responsibility to handle CORBA and C++ specifications.
Implemented in CIAO::Port_Activator_T< SERV, EXEC, CONTEXT, COMP_SERV >.
virtual void CIAO::Port_Activator_i::deactivate | ( | ::PortableServer::Servant | servant, | |
CORBA::Boolean | remaining_activations | |||
) | [pure virtual] |
char * CIAO::Port_Activator_i::name | ( | void | ) | [virtual] |
Return the oid of port that this activator encapulates.
char * CIAO::Port_Activator_i::oid | ( | void | ) | [virtual] |
Return the oid of port that this activator encapulates.
void CIAO::Port_Activator_i::oid | ( | const char * | oid | ) | [virtual] |
Set the oid.
CORBA::String_var CIAO::Port_Activator_i::name_ [protected] |
Name of the port.
CORBA::String_var CIAO::Port_Activator_i::oid_ [protected] |
The object ID that is used to activate the servant within the POA.
Port_Activator_Types::Type const CIAO::Port_Activator_i::t_ [protected] |
What type of port is it, a consumer or facet.