diff --git a/Modules/ThirdParty/OssimPlugins/src/gdal/ossimOgcWktTranslator.cpp b/Modules/ThirdParty/OssimPlugins/src/gdal/ossimOgcWktTranslator.cpp index 6f2f0289ca28962cf3d8c93dc358b8cd8665f724..91f433d65752a83ec1736eb915543e7c14953b96 100644 --- a/Modules/ThirdParty/OssimPlugins/src/gdal/ossimOgcWktTranslator.cpp +++ b/Modules/ThirdParty/OssimPlugins/src/gdal/ossimOgcWktTranslator.cpp @@ -128,7 +128,7 @@ ossimString ossimOgcWktTranslator::fromOssimKwl(const ossimKeywordlist &kwl, << ": " << ( ossimUnitTypeLut::instance()-> getEntryString(units).c_str() ) - << endl; + << std::endl; break; } } // End of switch (units) @@ -491,11 +491,11 @@ ossimString ossimOgcWktTranslator::fromOssimKwl(const ossimKeywordlist &kwl, } else { - cerr << "ossimOgcWktTranslator::fromOssimKwl:\n" + std::cerr << "ossimOgcWktTranslator::fromOssimKwl:\n" << "Projection translation for " << projType << " not supported " - << endl; + << std::endl; } if(pcsCodeVal >= EPSG_CODE_MAX) @@ -532,10 +532,10 @@ ossimString ossimOgcWktTranslator::fromOssimKwl(const ossimKeywordlist &kwl, } else { - cerr << "ossimOgcWktTranslator::fromOssimKwl: Datum translation for " + std::cerr << "ossimOgcWktTranslator::fromOssimKwl: Datum translation for " << datumType <<" not supported" - << endl; + << std::endl; } } @@ -700,7 +700,7 @@ bool ossimOgcWktTranslator::toOssimKwl( const ossimString& wktString, { ossimNotify(ossimNotifyLevel_DEBUG) << MODULE << "DEBUG:" - << "\nossimProj = " << ossimProj << endl; + << "\nossimProj = " << ossimProj << std::endl; } kwl.add(prefix, ossimKeywordNames::TYPE_KW, ossimProj.c_str(), true); @@ -916,7 +916,7 @@ bool ossimOgcWktTranslator::toOssimKwl( const ossimString& wktString, << "Projection conversion to OSSIM not supported !!!!!!!!!\n" << "Please send the following string to the development staff\n" << "to be added to the transaltion to OSSIM\n" - << wkt << endl; + << wkt << std::endl; } return false; } @@ -1055,7 +1055,7 @@ ossimString ossimOgcWktTranslator::wktToOssimDatum(const ossimString& datum)cons ossimString ossimOgcWktTranslator::ossimToWktDatum(const ossimString& datum)const { ossimString result; - map<std::string, std::string>::const_iterator i = theOssimToWktDatumTranslation.find(datum); + std::map<std::string, std::string>::const_iterator i = theOssimToWktDatumTranslation.find(datum); if(i != theOssimToWktDatumTranslation.end()) { result = (*i).second; @@ -1066,7 +1066,7 @@ ossimString ossimOgcWktTranslator::ossimToWktDatum(const ossimString& datum)cons ossimString ossimOgcWktTranslator::wktToOssimProjection(const ossimString& datum)const { std::string result; - map<std::string, std::string>::const_iterator i = + std::map<std::string, std::string>::const_iterator i = theWktToOssimProjectionTranslation.find(datum); if(i != theWktToOssimProjectionTranslation.end()) { @@ -1078,7 +1078,7 @@ ossimString ossimOgcWktTranslator::wktToOssimProjection(const ossimString& datum ossimString ossimOgcWktTranslator::ossimToWktProjection(const ossimString& datum)const { ossimString result; - map<std::string, std::string>::const_iterator i = + std::map<std::string, std::string>::const_iterator i = theOssimToWktProjectionTranslation.find(datum); if(i != theOssimToWktProjectionTranslation.end()) { diff --git a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimAlosPalsarModel.cpp b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimAlosPalsarModel.cpp index 215d10d7ee059b9845eeec03f19d3add0011d087..b9986ffb17898d70e6179304b461209fd830da44 100644 --- a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimAlosPalsarModel.cpp +++ b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimAlosPalsarModel.cpp @@ -217,7 +217,7 @@ namespace ossimplugins /* * Leader file data reading */ - std::ifstream leaderFile(leaFilename.c_str(), ios::in | ios::binary); + std::ifstream leaderFile(leaFilename.c_str(), std::ios::in | std::ios::binary); leaderFile >> *theAlosPalsarLeader; leaderFile.close(); @@ -241,7 +241,7 @@ namespace ossimplugins /* * Read header of data file for image size info */ - std::ifstream dataFile(datFilename.c_str(), ios::in | ios::binary); + std::ifstream dataFile(datFilename.c_str(), std::ios::in | std::ios::binary); dataFile >> *theAlosPalsarData; dataFile.close(); @@ -682,7 +682,7 @@ namespace ossimplugins bool ossimAlosPalsarModel::isAlosPalsarLeader(const ossimFilename& file) const { - std::ifstream candidate(file.c_str(), ios::in | ios::binary); + std::ifstream candidate(file.c_str(), std::ios::in | std::ios::binary); char alosFileName[16]; candidate.seekg(48); @@ -745,7 +745,7 @@ namespace ossimplugins bool ossimAlosPalsarModel::isAlosPalsarData(const ossimFilename& file) const { - std::ifstream candidate(file.c_str(), ios::in | ios::binary); + std::ifstream candidate(file.c_str(), std::ios::in | std::ios::binary); char alosFileName[16]; candidate.seekg(48); diff --git a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimCosmoSkymedModel.cpp b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimCosmoSkymedModel.cpp index b11d6dc1fda61880c96f2196d9aeb68ede39b38e..ca9d72ece58a9fa1152c685af6d5c9fad184afd1 100644 --- a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimCosmoSkymedModel.cpp +++ b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimCosmoSkymedModel.cpp @@ -119,14 +119,14 @@ namespace ossimplugins // Capture stream flags since we are going to mess with them. std::ios_base::fmtflags f = out.flags(); - out << "\nDump of ossimCosmoSkymedModel at address " << hex << this - << dec + out << "\nDump of ossimCosmoSkymedModel at address " << std::hex << this + << std::dec << "\n------------------------------------------------" << "\n theImageID = " << theImageID << "\n theImageSize = " << theImageSize << "\n------------------------------------------------" - << "\n " << endl; + << "\n " << std::endl; // Set the flags back. out.flags(f); diff --git a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimEnvisatAsarModel.cpp b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimEnvisatAsarModel.cpp index a2b8c4c5e7f12fe109d910c32a8c3b3ca13b1d8b..d04f06725eb857cf89b91f7c5da8c20cd5c20211 100644 --- a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimEnvisatAsarModel.cpp +++ b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimEnvisatAsarModel.cpp @@ -125,7 +125,7 @@ namespace ossimplugins * Opening and test of the file */ ossimFilename Filename = file; - ifstream dataFile(Filename.c_str(), ios::in | ios::binary); + std::ifstream dataFile(Filename.c_str(), std::ios::in | std::ios::binary); if (dataFile.eof()) { dataFile.close(); @@ -368,7 +368,7 @@ namespace ossimplugins // Capture the original flags. std::ios_base::fmtflags f = out.flags(); - out << setprecision(15) << setiosflags(ios::fixed) + out << std::setprecision(15) << std::setiosflags(std::ios::fixed) << "\nossimEnvisatAsarModel data members:\n" << "_pixel_spacing: " << _pixel_spacing << "\n" << "_n_srgr: " << _n_srgr << "\n"; diff --git a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimErsSarModel.cpp b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimErsSarModel.cpp index d781754df838192dd61615cb7c2a6c8a83796843..446f09d4151c51cde941d47267314b82745ceeff 100644 --- a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimErsSarModel.cpp +++ b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimErsSarModel.cpp @@ -195,7 +195,7 @@ namespace ossimplugins /* * Leader file data reading */ - std::ifstream leaderFile(leaFilename.c_str(), ios::in | ios::binary); + std::ifstream leaderFile(leaFilename.c_str(), std::ios::in | std::ios::binary); leaderFile >> *theErsSarleader; leaderFile.close(); @@ -613,8 +613,8 @@ namespace ossimplugins ossimString filename(kwl.find("filename")); filename.upcase(); //std::transform(filename.begin(), filename.end(), filename.begin(), toupper); - string::size_type loc = filename.find("PRI"); - if (loc != string::npos) + std::string::size_type loc = filename.find("PRI"); + if (loc != std::string::npos) { _isProductGeoreferenced = true; } @@ -646,7 +646,7 @@ namespace ossimplugins bool ossimErsSarModel::isErsLeader(const ossimFilename& file) const { - std::ifstream candidate(file.c_str(), ios::in | ios::binary); + std::ifstream candidate(file.c_str(), std::ios::in | std::ios::binary); char ersFileName[16]; candidate.seekg(48); diff --git a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimFormosatDimapSupportData.cpp b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimFormosatDimapSupportData.cpp index 43ae793f91c706c72f44a184cdbde251571a58bd..0aab7c5bc214fcf77986d220ad75708359977ac2 100644 --- a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimFormosatDimapSupportData.cpp +++ b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimFormosatDimapSupportData.cpp @@ -326,7 +326,7 @@ bool ossimFormosatDimapSupportData::loadXmlFile(const ossimFilename& file) //--- // Check that it is a FORMOSAT DIMAP file format //--- - vector<ossimRefPtr<ossimXmlNode> > xml_nodes; + std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes; xml_nodes.clear(); ossimString xpath = "/Dimap_Document/Dataset_Sources/Source_Information/Scene_Source/MISSION"; xmlDocument->findNodes(xpath, xml_nodes); @@ -803,7 +803,7 @@ void ossimFormosatDimapSupportData::getGeoPosPoint (ossim_uint32 point, } } -void ossimFormosatDimapSupportData::printInfo(ostream& os) const +void ossimFormosatDimapSupportData::printInfo(std::ostream& os) const { ossimString corr_att = "NO"; if (theStarTrackerUsed) @@ -1522,7 +1522,7 @@ bool ossimFormosatDimapSupportData::parsePart1( static const char MODULE[] = "ossimFormosatDimapSupportData::parsePart1"; ossimString xpath; - vector<ossimRefPtr<ossimXmlNode> > xml_nodes; + std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes; //--- // Fetch the ImageSize: @@ -2351,7 +2351,7 @@ bool ossimFormosatDimapSupportData::initMetadataVersion(ossimRefPtr<ossimXmlDocu { ossimNotify(ossimNotifyLevel_DEBUG) << "DEBUG:\nCould not find: " << xpath - << endl; + << std::endl; } return false; } @@ -2386,7 +2386,7 @@ bool ossimFormosatDimapSupportData::initImageId( ossimRefPtr<ossimXmlDocument> xmlDocument) { ossimString xpath; - vector<ossimRefPtr<ossimXmlNode> > xml_nodes; + std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes; //--- // Fetch the Image ID: @@ -2400,7 +2400,7 @@ bool ossimFormosatDimapSupportData::initImageId( { ossimNotify(ossimNotifyLevel_DEBUG) << "DEBUG:\nCould not find: " << xpath - << endl; + << std::endl; } return false; } @@ -2412,7 +2412,7 @@ bool ossimFormosatDimapSupportData::initSceneSource( ossimRefPtr<ossimXmlDocument> xmlDocument) { ossimString xpath; - vector<ossimRefPtr<ossimXmlNode> > xml_nodes; + std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes; //--- // Fetch the mission index (Formosat 1 or 2): @@ -2591,7 +2591,7 @@ bool ossimFormosatDimapSupportData::initFramePoints( ossimRefPtr<ossimXmlDocument> xmlDocument) { ossimString xpath; - vector<ossimRefPtr<ossimXmlNode> > xml_nodes; + std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes; //--- // Corner points: diff --git a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimFormosatDimapSupportData.h b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimFormosatDimapSupportData.h index c8146ba259b8a9cffa7387f5bf2fde426e6611a2..a63dfc7da6278429303a0f105e3602ef782927f8 100644 --- a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimFormosatDimapSupportData.h +++ b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimFormosatDimapSupportData.h @@ -162,7 +162,7 @@ public: //--- // Convenient method to print important image info: //--- - void printInfo (ostream& os) const; + void printInfo (std::ostream& os) const; virtual bool saveState(ossimKeywordlist& kwl, const char* prefix = 0)const; diff --git a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimFormosatModel.cpp b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimFormosatModel.cpp index c6aa8a24157333efa1d7d565ae4bc6b4007262e8..212fd1e5b3f76933705e7e58504a7a20d5d0cc7b 100644 --- a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimFormosatModel.cpp +++ b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimFormosatModel.cpp @@ -472,8 +472,8 @@ std::ostream& ossimplugins::ossimFormosatModel::print(std::ostream& out) const // Capture stream flags since we are going to mess with them. std::ios_base::fmtflags f = out.flags(); - out << "\nDump of ossimFormosatModel at address " << (hex) << this - << (dec) + out << "\nDump of ossimFormosatModel at address " << (std::hex) << this + << (std::dec) << "\n------------------------------------------------" << "\n theImageID = " << theImageID << "\n theMetadataFile = " << theMetaDataFile @@ -495,7 +495,7 @@ std::ostream& ossimplugins::ossimFormosatModel::print(std::ostream& out) const << "\n theYawRate = " << theYawRate << "\n theFocalLenOffset = " << theFocalLenOffset << "\n------------------------------------------------" - << "\n " << endl; + << "\n " << std::endl; // Set the flags back. out.flags(f); @@ -596,14 +596,14 @@ void ossimplugins::ossimFormosatModel::imagingRay(const ossimDpt& image_point, { ossimNotify(ossimNotifyLevel_DEBUG) << "DEBUG:\n\t Psi_x = " << Psi_x - << "\n\t Psi_y = " << Psi_y << endl; + << "\n\t Psi_y = " << Psi_y << std::endl; } ossimColumnVector3d u_sat (-tan(Psi_y), tan(Psi_x), -(1.0 + theFocalLenOffset)); if (traceDebug() || runtime_dbflag) { ossimNotify(ossimNotifyLevel_DEBUG) - << "DEBUG \n\t u_sat = " << u_sat << endl; + << "DEBUG \n\t u_sat = " << u_sat << std::endl; } // @@ -617,7 +617,7 @@ void ossimplugins::ossimFormosatModel::imagingRay(const ossimDpt& image_point, { ossimNotify(ossimNotifyLevel_DEBUG) << "DEBUG:\n\t theSatToOrbRotation = " << satToOrbit - << "\n\t u_orb = " << u_orb << endl; + << "\n\t u_orb = " << u_orb << std::endl; } // @@ -648,7 +648,7 @@ void ossimplugins::ossimFormosatModel::imagingRay(const ossimDpt& image_point, { ossimNotify(ossimNotifyLevel_DEBUG) << "DEBUG:\n\t orbToEcfRotation = " << orbToEcfRotation - << "\n\t u_ecf = " << u_ecf << endl; + << "\n\t u_ecf = " << u_ecf << std::endl; } // diff --git a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimFormosatModel.h b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimFormosatModel.h index e2b335345db7d5762efc4dbe49bb4ddeeb9a7fd1..d080c7524dd3c631ed0e6cf90f01c2d823205173 100644 --- a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimFormosatModel.h +++ b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimFormosatModel.h @@ -94,7 +94,7 @@ public: * Writes a template of geom keywords processed by loadState and saveState * to output stream. */ - static void writeGeomTemplate(ostream& os); + static void writeGeomTemplate(std::ostream& os); /*! * Given an image point and height, initializes worldPoint. diff --git a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimGeometricSarSensorModel.cpp b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimGeometricSarSensorModel.cpp index 5b1d2d08e13aaa840a92854f6b0b0c64c37adb58..73632e755f4910aca7b1aba7ef47c552c0db4986 100644 --- a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimGeometricSarSensorModel.cpp +++ b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimGeometricSarSensorModel.cpp @@ -133,7 +133,7 @@ namespace ossimplugins return time; } - bool ossimGeometricSarSensorModel::getPlatformPositionAtLine(double line, vector<double>& position, vector<double>& speed) + bool ossimGeometricSarSensorModel::getPlatformPositionAtLine(double line, std::vector<double>& position, std::vector<double>& speed) { JSDDateTime time = getTime(line); return _platformPosition->getPlatformPositionAtTime(time,position,speed); @@ -532,13 +532,13 @@ namespace ossimplugins // if (result) // { // ossimNotify(ossimNotifyLevel_DEBUG) -// << "calling saveState to verify loadState..." << endl; +// << "calling saveState to verify loadState..." << std::endl; // ossimKeywordlist kwl2; // saveState(kwl2, 0); // ossimNotify(ossimNotifyLevel_DEBUG) -// << "saveState result after loadState:" << kwl2 << endl; +// << "saveState result after loadState:" << kwl2 << std::endl; // } if (traceDebug()) @@ -574,7 +574,7 @@ namespace ossimplugins std::ostream& ossimGeometricSarSensorModel::print(std::ostream& out) const { - out << setprecision(15) << setiosflags(ios::fixed) + out << std::setprecision(15) << std::setiosflags(std::ios::fixed) << "\nossimGeometricSarSensorModel class data members:\n"; const char* prefix = 0; @@ -631,7 +631,7 @@ bool ossimGeometricSarSensorModel::createReplacementOCG() if (traceDebug()) { - ossimNotify(ossimNotifyLevel_NOTICE)<<"\nComputing coarse grid..."<<endl; + ossimNotify(ossimNotifyLevel_NOTICE)<<"\nComputing coarse grid..."<<std::endl; } _replacementOcgModel->buildGrid(theImageClipRect, this, 500.00, true, false); diff --git a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimGeometricSarSensorModel.h b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimGeometricSarSensorModel.h index 40f33c522a99623027be72c0394cdb7c419f4dfa..967b289e95c4d8949b33643e949fa7d37dcaa1f6 100644 --- a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimGeometricSarSensorModel.h +++ b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimGeometricSarSensorModel.h @@ -118,7 +118,7 @@ public: * @param position Position of the sensor at line line * @param speed Speed of the sensor at line line */ - virtual bool getPlatformPositionAtLine(double line, vector<double>& position, vector<double>& speed); + virtual bool getPlatformPositionAtLine(double line, std::vector<double>& position, std::vector<double>& speed); /** * @brief This function is able to convert image coordinates into world diff --git a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimPleiadesDimapSupportData.cpp b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimPleiadesDimapSupportData.cpp index aa0691d81010e5d1e0499884aff5e2056c6dfe8c..fe0de3e05b90e5fd53f43a85aef92196ec599683 100644 --- a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimPleiadesDimapSupportData.cpp +++ b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimPleiadesDimapSupportData.cpp @@ -99,7 +99,7 @@ namespace ossimplugins ossimString xpath, ossimString& nodeValue) { - vector<ossimRefPtr<ossimXmlNode> > xml_nodes; + std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes; xmlDocument->findNodes(xpath, xml_nodes); if (xml_nodes.size() == 0) @@ -286,7 +286,7 @@ namespace ossimplugins theSwathLastCol = 0; } - void ossimPleiadesDimapSupportData::printInfo(ostream& os) const + void ossimPleiadesDimapSupportData::printInfo(std::ostream& os) const { os << "\n----------------- Info on Pleiades Image -------------------" @@ -1249,7 +1249,7 @@ namespace ossimplugins ossimRefPtr<ossimXmlDocument> xmlDocument) { ossimString xpath; - vector<ossimRefPtr<ossimXmlNode> > xml_nodes; + std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes; //--- // Fetch the Image ID: @@ -1292,7 +1292,7 @@ namespace ossimplugins ossimRefPtr<ossimXmlDocument> xmlDocument) { ossimString xpath, nodeValue; - vector<ossimRefPtr<ossimXmlNode> > xml_nodes; + std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes; //--- // Corner points: @@ -1574,7 +1574,7 @@ namespace ossimplugins { static const char MODULE[] = "ossimPleiadesDimapSupportData::parseRPCMetadata"; ossimString xpath, nodeValue; - vector<ossimRefPtr<ossimXmlNode> > xml_nodes; + std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes; //--- // Fetch the Global RFM - Direct Model - Bias: @@ -1919,7 +1919,7 @@ namespace ossimplugins { // static const char MODULE[] = "ossimPleiadesDimapSupportData::parseMetadataIdentification"; - vector<ossimRefPtr<ossimXmlNode> > xml_nodes; + std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes; ossimString xpath, nodeValue; theXmlDocumentRoot = "/PHR_Dimap_Document"; @@ -1971,7 +1971,7 @@ namespace ossimplugins { // static const char MODULE[] = "ossimPleiadesDimapSupportData::parseMetadataIdentification"; - vector<ossimRefPtr<ossimXmlNode> > xml_nodes; + std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes; ossimString xpath, nodeValue; theXmlDocumentRoot = "/DIMAP_Document"; @@ -1990,7 +1990,7 @@ namespace ossimplugins theXmlDocumentRoot = "/PHR_DIMAP_Document"; if (traceDebug()) { - ossimNotify(ossimNotifyLevel_DEBUG) << "DEBUG:\nTry to use the old root: " << theXmlDocumentRoot << endl; + ossimNotify(ossimNotifyLevel_DEBUG) << "DEBUG:\nTry to use the old root: " << theXmlDocumentRoot << std::endl; } xml_nodes.clear(); @@ -2005,7 +2005,7 @@ namespace ossimplugins theXmlDocumentRoot = "/Dimap_Document"; if (traceDebug()) { - ossimNotify(ossimNotifyLevel_DEBUG) << "DEBUG:\nTry to use the new root: " << theXmlDocumentRoot << endl; + ossimNotify(ossimNotifyLevel_DEBUG) << "DEBUG:\nTry to use the new root: " << theXmlDocumentRoot << std::endl; } xml_nodes.clear(); @@ -2017,7 +2017,7 @@ namespace ossimplugins setErrorStatus(); if (traceDebug()) { - ossimNotify(ossimNotifyLevel_DEBUG) << "DEBUG:\nCould not find: " << xpath << endl; + ossimNotify(ossimNotifyLevel_DEBUG) << "DEBUG:\nCould not find: " << xpath << std::endl; } return false; } @@ -2113,7 +2113,7 @@ namespace ossimplugins { // static const char MODULE[] = "ossimPleiadesDimapSupportData::parseProcessingInformation"; - vector<ossimRefPtr<ossimXmlNode> > xml_nodes; + std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes; ossimString xpath, nodeValue; //--- @@ -2156,7 +2156,7 @@ namespace ossimplugins bool ossimPleiadesDimapSupportData::parseRasterData(ossimRefPtr<ossimXmlDocument> xmlDocument) { static const char MODULE[] = "ossimPleiadesDimapSupportData::parseRasterData"; - vector<ossimRefPtr<ossimXmlNode> > xml_nodes; + std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes; ossimString xpath, nodeValue; //--- // Fetch if the product file is linked to one or many JP2 files: @@ -2471,7 +2471,7 @@ namespace ossimplugins bool ossimPleiadesDimapSupportData::parseGeometricData(ossimRefPtr<ossimXmlDocument> xmlDocument) { ossimString xpath, nodeValue; - vector<ossimRefPtr<ossimXmlNode> > xml_nodes; + std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes; xml_nodes.clear(); if (theDIMAPVersion == OSSIM_PLEIADES_DIMAPv1) @@ -2760,7 +2760,7 @@ namespace ossimplugins { // static const char MODULE[] = "ossimPleiadesDimapSupportData::parseDatasetSources"; ossimString xpath, nodeValue; - vector<ossimRefPtr<ossimXmlNode> > xml_nodes; + std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes; //--- // Fetch the mission index (1A or 1B) ? diff --git a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimPleiadesDimapSupportData.h b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimPleiadesDimapSupportData.h index 0eb9e3fb1c0ab7a31e8088f450d8055efb987f0b..a58259fe617cde9b5fa6530b54687d1fd5c4ec84 100644 --- a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimPleiadesDimapSupportData.h +++ b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimPleiadesDimapSupportData.h @@ -82,7 +82,7 @@ namespace ossimplugins //--- // Convenient method to print important image info: //--- - void printInfo (ostream& os) const; + void printInfo (std::ostream& os) const; /** * Method to save the state of the object to a keyword list. diff --git a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimPleiadesModel.cpp b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimPleiadesModel.cpp index 0515c186c6486272f7ac58b5befb6d6274a72359..de1148fcdbc42f78de5dddf01037d1a35e7429fd 100644 --- a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimPleiadesModel.cpp +++ b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimPleiadesModel.cpp @@ -107,8 +107,8 @@ namespace ossimplugins // Capture stream flags since we are going to mess with them. std::ios_base::fmtflags f = out.flags(); - out << "\nDump of ossimPleiadesModel at address " << (hex) << this - << (dec) + out << "\nDump of ossimPleiadesModel at address " << (std::hex) << this + << (std::dec) << "\n------------------------------------------------" << "\n theImageID = " << theImageID << "\n theImageSize = " << theImageSize @@ -116,7 +116,7 @@ namespace ossimplugins << "\n theRefImgPt = " << theRefImgPt << "\n theProcessingLevel = " << theSupportData->getProcessingLevel() << "\n------------------------------------------------" - << "\n " << endl; + << "\n " << std::endl; // Set the flags back. out.flags(f); diff --git a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimRadarSat2Model.cpp b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimRadarSat2Model.cpp index c004e4231222942d79431bc84b9db74a9f150f13..a1c313364f5568e6b3c0e63355646edcf551154f 100644 --- a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimRadarSat2Model.cpp +++ b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimRadarSat2Model.cpp @@ -115,7 +115,7 @@ double ossimRadarSat2Model::getSlantRangeFromGeoreferenced(double col) const << "\n(col-_refPoint->get_pix_col()) " << (col-_refPoint->get_pix_col()) << "\n_refPoint->get_pix_col() : " << _refPoint->get_pix_col() - << "\n relativeGroundRange : " << relativeGroundRange << endl; + << "\n relativeGroundRange : " << relativeGroundRange << std::endl; } int numSet = FindSRGRSetNumber((_refPoint->get_ephemeris())->get_date()) ; @@ -303,7 +303,7 @@ bool ossimRadarSat2Model::open(const ossimFilename& file) ossimNotify(ossimNotifyLevel_DEBUG) << "theImageClipRect : " << theImageClipRect << "ul, ur, lr, ll " << ul << ", " << ur - << ", " << lr << " , " << ll << endl; + << ", " << lr << " , " << ll << std::endl; } setGroundRect(ul, ur, lr, ll); // ossimSensorModel method. @@ -328,7 +328,7 @@ std::ostream& ossimRadarSat2Model::print(std::ostream& out) const // Capture the original flags. std::ios_base::fmtflags f = out.flags(); - out << setprecision(15) << setiosflags(ios::fixed) + out << std::setprecision(15) << std::setiosflags(std::ios::fixed) << "\nossimRadarSat2Model class data members:\n" << "_n_srgr: " << _n_srgr << "\n"; diff --git a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimRadarSat2ProductDoc.cpp b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimRadarSat2ProductDoc.cpp index 6e857e58e801ce2f1cd66053ff65547c1552ace5..02a67f4d50d25f9d799f787af3939b69666727b7 100644 --- a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimRadarSat2ProductDoc.cpp +++ b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimRadarSat2ProductDoc.cpp @@ -711,10 +711,10 @@ RPCModel ossimRadarSat2ProductDoc::getRpcData(const ossimXmlDocument* xdoc) cons double longitudeScale = 0; double heightScale = 0; - vector<double> lineNumeratorCoefficients = vector<double>(20,0); - vector<double> lineDenominatorCoefficients = vector<double>(20,0); - vector<double> pixelNumeratorCoefficients = vector<double>(20,0); - vector<double> pixelDenominatorCoefficients = vector<double>(20,0); + std::vector<double> lineNumeratorCoefficients = std::vector<double>(20,0); + std::vector<double> lineDenominatorCoefficients = std::vector<double>(20,0); + std::vector<double> pixelNumeratorCoefficients = std::vector<double>(20,0); + std::vector<double> pixelDenominatorCoefficients = std::vector<double>(20,0); //the final string outputs to the text file @@ -724,66 +724,66 @@ RPCModel ossimRadarSat2ProductDoc::getRpcData(const ossimXmlDocument* xdoc) cons if (rs2Check) { if (!ossim::getPath(searchbiasError, xdoc, biasErrorStr)) - ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << endl; + ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << std::endl; biasError = biasErrorStr.toDouble(); if (!ossim::getPath(searchrandomError, xdoc, randomErrorStr)) - ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << endl; + ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << std::endl; randomError = randomErrorStr.toDouble(); if (!ossim::getPath(searchlineFitQuality, xdoc, lineFitQualityStr)) - ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << endl; + ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << std::endl; lineFitQuality = lineFitQualityStr.toDouble(); if (!ossim::getPath(searchpixelFitQuality, xdoc, pixelFitQualityStr)) - ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << endl; + ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << std::endl; pixelFitQuality = pixelFitQualityStr.toDouble(); if (!ossim::getPath(searchlineOffset, xdoc, lineOffsetStr)) - ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << endl; + ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << std::endl; lineOffset = lineOffsetStr.toDouble(); if (!ossim::getPath(searchpixelOffset, xdoc, pixelOffsetStr)) - ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << endl; + ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << std::endl; pixelOffset = pixelOffsetStr.toDouble(); if (!ossim::getPath(searchlatitudeOffset, xdoc, latitudeOffsetStr)) - ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << endl; + ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << std::endl; latitudeOffset = latitudeOffsetStr.toDouble(); if (!ossim::getPath(searchlongitudeOffset, xdoc, longitudeOffsetStr)) - ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << endl; + ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << std::endl; longitudeOffset = longitudeOffsetStr.toDouble(); if (!ossim::getPath(searchheightOffset, xdoc, heightOffsetStr)) - ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << endl; + ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << std::endl; heightOffset = heightOffsetStr.toDouble(); // -------------- if (!ossim::getPath(searchlineScale, xdoc, lineScaleStr)) - ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << endl; + ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << std::endl; lineScale = lineScaleStr.toDouble(); if (!ossim::getPath(searchpixelScale, xdoc, pixelScaleStr)) - ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << endl; + ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << std::endl; pixelScale = pixelScaleStr.toDouble(); if (!ossim::getPath(searchlatitudeScale, xdoc, latitudeScaleStr)) - ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << endl; + ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << std::endl; latitudeScale = latitudeScaleStr.toDouble(); // ----------------------- if (!ossim::getPath(searchlongitudeScale, xdoc, longitudeScaleStr)) - ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << endl; + ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << std::endl; longitudeScale = longitudeScaleStr.toDouble(); if (!ossim::getPath(searchheightScale, xdoc, heightScaleStr)) - ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << endl; + ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << std::endl; heightScale = heightScaleStr.toDouble(); // ---- parameters for reading in coeefs ------------ @@ -794,7 +794,7 @@ RPCModel ossimRadarSat2ProductDoc::getRpcData(const ossimXmlDocument* xdoc) cons if (!ossim::getPath(searchlineNumeratorCoefficients, xdoc, lineNumeratorCoefficientsStr)) - ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << endl; + ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << std::endl; string lineNumeratorCoefficientsStr_N = lineNumeratorCoefficientsStr[0]; @@ -810,7 +810,7 @@ RPCModel ossimRadarSat2ProductDoc::getRpcData(const ossimXmlDocument* xdoc) cons // ------------------ if (!ossim::getPath(searchlineDenominatorCoefficients, xdoc, lineDenominatorCoefficientsStr)) - ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << endl; + ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << std::endl; string lineDenominatorCoefficientsStr_N = lineDenominatorCoefficientsStr[0]; @@ -827,7 +827,7 @@ RPCModel ossimRadarSat2ProductDoc::getRpcData(const ossimXmlDocument* xdoc) cons // ------------------ if (!ossim::getPath(searchpixelNumeratorCoefficients, xdoc, pixelNumeratorCoefficientsStr)) - ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << endl; + ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << std::endl; string pixelNumeratorCoefficientsStr_N = pixelNumeratorCoefficientsStr[0]; @@ -843,7 +843,7 @@ RPCModel ossimRadarSat2ProductDoc::getRpcData(const ossimXmlDocument* xdoc) cons // ------------------ if (!ossim::getPath(searchpixelDenominatorCoefficients, xdoc, pixelDenominatorCoefficientsStr)) - ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << endl; + ossimNotify(ossimNotifyLevel_WARN) << "ERROR: UNABLE TO FIND RS2 RPC COEFFICIENT INFORMATION" << std::endl; string pixelDenominatorCoefficientsStr_N = pixelDenominatorCoefficientsStr[0]; diff --git a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimRadarSatModel.cpp b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimRadarSatModel.cpp index c859a162ecb694ae48b0fff4c5cf6595be8f305c..a8199355737f96100976c9f97d510312b7af12d1 100644 --- a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimRadarSatModel.cpp +++ b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimRadarSatModel.cpp @@ -158,24 +158,24 @@ bool ossimRadarSatModel::open(const ossimFilename& file) ossimFilename dataFilePath; ossimFilename volumeDirectoryFilePath; std::string input_file = file; - string::size_type loc_DAT = input_file.find( "DAT_01", 0 ); - string::size_type loc_dat = input_file.find( "dat_01", 0 ); - if ( (loc_DAT != string::npos ) || ( loc_dat != string::npos ) ) + std::string::size_type loc_DAT = input_file.find( "DAT_01", 0 ); + std::string::size_type loc_dat = input_file.find( "dat_01", 0 ); + if ( (loc_DAT != std::string::npos ) || ( loc_dat != std::string::npos ) ) { dataFilePath = input_file.c_str(); - if (loc_DAT != string::npos ) input_file.replace(loc_DAT, 6, "VDF_DAT"); - if (loc_dat != string::npos ) input_file.replace(loc_dat, 6, "vdf_dat"); + if (loc_DAT != std::string::npos ) input_file.replace(loc_DAT, 6, "VDF_DAT"); + if (loc_dat != std::string::npos ) input_file.replace(loc_dat, 6, "vdf_dat"); volumeDirectoryFilePath = input_file.c_str(); } else { - string::size_type loc_VDF = input_file.find( "VDF_DAT", 0 ); - string::size_type loc_vdf = input_file.find( "vdf_dat", 0 ); - if ( (loc_VDF != string::npos ) || ( loc_vdf != string::npos ) ) + std::string::size_type loc_VDF = input_file.find( "VDF_DAT", 0 ); + std::string::size_type loc_vdf = input_file.find( "vdf_dat", 0 ); + if ( (loc_VDF != std::string::npos ) || ( loc_vdf != std::string::npos ) ) { volumeDirectoryFilePath = input_file.c_str(); - if (loc_VDF != string::npos ) input_file.replace(loc_VDF, 7, "DAT_01"); - if (loc_vdf != string::npos ) input_file.replace(loc_vdf, 7, "dat_01"); + if (loc_VDF != std::string::npos ) input_file.replace(loc_VDF, 7, "DAT_01"); + if (loc_vdf != std::string::npos ) input_file.replace(loc_vdf, 7, "dat_01"); dataFilePath = input_file.c_str(); } else @@ -224,7 +224,7 @@ bool ossimRadarSatModel::open(const ossimFilename& file) RadarSatRecordHeader headerVDF; VolumeDirFactory factoryVDF; - ifstream volumeDirFile (volumeDirectoryFilePath.c_str(), ios::in|ios::binary); + std::ifstream volumeDirFile (volumeDirectoryFilePath.c_str(), std::ios::in|std::ios::binary); volumeDirFile>>headerVDF; if(volumeDirFile.eof()) { @@ -269,7 +269,7 @@ bool ossimRadarSatModel::open(const ossimFilename& file) //Reading of the remaining of the volume directory file volumeDirFile.close(); - volumeDirFile.open(volumeDirectoryFilePath.c_str(), ios::in | ios::binary); + volumeDirFile.open(volumeDirectoryFilePath.c_str(), std::ios::in | std::ios::binary); volumeDirFile >> *_volumeDir; volumeDirFile.close(); @@ -280,7 +280,7 @@ bool ossimRadarSatModel::open(const ossimFilename& file) RadarSatRecordHeader headerDAT; DataFactory factoryDAT; - ifstream dataFile (dataFilePath.c_str(), ios::in|ios::binary); + std::ifstream dataFile (dataFilePath.c_str(), std::ios::in|std::ios::binary); dataFile>>headerDAT; if(dataFile.eof()) { @@ -302,7 +302,7 @@ bool ossimRadarSatModel::open(const ossimFilename& file) /* * Reading the remaining of the data file */ - dataFile.open(dataFilePath.c_str(), ios::in|ios::binary); + dataFile.open(dataFilePath.c_str(), std::ios::in|std::ios::binary); dataFile>>*_data; dataFile.close(); @@ -329,12 +329,12 @@ bool ossimRadarSatModel::open(const ossimFilename& file) * Warning : the filename case has to be homogenous */ std::string leader_file = dataFilePath; - string::size_type loc = leader_file.find( "DAT_01", 0 ); - if( loc != string::npos ) leader_file.replace(loc, 6, "LEA_01" ); // upper case test + std::string::size_type loc = leader_file.find( "DAT_01", 0 ); + if( loc != std::string::npos ) leader_file.replace(loc, 6, "LEA_01" ); // upper case test else { loc = leader_file.find( "dat_01", 0 ); - if( loc != string::npos ) leader_file.replace(loc, 6, "lea_01" ); // lower case test + if( loc != std::string::npos ) leader_file.replace(loc, 6, "lea_01" ); // lower case test else { ossimNotify(ossimNotifyLevel_DEBUG) << "File Name not coherent (searching for *DAT_01* or *dat_01*) : " << file << std::endl; @@ -355,7 +355,7 @@ bool ossimRadarSatModel::open(const ossimFilename& file) /* * Leader file data reading */ - ifstream leaderFile (leaderFilePath.c_str(), ios::in|ios::binary); + std::ifstream leaderFile (leaderFilePath.c_str(), std::ios::in|std::ios::binary); leaderFile>>*_leader; leaderFile.close(); if(traceDebug()) @@ -370,11 +370,11 @@ bool ossimRadarSatModel::open(const ossimFilename& file) */ std::string trailer_file = dataFilePath; loc = trailer_file.find( "DAT_01", 0 ); - if( loc != string::npos ) trailer_file.replace(loc, 6, "TRA_01" ); // upper case test + if( loc != std::string::npos ) trailer_file.replace(loc, 6, "TRA_01" ); // upper case test else { loc = trailer_file.find( "dat_01", 0 ); - if( loc != string::npos ) trailer_file.replace(loc, 6, "tra_01" ); // lower case test + if( loc != std::string::npos ) trailer_file.replace(loc, 6, "tra_01" ); // lower case test else { ossimNotify(ossimNotifyLevel_DEBUG) << "File Name not coherent (searching for *DAT_01* or *dat_01*) : " << file << std::endl; @@ -395,7 +395,7 @@ bool ossimRadarSatModel::open(const ossimFilename& file) /* * Trailer file data reading */ - ifstream trailerFile (trailerFilePath.c_str(), ios::in|ios::binary); + std::ifstream trailerFile (trailerFilePath.c_str(), std::ios::in|std::ios::binary); trailerFile>>*_trailer; trailerFile.close(); if(traceDebug()) diff --git a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimSentinel1Model.cpp b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimSentinel1Model.cpp index 3832701fe39a34a17079a43d8ff1a38a85aa6877..caad19359c90da6c982376cfb2230887e9dfd28d 100644 --- a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimSentinel1Model.cpp +++ b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimSentinel1Model.cpp @@ -116,14 +116,14 @@ namespace ossimplugins // Capture stream flags since we are going to mess with them. std::ios_base::fmtflags f = out.flags(); - out << "\nDump of ossimSentinel1Model at address " << hex << this - << dec + out << "\nDump of ossimSentinel1Model at address " << std::hex << this + << std::dec << "\n------------------------------------------------" << "\n theImageID = " << theImageID << "\n theImageSize = " << theImageSize << "\n------------------------------------------------" - << "\n " << endl; + << "\n " << std::endl; // Set the flags back. out.flags(f); @@ -377,7 +377,7 @@ namespace ossimplugins const ossimString prefix = "support_data."; const ossimString xpath = "/xfdu:XFDU/dataObjectSection/dataObject"; - vector<ossimRefPtr<ossimXmlNode> > xml_nodes; + std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes; theManifestDoc->findNodes(xpath, xml_nodes); @@ -1264,9 +1264,9 @@ namespace ossimplugins double ossimSentinel1Model::getBandTerrainHeight(ossimXmlDocument const& productXmlDocument) { double heightSum = 0.0; - vector< ossimXmlNodePtr > heightList; + std::vector< ossimXmlNodePtr > heightList; productXmlDocument.findNodes("/product/generalAnnotation/terrainHeightList/terrainHeight", heightList); - vector<ossimXmlNodePtr >::const_iterator it = heightList.begin(); + std::vector<ossimXmlNodePtr >::const_iterator it = heightList.begin(); for ( ; it != heightList.end() ; ++it) { heightSum += getOptionalTextFromFirstNode(**it, "value").toFloat64(); diff --git a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimSpot6DimapSupportData.cpp b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimSpot6DimapSupportData.cpp index 185f29d37c715f6ba75cb4d45dabcab0a01adb37..e8b44481840f91a0e753699ec9c39df62176a895 100644 --- a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimSpot6DimapSupportData.cpp +++ b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimSpot6DimapSupportData.cpp @@ -99,7 +99,7 @@ namespace ossimplugins ossimString xpath, ossimString& nodeValue) { - vector<ossimRefPtr<ossimXmlNode> > xml_nodes; + std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes; xmlDocument->findNodes(xpath, xml_nodes); if (xml_nodes.size() == 0) @@ -269,7 +269,7 @@ namespace ossimplugins theSpecId = ""; } - void ossimSpot6DimapSupportData::printInfo(ostream& os) const + void ossimSpot6DimapSupportData::printInfo(std::ostream& os) const { os << "\n----------------- Info on Spot6 Image -------------------" @@ -1110,7 +1110,7 @@ namespace ossimplugins ossimRefPtr<ossimXmlDocument> xmlDocument) { ossimString xpath; - vector<ossimRefPtr<ossimXmlNode> > xml_nodes; + std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes; //--- // Fetch the Image ID: @@ -1139,7 +1139,7 @@ namespace ossimplugins ossimRefPtr<ossimXmlDocument> xmlDocument) { ossimString xpath, nodeValue; - vector<ossimRefPtr<ossimXmlNode> > xml_nodes; + std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes; //--- // Corner points: @@ -1401,7 +1401,7 @@ namespace ossimplugins { static const char MODULE[] = "ossimSpot6DimapSupportData::parseRPCMetadata"; ossimString xpath, nodeValue; - vector<ossimRefPtr<ossimXmlNode> > xml_nodes; + std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes; //--- // Fetch the Global RFM - Direct Model - Bias: @@ -1612,7 +1612,7 @@ namespace ossimplugins { static const char MODULE[] = "ossimSpot6DimapSupportData::parseMetadataIdentification"; - vector<ossimRefPtr<ossimXmlNode> > xml_nodes; + std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes; ossimString xpath, nodeValue; theXmlDocumentRoot = "/DIMAP_Document"; @@ -1632,7 +1632,7 @@ namespace ossimplugins theXmlDocumentRoot = "/SPOT_DIMAP_Document"; if (traceDebug()) { - ossimNotify(ossimNotifyLevel_DEBUG) << "DEBUG:\nTry to use the old root: " << theXmlDocumentRoot << endl; + ossimNotify(ossimNotifyLevel_DEBUG) << "DEBUG:\nTry to use the old root: " << theXmlDocumentRoot << std::endl; } xml_nodes.clear(); @@ -1647,7 +1647,7 @@ namespace ossimplugins theXmlDocumentRoot = "/Dimap_Document"; if (traceDebug()) { - ossimNotify(ossimNotifyLevel_DEBUG) << "DEBUG:\nTry to use the new root: " << theXmlDocumentRoot << endl; + ossimNotify(ossimNotifyLevel_DEBUG) << "DEBUG:\nTry to use the new root: " << theXmlDocumentRoot << std::endl; } xml_nodes.clear(); @@ -1659,7 +1659,7 @@ namespace ossimplugins setErrorStatus(); if (traceDebug()) { - ossimNotify(ossimNotifyLevel_DEBUG) << "DEBUG:\nCould not find: " << xpath << endl; + ossimNotify(ossimNotifyLevel_DEBUG) << "DEBUG:\nCould not find: " << xpath << std::endl; } return false; } @@ -1758,7 +1758,7 @@ namespace ossimplugins { static const char MODULE[] = "ossimSpot6DimapSupportData::parseProcessingInformation"; - vector<ossimRefPtr<ossimXmlNode> > xml_nodes; + std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes; ossimString xpath, nodeValue; //--- @@ -1787,7 +1787,7 @@ namespace ossimplugins bool ossimSpot6DimapSupportData::parseRasterData(ossimRefPtr<ossimXmlDocument> xmlDocument) { static const char MODULE[] = "ossimSpot6DimapSupportData::parseRasterData"; - vector<ossimRefPtr<ossimXmlNode> > xml_nodes; + std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes; ossimString xpath, nodeValue; //--- // Fetch if the product file is linked to one or many JP2 files: @@ -2005,7 +2005,7 @@ namespace ossimplugins bool ossimSpot6DimapSupportData::parseGeometricData(ossimRefPtr<ossimXmlDocument> xmlDocument) { ossimString xpath; - vector<ossimRefPtr<ossimXmlNode> > xml_nodes; + std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes; xml_nodes.clear(); xpath = "/Geometric_Data/Use_Area/Located_Geometric_Values"; //DIMAPv2 @@ -2125,7 +2125,7 @@ namespace ossimplugins { static const char MODULE[] = "ossimSpot6DimapSupportData::parseDatasetSources"; ossimString xpath, nodeValue; - vector<ossimRefPtr<ossimXmlNode> > xml_nodes; + std::vector<ossimRefPtr<ossimXmlNode> > xml_nodes; //--- // Fetch the mission index (1A or 1B) ? diff --git a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimSpot6DimapSupportData.h b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimSpot6DimapSupportData.h index 1431d0d2053c92a4270240b556052388483ba8d2..f0860ce8e02ec984333ae3aba377a259a09c93f6 100644 --- a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimSpot6DimapSupportData.h +++ b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimSpot6DimapSupportData.h @@ -81,7 +81,7 @@ namespace ossimplugins //--- // Convenient method to print important image info: //--- - void printInfo (ostream& os) const; + void printInfo (std::ostream& os) const; /** * Method to save the state of the object to a keyword list. diff --git a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimSpot6Model.cpp b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimSpot6Model.cpp index ba5725b4ee465cf9303b53b6a47d8aff24858c43..76caf5a0c97357a5991b179228ab82b58f5ea6c7 100644 --- a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimSpot6Model.cpp +++ b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimSpot6Model.cpp @@ -107,8 +107,8 @@ namespace ossimplugins // Capture stream flags since we are going to mess with them. std::ios_base::fmtflags f = out.flags(); - out << "\nDump of ossimSpot6Model at address " << (hex) << this - << (dec) + out << "\nDump of ossimSpot6Model at address " << (std::hex) << this + << (std::dec) << "\n------------------------------------------------" << "\n theImageID = " << theImageID << "\n theImageSize = " << theImageSize @@ -116,7 +116,7 @@ namespace ossimplugins << "\n theRefImgPt = " << theRefImgPt << "\n theProcessingLevel = " << theSupportData->getProcessingLevel() << "\n------------------------------------------------" - << "\n " << endl; + << "\n " << std::endl; // Set the flags back. out.flags(f); diff --git a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimTerraSarModel.cpp b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimTerraSarModel.cpp index 85896683028bc4a29f4e4a3d0ab8d828cfee64f3..215572c815b1a3ffe8f56b357d7b015f44197992 100644 --- a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimTerraSarModel.cpp +++ b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimTerraSarModel.cpp @@ -856,7 +856,7 @@ std::ostream& ossimplugins::ossimTerraSarModel::print(std::ostream& out) const // Capture the original flags. std::ios_base::fmtflags f = out.flags(); - out << setprecision(15) << setiosflags(ios::fixed) + out << std::setprecision(15) << std::setiosflags(std::ios::fixed) << "\nossimTerraSarModelclass data members:\n" << SR_GR_R0_KW << _SrToGr_R0 << "\n"; @@ -1546,7 +1546,7 @@ bool ossimplugins::ossimTerraSarModel::initSensorParams(const ossimXmlDocument* if (traceDebug()) { ossimNotify(ossimNotifyLevel_DEBUG) - << "result for tsDoc.initSensorParams " << result << endl; + << "result for tsDoc.initSensorParams " << result << std::endl; } if (!result) @@ -2436,7 +2436,7 @@ bool ossimplugins::ossimTerraSarModel::findTSXLeader(const ossimFilename& file, } -void ossimplugins::ossimTerraSarModel::printInfo(ostream& os) const +void ossimplugins::ossimTerraSarModel::printInfo(std::ostream& os) const { os << "\n----------------- General Info on TSX-1 Image -------------------" << "\n " diff --git a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimTerraSarModel.h b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimTerraSarModel.h index de847a3868071303f70899e7e14cd4f84487c6c0..46715aa3cb64552bc9c5722526daed694bdde4cf 100644 --- a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimTerraSarModel.h +++ b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimTerraSarModel.h @@ -118,7 +118,7 @@ namespace ossimplugins //--- // Convenient method to print important image info: //--- - void printInfo (ostream& os) const; + void printInfo (std::ostream& os) const; private: diff --git a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimTileMapModel.cpp b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimTileMapModel.cpp index 6d887e7f905344c18ed6f05513dc9baa4fed8100..f568252889aeeb34fd4d3a1464bf6a8f1a79b1d8 100644 --- a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimTileMapModel.cpp +++ b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimTileMapModel.cpp @@ -184,7 +184,7 @@ namespace ossimplugins std::ostream& ossimTileMapModel::print(std::ostream& os) const { os << "\nDump of ossimTileMapModel object at " - << hex << this << ":\n" + << std::hex << this << ":\n" << "\nTileMapModel -- Dump of all data members: " << "\n theImageID: " << theImageID.chars() << "\n theImageSize: " << theImageSize @@ -193,7 +193,7 @@ namespace ossimplugins << "\n theGSD.line: " << theGSD.line << "\n theGSD.samp: " << theGSD.samp << "\n qDepth: " << qDepth - << endl; + << std::endl; return ossimSensorModel::print(os); } @@ -282,7 +282,7 @@ namespace ossimplugins // Writes a sample kwl to output stream. // //***************************************************************************** - void ossimTileMapModel::writeGeomTemplate(ostream& os) + void ossimTileMapModel::writeGeomTemplate(std::ostream& os) { if (traceExec()) ossimNotify(ossimNotifyLevel_DEBUG) << "DEBUG ossimTileMapModel::writeGeomTemplate: entering..." << std::endl; @@ -290,7 +290,7 @@ namespace ossimplugins "//**************************************************************\n" "// Template for TileMap model keywordlist\n" "//**************************************************************\n" - << ossimKeywordNames::TYPE_KW << ": " << "ossimTileMapModel" << endl; + << ossimKeywordNames::TYPE_KW << ": " << "ossimTileMapModel" << std::endl; if (traceExec()) ossimNotify(ossimNotifyLevel_DEBUG) << "DEBUG ossimTileMapModel::writeGeomTemplate: returning..." << std::endl; diff --git a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimTileMapModel.h b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimTileMapModel.h index 33d9f30748c9eb85b090cf75fe1646e970ee390a..8d98e2e987e3ad75160730fff5affc6af5c2aa54 100644 --- a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimTileMapModel.h +++ b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimTileMapModel.h @@ -95,7 +95,7 @@ public: * Writes a template of geom keywords processed by loadState and saveState * to output stream. */ - static void writeGeomTemplate(ostream& os); + static void writeGeomTemplate(std::ostream& os); //*** // Overrides base class pure virtual. diff --git a/Modules/ThirdParty/OssimPlugins/src/ossim/otb/IncidenceAngles.cpp b/Modules/ThirdParty/OssimPlugins/src/ossim/otb/IncidenceAngles.cpp index 8dc860f17f33c06b1a34b24777af9e46c566106b..d030d025fe7d757cdb3675c48f22e1de6467b9a7 100644 --- a/Modules/ThirdParty/OssimPlugins/src/ossim/otb/IncidenceAngles.cpp +++ b/Modules/ThirdParty/OssimPlugins/src/ossim/otb/IncidenceAngles.cpp @@ -148,7 +148,7 @@ bool IncidenceAngles::loadState(const ossimKeywordlist& kwl, const char* prefix) std::ostream& IncidenceAngles::print(std::ostream& out) const { - out << setprecision(15) << setiosflags(ios::fixed) + out << std::setprecision(15) << std::setiosflags(std::ios::fixed) << "\n IncidentAngles class data members:\n"; const char* prefix = 0; diff --git a/Modules/ThirdParty/OssimPlugins/src/ossim/otb/Noise.cpp b/Modules/ThirdParty/OssimPlugins/src/ossim/otb/Noise.cpp index dfa8168b253687d44598826227bfe402eadf3c53..7b9ca1c5274ba71b7d16489f8aefa643754c5332 100644 --- a/Modules/ThirdParty/OssimPlugins/src/ossim/otb/Noise.cpp +++ b/Modules/ThirdParty/OssimPlugins/src/ossim/otb/Noise.cpp @@ -149,7 +149,7 @@ bool Noise::loadState(const ossimKeywordlist& kwl, const char* prefix) std::ostream& Noise::print(std::ostream& out) const { - out << setprecision(15) << setiosflags(ios::fixed) + out << std::setprecision(15) << std::setiosflags(std::ios::fixed) << "\n Noise class data members:\n"; const char* prefix = 0; diff --git a/Modules/ThirdParty/OssimPlugins/src/ossim/otb/RadarSat2NoiseLevel.cpp b/Modules/ThirdParty/OssimPlugins/src/ossim/otb/RadarSat2NoiseLevel.cpp index 2742fcdd785030bbb6f38ddfa6cf7df5d4360c00..f2f64cb48db94fa4ca8f7df80a9df7af8a141220 100644 --- a/Modules/ThirdParty/OssimPlugins/src/ossim/otb/RadarSat2NoiseLevel.cpp +++ b/Modules/ThirdParty/OssimPlugins/src/ossim/otb/RadarSat2NoiseLevel.cpp @@ -313,7 +313,7 @@ bool RadarSat2NoiseLevel::loadState(const ossimKeywordlist& kwl, const char* pre std::ostream& RadarSat2NoiseLevel::print(std::ostream& out) const { - out << setprecision(15) << setiosflags(ios::fixed) + out << std::setprecision(15) << std::setiosflags(std::ios::fixed) << "\n RadarSat2NoiseLevel class data members:\n"; //const char* prefix = 0; diff --git a/Modules/ThirdParty/OssimPlugins/src/ossim/otb/SceneCoord.cpp b/Modules/ThirdParty/OssimPlugins/src/ossim/otb/SceneCoord.cpp index 8eacd1c958dfe01ba7f0776b8bff018e6d249c70..1bbc15c7d6224a612c2e15c07200e32bfd0d181d 100644 --- a/Modules/ThirdParty/OssimPlugins/src/ossim/otb/SceneCoord.cpp +++ b/Modules/ThirdParty/OssimPlugins/src/ossim/otb/SceneCoord.cpp @@ -152,7 +152,7 @@ bool SceneCoord::loadState(const ossimKeywordlist& kwl, const char* prefix) std::ostream& SceneCoord::print(std::ostream& out) const { - out << setprecision(15) << setiosflags(ios::fixed) + out << std::setprecision(15) << std::setiosflags(std::ios::fixed) << "\n SceneCoord class data members:\n"; const char* prefix = 0;