Congratulations on choosing Rogue Wave's Money.h++ version 2! This version of Money.h++ provides an expanded C++ class library and a Java class library, both of which provide monetary representations, currency conversions, and decimal precision. Here are some of the features of this product:
Currency classes. Money provides interfaces that encapsulate the complexity of currency representation and monetary conversions and calculations.
Triangulated and bilateral currency conversions. Money.h++ includes the triangulated Euro conversion algorithm for those applications that need it now to ensure a smooth transition to the Euro. And, since the need for the Euro conversion algorithm is temporary, the library lets you write code so that when the transition period ends, your organization's Money.h++ 2.0-based applications will work correctly without source code changes.
Extensible conversion architecture. Organizations can completely extend or override the default conversion algorithms.
Precision. Money.h++ contains a set of types for exactly representing and manipulating decimal fractions. Templatized fixed and floating decimal point classes give you all the flexibility you need.
Parallel C++ and Java implementations. Money.h++ provides base currency routines and monetary representations in both C++ and Java. This lets developers implement applications in either language. Using Rogue Wave's Tools.h++ Professional along with Money.h++ you can implement an application with both C++ and Java components that exchange state between the two languages.
Control over rounding. Money.h++ provides several different rounding methods to choose from.
Formatted I/O. The Money.h++ format objects allow simple, highly flexible formatting of decimals. Simple formats can be simply described using a picture template, while more complex formats, or formats that change at run time, can be described using the format object member functions. The formatting classes are fully internationalized so it is easy to account for local formatting conventions.
Runtime localization. You can specify the local interpretation of commas and decimal points at runtime.
Persistence. The virtual streams and RWFile technology from Tools.h++ can be used with Money.h++ to provide flexible and efficient input and output of decimal numbers. For C++, I/O using the standard iostreams library is also available and in Java you can use the standard Java I/O reader /writer classes for persistence.
Integration with DBTools.h++. Class RWDecimalPortable is available in both the Money.h++ and DBTools.h++ libraries. This lets you work with monetary values mapped from a database, using known rounding semantics. Similarly, the Java class BigDecimal works with DBTools.J.
Error-handling. Money.h++ is intended for use in mission critical applications where an unreported overflow, as can happen with the built-in int and long types, can be disastrous (and expensive!). Money.h++ gives you complete control over how to handle any type of error. You can rest assured that if any inaccuracy creeps in, you can handle it.
©Copyright 1999, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.