summaryrefslogtreecommitdiff
path: root/TAO/CIAO/tools/Daemon/Daemon_Impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/CIAO/tools/Daemon/Daemon_Impl.h')
-rw-r--r--TAO/CIAO/tools/Daemon/Daemon_Impl.h104
1 files changed, 0 insertions, 104 deletions
diff --git a/TAO/CIAO/tools/Daemon/Daemon_Impl.h b/TAO/CIAO/tools/Daemon/Daemon_Impl.h
deleted file mode 100644
index 853b91468fc..00000000000
--- a/TAO/CIAO/tools/Daemon/Daemon_Impl.h
+++ /dev/null
@@ -1,104 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file Daemon_Impl.h
- *
- * $Id$
- *
- * This file contains servant implementation for CIAO's daemon process control
- * interface.
- *
- * @author Nanbor Wang <nanbor@cs.wustl.edu>
- */
-//=============================================================================
-
-
-#ifndef CIAO_DAEMON_IMPL_H
-#define CIAO_DAEMON_IMPL_H
-#include /**/ "ace/pre.h"
-
-#include "DaemonS.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "ace/Synch.h"
-#include "ace/Hash_Map_Manager_T.h"
-#include "ace/Functor.h"
-
-namespace CIAO
-{
- /**
- * @class Daemon_Impl
- *
- * @brief Servant implementation CIAO's daemon process control interface
- *
- * This class implements the CIAO:Daemon interface. We use this interface
- * to acquire the
- */
- class Daemon_Impl
- : public virtual POA_CIAO::Daemon,
- public virtual PortableServer::RefCountServantBase
- {
- public:
-
- /// Constructor
- Daemon_Impl (const char *name,
- CORBA::ORB_ptr o,
- PortableServer::POA_ptr p);
-
- /// Destructor
- virtual ~Daemon_Impl (void);
-
- /// Get the containing POA. This operation does *not*
- /// increase the reference count of the POA.
- virtual PortableServer::POA_ptr _default_POA (void);
-
- /// CIAO::Daemon defined attributes/operations.
-
- virtual char * name (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual CORBA::Object_ptr get_service (const char * svc_name
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- CIAO::NotFound));
-
- virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- /**
- * @name CIAO::Daemon_Impl internal operations using the
- * canonical ACE_Map methods
- */
- //@{
- int bind (const char *orb_id, CORBA::Object_ptr obj);
- int unbind (const char *orb_id);
- //@}
-
- protected:
- typedef ACE_Hash_Map_Manager_Ex<const char *, CORBA::Object_ptr, ACE_Hash<const char *>, ACE_Equal_To<const char *>, TAO_SYNCH_MUTEX> Table;
- typedef Table::iterator Iterator;
-
- /// Keep a pointer to the managing ORB serving this servant.
- CORBA::ORB_var orb_;
-
- /// Keep a pointer to the managing POA.
- PortableServer::POA_var poa_;
-
- /// My Canonical name.
- CORBA::String_var name_;
-
- /// Internal object hash table.
- Table table_;
- };
-}
-
-#if defined (__ACE_INLINE__)
-# include "Daemon_Impl.inl"
-#endif /* __ACE_INLINE__ */
-
-#include /**/ "ace/post.h"
-#endif /* CIAO_DAEMON_IMPL_H */