X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPPI%2FIOEvent.hh;h=b31356f4d3f8e494b3cda466bf0719c3d7f4844a;hb=7ee689fe38d66aa3a0004d55e8708750d35adc0b;hp=32c699fa899d6b390d9c05c2627c5d16cb7dd3e6;hpb=82e794070d4f3ae8aacb1827b21a93b9d48ce57f;p=senf.git diff --git a/senf/PPI/IOEvent.hh b/senf/PPI/IOEvent.hh index 32c699f..b31356f 100644 --- a/senf/PPI/IOEvent.hh +++ b/senf/PPI/IOEvent.hh @@ -32,7 +32,7 @@ #include //#include "IOEvent.mpp" -///////////////////////////////hh.p//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// namespace senf { namespace ppi { @@ -54,7 +54,7 @@ namespace ppi { type of event is specified using the \a events mask with values from EventFlags. There are two types of flags: - + \li Event flags (\ref Read, \ref Prio, \ref Write) specify the type of event. The callback will be called whenever one of the specified events occurs on the filehandle \li Error flags (\ref Hup, \ref Err) specify some type of error condition on the @@ -70,13 +70,13 @@ namespace ppi { : public EventImplementation { public: - /////////////////////////////////////////////////////////////////////////// + //-//////////////////////////////////////////////////////////////////////// // Types // This is stupid, however there is no way to import the Scheduler::EventId enum together // with the enumeration symbols - enum EventFlags { + enum EventFlags { Read = scheduler::FdEvent::EV_READ /**< FileHandle is readable */ , Prio = scheduler::FdEvent::EV_PRIO /**< FileHandle priority data is readable */ , Write = scheduler::FdEvent::EV_WRITE /**< FileHandle is writable */ @@ -84,17 +84,17 @@ namespace ppi { , Err = scheduler::FdEvent::EV_ERR /**< Some other error condition on FileHandle */ }; - /////////////////////////////////////////////////////////////////////////// + //-//////////////////////////////////////////////////////////////////////// ///\name Structors and default members - ///@{ + //\{ IOEvent(); template IOEvent(Handle handle, unsigned events); - ///@} - /////////////////////////////////////////////////////////////////////////// + //\} + //-//////////////////////////////////////////////////////////////////////// template void set(Handle handle, unsigned events); @@ -112,17 +112,17 @@ namespace ppi { private: virtual void v_enable(); virtual void v_disable(); - + void cb(int event); int fd_; scheduler::FdEvent event_; }; - + }} -///////////////////////////////hh.e//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// #include "IOEvent.cci" #include "IOEvent.ct" #include "IOEvent.cti"