X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FFileHandle.hh;h=963689d9bc67b0002f15f3eef0c541a578935227;hb=ac6a813d9d99f7add4e13aff7a4bcd314d5604a6;hp=3bc615551db44fef6e12fbaf7e287f760036406f;hpb=c18277256e8c1ab1cf050057b534dadfcbae19f2;p=senf.git diff --git a/Socket/FileHandle.hh b/Socket/FileHandle.hh index 3bc6155..963689d 100644 --- a/Socket/FileHandle.hh +++ b/Socket/FileHandle.hh @@ -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,17 +34,19 @@ // Custom includes #include // std::auto_ptr +#include "Utils/SafeBool.hh" //#include "FileHandle.mpp" ///////////////////////////////hh.p//////////////////////////////////////// #include "FileHandle.ih" -namespace satcom { -namespace lib { +namespace senf { + /** \brief */ class FileHandle + : public SafeBool { 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,7 +101,9 @@ namespace lib { FileBody::ptr body_; }; -}} + int retrieve_filehandle(FileHandle handle); + +} ///////////////////////////////hh.e//////////////////////////////////////// #include "FileHandle.cci" @@ -110,5 +114,5 @@ namespace lib { // Local Variables: // mode: c++ -// c-file-style: "satcom" +// c-file-style: "senf" // End: