Container_T.h

Go to the documentation of this file.
00001 /* -*- C++ -*- */
00002 /**
00003  *  @file Container_T.h
00004  *
00005  *  Container_T.h,v 1.12 2006/03/14 06:14:34 jtc Exp
00006  *
00007  *  @author Pradeep Gore <pradeep@oomworks.com>
00008  *
00009  *
00010  */
00011 
00012 #ifndef TAO_Notify_CONTAINER_T_H
00013 #define TAO_Notify_CONTAINER_T_H
00014 
00015 #include /**/ "ace/pre.h"
00016 
00017 #include "orbsvcs/Notify/notify_serv_export.h"
00018 
00019 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00020 # pragma once
00021 #endif /* ACE_LACKS_PRAGMA_ONCE */
00022 
00023 #include "orbsvcs/ESF/ESF_Proxy_Collection.h"
00024 
00025 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00026 
00027 /**
00028  * @class TAO_Notify_Container_T
00029  *
00030  * @brief A template class that manages a collection.
00031  * TYPE = type of collection
00032  *
00033  */
00034 template <class TYPE>
00035 class TAO_Notify_Serv_Export TAO_Notify_Container_T
00036 {
00037   typedef TAO_ESF_Proxy_Collection<TYPE> COLLECTION;
00038  public:
00039 
00040   /// Constuctor
00041   TAO_Notify_Container_T (void);
00042 
00043   /// Destructor
00044   virtual ~TAO_Notify_Container_T ();
00045 
00046   /// Init this object.
00047   void init (ACE_ENV_SINGLE_ARG_DECL);
00048 
00049   /// Insert object to this container.
00050   virtual void insert (TYPE* type ACE_ENV_ARG_DECL);
00051 
00052   /// Remove type from container_
00053   virtual void remove (TYPE* type ACE_ENV_ARG_DECL);
00054 
00055   /// Shutdown
00056   virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL);
00057 
00058   /// Collection
00059   COLLECTION* collection (void);
00060 
00061 protected:
00062   /// The collection data structure that we add objects to.
00063   COLLECTION* collection_;
00064 };
00065 
00066 TAO_END_VERSIONED_NAMESPACE_DECL
00067 
00068 #if defined (__ACE_INLINE__)
00069 #include "orbsvcs/Notify/Container_T.inl"
00070 #endif /* __ACE_INLINE__ */
00071 
00072 #if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
00073 #include "orbsvcs/Notify/Container_T.cpp"
00074 #endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
00075 
00076 #if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
00077 #pragma implementation ("Container_T.cpp")
00078 #endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
00079 
00080 #include /**/ "ace/post.h"
00081 
00082 #endif /* TAO_Notify_CONTAINER_T_H */

Generated on Thu Nov 9 13:24:09 2006 for TAO_CosNotification by doxygen 1.3.6