6.8 KiB
6.8 KiB
source_files, generated_at, model, schema_version, sha256
| source_files | generated_at | model | schema_version | sha256 | |
|---|---|---|---|---|---|
|
2026-04-16T04:57:15.509262+00:00 | Qwen/Qwen3-Coder-Next-FP8 | 1 | a6932d6dcfd8e263 |
Classes
Purpose
This module defines a set of core enumerations used throughout the DatabaseExport subsystem for version 57 of the database schema. These enums standardize the representation of test configuration settings (TestSettingsEnum), data acquisition modes (RecordingModes), sensor compatibility policies (IsoChannelSensorCompatibilityLevels), export format capabilities (SupportedExportFormatBitFlags), template tag identifiers (TestTemplateTags), and validation behavior levels (StrictLevel). They serve as foundational constants for serialization, UI binding, and logic branching in downstream export, configuration, and test execution components.
Public Interface
TestSettingsEnum
- Definition:
public enum TestSettingsEnum - Description: Represents non-columned test settings—i.e., configuration flags or steps not stored as database columns but used in test logic or UI. Values correspond to checklist items and warmup/excitation settings.
- Members:
ArmCheckListStepCheckListInputVoltageCheckCheckListBatteryVoltageCheckCheckListSquibResistanceCheckCheckListSensorIDCheckCheckListTriggerStartCheckEW(ExcitationWarmup)CheckListMustPass
RecordingModes
- Definition:
public enum RecordingModes - Description: Specifies the data acquisition recording strategy during a test.
- Members:
CircularBuffer: Continuous overwrite buffer; only recent data retained until triggered.Recorder: Standard sequential recording from start to end.HybridRecorder: Combination of circular buffer pre-trigger and sequential post-trigger recording.
IsoChannelSensorCompatibilityLevels
- Definition:
public enum IsoChannelSensorCompatibilityLevels - Description: Controls how the system responds to incompatibility between ISO channels and connected sensors.
- Members:
DontWarn: No warning or error raised for incompatibility.Warn: Log warning but allow proceeding.DontAllow: Block test execution if incompatibility detected.
SupportedExportFormatBitFlags
- Definition:
[Flags] public enum SupportedExportFormatBitFlags - Description: Bit-flag enumeration of supported export formats. Used to compose sets of formats via bitwise OR. Note:
diademfilteredis commented out and unused. - Members (selected notable examples):
csvunfiltered = 0x1isounfiltered = 0x4tdmsadc = 0x10csvfiltered = 0x80isofiltered = 0x200HDFUnfiltered = 0x10000xlsxfiltered = 0x100000ChryslerDDAS = 0x8000
- Full list: All 20 explicitly defined flags (including
none = 0x0) are present; no gaps exceptdiademfiltered.
TestTemplateTags
- Definition:
public enum TestTemplateTags - Description: Defines string identifiers used as keys in test templates (e.g., XML/JSON config files) to map UI elements, data fields, or logic hooks. Includes both legacy and current test configuration properties.
- Members: 102 named constants, e.g.:
UploadData,UploadFolder,CommonLine,AllCustomers,Test,SamplesPerSecond,PreTriggerSeconds,RecordingMode,EW,ExcitationWarmupTimeMS,TestDirectory,ISFFile,GroupsStepValid, etc.
- Note: Duplicates exist between
TestSettingsEnum(e.g.,EW,ArmCheckListStep,CheckListBatteryVoltageCheck, etc.)—this is intentional per source.
StrictLevel
- Definition:
public enum StrictLevel - Description: Controls strictness of validation or schema compliance during export or import.
- Members:
Strict: Enforce full compliance; fail on mismatches.UpdateTable: Allow schema updates/relaxations (e.g., add missing columns).
Invariants
SupportedExportFormatBitFlagsis explicitly marked[Flags]; valid combinations must be constructed via bitwise OR of individual flags (e.g.,csvunfiltered | tdmsadc).- Values in
TestTemplateTagsinclude both direct mappings toTestSettingsEnummembers (e.g.,EW,ArmCheckListStep) and additional tags—indicating thatTestTemplateTagsserves as a superset of template keys, not a one-to-one mapping. RecordingModeshas exactly three mutually exclusive values; no combination is intended or supported.IsoChannelSensorCompatibilityLevelsvalues form a strict hierarchy:DontWarn≤Warn≤DontAllowin enforcement level.- No enum value is assigned explicitly beyond
SupportedExportFormatBitFlags(which uses hex literals); all others rely on implicit sequential numbering starting at 0.
Dependencies
- Internal: This module resides in the
DatabaseExportnamespace and is likely consumed by:- Classes in the same
DatabaseExportproject (e.g., export pipeline, test runner, config parser). - UI layers that bind
TestTemplateTagsto form fields or template variables. - Validation modules using
StrictLevelandIsoChannelSensorCompatibilityLevels.
- Classes in the same
- External: Depends solely on
System(no external NuGet or third-party dependencies inferred). - No reverse dependencies inferred: This file defines only enums; no class or method implementations are present to indicate what imports it.
Gotchas
- Duplicate enum members across
TestSettingsEnumandTestTemplateTags: Identical names (e.g.,EW,ArmCheckListStep,CheckListBatteryVoltageCheck) appear in both enums. This suggests they are not semantically identical—TestSettingsEnumlikely represents internal logic flags, whileTestTemplateTagsrepresents template key strings. Confusing them may cause runtime errors. diademfilteredis commented out: Though defined as0x100, it is unused and commented. Do not assume support for Diadem filtered exports unless validated in consuming code.LastMmodifiedBytypo: The enum memberLastMmodifiedBy(with doublem) likely contains a typo forLastModifiedBy. Verify usage in consuming code before renaming.EWambiguity: Appears in bothTestSettingsEnumandTestTemplateTags. InTestTemplateTags, it likely maps to a template key (e.g.,<EW>...</EW>), while inTestSettingsEnumit represents a checklist step. Ensure context distinguishes usage.- No documentation on
StrictLevel.UpdateTablebehavior: The meaning of “UpdateTable” is not self-evident; its semantics (e.g., auto-migrate schema?) must be verified in dependent code. TestTemplateTagsincludesGroupsStepValid: Suggests a specific validation state for group-based test steps; ensure logic handling this tag aligns with actual test execution flow.
None identified beyond these.