diff options
Diffstat (limited to 'ACE/ace/Monitor_Control/Null_Network_Interface_Monitor.h')
-rw-r--r-- | ACE/ace/Monitor_Control/Null_Network_Interface_Monitor.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/ACE/ace/Monitor_Control/Null_Network_Interface_Monitor.h b/ACE/ace/Monitor_Control/Null_Network_Interface_Monitor.h new file mode 100644 index 00000000000..3d6ea0a4064 --- /dev/null +++ b/ACE/ace/Monitor_Control/Null_Network_Interface_Monitor.h @@ -0,0 +1,61 @@ +// -*- C++ -*- + +//============================================================================= +/** + * @file Null_Network_Interface_Monitor.h + * + * $Id$ + * + * @author Jeff Parsons <j.parsons@vanderbilt.edu> + */ +//============================================================================= + +#ifndef NULL_NETWORK_INTERFACE_MONITOR_H +#define NULL_NETWORK_INTERFACE_MONITOR_H + +#include /**/ "ace/pre.h" + +#include "ace/Basic_Types.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +#pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "ace/Monitor_Control/Monitor_Control_export.h" + +ACE_BEGIN_VERSIONED_NAMESPACE_DECL + +namespace ACE +{ + namespace Monitor_Control + { + /** + * @class Null_Network_Interface_Monitor + * + * @brief Mixin class for network interface monitors compiled on + * platforms without any native OS monitor support, or on + a platform with such support when the platform-specific + OS monitor flag is not set. + */ + class MONITOR_CONTROL_Export Null_Network_Interface_Monitor + { + protected: + Null_Network_Interface_Monitor (void); + + /// Platform-specific implementation. + void update_i (void); + + /// Platform-specific reset. + void clear_impl (void); + + protected: + ACE_UINT64 value_; + }; + } +} + +ACE_END_VERSIONED_NAMESPACE_DECL + +#include /**/ "ace/post.h" + +#endif // NULL_NETWORK_INTERFACE_MONITOR_H |