00001 // -*- C++ -*- 00002 /** 00003 * @file EC_Sched_Factory.h 00004 * 00005 * EC_Sched_Factory.h,v 1.7 2006/03/14 06:14:25 jtc Exp 00006 * 00007 * @author Carlos O'Ryan (coryan@cs.wustl.edu) 00008 * 00009 * Based on previous work by Tim Harrison (harrison@cs.wustl.edu) and 00010 * other members of the DOC group. More details can be found in: 00011 * 00012 * http://doc.ece.uci.edu/~coryan/EC/index.html 00013 */ 00014 00015 #ifndef TAO_EC_SCHED_FACTORY_H 00016 #define TAO_EC_SCHED_FACTORY_H 00017 #include /**/ "ace/pre.h" 00018 00019 #include "orbsvcs/Event/EC_Default_Factory.h" 00020 00021 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00022 # pragma once 00023 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00024 00025 #include "orbsvcs/Event/sched_event_export.h" 00026 00027 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00028 00029 /** 00030 * @class TAO_EC_Sched_Factory 00031 * 00032 * @brief Extend the default factory to support scheduling 00033 * 00034 */ 00035 class TAO_RTSchedEvent_Export TAO_EC_Sched_Factory : public TAO_EC_Default_Factory 00036 { 00037 public: 00038 /// Constructor 00039 TAO_EC_Sched_Factory (void); 00040 00041 /// destructor... 00042 virtual ~TAO_EC_Sched_Factory (void); 00043 00044 // = The Service_Object entry points 00045 virtual int init (int argc, ACE_TCHAR* argv[]); 00046 virtual int fini (void); 00047 00048 // = The EC_Factory methods 00049 virtual TAO_EC_Dispatching* 00050 create_dispatching (TAO_EC_Event_Channel_Base*); 00051 virtual TAO_EC_Filter_Builder* 00052 create_filter_builder (TAO_EC_Event_Channel_Base*); 00053 virtual TAO_EC_Timeout_Generator* 00054 create_timeout_generator (TAO_EC_Event_Channel_Base*); 00055 virtual TAO_EC_Scheduling_Strategy* 00056 create_scheduling_strategy (TAO_EC_Event_Channel_Base*); 00057 00058 private: 00059 }; 00060 00061 TAO_END_VERSIONED_NAMESPACE_DECL 00062 00063 #if defined (__ACE_INLINE__) 00064 #include "orbsvcs/Event/EC_Sched_Factory.i" 00065 #endif /* __ACE_INLINE__ */ 00066 00067 ACE_STATIC_SVC_DECLARE (TAO_EC_Sched_Factory) 00068 ACE_FACTORY_DECLARE (TAO_RTSchedEvent, TAO_EC_Sched_Factory) 00069 00070 #include /**/ "ace/post.h" 00071 #endif /* TAO_EC_SCHED_FACTORY_H */