00001
00002
00003
00004
00005
00006
00007
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
00022
00023 #include "orbsvcs/ESF/ESF_Proxy_Collection.h"
00024
00025 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00026
00027
00028
00029
00030
00031
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
00041 TAO_Notify_Container_T (void);
00042
00043
00044 virtual ~TAO_Notify_Container_T ();
00045
00046
00047 void init (ACE_ENV_SINGLE_ARG_DECL);
00048
00049
00050 virtual void insert (TYPE* type ACE_ENV_ARG_DECL);
00051
00052
00053 virtual void remove (TYPE* type ACE_ENV_ARG_DECL);
00054
00055
00056 virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL);
00057
00058
00059 COLLECTION* collection (void);
00060
00061 protected:
00062
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
00071
00072 #if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
00073 #include "orbsvcs/Notify/Container_T.cpp"
00074 #endif
00075
00076 #if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
00077 #pragma implementation ("Container_T.cpp")
00078 #endif
00079
00080 #include "ace/post.h"
00081
00082 #endif