Defined in file: hdsGraph.cpp
The _fc_item struct is a temporary support class for the _readFlowItem function. The purpose is to give hdsGraphic extra members during the parsing of flowchart XML, needed to assign links between the flowchart items (graphics). Flowchart items are either:- START Stadia No incoming connector; One outgoing connector from the South point. The START item is singular. RETURN Stadia One incoming connector, No outgoing connectors. Must be at least 1 RETURN, can be more. LABEL Stadia One or more incoming connectors (all to the same, Northmost point) TEST Hexagon One or more incoming connectors (all to the same, Northmost point), Two outgoing connectors: True; False. ACTION Rectangle One or more incoming connectors (all to the same, Northmost point); One outgoing connector, either from the South or East point. Notes:- Hexagons are used as they are more space efficient than diamonds, actions or labels. Actions can be a single step or a contiguous set of steps. Connectors are not specified in the <xFlowchart> tag, but are inferred from the list of flowchart items and generated automatically.
Constructors/Detructors
| _fc_item* | _fc_item | (void) | m_LinkCtrl = m_LinkSwitch = m_LinkDown = m_LinkTrue = 0 ; |
| Default constructor | _fc_item() | Not specified in code. Default applies |
Member Variables:
| uint16_t | m_Bot | Actual bottom of image space | |
| uint16_t | m_Col | Incremented on branch | |
| uint16_t | m_Lft | Actual left of image space | |
| uint16_t | m_LinkCtrl | Start of current control loop if applicable uint16_t m_LinkSwitch ; // Start of current switch if applicable | |
| uint16_t | m_LinkDown | Next item in line of execution | |
| uint16_t | m_LinkTrue | First item of execution branch (on conditiion=true) | |
| uint16_t | m_Resv | Reserved | |
| uint16_t | m_Rht | Actual right of image space | |
| uint16_t | m_Row | Incremented on next step | |
| hzString | m_Text | Compiled text content | |
| uint16_t | m_Top | Actual top of image space | |
| uint16_t | m_Xid | Statement id | |
| uint16_t | m_actH | Actual height based on shape and text | |
| uint16_t | m_actW | Actual width based on shape and text | |
| _fc_type | m_eSType | Type of instruction | |
| hdsShape | m_eShape | Either a stadium, rectangle or hexagon | |
| uint16_t | m_effH | Effective height based all shapes in a linked row | |
| uint16_t | m_effW | Effective width based all shapes in a linked column | |
| uint16_t | m_nLevel | Code level | |
| uint16_t | m_nLines | Number of lines in text |