X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FFileHandle.hh;h=febfa011c702da129bb4446a7a64216d9f1af8af;hb=b2d64a4084a053f0887c7845bb81074e0cd3a855;hp=1f29b893e7aeb7efbf9aeb8b1625d322af7428e2;hpb=c52cd7d87dbb525c1267aad27391b8b7365dbb57;p=senf.git diff --git a/Socket/FileHandle.hh b/Socket/FileHandle.hh index 1f29b89..febfa01 100644 --- a/Socket/FileHandle.hh +++ b/Socket/FileHandle.hh @@ -20,11 +20,20 @@ // Free Software Foundation, Inc., // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +/** \mainpage The SENF Socket Library + +\section arch Overall Architecture + +\image html "../../SocketLibrary-classes.png" Class Diagram + + */ + #ifndef HH_FileHandle_ #define HH_FileHandle_ 1 // Custom includes #include // std::auto_ptr +#include "Utils/SafeBool.hh" //#include "FileHandle.mpp" ///////////////////////////////hh.p//////////////////////////////////////// @@ -36,6 +45,7 @@ namespace lib { /** \brief */ class FileHandle + : public SafeBool { public: /////////////////////////////////////////////////////////////////////////// @@ -69,8 +79,7 @@ namespace lib { bool eof() const; bool valid() const; - operator bool () const; - bool operator!() const; + bool boolean_test() const; int fd() const; @@ -91,6 +100,8 @@ namespace lib { FileBody::ptr body_; }; + int retrieve_filehandle(FileHandle handle); + }} ///////////////////////////////hh.e////////////////////////////////////////