libXDispatch 0.5
Protected Member Functions
xdispatch::sourcetype Class Reference

Declares an abstract source type. More...

List of all members.

Protected Member Functions

 sourcetype ()
void ready (const any &=any())
 This method needs to be called every time your sourcetype is read.
virtual dispatch_source_t native ()
 Overload this method in case you are implementing a sourcetype based on an dispatch_source_t.

Detailed Description

Declares an abstract source type.

Subclass this type to implement custom source types. Whenever your type becomes ready and the source should dispatch the handler, simply call ready() with some data you want to make available via source::data() to your handler


Constructor & Destructor Documentation

xdispatch::sourcetype::sourcetype ( ) [protected]

Member Function Documentation

virtual dispatch_source_t xdispatch::sourcetype::native ( ) [protected, virtual]

Overload this method in case you are implementing a sourcetype based on an dispatch_source_t.

This way users can access the native object by using source::native().

By default this is returning NULL

void xdispatch::sourcetype::ready ( const any = any()) [protected]

This method needs to be called every time your sourcetype is read.

The passed data can later be obtained in the handler by using source::data()


The documentation for this class was generated from the following file:

Generated on Wed Feb 22 2012 19:54:06 for libXDispatch by Doxygen 1.7.4
Content © 2011-2012 MLBA (about | privacy) – Design © 2010-2012 Emzeat. All Rights reserved.