okteta
#include <decimalbytecodec.h>
Public Member Functions | |
virtual bool | appendDigit (Byte *byte, unsigned char digit) const |
virtual Byte | digitsFilledLimit () const |
virtual void | encode (QString &digits, unsigned int pos, Byte byte) const |
virtual void | encodeShort (QString &digits, unsigned int pos, Byte byte) const |
virtual unsigned int | encodingWidth () const |
virtual bool | isValidDigit (unsigned char digit) const |
virtual void | removeLastDigit (Byte *byte) const |
virtual bool | turnToValue (unsigned char *digit) const |
Public Member Functions inherited from Okteta::ValueCodec | |
virtual | ~ValueCodec () |
unsigned int | decode (Byte *byte, const QString &text, unsigned int pos=0) const |
Additional Inherited Members | |
Static Public Member Functions inherited from Okteta::ValueCodec | |
static ValueCodec * | createCodec (ValueCoding valueCoding) |
Protected Member Functions inherited from Okteta::ValueCodec | |
ValueCodec () | |
Detailed Description
Definition at line 33 of file decimalbytecodec.h.
Member Function Documentation
Tries to increase the byte value by appending a digit to the digits of the current encoding.
- Parameters
-
digit digit to append to encoding of current value. pos offset in digits where to write the code to
- Returns
- true if successful, false otherwise
Implements Okteta::ValueCodec.
Definition at line 81 of file decimalbytecodec.cpp.
|
virtual |
- Returns
- largest value which could get another digit appended and stay below 256.
Implements Okteta::ValueCodec.
Definition at line 33 of file decimalbytecodec.cpp.
|
virtual |
Encodes the byte using full coding width, prefixing with 0s if needed, and writes the result to digits.
- Parameters
-
digits string to write the digits into pos offset in digits where to write the code to byte data to encode
Implements Okteta::ValueCodec.
Definition at line 35 of file decimalbytecodec.cpp.
|
virtual |
Encodes the byte and writes the result to digits, no leading 0s.
- Parameters
-
digits string to write the digits into pos offset in digits where to write the code to byte data to encode
Implements Okteta::ValueCodec.
Definition at line 47 of file decimalbytecodec.cpp.
|
virtual |
- Returns
- number of digits the greatest byte gets decoded into
Implements Okteta::ValueCodec.
Definition at line 32 of file decimalbytecodec.cpp.
|
virtual |
Checks if the given digit is used in the encoding.
- Parameters
-
digit value to check
- Returns
- true if digit is valid, false otherwise
Implements Okteta::ValueCodec.
Definition at line 65 of file decimalbytecodec.cpp.
|
virtual |
Tries to remove the last (least significant) digit from byte.
- Parameters
-
byte value to remove the last digit from
- Returns
- true if successful, false otherwise
Implements Okteta::ValueCodec.
Definition at line 98 of file decimalbytecodec.cpp.
|
virtual |
Turns the digit into a byte with the value of the digit.
- Parameters
-
digit digit to turn into the value
- Returns
- true if successful, false otherwise
Implements Okteta::ValueCodec.
Definition at line 70 of file decimalbytecodec.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.