Please enable JavaScript to view this site.

 

Navigation: Appendices > Q++Studio > XML Identifiers > Internal Data Structures > Implementation > List

TZodiacDisplayRec — XML implementation

Scroll Prev Up Next More

This topic covers the implementation details of TZodiacDisplayRec.

 

Scope: TypeDefinitions.pas; record. Prepared from the curated implementation supplied for this review on 2 October 2026.

 

SymbolsAndNames can use default_vals=true to restore the built-in zodiac sequence. Explicit Symbol and Name entries are indexed 1–12. FontName and TimeDisplay are outside that child default profile.

 

Notation and shared helper rules: Reading this reference.

 

XML identity and composition

 

Literal rec_type values emitted within these routines: TZodiacDisplayRec, TZodiacSymbolsAndNames. Nested values may belong to child wrappers rather than this owner itself; the attribute entries below give their exact locations.

 

Structures used directly by this XML implementation:

 

TTimesDisplayRec

 

Exact XML fields and attributes

 

The paths below start at this record or property node. A slash identifies a child element; @ identifies an attribute. Curly braces mark a variable index or expression, not literal XML text. Initial values describe initialization; they do not establish what an omitted individual element does. The Implementation toggle below contains the supplied routines for exact branch order and conversions.

 

FontName

 

XML representation: The text of the FontName element.

 

Reading: Reads the element into FontName when the record node exists.

 

Writing: Stores FontName whenever the writer reaches this field.

 

SymbolsAndNames/default_vals

 

XML representation: The text of the default_vals element.

 

Reading: Reads the element into UseDefaultVals when the record node exists; node2 exists. Before this read, UseDefaultVals is set to false.

 

Writing: Stores the literal text “true” when UsesDefaultSymbolsAndNames is true.

 

Writing: Stores the literal text “false” when UsesDefaultSymbolsAndNames is false.

 

SymbolsAndNames/Symbol[@id={IntToStr (i)}]

 

XML representation: The text of the Symbol[@id={IntToStr (i)}] element.

 

Reading: Reads the element into Symbol[i] when the record node exists; node2 exists; UseDefaultVals is false; for each i from 1 through 12.

 

Writing: Stores Symbol[i] when UsesDefaultSymbolsAndNames is false; for each i from 1 through 12.

 

SymbolsAndNames/Name[@id={IntToStr (i)}]

 

XML representation: The text of the Name[@id={IntToStr (i)}] element.

 

Reading: Reads the element into Name[i] when the record node exists; node2 exists; UseDefaultVals is false; for each i from 1 through 12.

 

Writing: Stores Name[i] when UsesDefaultSymbolsAndNames is false; for each i from 1 through 12.

 

@rec_type

 

XML representation: The rec_type attribute.

 

Writing: Stores the literal text “TZodiacDisplayRec” whenever the writer reaches this field.

 

SymbolsAndNames/@rec_type

 

XML representation: The rec_type attribute.

 

Writing: Stores the literal text “TZodiacSymbolsAndNames” whenever the writer reaches this field.

 

Nested records and repeated elements

 

Operation

XML location

When it is processed

Read TimeDisplay

TimeDisplay

the record node exists; node2 exists

Write TimeDisplay

TimeDisplay

Whenever this part of the routine is reached

 

Initialization and reset values

 

TZodiacDisplayRec.ResetDefaultSymbolsAndNames

 

Setting or temporary variable

Initial value

When it is assigned

Symbol[i]

Char (93 + i)

for each i from 1 through 12

Name[i]

ZodiacNames[i - 1]

for each i from 1 through 12

 

Enclosing initialization contexts

 

The following enclosing routines establish or override this record’s starting values. Follow the owner link for the complete initializer. Different enclosing objects can supply different defaults.

 

TMoonOptions.Create is documented in TMoonOptions.

 

Storage declarations relevant to interpretation

 

These are in-memory member and property types, not a list of mandatory XML children. They retain array bounds, fixed buffers and selector types. The field reference above defines what is actually serialized.

 

Name

Declared type / bounds

Kind

TimeDisplay

TTimesDisplayRec

member

FFontName

array [1..256] of Char

member

Symbol

array [1..12] of Char

member

FName

array [1..12] of array [1..75] of Char

member

FontName

string

property/accessor

Name

string

property/accessor

 

Implementation details

 

The Implementation toggle contains only TZodiacDisplayRec methods. Initializers and helpers belonging to other types are identified separately below. Shared XML-helper limitations are explained in Reading this reference.

 

Declaration reproduces this record’s complete declaration from the supplied source, including its fields, properties and method signatures.

 

Declaration

 

Implementation