#include <BxCharacter8.h>
Inheritance diagram for BxCharacter8:

Public Member Functions | |
| BxCharacter8 () | |
| BxCharacter8 (const BxCharacter8 &) | |
| BxCharacter8 (const bx_char8) | |
| virtual bool | equals (const BxDataObject &) const |
| virtual char * | toString (bool xml) |
| virtual bool | parseValue (const char *) |
| BxCharacter8 & | operator= (const bx_char8) |
|
|
Default constructor. Constructs and initialises an instance of the class BxCharacter8. Default attribute values are assigned as follows:
sizeInBits_ = 8;
sizeInBytes_ = 1;
sizeInAll_ = 1;
|
|
|
Construct a BxCharacter8 instance by copying a specified BxCharacter8 instance. Constructs and initialises an instance of the class BxCharacter8 .
|
|
|
Construct a BxCharacter8 instance and assign it a specified character value. Constructs and initialises an instance of the class BxCharacter8 .
|
|
|
Compares the value of a specified data object with the value of this object. In this method, two objects are considered to be equal if they are of the same BinX object type and if they store the same data value. Also, only primitive BinX data types implement this method.
Reimplemented from BxByte8. |
|
|
Overloaded operator = assigns one character from a source to a BxCharacter8 destination object.
|
|
|
Convert an ASCII number into a single character value and assign the value to this object. The data contained in the input string is assumed to be an ASCII value in decimal, as such, the converted character value is assigned as the value of this object. Only primitive BinX data types implement this method.
Reimplemented from BxByte8. |
|
|
Return a string containing the DataBinX XML element (or printable value only ) for this BxCharacter8 object. The DataBinX representation of a BxCharacter8 object value consists of:
<character-8 varName="SectionMark">0x53</character-8> The ASCII character "S" is represented by the hexadecimal value 0x53. These four hexadecimal digits are represented by the four characters "0", "x", "5", "3" in the DataBinX representation. The BinX XML attribute varName provided metadata about the character. In this example the varName value is "SectionMark". This method allocates memory to hold the returned string. The caller is responsible for releasing the memory when the string is no longer needed. If only the character value is required, then the input boolean flag can be used to request that only the character value be included in the result string. In the above example, the result string would have length two and would contain a null-terminated letter "S". Note. If parameter xml is given as true, then the returned string should always be hexadecimal number representing the ASCII code for the character. The hexadecimal number is preceded with a prefix "0x", for example, a space is "0x20". If XML output is not required, then the output depends on the character. Specifically, if the character is a printable one, it is put in the string as is, otherwise, a hexadecimal ASCII code is used. Only BinX primitive data types implement this method.
Reimplemented from BxByte8. |
1.3.3