[7297] Fixed profession spells sorting in trainer spell list at client.
[getmangos.git] / dep / ACE_wrappers / ace / Monitor_Control_Action.h
blob7831aabd4c1fa3b1362d2d8bed1ad75d243053d9
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Monitor_Control_Action.h
7 * $Id: Monitor_Control_Action.h 81691 2008-05-14 11:09:21Z johnnyw $
9 * @author Jeff Parsons <j.parsons@vanderbilt.edu>
11 //=============================================================================
13 #ifndef MONITOR_CONTROL_ACTION_H
14 #define MONITOR_CONTROL_ACTION_H
16 #include /**/ "ace/pre.h"
18 #include "ace/Refcountable_T.h"
20 #if !defined (ACE_LACKS_PRAGMA_ONCE)
21 #pragma once
22 #endif /* ACE_LACKS_PRAGMA_ONCE */
24 #if defined (ACE_HAS_MONITOR_FRAMEWORK) && (ACE_HAS_MONITOR_FRAMEWORK == 1)
26 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
28 namespace ACE
30 namespace Monitor_Control
32 /**
33 * @class ControlAction
35 * @brief Base class for control actions initiated by the
36 * application or by constraint evaluation trigger.
38 * This class is extended by the application developer or
39 * by the MC service itself to create a concrete class.
41 class ACE_Export Control_Action
42 : private ACE_Refcountable_T<ACE_SYNCH_MUTEX>
44 public:
45 /// To be implemented by the concrete derived class.
46 virtual void execute (const char* command = 0) = 0;
48 /// Refcounting methods.
49 void add_ref (void);
50 void remove_ref (void);
52 protected:
53 Control_Action (void);
54 virtual ~Control_Action (void);
59 ACE_END_VERSIONED_NAMESPACE_DECL
61 #endif /* ACE_HAS_MONITOR_FRAMEWORK==1 */
63 #include /**/ "ace/post.h"
65 #endif // MONITOR_CONTROL_ACTION_H