Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / ace / DEV.h
blob16f9423796d6a10a5d21ba7a78580e7197070e38
1 /* -*- C++ -*- */
3 //=============================================================================
4 /**
5 * @file DEV.h
7 * @author Gerhard Lenzer
8 */
9 //=============================================================================
12 #ifndef ACE_DEV_H
13 #define ACE_DEV_H
14 #include /**/ "ace/pre.h"
16 #include "ace/IO_SAP.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 # pragma once
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #include "ace/DEV_Addr.h"
24 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
26 /**
27 * @class ACE_DEV
29 * @brief Defines the member functions for the base class of the
30 * ACE_DEV abstraction.
32 class ACE_Export ACE_DEV : public ACE_IO_SAP
34 public:
35 /// Close down the DEVICE
36 int close ();
38 /// Dump the state of an object.
39 void dump () const;
41 /// Declare the dynamic allocation hooks.
42 ACE_ALLOC_HOOK_DECLARE;
44 /**
45 * Disable signal @a signum
46 * This is here to prevent Win32 from
47 * disabling SPIPE using socket calls
49 int disable (int signum) const ;
51 protected:
52 /// Ensure that this class is an abstract base class
53 ACE_DEV ();
56 ACE_END_VERSIONED_NAMESPACE_DECL
58 #if defined (__ACE_INLINE__)
59 #include "ace/DEV.inl"
60 #endif /* __ACE_INLINE__ */
62 #include /**/ "ace/post.h"
63 #endif /* ACE_DEV_H */