Loading tests/Fixtures.h +7 −3 Original line number Diff line number Diff line Loading @@ -68,12 +68,15 @@ class FramerParameterizedTest : public ::testing::TestWithParam<csm::ImageCoord> protected: csm::Isd isd; void printIsd(csm::Isd &localIsd) { std::string printIsd(csm::Isd &localIsd) { std::string str; std::multimap<std::string,std::string> isdmap= localIsd.parameters(); for (auto it = isdmap.begin(); it != isdmap.end();++it){ std::cout << it->first << " : " << it->second << std::endl; str.append(it->first); str.append(":"); str.append(it->second); } return str; } UsgsAstroFrameSensorModel* createModel(csm::Isd &modifiedIsd) { Loading Loading @@ -106,6 +109,7 @@ class FrameIsdTest : public ::testing::Test { } UsgsAstroFrameSensorModel* createModel(csm::Isd &modifiedIsd) { UsgsAstroFramePlugin frameCameraPlugin; modifiedIsd.setFilename("data/simpleFramerISD.img"); csm::Model *model = frameCameraPlugin.constructModelFromISD( modifiedIsd,"USGS_ASTRO_FRAME_SENSOR_MODEL"); UsgsAstroFrameSensorModel* sensorModel = dynamic_cast<UsgsAstroFrameSensorModel *>(model); Loading Loading
tests/Fixtures.h +7 −3 Original line number Diff line number Diff line Loading @@ -68,12 +68,15 @@ class FramerParameterizedTest : public ::testing::TestWithParam<csm::ImageCoord> protected: csm::Isd isd; void printIsd(csm::Isd &localIsd) { std::string printIsd(csm::Isd &localIsd) { std::string str; std::multimap<std::string,std::string> isdmap= localIsd.parameters(); for (auto it = isdmap.begin(); it != isdmap.end();++it){ std::cout << it->first << " : " << it->second << std::endl; str.append(it->first); str.append(":"); str.append(it->second); } return str; } UsgsAstroFrameSensorModel* createModel(csm::Isd &modifiedIsd) { Loading Loading @@ -106,6 +109,7 @@ class FrameIsdTest : public ::testing::Test { } UsgsAstroFrameSensorModel* createModel(csm::Isd &modifiedIsd) { UsgsAstroFramePlugin frameCameraPlugin; modifiedIsd.setFilename("data/simpleFramerISD.img"); csm::Model *model = frameCameraPlugin.constructModelFromISD( modifiedIsd,"USGS_ASTRO_FRAME_SENSOR_MODEL"); UsgsAstroFrameSensorModel* sensorModel = dynamic_cast<UsgsAstroFrameSensorModel *>(model); Loading