// 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 <memory> // 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<FileHandle>
{
public:
///////////////////////////////////////////////////////////////////////////
bool eof() const;
bool valid() const;
- operator bool () const;
- bool operator!() const;
+ bool boolean_test() const;
int fd() const;
FileBody::ptr body_;
};
-}}
+ int retrieve_filehandle(FileHandle handle);
+
+}
///////////////////////////////hh.e////////////////////////////////////////
#include "FileHandle.cci"
\f
// Local Variables:
// mode: c++
-// c-file-style: "satcom"
+// c-file-style: "senf"
// End: