00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 #ifndef ACE_IO_SAP_H
00015 #define ACE_IO_SAP_H
00016 #include  "ace/pre.h"
00017 
00018 #include "ace/Flag_Manip.h"
00019 #include "ace/os_include/sys/os_types.h"
00020 
00021 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00022 # pragma once
00023 #endif 
00024 
00025 
00026 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00027 
00028 
00029 
00030 
00031 
00032 
00033 
00034 class ACE_Export ACE_IO_SAP
00035 {
00036 public:
00037   enum
00038   {
00039 
00040     INVALID_HANDLE = -1
00041   };
00042 
00043 
00044   ~ACE_IO_SAP (void);
00045 
00046 
00047   int control (int cmd, void *) const;
00048 
00049   
00050 
00051 
00052 
00053 
00054 
00055 
00056   int enable (int value) const;
00057 
00058 
00059 
00060 
00061 
00062 
00063   int disable (int value) const;
00064 
00065 
00066   ACE_HANDLE get_handle (void) const;
00067 
00068 
00069   void set_handle (ACE_HANDLE handle);
00070 
00071 
00072   void dump (void) const;
00073 
00074 
00075   ACE_ALLOC_HOOK_DECLARE;
00076 
00077 protected:
00078 
00079   ACE_IO_SAP (void);
00080 
00081 private:
00082 
00083   ACE_HANDLE handle_;
00084 
00085 
00086   static pid_t pid_;
00087 };
00088 
00089 ACE_END_VERSIONED_NAMESPACE_DECL
00090 
00091 #if defined (__ACE_INLINE__)
00092 #include "ace/IO_SAP.inl"
00093 #endif 
00094 
00095 #include  "ace/post.h"
00096 #endif