#include <dsBCD.h>
Public Methods | |
| dsBCD () | |
| dsBCD (dsBCD &other) | |
| dsBCD (long xdec) | |
| dsBCD (const char *xdec, size_t size) | |
| void | makeBCD (const char *xdec, size_t xsize) |
| void | makeBCD (unsigned long xdec) |
| void | readBCD (const char *ptr, size_t size) |
| void | readBCD (std::istream &is, size_t bytes=(size_t)-1) |
| void | writeBCD (std::ostream &out) |
| long | toLong () |
| void | toAscii (std::ostream &out) |
| unsigned char * | bcd () |
| int | size () |
BCD addition and substraction
|
|
Construct an object |
|
|
Copy constructor |
|
|
Construct an object, make BCD from long
|
|
||||||||||||
|
Construct an object, build BCD from ascii decimal number
|
|
|
|
|
|
Build BCD from decimal number
|
|
||||||||||||
|
Build BCD from ascii decimal number
|
|
||||||||||||
|
Read BCD from stream
|
|
||||||||||||
|
Read BCD from byte array
|
|
|
|
|
|
Convert BCD to decimal ASCII string
|
|
|
Convert BCD to long
|
|
|
Copy BCD representation to stream
|
1.3-rc2