00001 // -*- c++ -*- 00002 //------------------------------------------------------------------------------ 00003 // MaskSet.h 00004 //------------------------------------------------------------------------------ 00005 // Copyright (c) 1999 by Vladislav Grinchenko 00006 // 00007 // This library is free software; you can redistribute it and/or 00008 // modify it under the terms of the GNU Library General Public 00009 // License as published by the Free Software Foundation; either 00010 // version 2 of the License, or (at your option) any later version. 00011 //------------------------------------------------------------------------------ 00012 #ifndef MASK_SET_H 00013 #define MASK_SET_H 00014 00015 #include "assa/FdSet.h" 00016 00017 namespace ASSA { 00018 00024 class MaskSet 00025 { 00026 public: 00028 FdSet m_rset; 00029 00031 FdSet m_wset; 00032 00034 FdSet m_eset; 00035 00036 public: 00038 void reset (void); 00039 00041 void dump (void); 00042 }; 00043 00044 inline void 00045 MaskSet:: 00046 reset (void) 00047 { 00048 m_rset.reset (); 00049 m_wset.reset (); 00050 m_eset.reset (); 00051 } 00052 00053 inline void 00054 MaskSet:: 00055 dump (void) 00056 { 00057 DL((REACTTRACE,"--------------------\n")); 00058 DL((REACTTRACE,"Read FDs set:\n")); 00059 m_rset.dump (); 00060 00061 DL((REACTTRACE,"Write FDs set:\n")); 00062 m_wset.dump (); 00063 00064 DL((REACTTRACE,"Except FDs set:\n")); 00065 m_eset.dump (); 00066 DL((REACTTRACE,"--------------------\n")); 00067 } 00068 00069 } // end namespace ASSA 00070 00071 #endif /* MASK_SET_H */