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

Public Member Functions | |
| BxFloat32 () | |
| BxFloat32 (const BxFloat32 ©) | |
| BxFloat32 (const bx_float32) | |
| virtual bool | equals (const BxDataObject &) const |
| virtual char * | toString (bool xml) |
| virtual bool | parseValue (const char *) |
| BxFloat32 & | operator= (const bx_float32) |
|
|
Default constructor. Constructs and initialises an instance of the class BxFloat32. Default attribute values are assigned as follows:
sizeInBits_ = 32;
sizeInBytes_ = 4;
sizeInAll_ = 4;
|
|
|
Construct a BxFloat32 instance by copying a specified BxFloat32 instance. Constructs and initialises an instance of the class BxFloat32.
|
|
|
Construct a BxFloat32 instance and assign it a specified 32-bit floating point number. Constructs and initialises an instance of the class BxFloat32.
|
|
|
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 BxDataObject. |
|
|
Overloaded operator = assigns a 32-bit floating point value from a specified source to a BxFloat32 destination object.
|
|
|
Extract a 32-bit floating point value from a specified string and assign the value to this object. The data contained in the input string is assumed to be in ASCII representation, and to contain a floating point number represented in exponential format. Exponential format is defined by the following normal form expression: Note - in normal form expressions, angle-brackets are used to denote variables, whose valid values are defined in subsequent expressions. The angle brackets do not indicate tags or elements as they do in XML notation.
<float32-in-ascii> = <modulus> | (<modulus><exponent>)
where
<modulus> = <signed-modulus> | <unsigned-modulus>
<exponent> = <signed-exponent> | <unsigned-exponent>
<signed-modulus> = "+" | "-" <modulus-value>
<unsigned-modulus> = <modulus-value>
<signed-exponent> = ("E" | "e") ("+" | "-") <exponent-value>
<unsigned-exponent> = <exponent-value>
<modulus-value> = <digits>* ("." | "") <digits>*
<exponent-value> = <digits> | (<digits> <digits>)
<digits> = "0" | "1" | "2"| "3" | "4" | "5" | "6" | "7" | "8" | "9"
Reimplemented from BxDataObject. |
|
|
Return a string containing the DataBinX XML element (or printable value only ) for the value of this BxFloat32 object. The DataBinx representation of a BxFloat32 object value consists of:
Example Return Result:
<float-32>-0.74982e12</float-32>
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 the BinX XML tags are not required, then the input boolean flag can be used to request that only the converted binary data value be included in the result string. Only BinX primitive data types implement this method.
Reimplemented from BxDataObject. |
1.3.3