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

The StructureElement class. More...

Inheritance diagram for StructureElement:
Element

Public Member Functions

Structure getStructure ()
 Get structure. Get structure of element. This is only valid for elements of type ELEMENT_STRUCTURE. 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 StructureElement class.

A structure element object represents one structure item inside another structure.

Author
Andreas Pehnack

Member Function Documentation

Structure getStructure ( )

Get structure. Get structure of element. This is only valid for elements of type ELEMENT_STRUCTURE.

Author
Andreas Pehnack
Date
2012-05-11
Returns
The structure the element refers to.

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