From 23af08b9c47c80d0a10e17c971d9f7ee3648ba25 Mon Sep 17 00:00:00 2001 From: Ger van Diepen <diepen@astron.nl> Date: Wed, 20 Aug 2008 10:46:09 +0000 Subject: [PATCH] bug 1207: Make findFileSys a member function --- CEP/BB/MS/include/MS/VdsMaker.h | 6 +++++- CEP/BB/MS/src/VdsMaker.cc | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CEP/BB/MS/include/MS/VdsMaker.h b/CEP/BB/MS/include/MS/VdsMaker.h index 41d50daa06a..a19df392d25 100644 --- a/CEP/BB/MS/include/MS/VdsMaker.h +++ b/CEP/BB/MS/include/MS/VdsMaker.h @@ -26,7 +26,7 @@ #include <lofar_config.h> #include <Common/lofar_vector.h> #include <Common/lofar_string.h> - +#include <MWCommon/ClusterDesc.h> #include <ms/MeasurementSets/MeasurementSet.h> #include <casa/Arrays/Vector.h> @@ -65,6 +65,10 @@ namespace LOFAR { static void getDataFileInfo (casa::MS& ms, string& name, bool& regular, vector<int>& tileShape, vector<int>& cubeShape); + + // Find the file system on which the given file is located. + static string findFileSys (const std::string& fileName, + const CEP::ClusterDesc& cdesc); }; } diff --git a/CEP/BB/MS/src/VdsMaker.cc b/CEP/BB/MS/src/VdsMaker.cc index da536c8ea60..d799d99b7d9 100644 --- a/CEP/BB/MS/src/VdsMaker.cc +++ b/CEP/BB/MS/src/VdsMaker.cc @@ -141,7 +141,8 @@ void VdsMaker::getDataFileInfo (MS& ms, string& name, bool& regular, } } -string findFileSys (const std::string& fileName, const ClusterDesc& cdesc) +string VdsMaker::findFileSys (const std::string& fileName, + const ClusterDesc& cdesc) { // Find the file system by looking for a matching mountpoint. const std::vector<NodeDesc>& nodes = cdesc.getNodes(); -- GitLab