/// <summary>
        /// Gets <see cref="PreprocessorSetting"/> based on the provided location id.
        /// </summary>
        /// <param name="locationId">The location id to obtain the <see cref="PreprocessorSetting"/> for.</param>
        /// <param name="usePreprocessor">Indicator whether the preprocessor must be taken into account.</param>
        /// <returns>The <see cref="PreprocessorSetting"/>.</returns>
        /// <exception cref="CriticalFileReadException">Thrown when a column that is being read doesn't
        /// contain expected type.</exception>
        public PreprocessorSetting GetPreprocessorSetting(long locationId, bool usePreprocessor)
        {
            if (!usePreprocessor || LocationExcluded(locationId))
            {
                return(new PreprocessorSetting());
            }

            ReadPreprocessorSetting readSetting = preprocessorSettingsReader.ReadPreprocessorSetting(locationId) ?? defaultPreprocessorSetting;

            return(new PreprocessorSetting(readSetting.ValueMin, readSetting.ValueMax, GetNumericsSetting(locationId)));
        }
 private void InitializeDefaultPreprocessorSettings()
 {
     defaultPreprocessorSetting = new ReadPreprocessorSetting(1, 6);
 }