home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv8.zip / VACPP / IBMCPP / samples / VISBUILD / CALCULAT / CPPOV13 / ICALCTLY.HPP < prev    next >
Text File  |  1995-04-14  |  3KB  |  101 lines

  1. #ifndef _ICALCTLY_
  2. #define _ICALCTLY_
  3. //****************************************************************************
  4. // ICalcTally Class - C++ Header File (icalctly.hpp)                         *
  5. //                                                                           *
  6. // COPYRIGHT: Copyright (C) International Business Machines Corp., 1994,1995 *
  7. //                                                                           *
  8. // DISCLAIMER OF WARRANTIES:                                                 *
  9. //   The following [enclosed] code is sample code created by IBM             *
  10. //   Corporation.  This sample code is not part of any standard IBM product  *
  11. //   and is provided to you solely for the purpose of assisting you in the   *
  12. //   development of your applications.  The code is provided "AS IS",        *
  13. //   without warranty of any kind.  IBM shall not be liable for any damages  *
  14. //   arising out of your use of the sample code, even if they have been      *
  15. //   advised of the possibility of such damages.                             *
  16. //****************************************************************************
  17. //NOTE: WE RECOMMEND USING A FIXED-SPACE FONT TO LOOK AT THE SOURCE.
  18. //
  19. // VERSION 2
  20. //
  21. // Changes:
  22. //   9/23/94 - Removed File Dialog creation and manipulation.  Now handled
  23. //             by connecting standard FileDialogProxy part.
  24. //****************************************************************************
  25.  
  26. #include <istring.hpp>
  27. #include <istdntfy.hpp>
  28.  
  29. //**************************************************************************
  30. // Class:   ICalcTally
  31. //
  32. // Purpose: Describes ICalcTally Class.
  33. //   This is the Tally function for the Calculator
  34. //**************************************************************************
  35.  
  36. class _Export ICalcTally : public IStandardNotifier
  37. {
  38. public:
  39.            ICalcTally            ();
  40.   virtual  ~ICalcTally ();
  41.  
  42. //
  43. // List of Part Events
  44. //
  45.  
  46. static INotificationId bufferId;
  47. static INotificationId nextTallyLineId;
  48. static INotificationId notEmptyId;
  49.  
  50. //
  51. // List of Part Attributes - (query and set members)
  52. //
  53.  
  54. virtual IString
  55.   buffer () const;
  56.  
  57. virtual ICalcTally&
  58.   setBuffer (IString iBuffer);
  59.  
  60. virtual IString
  61.   nextTallyLine () const;
  62.  
  63. virtual ICalcTally& 
  64.   setNextTallyLine (IString iString);
  65.  
  66. //
  67. // List of Part Actions
  68. //
  69.  
  70. virtual Boolean 
  71.   reset ();
  72.  
  73. virtual Boolean
  74.   processBinaryOperator (IString iBinaryOpSym);
  75.  
  76. virtual Boolean
  77.   processUnaryOperator (IString iUnaryOpSym);
  78.  
  79. protected:
  80. //
  81. // List of data members - Attributes
  82. //
  83.  
  84.   IString dBuffer;        // Active Display Image
  85.   IString dNextTallyLine; // Next line to add to the Tally
  86.  
  87. //
  88. // Non-exposed data members
  89. //
  90.  
  91.   Boolean dUpdateTally;
  92.   Boolean dProcessBinaryOp;
  93.   Boolean dEmptyMark;
  94.   Boolean dResultExpected;
  95.   IString dLastOperator;
  96.  
  97.  
  98. };
  99.  
  100. #endif
  101.