DEV.h

Go to the documentation of this file.
00001 /* -*- C++ -*- */
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    DEV.h
00006  *
00007  *  DEV.h,v 4.17 2005/10/28 16:14:52 ossama Exp
00008  *
00009  *  @author Gerhard Lenzer
00010  */
00011 //=============================================================================
00012 
00013 
00014 #ifndef ACE_DEV_H
00015 #define ACE_DEV_H
00016 #include /**/ "ace/pre.h"
00017 
00018 #include "ace/IO_SAP.h"
00019 
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 # pragma once
00022 #endif /* ACE_LACKS_PRAGMA_ONCE */
00023 
00024 #include "ace/DEV_Addr.h"
00025 
00026 // The following is necessary since many C++ compilers don't support
00027 // typedef'd types inside of classes used as formal template
00028 // arguments... ;-(.  Luckily, using the C++ preprocessor I can hide
00029 // most of this nastiness!
00030 
00031 #if defined (ACE_HAS_TEMPLATE_TYPEDEFS)
00032 #define ACE_DEV_CONNECTOR ACE_DEV_Connector
00033 #define ACE_DEV_STREAM ACE_DEV_IO
00034 #else /* TEMPLATES are broken (must be a cfront-based compiler...) */
00035 #define ACE_DEV_CONNECTOR ACE_DEV_Connector, ACE_DEV_Addr
00036 #define ACE_DEV_STREAM ACE_DEV_IO, ACE_DEV_Addr
00037 #endif /* ACE_TEMPLATE_TYPEDEFS */
00038 
00039 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00040 
00041 /**
00042  * @class ACE_DEV
00043  *
00044  * @brief Defines the member functions for the base class of the
00045  * ACE_DEV abstraction.
00046  */
00047 class ACE_Export ACE_DEV : public ACE_IO_SAP
00048 {
00049 public:
00050   /// Close down the DEVICE
00051   int close (void);
00052 
00053   /// Dump the state of an object.
00054   void dump (void) const;
00055 
00056   /// Declare the dynamic allocation hooks.
00057   ACE_ALLOC_HOOK_DECLARE;
00058 
00059   /**
00060    * Disable signal @a signum
00061    * This is here to prevent Win32 from
00062    * disabling SPIPE using socket calls
00063    */
00064   int disable (int signum) const ;
00065 
00066 protected:
00067   /// Ensure that this class is an abstract base class
00068   ACE_DEV (void);
00069 };
00070 
00071 ACE_END_VERSIONED_NAMESPACE_DECL
00072 
00073 #if defined (__ACE_INLINE__)
00074 #include "ace/DEV.inl"
00075 #endif /* __ACE_INLINE__ */
00076 
00077 #include /**/ "ace/post.h"
00078 #endif /* ACE_DEV_H */

Generated on Thu Nov 9 09:41:50 2006 for ACE by doxygen 1.3.6