/// <summary> /// Creates a new instance of the <see cref="PreprocessorSettingsProvider"/> class. /// </summary> /// <param name="databaseFilePath">The full path to the database file to use when reading settings.</param> /// <exception cref="CriticalFileReadException">Thrown when: /// <list type="bullet"> /// <item>The <paramref name="databaseFilePath"/> contains invalid characters.</item> /// <item>No file could be found at <paramref name="databaseFilePath"/>.</item> /// <item>Unable to open database file.</item> /// <item>The opened database doesn't have the expected schema.</item> /// </list> /// </exception> public PreprocessorSettingsProvider(string databaseFilePath) { this.databaseFilePath = databaseFilePath; preprocessorSettingsReader = new HydraRingSettingsDatabaseReader(databaseFilePath); InitializeDefaultPreprocessorSettings(); }
/// <summary> /// Creates a new instance of <see cref="TimeIntegrationSettingsProvider"/>. /// </summary> /// <param name="databaseFilePath">The full path to the database file to use when reading settings.</param> /// <exception cref="CriticalFileReadException">Thrown when: /// <list type="bullet"> /// <item>The <paramref name="databaseFilePath"/> contains invalid characters.</item> /// <item>No file could be found at <paramref name="databaseFilePath"/>.</item> /// <item>Unable to open database file.</item> /// <item>The opened database doesn't have the expected schema.</item> /// </list> /// </exception> public TimeIntegrationSettingsProvider(string databaseFilePath) { timeIntegrationSettingsReader = new HydraRingSettingsDatabaseReader(databaseFilePath); }
/// <summary> /// Creates a new instance of the <see cref="NumericsSettingsProvider"/> class. /// </summary> /// <param name="databaseFilePath">The full path to the database file to use when reading settings.</param> /// <exception cref="CriticalFileReadException">Thrown when: /// <list type="bullet"> /// <item>The <paramref name="databaseFilePath"/> contains invalid characters.</item> /// <item>No file could be found at <paramref name="databaseFilePath"/>.</item> /// <item>Unable to open database file.</item> /// <item>The opened database doesn't have the expected schema.</item> /// </list> /// </exception> public NumericsSettingsProvider(string databaseFilePath) { InitializeDefaultNumericsSettings(); numericsSettingsReader = new HydraRingSettingsDatabaseReader(databaseFilePath); }
/// <summary> /// Creates a new instance of the <see cref="DesignTablesSettingsProvider"/> class. /// </summary> /// <param name="databaseFilePath">The full path to the database file to use when reading settings.</param> /// <exception cref="CriticalFileReadException">Thrown when: /// <list type="bullet"> /// <item>The <paramref name="databaseFilePath"/> contains invalid characters.</item> /// <item>No file could be found at <paramref name="databaseFilePath"/>.</item> /// <item>Unable to open database file.</item> /// <item>The opened database doesn't have the expected schema.</item> /// </list> /// </exception> public DesignTablesSettingsProvider(string databaseFilePath) { InitializeDefaultDesignTablesSettings(); designTablesSettingsReader = new HydraRingSettingsDatabaseReader(databaseFilePath); }