X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FFileHandle.hh;h=febfa011c702da129bb4446a7a64216d9f1af8af;hb=b2d64a4084a053f0887c7845bb81074e0cd3a855;hp=3bc615551db44fef6e12fbaf7e287f760036406f;hpb=c18277256e8c1ab1cf050057b534dadfcbae19f2;p=senf.git diff --git a/Socket/FileHandle.hh b/Socket/FileHandle.hh index 3bc6155..febfa01 100644 --- a/Socket/FileHandle.hh +++ b/Socket/FileHandle.hh @@ -33,6 +33,7 @@ // Custom includes #include // std::auto_ptr +#include "Utils/SafeBool.hh" //#include "FileHandle.mpp" ///////////////////////////////hh.p//////////////////////////////////////// @@ -44,6 +45,7 @@ namespace lib { /** \brief */ class FileHandle + : public SafeBool { public: /////////////////////////////////////////////////////////////////////////// @@ -77,8 +79,7 @@ namespace lib { bool eof() const; bool valid() const; - operator bool () const; - bool operator!() const; + bool boolean_test() const; int fd() const; @@ -99,6 +100,8 @@ namespace lib { FileBody::ptr body_; }; + int retrieve_filehandle(FileHandle handle); + }} ///////////////////////////////hh.e////////////////////////////////////////