Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

iocallback(3i) [debian man page]

IOCallback(3I)						    InterViews Reference Manual 					    IOCallback(3I)

NAME
IOCallback - generic callback class for readers, writers, or I/O exception handlers SYNOPSIS
#include <Dispatch/iocallback.h> DESCRIPTION
For convenience, the macros defined in iocallback.h allow the user to define an iohandler which does nothing more than call an arbitrary object's member function. The actual code to read data from a file descriptor, write data to a file descriptor, handle an I/O exception on a file descriptor, or handle a timer's expiration can reside in any arbitrary class rather than in the iohandler. MACROS
declareIOCallback(T) Declare an iocallback type for the given class type T. implementIOCallback(T) Emit code at this point to implement the iocallback's member functions. IOCallback(T)* instance = new IOCallback(T)(...) Define an instance of the iocallback type for the given class type T. CONSTRUCTORS
typedef int T::IOReady(T)(int fd) typedef void T::IOTimer(T)(long sec, long usec) IOCallback(T)(T*, IOReady(T)* in, IOReady(T)* out = nil, IOReady(T)* ex = nil) IOCallback(T)(T*, IOTimer(T)*, IOReady(T)* in = nil, IOReady(T)* out = nil, IOReady(T)* ex = nil) Construct an instance of the iocallback type that will call the given member functions of the given class type T's instance. Note that you do not have to use the IOReady(T) or IOTimer(T) macros; rather, you only have to pass the address of a T member function, such as &T::inputReady. SEE ALSO
Dispatcher(3I), IOHandler(3I) InterViews 21 December 1990 IOCallback(3I)

Check Out this Related Man Page

MacroCmd(3U)						    InterViews Reference Manual 					      MacroCmd(3U)

NAME
MacroCmd - a command that composes other commands SYNOPSIS
#include <Unidraw/Commands/macro.h> DESCRIPTION
MacroCmd composes other commands in a linear fashion. Executing a MacroCmd is equivalent to executing its children in preorder. PUBLIC OPERATIONS
MacroCmd(ControlInfo*) MacroCmd( Editor* = nil, Command* first = nil, Command* second = nil, Command* third = nil, Command* fourth = nil ) Construct a MacroCmd instance, optionally supplying up to four of its child commands. virtual void Execute() virtual void Unexecute() virtual boolean Reversible() Execute simply executes each child, from first to last. Unexecute calls Unexecute on each child, from last to first. The MacroCmd is reversible if any of its children are. virtual void SetEditor(Editor*) SetEditor calls SetEditor on each child with the given argument. Command* GetCommand(Iterator) void SetCommand(Command*, Iterator&) GetCommand returns the child Command to which an iterator points. SetCommand initializes the iterator to point to a particular child Command; it initializes the iterator to point to a nil instance if the given Command is not a child. void Append( Command*, Command* = nil, Command* = nil, Command* = nil ) void Prepend( Command*, Command* = nil, Command* = nil, Command* = nil ) void InsertAfter(Iterator, Command*) void InsertBefore(Iterator, Command*) void Remove(Command*) void Remove(Iterator&) Operations that modify the MacroCmd's list of children. Append and Prepend add up to four Commands to the end and the beginning of the list, respectively. InsertAfter and InsertBefore insert a Command after and before the Command pointed to by the iterator, respectively. The Remove operations remove a child from the list without deleting it. You can remove a child by referring to it explicitly or by specifying an iterator. If an iterator is supplied, the Remove operation should advance it to point to the follow- ing child as a side effect. PROTECTED OPERATIONS
Command* Cmd(UList*) UList* Elem(Iterator) Convenience functions for extracting a Command from a UList element a UList from an iterator, respectively. SEE ALSO
Command(3U), Iterator(3U), UList(3U) Unidraw 24 January 1991 MacroCmd(3U)
Man Page