1 /**************************************************************************
2 ** (c) Copyright 1999, Andromeda Technology & Automation
3 ***************************************************************************
4 ** MODULE INFORMATION *
5 ***********************
7 ** SYSTEM NAME : Andromeda X-Windows Encapsulation
8 ** VERSION NUMBER : $Revision: 1.1 $
10 ** DESCRIPTION : Financial classes
12 ** EXPORTED OBJECTS : class amount
15 ***************************************************************************
16 ** ADMINISTRATIVE INFORMATION *
17 ********************************
18 ** ORIGINAL AUTHOR : Arjen Baart - arjen@andromeda.nl
19 ** CREATION DATE : Aug 26, 1999
20 ** LAST UPDATE : Aug 26, 1999
22 **************************************************************************/
24 /*****************************
26 Revision 1.1 2002-07-25 08:01:27 arjen
27 First checkin, AXE release 0.2
29 *****************************/
31 // static const char RCSID[] = "$Id: money.h,v 1.1 2002-07-25 08:01:27 arjen Exp $";
40 /*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
41 ** NAME : amount - Encapsulate an amount of money
42 ** MEMBERS : value - The monetary value (in cents)
44 ** ostream << : String to output stream.
45 ** istream << : String from input stream.
52 ** LAST MODIFIED : Aug 26, 1999
53 **+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
67 amount(unsigned long l)
80 String make_string(void);
82 amount operator+(amount a)
86 sum.value = value + a.value;
90 amount operator *= (double f)
95 value = (unsigned long)v;
100 amount operator /= (double f)
105 value = (unsigned long)v;
110 amount &operator+=(amount a)
117 friend istream &operator>>(istream&, amount &);
118 friend ostream &operator<<(ostream&, amount);