summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/Notify/Container_T.h
diff options
context:
space:
mode:
authorpradeep <pradeep@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-02-27 14:17:59 +0000
committerpradeep <pradeep@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-02-27 14:17:59 +0000
commit3b1973e66d29b9a317e836e49ff40bddb89aaf31 (patch)
tree30aa3c1bf9298eb8060936b6f4aaeb5c1f904c65 /TAO/orbsvcs/orbsvcs/Notify/Container_T.h
parent733e2e952b6edba9082e8d34c8b058cfd16fb336 (diff)
downloadATCD-3b1973e66d29b9a317e836e49ff40bddb89aaf31.tar.gz
ChangeLogTag: Thu Feb 27 09:09:44 2003 Pradeep Gore <pradeep@oomworks.com>
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/Notify/Container_T.h')
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Container_T.h59
1 files changed, 13 insertions, 46 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Container_T.h b/TAO/orbsvcs/orbsvcs/Notify/Container_T.h
index 39f2c88677f..003bcf55a7d 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Container_T.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Container_T.h
@@ -19,76 +19,43 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "Container.h"
-#include "Object_T.h"
-#include "orbsvcs/ESF/ESF_Worker.h"
-
-/**
- * @class TAO_NS_Container_T
- *
- * @brief
- *
- */
-template <class OBJECT>
-class TAO_Notify_Export TAO_NS_Object_Find_Worker_T : public TAO_ESF_Worker<OBJECT>
-{
- typedef TAO_ESF_Proxy_Collection<OBJECT> COLLECTION;
-
-public:
- /// Constructor
- TAO_NS_Object_Find_Worker_T (TAO_NS_Object_Id id);
-
- /// Find
- OBJECT* find (COLLECTION* collection ACE_ENV_ARG_DECL);
-
-protected:
- ///= TAO_ESF_Worker method
- void work (OBJECT* object ACE_ENV_ARG_DECL);
-
- /// The id we're looking for.
- TAO_NS_Object_Id id_;
-
- /// The result
- OBJECT* result_;
-};
+#include "orbsvcs/ESF/ESF_Proxy_Collection.h"
/**
* @class TAO_NS_Container_T
*
* @brief A template class that manages a collection.
- * TYPE = type of collection, OBJECT = the object, PARENT = parent of object (grandparent of TYPE)
+ * TYPE = type of collection
*
*/
-template <class TYPE, class OBJECT, class PARENT>
-class TAO_Notify_Export TAO_NS_Container_T : public virtual TAO_NS_Object_T<OBJECT, PARENT>, public virtual TAO_NS_Container
+template <class TYPE>
+class TAO_Notify_Export TAO_NS_Container_T
{
- typedef TAO_NS_Object_Find_Worker_T<TYPE> FIND_WORKER;
+ typedef TAO_ESF_Proxy_Collection<TYPE> COLLECTION;
+ public:
-public:
/// Constuctor
TAO_NS_Container_T (void);
/// Destructor
virtual ~TAO_NS_Container_T ();
+ /// Init this object.
+ void init (ACE_ENV_SINGLE_ARG_DECL);
+
/// Insert object to this container.
virtual void insert (TYPE* type ACE_ENV_ARG_DECL);
/// Remove type from container_
virtual void remove (TYPE* type ACE_ENV_ARG_DECL);
- /// Find the Type.
- TYPE* find (TAO_NS_Object_Id id ACE_ENV_ARG_DECL);
-
- /// Init this object.
- void init_collection (ACE_ENV_SINGLE_ARG_DECL);
-
/// Shutdown
- virtual int shutdown (ACE_ENV_SINGLE_ARG_DECL);
+ virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL);
-protected:
- typedef TAO_ESF_Proxy_Collection<TYPE> COLLECTION;
+ /// Collection
+ COLLECTION* collection (void);
+protected:
/// The collection data structure that we add objects to.
COLLECTION* collection_;
};