Ferreteria/v0.5/portcard: Difference between revisions
< Ferreteria | v0.5
Jump to navigation
Jump to search
(Created page with "'''Navigation''': {{l/ver|PortBank}} : {{l/ver|PortRow}} : {{l/ver|PortCard}} ==About== Each '''PortCard''' represents a single row of data in a particular format. The standar...") |
No edit summary |
||
Line 3: | Line 3: | ||
Each '''PortCard''' represents a single row of data in a particular format. The standard base formats (which correspond those used by {{l/ver|PortRow}}s) are: | Each '''PortCard''' represents a single row of data in a particular format. The standard base formats (which correspond those used by {{l/ver|PortRow}}s) are: | ||
* '''[[/calc|Native (calc)]]''', which is used only for internal calculations (no I/O) | * '''[[/calc|Native (calc)]]''', which is used only for internal calculations (no I/O) | ||
* '''[[/stor|Storage (stor)]]''' | * '''[[/stor|Storage (stor)]]''': I/O Row which converts to and from SQL (or, in theory, any other database-storage format) | ||
* '''[[/disp|Display (disp)]]''' | * '''[[/disp|Display (disp)]]''': I/O Row which converts to and from HTML (or, in theory, any other display markup) | ||
Once loaded with data from a given Row, a PortCard is never re-loaded with data from a different row; it always corresponds to the same row, although individual fields may be modified for output purposes. Loading a new row into a Card requires creating a new Card. | Once loaded with data from a given Row, a PortCard is never re-loaded with data from a different row; it always corresponds to the same row, although individual fields may be modified for output purposes. Loading a new row into a Card requires creating a new Card. | ||
==Key Methods== | |||
* '''<code>caPortIORow::TransloadInput()</code>''' : tell I/O row to convert its data to native format and load to calc row | |||
* '''<code>caPortIORow::TransloadOutput()</code>''' : tell I/O row to convert data in calc row to native and load to itself |
Revision as of 14:12, 3 February 2023
Navigation: PortBank : PortRow : PortCard
About
Each PortCard represents a single row of data in a particular format. The standard base formats (which correspond those used by PortRows) are:
- Native (calc), which is used only for internal calculations (no I/O)
- Storage (stor): I/O Row which converts to and from SQL (or, in theory, any other database-storage format)
- Display (disp): I/O Row which converts to and from HTML (or, in theory, any other display markup)
Once loaded with data from a given Row, a PortCard is never re-loaded with data from a different row; it always corresponds to the same row, although individual fields may be modified for output purposes. Loading a new row into a Card requires creating a new Card.
Key Methods
caPortIORow::TransloadInput()
: tell I/O row to convert its data to native format and load to calc rowcaPortIORow::TransloadOutput()
: tell I/O row to convert data in calc row to native and load to itself