diff options
Diffstat (limited to 'CIAO/ciao/Port_Activator.h')
-rw-r--r-- | CIAO/ciao/Port_Activator.h | 90 |
1 files changed, 0 insertions, 90 deletions
diff --git a/CIAO/ciao/Port_Activator.h b/CIAO/ciao/Port_Activator.h deleted file mode 100644 index 5ab3adb2604..00000000000 --- a/CIAO/ciao/Port_Activator.h +++ /dev/null @@ -1,90 +0,0 @@ -// -*- C++ -*- -//============================================================================= -/** - * @file Port_Activator.h - * - * $Id$ - * - * @authors Bala Natarajan <bala@dre.vanderbilt.edu> - */ -//============================================================================= - -#ifndef CIAO_PORT_ACTIVATOR_H -#define CIAO_PORT_ACTIVATOR_H -#include /**/ "ace/pre.h" - -#include "ace/config-lite.h" - -#if !defined (ACE_LACKS_PRAGMA_ONCE) -# pragma once -#endif /* ACE_LACKS_PRAGMA_ONCE */ - -#include "ciao/CIAO_Server_Export.h" - -#include "tao/PortableServer/PortableServer.h" - -namespace CIAO -{ - /** - * @class Port_Activator - * - * @brief 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. - * - */ - class CIAO_SERVER_Export Port_Activator - { - public: - enum Type - { - Facet, - Sink - }; - - Port_Activator (const char *oid, - const char *name, - Type t); - - virtual ~Port_Activator (void); - - /// Return the name of port that this activator encapulates. - const char* name (void) const; - - /// Set the name - void set_name (const char* name); - - /// 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. - */ - virtual PortableServer::Servant activate ( - const PortableServer::ObjectId &oid - ACE_ENV_ARG_DECL) = 0; - - virtual void deactivate ( - const PortableServer::Servant servant - ACE_ENV_ARG_DECL) = 0; - - protected: - /// The object ID that is used to activate the servant within the - /// POA. - CORBA::String_var oid_; - - /// Name of the port - CORBA::String_var name_; - - /// What type of port is it, a consumer or facet. - Type t_; - }; -} - - - -#include /**/ "ace/post.h" -#endif /*CIAO_PORT_ACTIVATOR_H*/ |