#include <locale_facets.h>
Inheritance diagram for money_get:
The money_get template uses protected virtual functions to provide the actual results. The public accessors forward the call to the virtual functions. These virtual functions are hooks for developers to implement the behavior they require from the money_get facet.
Definition at line 3966 of file locale_facets.h.
|
Public typedefs.
Definition at line 3972 of file locale_facets.h. |
|
Public typedefs.
Definition at line 3973 of file locale_facets.h. Referenced by money_get::do_get(). |
|
Public typedefs.
Definition at line 3974 of file locale_facets.h. |
|
Constructor performs initialization. This is the constructor provided by the standard.
Definition at line 3988 of file locale_facets.h. |
|
Destructor.
Definition at line 4055 of file locale_facets.h. |
|
Read and parse a monetary value. This function reads and parses characters representing a monetary value. This function is a hook for derived classes to change the value returned.
Definition at line 1490 of file locale_facets.tcc. References basic_string::assign(), basic_string::data(), money_get::iter_type, basic_string::size(), and ctype_abstract_base::widen(). |
|
Read and parse a monetary value. This function reads and parses characters representing a monetary value. This function is a hook for derived classes to change the value returned.
Definition at line 1475 of file locale_facets.tcc. References basic_string::c_str(). |
|
Read and parse a monetary value. This function reads characters from s, interprets them as a monetary value according to moneypunct and ctype facets retrieved from io.getloc(), and returns the result in digits. For example, the string $10.01 in a US locale would store "1001" in digits. Any characters not part of a valid money amount are not consumed. If a money value cannot be parsed from the input stream, sets err=(err|io.failbit). If the stream is consumed before finishing parsing, sets err=(err|io.failbit|io.eofbit). This function works by returning the result of do_get().
Definition at line 4048 of file locale_facets.h. |
|
Read and parse a monetary value. This function reads characters from s, interprets them as a monetary value according to moneypunct and ctype facets retrieved from io.getloc(), and returns the result in units as an integral value moneypunct::frac_digits() * the actual amount. For example, the string $10.01 in a US locale would store 1001 in units. Any characters not part of a valid money amount are not consumed. If a money value cannot be parsed from the input stream, sets err=(err|io.failbit). If the stream is consumed before finishing parsing, sets err=(err|io.failbit|io.eofbit). units is unchanged if parsing fails. This function works by returning the result of do_get().
Definition at line 4018 of file locale_facets.h. References ios_base::iostate. |
|
Numpunct facet id.
Definition at line 4086 of file locale_facets.h. |