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

  1. //****************************************************************************
  2. // ICalcAdditionChip Class - C++ Code File (icalcac.cpp)                     *
  3. //                                                                           *
  4. // COPYRIGHT: Copyright (C) International Business Machines Corp., 1994,1995 *
  5. //                                                                           *
  6. // DISCLAIMER OF WARRANTIES:                                                 *
  7. //   The following [enclosed] code is sample code created by IBM             *
  8. //   Corporation.  This sample code is not part of any standard IBM product  *
  9. //   and is provided to you solely for the purpose of assisting you in the   *
  10. //   development of your applications.  The code is provided "AS IS",        *
  11. //   without warranty of any kind.  IBM shall not be liable for any damages  *
  12. //   arising out of your use of the sample code, even if they have been      *
  13. //   advised of the possibility of such damages.                             *
  14. //****************************************************************************
  15. //NOTE: WE RECOMMEND USING A FIXED-SPACE FONT TO LOOK AT THE SOURCE.
  16. //
  17. //
  18. // Changes:
  19. //   9/23/94 - Put in changes to get results of math computations via a return
  20. //             value on a connection.  This also allows for connecting in some
  21. //             exception handling.
  22. //****************************************************************************
  23.  
  24. #include "icalcac.hpp"                  //ICalcAdditionChip class header
  25.  
  26. /*******************************************************************
  27.  * Manager Member Functions (Not Part Actions)
  28.  *******************************************************************/
  29.  
  30. ICalcAdditionChip :: ICalcAdditionChip()
  31. {
  32. }
  33.  
  34. ICalcAdditionChip :: ~ICalcAdditionChip()
  35. {
  36. }
  37.  
  38. /*******************************************************************
  39.  * Implementor Member Functions (not Part Actions)
  40.  *******************************************************************/
  41.  
  42. double ICalcAdditionChip ::
  43.   evaluate (double operand1, double operand2)
  44. {
  45.   return setResult ( operand1 + operand2 );
  46. }
  47.