John Wiegley
8e20c378d6
The unit tests for amount.cc now cover every part of the code except
...
for two: those concerning annotated commodities (which will be covered
in the t_commodity.cc tests) and reading of optimized amounts in the
binary journal reader.
2008-04-13 03:38:42 -04:00
John Wiegley
623e6e024c
Move commodity-related parsing code from amount.cc into commodity.cc.
2008-04-13 03:38:42 -04:00
John Wiegley
4e9056b6ce
It is now an error to use an uninitialized amount for any operation
...
other than is_null and parse.
2008-04-13 03:38:42 -04:00
John Wiegley
d849837203
Major restructuring of the value_t class.
2008-04-13 03:38:39 -04:00
John Wiegley
a71d48881e
Added COPYRIGHT notice to all files.
2008-04-13 03:38:39 -04:00
John Wiegley
c211335760
Extended Python amount class.
2008-04-13 03:38:39 -04:00
John Wiegley
06e7c28202
Rearranged many method names.
2008-04-13 03:38:38 -04:00
John Wiegley
7868a53b70
Removed some unnecessary variables.
2008-04-13 03:38:38 -04:00
John Wiegley
b95aa8d4ca
Some slight reorg.
2008-04-13 03:38:38 -04:00
John Wiegley
0214a136c2
Work to get Python tests running again.
2008-04-13 03:38:37 -04:00
John Wiegley
c59018c29d
Revised how commodities are dealt with.
2008-04-13 03:38:36 -04:00
John Wiegley
de64861182
Added much documentation to amount.h
2008-04-13 03:38:35 -04:00
John Wiegley
103881ff80
First round of using boost/operators is done.
2008-04-13 03:38:35 -04:00
John Wiegley
9e80a6fbcc
Got things compiling with boost/operators.hpp
2008-04-13 03:38:35 -04:00
John Wiegley
76b2066b8b
More work to use boost/operators.hpp.
2008-04-13 03:38:35 -04:00
John Wiegley
230e03166f
In the middle of switching to using boost/operators.hpp
2008-04-13 03:38:35 -04:00
John Wiegley
e92bcf411d
Started using boost::optional<T>.
2008-04-13 03:38:35 -04:00
John Wiegley
18aaf588ab
Added use of boost::optional<> to amount.h
2008-04-13 03:38:34 -04:00
John Wiegley
21af83013f
Did more work on the utility code.
2008-04-13 03:38:34 -04:00
John Wiegley
c8899addfd
Rearranged the sources a bit.
2008-04-13 03:38:33 -04:00