Layout fixes (again IE .. :-( )
[senf.git] / Socket / FileHandle.hh
index 3bc6155..3bbbb9b 100644 (file)
@@ -20,6 +20,7 @@
 // Free Software Foundation, Inc.,
 // 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
+
 /** \mainpage The SENF Socket Library
 
 \section arch Overall Architecture
@@ -33,6 +34,7 @@
 
 // Custom includes
 #include <memory> // std::auto_ptr
+#include "Utils/SafeBool.hh"
 
 //#include "FileHandle.mpp"
 ///////////////////////////////hh.p////////////////////////////////////////
@@ -44,6 +46,7 @@ namespace lib {
     /** \brief
      */
     class FileHandle
+       : public SafeBool<FileHandle>
     {
     public:
         ///////////////////////////////////////////////////////////////////////////
@@ -77,8 +80,7 @@ namespace lib {
         bool eof() const;
         bool valid() const;
 
-        operator bool () const;
-        bool operator!() const;
+       bool boolean_test() const;
 
         int fd() const;
 
@@ -99,6 +101,8 @@ namespace lib {
         FileBody::ptr body_;
     };
 
+    int retrieve_filehandle(FileHandle handle);
+
 }}
 
 ///////////////////////////////hh.e////////////////////////////////////////