home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v1.zip / IBMCPP / IBMCLASS / ICURSOR.H < prev    next >
Text File  |  1993-09-22  |  1KB  |  29 lines

  1. /*******************************************************************************
  2. *                                                                              *
  3. * COPYRIGHT:                                                                   *
  4. *   IBM C/C++ Tools Version 2.01 - Collection Class Library                    *
  5. *   Licensed Materials - Property of IBM                                       *
  6. *   (C) Copyright IBM Corporation 1992, 1993                                   *
  7. *   All Rights Reserved                                                        *
  8. *   US Government Users Restricted Rights - Use, duplication, or disclosure    *
  9. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  10. *                                                                              *
  11. *******************************************************************************/
  12. #ifndef _ICURSOR_H
  13. #define _ICURSOR_H
  14.  
  15. #include <iglobals.h>
  16.  
  17. class ICursor {
  18. public:
  19.   virtual       ~ICursor ();
  20.   virtual        IBoolean  setToFirst () = 0;
  21.   virtual        IBoolean  setToNext () = 0;
  22.   virtual        IBoolean  isValid () const = 0;
  23.   virtual        void     invalidate () = 0;
  24. };
  25.  
  26. #define forCursor(c) for ((c).setToFirst (); (c).isValid (); (c).setToNext ())
  27.  
  28. #endif
  29.