Index: Riskeer/Common/src/Riskeer.Common.IO/HydraRing/HydraulicBoundaryDataHelper.cs
===================================================================
diff -u -r2f131c8393aa1cd11575c038d2fa1992ce5895fa -rf724a298bb90f4b74a7d4cef522991a723ebb3ab
--- Riskeer/Common/src/Riskeer.Common.IO/HydraRing/HydraulicBoundaryDataHelper.cs (.../HydraulicBoundaryDataHelper.cs) (revision 2f131c8393aa1cd11575c038d2fa1992ce5895fa)
+++ Riskeer/Common/src/Riskeer.Common.IO/HydraRing/HydraulicBoundaryDataHelper.cs (.../HydraulicBoundaryDataHelper.cs) (revision f724a298bb90f4b74a7d4cef522991a723ebb3ab)
@@ -43,20 +43,20 @@
private const string preprocessorClosureFileName = "preprocClosure.sqlite";
///
- /// Attempts to connect to the as if it is a hydraulic boundary database with a hydraulic
- /// location configuration database and hydraulic boundary database settings file next to it.
+ /// Attempts to connect to the as if it is a hydraulic boundary database with a hydraulic
+ /// location configuration database and hydraulic boundary settings database next to it.
///
- /// The file path of the hydraulic boundary database.
+ /// The file path of the hydraulic boundary database.
/// The file path of the hydraulic location configuration database.
/// The preprocessor directory.
/// Indicator whether the preprocessor closure is used in a calculation.
- /// A describing the problem when trying to connect to the
+ /// A describing the problem when trying to connect to the
/// or null if a connection could be correctly made.
- public static string ValidateFilesForCalculation(string filePath, string hlcdFilePath, string preprocessorDirectory, bool usePreprocessorClosure)
+ public static string ValidateFilesForCalculation(string hrdFilePath, string hlcdFilePath, string preprocessorDirectory, bool usePreprocessorClosure)
{
try
{
- IOUtils.ValidateFilePath(filePath);
+ IOUtils.ValidateFilePath(hrdFilePath);
}
catch (ArgumentException e)
{
@@ -65,18 +65,18 @@
try
{
- Path.GetDirectoryName(filePath);
+ Path.GetDirectoryName(hrdFilePath);
}
catch (PathTooLongException)
{
return string.Format(CultureInfo.CurrentCulture, HydraRingResources.HydraulicBoundaryDatabaseHelper_ValidatePathForCalculation_Invalid_path_0_,
- filePath);
+ hrdFilePath);
}
- string settingsDatabaseFileName = GetHydraulicBoundarySettingsDatabase(filePath);
+ string settingsDatabaseFileName = GetHydraulicBoundarySettingsDatabase(hrdFilePath);
try
{
- using (new HydraulicBoundaryDatabaseReader(filePath))
+ using (new HydraulicBoundaryDatabaseReader(hrdFilePath))
{
// Used on purpose to check the filePath
}
@@ -113,44 +113,43 @@
///
/// Checks whether the version of a instance matches the version of a hydraulic
- /// boundary database at the given .
+ /// boundary database at the given .
///
/// The hydraulic boundary data to compare the version of.
- /// The file path to the hydraulic boundary database to compare the
- /// version of.
+ /// The file path of the hydraulic boundary database to compare the version of.
/// true if equals the version of the hydraulic boundary database
- /// at , false otherwise.
+ /// at , false otherwise.
/// Thrown when no connection with the hydraulic boundary database could be
- /// created using .
+ /// created using .
/// Thrown when:
///
/// - is null;
- /// - is null.
+ /// - is null.
///
///
- public static bool HaveEqualVersion(HydraulicBoundaryData hydraulicBoundaryData, string hydraulicBoundaryDatabaseFilePath)
+ public static bool HaveEqualVersion(HydraulicBoundaryData hydraulicBoundaryData, string hrdFilePath)
{
if (hydraulicBoundaryData == null)
{
throw new ArgumentNullException(nameof(hydraulicBoundaryData));
}
- if (hydraulicBoundaryDatabaseFilePath == null)
+ if (hrdFilePath == null)
{
- throw new ArgumentNullException(nameof(hydraulicBoundaryDatabaseFilePath));
+ throw new ArgumentNullException(nameof(hrdFilePath));
}
- return hydraulicBoundaryData.Version == GetVersion(hydraulicBoundaryDatabaseFilePath);
+ return hydraulicBoundaryData.Version == GetVersion(hrdFilePath);
}
///
/// Gets the path of the hydraulic boundary database settings file.
///
- /// The path of the corresponding hydraulic boundary database file.
+ /// The path of the corresponding hydraulic boundary database file.
/// The path of the hydraulic boundary settings database file.
- public static string GetHydraulicBoundarySettingsDatabase(string hydraulicBoundaryDatabaseFilePath)
+ public static string GetHydraulicBoundarySettingsDatabase(string hrdFilePath)
{
- return Path.ChangeExtension(hydraulicBoundaryDatabaseFilePath, hydraRingConfigurationDatabaseExtension);
+ return Path.ChangeExtension(hrdFilePath, hydraRingConfigurationDatabaseExtension);
}
///
@@ -200,15 +199,15 @@
}
///
- /// Returns the version from the hydraulic boundary database pointed at by the .
+ /// Returns the version from the hydraulic boundary database pointed at by the .
///
- /// The file path of the hydraulic boundary database.
+ /// The file path of the hydraulic boundary database.
/// The version of the hydraulic boundary database as a .
/// Thrown when no connection with the hydraulic boundary database could
/// be created.
- private static string GetVersion(string filePath)
+ private static string GetVersion(string hrdFilePath)
{
- using (var db = new HydraulicBoundaryDatabaseReader(filePath))
+ using (var db = new HydraulicBoundaryDatabaseReader(hrdFilePath))
{
return db.ReadVersion();
}