Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / Monitor_Control / Bytes_Sent_Monitor.h
blob8672d6749bf88de858aa1ccb9fb4102b8960a157
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Bytes_Sent_Monitor.h
7 * @author Jeff Parsons <j.parsons@vanderbilt.edu>
8 */
9 //=============================================================================
11 #ifndef BYTES_SENT_MONITOR_H
12 #define BYTES_SENT_MONITOR_H
14 #include /**/ "ace/pre.h"
16 #include "ace/Monitor_Base.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 #if defined (ACE_HAS_PDH_H) && !defined (ACE_LACKS_PDH_H)
25 #include "ace/Monitor_Control/Windows_Multi_Instance_Monitor.h"
26 #elif defined (ACE_LINUX)
27 #include "ace/Monitor_Control/Linux_Network_Interface_Monitor.h"
28 #elif defined (__FreeBSD__) || defined (__Lynx__)
29 #include "ace/Monitor_Control/FreeBSD_Network_Interface_Monitor.h"
30 #elif defined (__NetBSD__) || defined (__OpenBSD__)
31 #include "ace/Monitor_Control/BSD_Network_Interface_Monitor.h"
32 #else
33 #include "ace/Monitor_Control/Null_Network_Interface_Monitor.h"
34 #endif
36 #include "ace/Monitor_Control/Monitor_Control_export.h"
38 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
40 namespace ACE
42 namespace Monitor_Control
44 /**
45 * @class Bytes_Sent_Monitor
47 * @brief Monitors total bytes sent over all network interfaces.
49 class MONITOR_CONTROL_Export Bytes_Sent_Monitor
50 : public Monitor_Base
51 #if defined (ACE_HAS_WIN32_PDH)
52 , public Windows_Multi_Instance_Monitor
53 #elif defined (ACE_LINUX)
54 , public Linux_Network_Interface_Monitor
55 #elif defined (__NetBSD__) || defined (__OpenBSD__)
56 , public BSD_Network_Interface_Monitor
57 #elif defined (__FreeBSD__) || defined (__Lynx__)
58 , public FreeBSD_Network_Interface_Monitor
59 #else
60 , public Null_Network_Interface_Monitor
61 #endif
63 public:
64 Bytes_Sent_Monitor (const char* name);
66 /// Implementation of the pure virtual method.
67 virtual void update ();
69 /// Stores the default name, used if none is supplied by the user.
70 static const char* default_name ();
72 private:
73 /// Overridden reset, calls platform-specific reset.
74 virtual void clear_i ();
76 private:
77 static const char* default_name_;
82 ACE_END_VERSIONED_NAMESPACE_DECL
84 #endif /* ACE_HAS_MONITOR_FRAMEWORK==1 */
86 #include /**/ "ace/post.h"
88 #endif // BYTESSENTMONITOR_H