Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / ACE / ace / Monitor_Control / Monitor_Query.h
blob2cfe0461b9dca83119599caf4dea6e20edab410f
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Monitor_Query.h
7 * @author Jeff Parsons <j.parsons@vanderbilt.edu>
8 */
9 //=============================================================================
11 #ifndef MONITOR_QUERY_H
12 #define MONITOR_QUERY_H
14 #include /**/ "ace/pre.h"
16 #include "ace/Event_Handler.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 #include "ace/Monitor_Control/Monitor_Control_export.h"
26 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
28 namespace ACE
30 namespace Monitor_Control
32 /**
33 * @class Monitor_Point_Auto_Query
35 * @brief Automates periodic querying of monitor point classes.
38 class MONITOR_CONTROL_Export Monitor_Point_Auto_Query
39 : public ACE_Event_Handler
41 public:
42 /// Default constructor
43 Monitor_Point_Auto_Query ();
45 /// Override of ACE base class method.
46 virtual int handle_timeout (const ACE_Time_Value& current,
47 const void* monitor_query);
50 /**
51 * @class Monitor_Query
53 * @brief Handles queries for a specific monitor point, and
54 * evaluates its constraint(s) with each query.
57 class MONITOR_CONTROL_Export Monitor_Query
59 public:
60 Monitor_Query (const char* monitor_name);
62 void query ();
64 private:
65 Monitor_Base* monitor_;
70 ACE_END_VERSIONED_NAMESPACE_DECL
72 #endif /* ACE_HAS_MONITOR_FRAMEWORK==1 */
74 #include /**/ "ace/post.h"
76 #endif // MONITOR_QUERY_H