*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> Vk/VkInput (3)              
Title
Content
Arch
Section
 

Contents


VkInput(3x)							   VkInput(3x)


NAME    [Toc]    [Back]

     VkInput - Encapsulation class for input callbacks on file descriptors

INHERITS FROM    [Toc]    [Back]

     VkCallbackObject

HEADER FILE    [Toc]    [Back]

     #include <Vk/VkInput.h>

PUBLIC PROTOCOL	SUMMARY
   Constructor/Destructor
	   VkInput(void);
	   virtual void	~VkInput(void);


   Configuration    [Toc]    [Back]
	   void	attach(int fd, XtInputMask mask);
	   void	remove(void);


   Access Functions    [Toc]    [Back]
	   int fd(void);
	   int id(void);

PROTECTED PROTOCOL SUMMARY    [Toc]    [Back]

   Protected Data Members
	   XtInputId _id;
	   int _fd;

CLASS DESCRIPTION    [Toc]    [Back]

	  VkInput is a base class intended to encapsulate the mechanism	for
	  setting up object-oriented callbacks on file descriptors.  The Xt
	  event	model supports other input sources via XtAppAddInput(),	and
	  the VkInput class is an object-oriented interface to this mechanism.


FUNCTION DESCRIPTIONS    [Toc]    [Back]

   VkInput()
	   VkInput(void);
	   virtual void	~VkInput(void);


	  Creates a VkInput object with	no state.  Use the attach() method to
	  specify an input source.

   attach()
	   void	attach(int fd, XtInputMask mask);





									Page 1






VkInput(3x)							   VkInput(3x)



	  Attaches the VkInput object to a specific input source.  If an input
	  source was already attached, it is detached first.  Once this	method
	  is called, the VkInput::inputCallback	callback will get called when
	  input	becomes	available.  The	callData parameter to the callback
	  will be a (VkInput *).

   remove()
	   void	remove(void);


	  Detaches from	the previously-attached	input source.

   fd()
	   int fd(void);


	  Returns the file descriptor last specified in	attach().

   id()
	   XtInputId id(void);


	  Returns the XtInputId	returned by XtAppAddTimeInput().  Each
	  attached VkInput object will have a unique XtInputId.

DATA MEMBER DESCRIPTIONS    [Toc]    [Back]

   _id
	   XtInputId _id;


	  XtInputId from XtAppAddTimeInput().

   _fd
	   int _fd;


	  File descriptor specified in attach().

   inputCallback
	   static const	const char* inputCallback;


	  ViewKit-style	callback when input becomes available.	The callData
	  parameter to the callback will be a (VkInput *).

INHERITED MEMBER FUNCTIONS    [Toc]    [Back]

   Inherited from VkCallbackObject
	  callCallbacks(),  className(),  addCallback(), removeCallback,
	  removeAllCallbacks(),	hasCallbacks(),	 cloneCallbacks(),
	  cloneCallback()





									Page 2






VkInput(3x)							   VkInput(3x)



CLASSES	USED BY	THIS CLASS
     VkApp

SEE ALSO    [Toc]    [Back]

      
      
     VkCallbackObject
     ViewKit Programmer's Guide
     The X Window System, DEC Press, Bob Sheifler and Jim Gettys
     The X Window System Toolkit, DEC Press, Paul Asente and Ralph Swick
     The OSF/Motif Programmers Reference, Prentice Hall, OSF


									PPPPaaaaggggeeee 3333
[ Back ]
 Similar pages
Name OS Title
VkCallbackObject IRIX An abstract class that supports classes that use C++ member function callbacks
sendfile Linux transfer data between file descriptors
fcntl Tru64 Control open file descriptors
dup2 Tru64 Control open file descriptors
dup Tru64 Control open file descriptors
poll HP-UX monitor I/O conditions on multiple file descriptors
poll Tru64 Monitor conditions on multiple file descriptors
poll HP-UX monitor I/O conditions on multiple file descriptors
poll Tru64 Device driver for a fast poll on many file descriptors
maxfiles_lim HP-UX hard maximum number of file descriptors per process
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service