Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / ACE / examples / Monitor / MC_Test_Utilities.h
blob74d47a0c21bdb753a2d93a32a9a25a2b4c5f24a6
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file MC_Test_Utilities.h
7 * @author Jeff Parsons <j.parsons@vanderbilt.edu>
8 */
9 //=============================================================================
11 #ifndef MC_TEST_UTILITIES_H
12 #define MC_TEST_UTILITIES_H
14 #include /**/ "ace/pre.h"
16 #if !defined (ACE_LACKS_PRAGMA_ONCE)
17 #pragma once
18 #endif /* ACE_LACKS_PRAGMA_ONCE */
20 #include "ace/Monitor_Control_Types.h"
22 #include "MC_Test_Utilities_export.h"
24 #if defined (ACE_HAS_MONITOR_FRAMEWORK) && (ACE_HAS_MONITOR_FRAMEWORK == 1)
26 using namespace ACE_VERSIONED_NAMESPACE_NAME::ACE::Monitor_Control;
28 #endif /* ACE_HAS_MONITOR_FRAMEWORK==1 */
30 /**
31 * @struct MC_Test_Utilities
33 * @brief Container for utility methods that display the output
34 * of the various OS monitors in a friendly format.
36 struct MC_TEST_UTILITIES_Export MC_Test_Utilities
38 #if defined (ACE_HAS_MONITOR_FRAMEWORK) && (ACE_HAS_MONITOR_FRAMEWORK == 1)
40 static void display_timestamp (const Monitor_Control_Types::Data &data);
41 static void display_num_threads (const Monitor_Control_Types::Data &data);
42 static void display_mq_size (const Monitor_Control_Types::Data &data);
43 static void display_memory_usage (const Monitor_Control_Types::Data &data);
44 static void display_cpu_load (const Monitor_Control_Types::Data &data);
45 static void display_bytes_sent (const Monitor_Control_Types::Data &data);
46 static void display_bytes_received (const Monitor_Control_Types::Data &data);
47 static void display_packets_sent (const Monitor_Control_Types::Data &data);
48 static void display_packets_received (const Monitor_Control_Types::Data &data);
50 #endif /* ACE_HAS_MONITOR_FRAMEWORK==1 */
53 #include /**/ "ace/post.h"
55 #endif /* MC_TEST_UTILITIES_H */