Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / Monitor_Control_Action.h
blob8f061459ffb3e39d4041b045a4ef145f7842bdfc
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Monitor_Control_Action.h
7 * @author Jeff Parsons <j.parsons@vanderbilt.edu>
8 */
9 //=============================================================================
11 #ifndef MONITOR_CONTROL_ACTION_H
12 #define MONITOR_CONTROL_ACTION_H
14 #include /**/ "ace/pre.h"
16 #include "ace/Refcountable_T.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 #pragma once
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #if defined (ACE_HAS_MONITOR_FRAMEWORK) && (ACE_HAS_MONITOR_FRAMEWORK == 1)
24 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
26 namespace ACE
28 namespace Monitor_Control
30 /**
31 * @class ControlAction
33 * @brief Base class for control actions initiated by the
34 * application or by constraint evaluation trigger.
36 * This class is extended by the application developer or
37 * by the MC service itself to create a concrete class.
39 class ACE_Export Control_Action
40 : private ACE_Refcountable_T<ACE_SYNCH_MUTEX>
42 public:
43 /// To be implemented by the concrete derived class.
44 virtual void execute (const char* command = 0) = 0;
46 /// Refcounting methods.
47 void add_ref ();
48 void remove_ref ();
50 protected:
51 Control_Action ();
52 ~Control_Action () override = default;
57 ACE_END_VERSIONED_NAMESPACE_DECL
59 #endif /* ACE_HAS_MONITOR_FRAMEWORK==1 */
61 #include /**/ "ace/post.h"
63 #endif // MONITOR_CONTROL_ACTION_H