Skip to content

Print a value as the text MEOS writes it as - #23

Merged
estebanzimanyi merged 1 commit into
MobilityDB:mainfrom
estebanzimanyi:gen/tostring-from-text-output
Sep 2, 2026
Merged

estebanzimanyi merged 1 commit into
MobilityDB:mainfrom
estebanzimanyi:gen/tostring-from-text-output

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

MEOS publishes text output per concrete type — tfloat_out, stbox_out,
floatspan_out and their kin are public while the generic dispatchers
temporal_out, set_out, span_out stay internal — so a class carrying an
Out of its own is exactly a class whose values MEOS writes. Those 30 classes
carry ToString over it, and the decimal digits it passes are the default the
catalog records for that C type's text encoding rather than a number chosen
here.

A temporal float prints [25.5@2024-12-06 00:00:00+00, 27.5@2024-12-07 00:00:00+00], a float span set {[8, 10], [11, 12]}, an STBox
STBOX X((1,1),(2,2)). The text is the concrete class's, so an instant read
through TFloat.In prints as the TFloatInst the factory hands back. Four
tests read those, and the ExampleApp prints its values directly.

MEOS publishes text output per concrete type — `tfloat_out`, `stbox_out`,
`floatspan_out` and their kin are public while the generic dispatchers
`temporal_out`, `set_out`, `span_out` stay internal — so a class carrying an
`Out` of its own is exactly a class whose values MEOS writes. Those 30 classes
carry `ToString` over it, and the decimal digits it passes are the default the
catalog records for that C type's text encoding rather than a number chosen
here.

A temporal float prints `[25.5@2024-12-06 00:00:00+00, 27.5@2024-12-07
00:00:00+00]`, a float span set `{[8, 10], [11, 12]}`, an STBox
`STBOX X((1,1),(2,2))`. The text is the concrete class's, so an instant read
through `TFloat.In` prints as the `TFloatInst` the factory hands back. Four
tests read those, and the ExampleApp prints its values directly.
@estebanzimanyi
estebanzimanyi merged commit 7b0da8d into MobilityDB:main Sep 2, 2026
1 check passed
@estebanzimanyi
estebanzimanyi deleted the gen/tostring-from-text-output branch September 2, 2026 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant