Synalyze It!  1.1
 All Classes Functions Pages
Public Member Functions | List of all members
NumberElement Class Reference

The NumberElement class. More...

Inheritance diagram for NumberElement:
Element

Public Member Functions

NUMBER_DISPLAY_TYPE getNumberDisplayType ()
 Get number display Get number display type. This determines how a number is displayed in Synalyze It! and can be one of. More...
 
NUMBER_TYPE getNumberType ()
 Get number type. Get number type of number element. This can be one of. More...
 
ENDIAN_TYPE getEndianness ()
 Get endianness Get endianness of number element. More...
 
BOOL isSigned ()
 Is number element of type signed? Query if the number element parses a signed or an unsigned value. More...
 
- Public Member Functions inherited from Element
Element Element (ELEMENT_TYPE type, String name, BOOL setDefaults)
 Constructor. Create object of type Element. More...
 
String getName ()
 Get name. Get name of element. More...
 
 setName (String name)
 Set name. Set name of element. More...
 
String getDescription ()
 Get description. Get description of element. More...
 
 setDescription (String name)
 Set description. Set description of element. More...
 
String getEnclosingStructure ()
 Get enclosing structure. Get the enclosing structure of the element. More...
 
String getLength ()
 Get length. Get length of element. For binary or string elements a length of zero means to fill the enclosing structure. Be aware that lengths can be fractions of bytes so call additionally getLengthUnit() More...
 
LENGTH_UNIT getLengthUnit ()
 Get length unit. Get length unit of element in bits. Valid values are. More...
 
 setLength (String length, LENGTH_UNIT lengthUnit)
 Set length. Set length of element. For binary or string elements a length of zero means to fill the enclosing structure. The length can contain variables and expressions. For number and binary elements you can specify a length unit . More...
 
ELEMENT_TYPE getType ()
 Get type. Get type of element. This can be one of. More...
 
BOOL mustMatch ()
 Get "must match" flag. Get if this element has to match while parsing a file. For this check the min/max values are checked and if one of the fixed values matches (if at least one is defined) More...
 
 setMustMatch (BOOL mustMatch)
 Set "must match" flag. Set if this element has to match while parsing a file. For this check the min/max values are checked and if one of the fixed values matches (if at least one is defined) More...
 
Value getMinValue ()
 Get minimum value. Get minimum value of element. This is only valid for numbers. This value will be checked if the "must match" flag is set. More...
 
Element getParent ()
 Get parent. Get parent of element. There is only a parent element if the enclosing structure is inherited from another structure. More...
 

Detailed Description

The NumberElement class.

A number element object represents one number item in a structure.

Author
Andreas Pehnack

Member Function Documentation

ENDIAN_TYPE getEndianness ( )

Get endianness Get endianness of number element.

Author
Andreas Pehnack
Date
2012-05-11
Returns
The endianness of the number
NUMBER_DISPLAY_TYPE getNumberDisplayType ( )

Get number display Get number display type. This determines how a number is displayed in Synalyze It! and can be one of.

  • NUMBER_DISPLAY_DECIMAL
  • NUMBER_DISPLAY_EXPONENT
  • NUMBER_DISPLAY_HEX
  • NUMBER_DISPLAY_OCTAL
  • NUMBER_DISPLAY_BINARY
Author
Andreas Pehnack
Date
2012-05-11
Returns
Does the element parse a signed number?
NUMBER_TYPE getNumberType ( )

Get number type. Get number type of number element. This can be one of.

  • NUMBER_INTEGER
  • NUMBER_FLOAT
Author
Andreas Pehnack
Date
2012-05-11
Returns
The number type of the number element.
BOOL isSigned ( )

Is number element of type signed? Query if the number element parses a signed or an unsigned value.

Author
Andreas Pehnack
Date
2012-05-11
Returns
Does the element parse a signed number?

The documentation for this class was generated from the following file: