home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / visbuild / calculat / cppwv13 / icalcfnc.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-16  |  2.8 KB  |  57 lines

  1. #ifndef _ICALCFUNC_
  2. #define _ICALCFUNC_
  3. /******************************************************************************
  4. * .FILE:        icalcfnc.hpp                                                  *
  5. *                                                                             *
  6. * .DESCRIPTION: Header file for the class, ICalcFunction                      *
  7. *                                                                             *
  8. * .CLASSES:     ICalcFunction                                                 *
  9. *                                                                             *
  10. * .COPYRIGHT:                                                                 *
  11. *    Licensed Material - Program-Property of IBM                              *
  12. *    (C) Copyright IBM Corp. 1992, 1996 - All Rights Reserved                 *
  13. *                                                                             *
  14. * .DISCLAIMER:                                                                *
  15. *   The following [enclosed] code is sample code created by IBM               *
  16. *   Corporation.  This sample code is not part of any standard IBM product    *
  17. *   and is provided to you solely for the purpose of assisting you in the     *
  18. *   development of your applications.  The code is provided 'AS IS',          *
  19. *   without warranty of any kind.  IBM shall not be liable for any damages    *
  20. *   arising out of your use of the sample code, even if they have been        *
  21. *   advised of the possibility of such damages.                               *
  22. *                                                                             *
  23. * .NOTE: WE RECOMMEND USING A FIXED SPACE FONT TO LOOK AT THE SOURCE          *
  24. *                                                                             *
  25. ******************************************************************************/
  26.  
  27. #include <istring.hpp>
  28. #include <istdntfy.hpp>
  29. #include "ivbsamps.h"
  30.  
  31. //Forward declarations of other classes
  32. class ICalcPU;
  33.  
  34. //**************************************************************************
  35. // Class:   ICalcFunction
  36. //
  37. // Purpose: Describes ICalcFunction
  38. //   This is the abstract base class for all calculator unary functions.
  39. //   This defines the pluggable interface for all unary type functions.
  40. //**************************************************************************
  41.  
  42. class IVBSAMP_IMPORT ICalcFunction : public IStandardNotifier
  43. {
  44. public:
  45.            ICalcFunction();      //constructor
  46.   virtual  ~ICalcFunction();     //destructor
  47.  
  48.  
  49. //Implementor Method Functions
  50.  
  51. virtual ICalcFunction& perform(ICalcPU& aPUObject) = 0; //pure virtual function; which makes
  52.                                                         //this class Abstract Base Class
  53.  
  54. };
  55.  
  56. #endif
  57.