Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

DEV.h

Go to the documentation of this file.
00001 /* -*- C++ -*- */
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    DEV.h
00006  *
00007  *  $Id: DEV.h,v 1.1.1.3 2001/12/04 14:33:00 chad 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_Stream
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_Stream, ACE_DEV_Addr
00037 #endif /* ACE_TEMPLATE_TYPEDEFS */
00038 
00039 /**
00040  * @class ACE_DEV
00041  *
00042  * @brief Defines the member functions for the base class of the
00043  * ACE_DEV abstraction.
00044  */
00045 class ACE_Export ACE_DEV : public ACE_IO_SAP
00046 {
00047 public:
00048   /// Close down the DEVICE
00049   int close (void);
00050 
00051   /// Dump the state of an object.
00052   void dump (void) const;
00053 
00054   /// Declare the dynamic allocation hooks.
00055   ACE_ALLOC_HOOK_DECLARE;
00056 
00057   /**
00058    * Disable signal <signum>
00059    * This is here to prevent Win32 from
00060    * disabling SPIPE using socket calls
00061    */
00062   int disable (int signum) const ;
00063 
00064 protected:
00065   /// Ensure that this class is an abstract base class
00066   ACE_DEV (void);
00067 };
00068 
00069 #if !defined (ACE_LACKS_INLINE_FUNCTIONS)
00070 #include "ace/DEV.i"
00071 #endif
00072 
00073 #include "ace/post.h"
00074 #endif /* ACE_DEV_H */

Generated on Mon Jun 16 11:19:33 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002