00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file Null_Network_Interface_Monitor.h 00006 * 00007 * $Id: Null_Network_Interface_Monitor.h 82115 2008-06-20 20:43:13Z parsons $ 00008 * 00009 * @author Jeff Parsons <j.parsons@vanderbilt.edu> 00010 */ 00011 //============================================================================= 00012 00013 #ifndef NULL_NETWORK_INTERFACE_MONITOR_H 00014 #define NULL_NETWORK_INTERFACE_MONITOR_H 00015 00016 #include /**/ "ace/pre.h" 00017 00018 #include "ace/Basic_Types.h" 00019 00020 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00021 #pragma once 00022 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00023 00024 #include "ace/Monitor_Control/Monitor_Control_export.h" 00025 00026 ACE_BEGIN_VERSIONED_NAMESPACE_DECL 00027 00028 namespace ACE 00029 { 00030 namespace Monitor_Control 00031 { 00032 /** 00033 * @class Null_Network_Interface_Monitor 00034 * 00035 * @brief Mixin class for network interface monitors compiled on 00036 * platforms without any native OS monitor support, or on 00037 a platform with such support when the platform-specific 00038 OS monitor flag is not set. 00039 */ 00040 class MONITOR_CONTROL_Export Null_Network_Interface_Monitor 00041 { 00042 protected: 00043 Null_Network_Interface_Monitor (void); 00044 00045 /// Platform-specific implementation. 00046 void update_i (void); 00047 00048 /// Platform-specific reset. 00049 void clear_impl (void); 00050 00051 protected: 00052 ACE_UINT64 value_; 00053 }; 00054 } 00055 } 00056 00057 ACE_END_VERSIONED_NAMESPACE_DECL 00058 00059 #include /**/ "ace/post.h" 00060 00061 #endif // NULL_NETWORK_INTERFACE_MONITOR_H