00001 /* -*- C++ -*- */ 00002 /** 00003 * @file FilterFactory.h 00004 * 00005 * $Id: FilterFactory.h 84820 2009-03-13 23:39:08Z mesnier_p $ 00006 * 00007 * @author Pradeep Gore <pradeep@oomworks.com> 00008 * 00009 * 00010 */ 00011 00012 #ifndef TAO_Notify_FILTERFACTORY_H 00013 #define TAO_Notify_FILTERFACTORY_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 "ace/Service_Object.h" 00024 00025 #include "tao/PortableServer/PortableServer.h" 00026 #include "Topology_Object.h" 00027 00028 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00029 00030 /** 00031 * @class TAO_Notify_FilterFactory 00032 * 00033 * @brief Service Object to obtain a CosNotifyFilter::FilterFactory reference. 00034 * 00035 */ 00036 class TAO_Notify_Serv_Export TAO_Notify_FilterFactory 00037 : public ACE_Service_Object, public TAO_Notify::Topology_Object 00038 { 00039 public: 00040 00041 /// Factory method to create a FilterFactory reference 00042 /// The Factory is activated in the default POA. The filters created are activated in the <filter_poa>. 00043 virtual CosNotifyFilter::FilterFactory_ptr create ( 00044 PortableServer::POA_ptr filter_poa) = 0; 00045 virtual void destroy (void) = 0; 00046 00047 virtual TAO_Notify_Object::ID get_filter_id (CosNotifyFilter::Filter_ptr filter) = 0; 00048 virtual CosNotifyFilter::Filter_ptr get_filter (const TAO_Notify_Object::ID& id) = 0; 00049 }; 00050 00051 TAO_END_VERSIONED_NAMESPACE_DECL 00052 00053 #include /**/ "ace/post.h" 00054 00055 #endif /* TAO_Notify_FILTERFACTORY_H */