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

  1. #ifndef _ICALCTLY_
  2. #define _ICALCTLY_
  3. /******************************************************************************
  4. * .FILE:        icalctly.hpp                                                  *
  5. *                                                                             *
  6. * .DESCRIPTION: Header file for the class, ICalcTally                         *
  7. *                                                                             *
  8. * .CLASSES:     ICalcTally                                                    *
  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. //**************************************************************************
  32. // Class:   ICalcTally
  33. //
  34. // Purpose: Describes ICalcTally Class.
  35. //   This is the Tally function for the Calculator
  36. //**************************************************************************
  37.  
  38. class IVBSAMP_IMPORT ICalcTally : public IStandardNotifier
  39. {
  40. public:
  41.            ICalcTally            ();
  42.   virtual  ~ICalcTally ();
  43.  
  44. //
  45. // List of Part Events
  46. //
  47.  
  48. static INotificationId bufferId;
  49. static INotificationId nextTallyLineId;
  50. static INotificationId notEmptyId;
  51.  
  52. //
  53. // List of Part Attributes - (query and set members)
  54. //
  55.  
  56. virtual IString
  57.   buffer () const;
  58.  
  59. virtual ICalcTally&
  60.   setBuffer (IString iBuffer);
  61.  
  62. virtual IString
  63.   nextTallyLine () const;
  64.  
  65. virtual ICalcTally&
  66.   setNextTallyLine (IString iString);
  67.  
  68. //
  69. // List of Part Actions
  70. //
  71.  
  72. virtual Boolean
  73.   reset ();
  74.  
  75. virtual Boolean
  76.   processBinaryOperator (IString iBinaryOpSym);
  77.  
  78. virtual Boolean
  79.   processUnaryOperator (IString iUnaryOpSym);
  80.  
  81. protected:
  82. //
  83. // List of data members - Attributes
  84. //
  85.  
  86.   IString dBuffer;        // Active Display Image
  87.   IString dNextTallyLine; // Next line to add to the Tally
  88.  
  89. //
  90. // Non-exposed data members
  91. //
  92.  
  93.   Boolean dUpdateTally;
  94.   Boolean dProcessBinaryOp;
  95.   Boolean dEmptyMark;
  96.   Boolean dResultExpected;
  97.   IString dLastOperator;
  98.  
  99.  
  100. };
  101.  
  102. #endif
  103.