00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef MONITOR_CONTROL_ACTION_H
00014 #define MONITOR_CONTROL_ACTION_H
00015
00016 #include "ace/pre.h"
00017
00018 #include "ace/Refcountable_T.h"
00019
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 #pragma once
00022 #endif
00023
00024 #if defined (ACE_HAS_MONITOR_FRAMEWORK) && (ACE_HAS_MONITOR_FRAMEWORK == 1)
00025
00026 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00027
00028 namespace ACE
00029 {
00030 namespace Monitor_Control
00031 {
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041 class ACE_Export Control_Action
00042 : private ACE_Refcountable_T<ACE_SYNCH_MUTEX>
00043 {
00044 public:
00045
00046 virtual void execute (const char* command = 0) = 0;
00047
00048
00049 void add_ref (void);
00050 void remove_ref (void);
00051
00052 protected:
00053 Control_Action (void);
00054 virtual ~Control_Action (void);
00055 };
00056 }
00057 }
00058
00059 ACE_END_VERSIONED_NAMESPACE_DECL
00060
00061 #endif
00062
00063 #include "ace/post.h"
00064
00065 #endif // MONITOR_CONTROL_ACTION_H