Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / Time_Policy_Strategy.h
blob2322ffa5a2e7971c9c63a221900a47f6537d4ec5
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Time_Policy_Strategy.h
7 * @author Martin Corino <mcorino@remedy.nl>
8 */
9 //=============================================================================
11 #ifndef TIME_POLICY_STRATEGY_H
12 #define TIME_POLICY_STRATEGY_H
14 #include /**/ "ace/pre.h"
16 #include /**/ "tao/TAO_Export.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 # pragma once
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #include "tao/orbconf.h"
24 #if (TAO_HAS_TIME_POLICY == 1)
26 #include "tao/Versioned_Namespace.h"
28 #include "ace/Service_Object.h"
29 #include "ace/Timer_Queuefwd.h"
30 #include "ace/Time_Policy.h"
32 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
34 /**
35 * @class TAO_Time_Policy_Strategy
37 * @brief Abstract base class for time policy strategy services.
39 class TAO_Export TAO_Time_Policy_Strategy
40 : public ACE_Service_Object
42 public:
43 virtual ~TAO_Time_Policy_Strategy () {}
45 virtual ACE_Timer_Queue * create_timer_queue () = 0;
47 virtual void destroy_timer_queue (ACE_Timer_Queue *tmq) = 0;
49 virtual ACE_Dynamic_Time_Policy_Base * get_time_policy () = 0;
52 TAO_END_VERSIONED_NAMESPACE_DECL
54 #endif /* TAO_HAS_TIME_POLICY */
56 #include /**/ "ace/post.h"
58 #endif /* TIME_POLICY_STRATEGY_H */