summaryrefslogtreecommitdiff
path: root/ace/Monitor_Control/Null_Network_Interface_Monitor.h
blob: 3d6ea0a40649786a43723ee3dba643b073f81274 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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