QDescriptorList.hh

Go to the documentation of this file.
00001 
00002 #ifndef _DESCRIPTOR_LIST_HH_
00003 #define _DESCRIPTOR_LIST_HH_
00004 
00005 #include <sys/poll.h>
00006 
00007 #include "QCuore.hh"
00008 
00009 class QFileDescriptor;
00010 
00019 class QDescriptorList 
00020 {
00021 public:
00022    
00024   QDescriptorList ();
00025    
00027   virtual ~QDescriptorList() {}
00028    
00030   void AddDescriptor(QFileDescriptor* ptr);
00031   
00038   void DelDescriptor(int index);
00039   
00043   QFileDescriptor* operator [] (int);
00044   
00052   struct pollfd* GetPollFds();
00053   
00055    int Elements() const { return fElements; }
00056 
00057 private:
00058 
00059    QFileDescriptor *fHead, *fTail;
00060    int fElements;
00061 };
00062 #endif // _DESCRIPTOR_LIST_HH_

Generated on Tue Nov 16 10:49:55 2010 for CUORE Software by  doxygen 1.5.6