File class

Requirements.Internal.CSV.File  ยท source

MA-HS-CSV file read into memory once; the requested columns by name and type

Extends ExternalObject

External object holding one MA-HS-CSV file: read completely in the constructor, columns not requested are skipped. See Sources.PartialSignalsFromFile for the format and the value semantics.

The object is created as the parameter file of PartialSignalsFromFile, File(fileNameResolved, realNames, booleanNames, integerNames, extrapolateHold, rowEvents), and passed to the access functions getReal, getBoolean, getInteger and nextTimeEvent; a column is addressed by its index in the name list of its type. As an ExternalObject, the class contains only its constructor and destructor.

Copyright © 2026 Model Based Innovation LLC. All rights reserved.

Contents

NameKindDescription
constructorfunctionOpen the file, resolve the requested column names against its header, convert the columns
destructorfunctionRelease the file's memory