00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 #ifndef ACE_MULTIPLEXOR_H
00019 #define ACE_MULTIPLEXOR_H
00020 #include  "ace/pre.h"
00021 
00022 #include  "ace/config-all.h"
00023 
00024 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00025 # pragma once
00026 #endif 
00027 
00028 #if defined (ACE_HAS_THREADS)
00029 
00030 #if 0
00031 
00032 #include "ace/Module.h"
00033 #include "ace/Map_Manager.h"
00034 
00035 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00036 
00037 
00038 
00039 
00040 
00041 
00042 class ACE_Export ACE_Driver
00043 {
00044 public:
00045   ACE_Driver (void);
00046   ~ACE_Driver (void);
00047 
00048   virtual int link_from_below (ACE_Module *mod);
00049   virtual ACE_Module *alloc_module (ACE_Driver *) = 0;
00050   virtual int unlink_from_below (ACE_Module *);
00051 };
00052 
00053 
00054 
00055 
00056 
00057 
00058 class ACE_Export ACE_Multiplexor
00059 {
00060 public:
00061   
00062   ACE_Multiplexor (void);
00063   ~ACE_Multiplexor (void);
00064 
00065   virtual int link_from_above (ACE_Driver &ld);
00066   virtual int link_from_above (ACE_Multiplexor &lm);
00067   virtual int link_from_below (ACE_Module *mod);
00068   virtual ACE_Module *alloc_lower_module (ACE_Multiplexor *) = 0;
00069   virtual ACE_Module *alloc_upper_module (ACE_Multiplexor *) = 0;
00070 
00071   virtual int unlink_from_above (ACE_Driver &ld);
00072   virtual int unlink_from_above (ACE_Multiplexor &lm);
00073   virtual int unlink_from_below (ACE_Module *mod);
00074 };
00075 
00076 ACE_END_VERSIONED_NAMESPACE_DECL
00077 
00078 #if defined (__ACE_INLINE__)
00079 #include "ace/Multiplexor.inl"
00080 #endif 
00081 
00082 #endif 
00083 
00084 #endif 
00085 #include  "ace/post.h"
00086 #endif