7.8 KiB
source_files, generated_at, model, schema_version, sha256
| source_files | generated_at | model | schema_version | sha256 | |
|---|---|---|---|---|---|
|
2026-04-17T15:43:09.979866+00:00 | zai-org/GLM-5-FP8 | 1 | e2c100a0f81937df |
Documentation: DTS.Common.Strings (Strings.Designer.cs)
1. Purpose
This module provides a strongly-typed resource class for accessing localized string constants used throughout the DTS CommonCore library. It serves as the central repository for UI labels, error messages, status descriptions, and configuration display names—enabling internationalization and consistent string management across the codebase. The class is auto-generated from a .resx file and should not be manually edited.
2. Public Interface
Class: Strings (namespace DTS.Common.Strings)
A static resource accessor class providing localized string lookups.
Static Properties
| Property | Type | Description |
|---|---|---|
ResourceManager |
global::System.Resources.ResourceManager |
Returns the cached ResourceManager instance for this assembly. Lazily initialized on first access. |
Culture |
global::System.Globalization.CultureInfo |
Gets or sets the current thread's CurrentUICulture for resource lookups via this class. |
Resource String Properties (selected significant examples)
The class exposes many static read-only string properties. Key categories include:
Status & State Strings:
ActiveValue— Returns "Active value"Armed— Returns "Armed"Faulted— Returns "Faulted"NotArmed— Returns "Not armed"DASStatus_ARMED,DASStatus_ARMEDFAULTED,DASStatus_Offline,DASStatus_Online,DASStatus_READYFORDL— Data Acquisition System status labelsDistributorStatus_ARMED,DistributorStatus_ARMEDFAULTED,DistributorStatus_IDLE,DistributorStatus_OFFLINE,DistributorStatus_ONLINE— Distributor status labels
Hardware Type Descriptions:
BRIDGETYPE_ACC_DESCRIPTION— Returns "ACC"BRIDGETYPE_ARS_DESCRIPTION— Returns "ARS"BRIDGETYPE_BRIDGE_DESCRIPTION— Returns "Bridge"BRIDGETYPE_IEPE_DESCRIPTION— Returns "IEPE"G5_VDS_Description,G5InDummy_Description— G5 device descriptionsHardwareType_EMPTY— Returns "Empty"
Clock Synchronization Profiles (extensive set):
ClockSyncProfile_Auto_E2E,ClockSyncProfile_Auto_P2P— PTP automatic modesClockSyncProfile_Disabled,ClockSyncProfile_Manual,ClockSyncProfile_NoneClockSyncProfile_GPS,ClockSyncProfile_IRIG,ClockSyncProfile_EXT_PPS— External clock sourcesClockSyncProfile_Master_E2E,ClockSyncProfile_Master_P2P,ClockSyncProfile_Slave_E2E,ClockSyncProfile_Slave_P2P— PTP master/slave configurations- Many combined profiles (e.g.,
ClockSyncProfile_GPS_EXT_PPS_Master_E2E_PPS_OUT)
Filter Class Types:
FilterClassType_CFC1000,FilterClassType_CFC600,FilterClassType_CFC180,FilterClassType_CFC60— CFC filter class labelsFilterClassType_None,FilterClassType_Unfiltered
Digital I/O Modes:
DigitalInputMode_CCNC,DigitalInputMode_CCNO,DigitalInputMode_THL,DigitalInputMode_TLHDigitalOutputMode_CCNC,DigitalOutputMode_CCNO,DigitalOutputMode_FVHL,DigitalOutputMode_FVLH
Calculated Channel Types:
CalculatedChannel_Average,CalculatedChannel_Resultant,CalculatedChannel_SumCalculatedChannel_IRTRACC3D_Abdomen,CalculatedChannel_IRTRACC3D_LowerThorax,CalculatedChannel_IRTRACC3D_Thorax
Error & Warning Messages:
BAD_NETPATH_ERROR_MSG— Network path connection errorFailedToReadTestSetup,FailedToWritePcConfigFileInvalidCharacterInSerialNumber,InvalidClockSlave,InvalidClockSyncProfileMasterDockingStationNotFound— Multi-line recovery instructions
PSD/FFT Processing Status:
GeneratingPSD,GeneratingPSD_ApplyingFilters,GeneratingPSD_ApplyingWindows,GeneratingPSD_CalculatingFFTs,GeneratingPSD_CalculatingResults,GeneratingPSD_CreatingSegments,GeneratingPSD_ResizingData
Miscellaneous:
ClearAll,Loading,NotApplicable,MultipleFiles,NoChannelCodesFrequencyHz,Magnitude,GSquaredOverHz,Duration,DelayISO13499Code,ISOChannelName— ISO 13499 crash test data format fields
Note: The file was truncated; additional properties exist beyond what is shown.
3. Invariants
-
Auto-generation constraint: This file is machine-generated by
System.Resources.Tools.StronglyTypedResourceBuilder(version 16.0.0.0). Manual modifications will be overwritten when the.resxfile is regenerated. -
Lazy initialization: The
ResourceManagerproperty uses lazy initialization with a null-check pattern. Thetemplocal variable is assigned toresourceManonly ifresourceManis null. -
Thread-safety of ResourceManager: The lazy initialization pattern used is not thread-safe. Concurrent first-access could result in multiple
ResourceManagerinstances being created (though only one would be retained). -
Resource name mapping: Each property name maps directly to a resource key in the underlying
.resxfile. For example,ActiveValuecallsResourceManager.GetString("ActiveValue", resourceCulture). -
Culture fallback: If
Cultureis not explicitly set (resourceCultureremains null),ResourceManager.GetStringuses the current thread'sCurrentUICulture.
4. Dependencies
This Module Depends On:
System.Resources.ResourceManager— Resource lookup mechanismSystem.Globalization.CultureInfo— Culture-specific formatting/localizationSystem.CodeDom.Compiler.GeneratedCodeAttribute— Metadata for toolingSystem.Diagnostics.DebuggerNonUserCodeAttribute— Debugger behavior hintSystem.Runtime.CompilerServices.CompilerGeneratedAttribute— Compiler metadataSystem.Diagnostics.CodeAnalysis.SuppressMessageAttribute— Code analysis suppressionSystem.ComponentModel.EditorBrowsableAttribute— IntelliSense visibility control
The underlying .resx file:
- Located at
Common/DTS.CommonCore/Strings/Strings.resx(inferred from standard naming convention) - Contains the actual string values referenced by this class
What Depends On This Module:
- Unknown from source alone — Any component in the DTS system requiring localized strings would reference
DTS.Common.Strings.Strings. The breadth of strings suggests usage across:- Data acquisition system (DAS) configuration and status
- Clock synchronization subsystem
- Sensor calibration modules
- Digital I/O configuration
- PSD/FFT analysis components
- Test setup and ISO 13499 export functionality
5. Gotchas
-
Do not edit manually: The file header explicitly warns that changes will be lost on regeneration. All string modifications must be made in the source
.resxfile. -
Typo in property name:
DigitialOutput(note the extra 'i' in "Digitial") is a misspelling of "DigitalOutput". This typo is now part of the public API and cannot be fixed without breaking changes. -
Typo in resource key: Properties like
LabratoryContactEmail,LabratoryContactFax,LabratoryContactName,LabratoryContactPhone,LabratoryName,LabratoryProjectRefNumber,LabratoryTestRefNumberuse "Labratory" instead of "Laboratory". -
Thread-safety concern: The lazy initialization of
ResourceManageris not thread-safe. In high-concurrency scenarios where this class might be accessed for the first time from multiple threads simultaneously, consider whether this could cause issues. -
Namespace mismatch potential: The namespace is
DTS.Common.Stringsbut the file path suggestsDTS.CommonCore. Verify whether this is intentional or a historical artifact. -
Truncated source: The source file was truncated mid-property (
OutputClockSource_PTP_OnePPS). Additional properties exist that are not documented here.