3 //=============================================================================
5 * @file Monitor_Control_Action.h
7 * @author Jeff Parsons <j.parsons@vanderbilt.edu>
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)
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #if defined (ACE_HAS_MONITOR_FRAMEWORK) && (ACE_HAS_MONITOR_FRAMEWORK == 1)
24 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
28 namespace Monitor_Control
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
>
43 /// To be implemented by the concrete derived class.
44 virtual void execute (const char* command
= 0) = 0;
46 /// Refcounting methods.
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