Skip to content
Snippets Groups Projects
Commit c0ca2017 authored by Julien Osman's avatar Julien Osman
Browse files

ENH: Avoid copy of big string as parameter

parent e89cc04f
No related branches found
No related tags found
No related merge requests found
...@@ -105,22 +105,22 @@ protected: ...@@ -105,22 +105,22 @@ protected:
} }
/* Fetch the AzimuthFmRate metadata */ /* Fetch the AzimuthFmRate metadata */
std::vector<OTB_azimuthFmRate> GetAzimuthFmRate(XMLMetadataSupplier) const; std::vector<OTB_azimuthFmRate> GetAzimuthFmRate(const XMLMetadataSupplier&) const;
/* Fetch the DopplerCentroid metadata */ /* Fetch the DopplerCentroid metadata */
std::vector<OTB_dopplerCentroid> GetDopplerCentroid(XMLMetadataSupplier) const; std::vector<OTB_dopplerCentroid> GetDopplerCentroid(const XMLMetadataSupplier&) const;
/* Fetch the Orbits metadata */ /* Fetch the Orbits metadata */
std::vector<OTB_Orbit> GetOrbits(XMLMetadataSupplier) const; std::vector<OTB_Orbit> GetOrbits(const XMLMetadataSupplier&) const;
/* Fetch the Calibration metadata */ /* Fetch the Calibration metadata */
std::vector<OTB_calibrationVector> GetCalibrationVector(XMLMetadataSupplier) const; std::vector<OTB_calibrationVector> GetCalibrationVector(const XMLMetadataSupplier&) const;
/* Fetch the noise LUTs */ /* Fetch the noise LUTs */
std::vector<OTB_SARNoise> GetNoiseVector(XMLMetadataSupplier) const; std::vector<OTB_SARNoise> GetNoiseVector(const XMLMetadataSupplier&) const;
/* Compute the mean terrain elevation */ /* Compute the mean terrain elevation */
double getBandTerrainHeight(XMLMetadataSupplier) const; double getBandTerrainHeight(const XMLMetadataSupplier&) const;
private: private:
Sentinel1ImageMetadataInterface(const Self&) = delete; Sentinel1ImageMetadataInterface(const Self&) = delete;
......
...@@ -352,7 +352,7 @@ double Sentinel1ImageMetadataInterface::GetCenterIncidenceAngle() const ...@@ -352,7 +352,7 @@ double Sentinel1ImageMetadataInterface::GetCenterIncidenceAngle() const
return 0; return 0;
} }
std::vector<OTB_azimuthFmRate> Sentinel1ImageMetadataInterface::GetAzimuthFmRate(XMLMetadataSupplier xmlMS) const std::vector<OTB_azimuthFmRate> Sentinel1ImageMetadataInterface::GetAzimuthFmRate(const XMLMetadataSupplier &xmlMS) const
{ {
std::vector<OTB_azimuthFmRate> azimuthFmRateVector; std::vector<OTB_azimuthFmRate> azimuthFmRateVector;
// Number of entries in the vector // Number of entries in the vector
...@@ -375,7 +375,7 @@ std::vector<OTB_azimuthFmRate> Sentinel1ImageMetadataInterface::GetAzimuthFmRate ...@@ -375,7 +375,7 @@ std::vector<OTB_azimuthFmRate> Sentinel1ImageMetadataInterface::GetAzimuthFmRate
return azimuthFmRateVector; return azimuthFmRateVector;
} }
std::vector<OTB_dopplerCentroid> Sentinel1ImageMetadataInterface::GetDopplerCentroid(XMLMetadataSupplier xmlMS) const std::vector<OTB_dopplerCentroid> Sentinel1ImageMetadataInterface::GetDopplerCentroid(const XMLMetadataSupplier &xmlMS) const
{ {
std::vector<OTB_dopplerCentroid> dopplerCentroidVector; std::vector<OTB_dopplerCentroid> dopplerCentroidVector;
// Number of entries in the vector // Number of entries in the vector
...@@ -400,7 +400,7 @@ std::vector<OTB_dopplerCentroid> Sentinel1ImageMetadataInterface::GetDopplerCent ...@@ -400,7 +400,7 @@ std::vector<OTB_dopplerCentroid> Sentinel1ImageMetadataInterface::GetDopplerCent
return dopplerCentroidVector; return dopplerCentroidVector;
} }
std::vector<OTB_Orbit> Sentinel1ImageMetadataInterface::GetOrbits(XMLMetadataSupplier xmlMS) const std::vector<OTB_Orbit> Sentinel1ImageMetadataInterface::GetOrbits(const XMLMetadataSupplier &xmlMS) const
{ {
std::vector<OTB_Orbit> orbitVector; std::vector<OTB_Orbit> orbitVector;
// Number of entries in the vector // Number of entries in the vector
...@@ -426,7 +426,7 @@ std::vector<OTB_Orbit> Sentinel1ImageMetadataInterface::GetOrbits(XMLMetadataSup ...@@ -426,7 +426,7 @@ std::vector<OTB_Orbit> Sentinel1ImageMetadataInterface::GetOrbits(XMLMetadataSup
return orbitVector; return orbitVector;
} }
std::vector<OTB_calibrationVector> Sentinel1ImageMetadataInterface::GetCalibrationVector(XMLMetadataSupplier xmlMS) const std::vector<OTB_calibrationVector> Sentinel1ImageMetadataInterface::GetCalibrationVector(const XMLMetadataSupplier &xmlMS) const
{ {
std::vector<OTB_calibrationVector> calibrationVector; std::vector<OTB_calibrationVector> calibrationVector;
// Number of entries in the vector // Number of entries in the vector
...@@ -478,7 +478,7 @@ std::vector<OTB_calibrationVector> Sentinel1ImageMetadataInterface::GetCalibrati ...@@ -478,7 +478,7 @@ std::vector<OTB_calibrationVector> Sentinel1ImageMetadataInterface::GetCalibrati
return calibrationVector; return calibrationVector;
} }
std::vector<OTB_SARNoise> Sentinel1ImageMetadataInterface::GetNoiseVector(XMLMetadataSupplier xmlMS) const std::vector<OTB_SARNoise> Sentinel1ImageMetadataInterface::GetNoiseVector(const XMLMetadataSupplier &xmlMS) const
{ {
std::vector<OTB_SARNoise> noiseVector; std::vector<OTB_SARNoise> noiseVector;
// Number of entries in the vector // Number of entries in the vector
...@@ -506,7 +506,7 @@ std::vector<OTB_SARNoise> Sentinel1ImageMetadataInterface::GetNoiseVector(XMLMet ...@@ -506,7 +506,7 @@ std::vector<OTB_SARNoise> Sentinel1ImageMetadataInterface::GetNoiseVector(XMLMet
return noiseVector; return noiseVector;
} }
double Sentinel1ImageMetadataInterface::getBandTerrainHeight(XMLMetadataSupplier xmlMS) const double Sentinel1ImageMetadataInterface::getBandTerrainHeight(const XMLMetadataSupplier &xmlMS) const
{ {
double heightSum = 0.0; double heightSum = 0.0;
// Number of entries in the vector // Number of entries in the vector
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment