Loading src/db/InternetUsageStatistics.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -42,7 +42,8 @@ InternetUsageStatistics::InternetUsageStatistics(std::string dbPath) { BOOST_LOG_TRIVIAL(error) << "Database connection failed in InternetUsageStatistics!"; } assert(retval == SQLITE_OK); BOOST_LOG_TRIVIAL(info) << "SQLite connection to " << dbPath << " successfully established in InternetUsageStatistics!"; BOOST_LOG_TRIVIAL(info) << "SQLite connection to " << dbPath << " successfully established in InternetUsageStatistics!"; std::string queryString( " SELECT value FROM unbroadbandstats as un," Loading src/db/LandingPointReader.hpp +0 −1 Original line number Diff line number Diff line Loading @@ -41,7 +41,6 @@ class LandingPointReader : public SQLiteReader, public ResultIterator<SeaCableLa SeaCableLandingPoint getNext(); private: std::string getContinentLandingPoint(std::string name); }; Loading src/db/ResultIterator.hpp +4 −7 Original line number Diff line number Diff line Loading @@ -4,9 +4,7 @@ template <class Result> class ResultIterator { public: bool hasNext() { return _rowAvailable; } bool hasNext() { return _rowAvailable; } virtual Result getNext() = 0; Loading @@ -15,4 +13,3 @@ protected: }; #endif // RESULTITERATOR_HPP src/db/SQLiteAreaPopulationReader.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -43,7 +43,8 @@ SQLiteAreaPopulationReader::SQLiteAreaPopulationReader(std::string dbPath, doubl BOOST_LOG_TRIVIAL(error) << "Database connection failed in SQLiteAreaPopulationReader"; } assert(retval == SQLITE_OK); BOOST_LOG_TRIVIAL(info) << "SQLite connection to " << dbPath << " successfully established in SQLiteAreaPopulationReader!"; BOOST_LOG_TRIVIAL(info) << "SQLite connection to " << dbPath << " successfully established in SQLiteAreaPopulationReader!"; std::string queryString( " SELECT geo.Latitude AS Latitude," Loading src/db/SQLiteLocationReader.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -42,7 +42,8 @@ SQLiteLocationReader::SQLiteLocationReader(std::string dbPath, int populationThr if (retval) { BOOST_LOG_TRIVIAL(error) << "Database connection failed for SQLiteLocationReader"; } BOOST_LOG_TRIVIAL(info) << "SQLite connection to " << dbPath << " successfully established in SQLiteLocationReader!"; BOOST_LOG_TRIVIAL(info) << "SQLite connection to " << dbPath << " successfully established in SQLiteLocationReader!"; std::string queryString( " SELECT geo.Name AS Name," Loading Loading
src/db/InternetUsageStatistics.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -42,7 +42,8 @@ InternetUsageStatistics::InternetUsageStatistics(std::string dbPath) { BOOST_LOG_TRIVIAL(error) << "Database connection failed in InternetUsageStatistics!"; } assert(retval == SQLITE_OK); BOOST_LOG_TRIVIAL(info) << "SQLite connection to " << dbPath << " successfully established in InternetUsageStatistics!"; BOOST_LOG_TRIVIAL(info) << "SQLite connection to " << dbPath << " successfully established in InternetUsageStatistics!"; std::string queryString( " SELECT value FROM unbroadbandstats as un," Loading
src/db/LandingPointReader.hpp +0 −1 Original line number Diff line number Diff line Loading @@ -41,7 +41,6 @@ class LandingPointReader : public SQLiteReader, public ResultIterator<SeaCableLa SeaCableLandingPoint getNext(); private: std::string getContinentLandingPoint(std::string name); }; Loading
src/db/ResultIterator.hpp +4 −7 Original line number Diff line number Diff line Loading @@ -4,9 +4,7 @@ template <class Result> class ResultIterator { public: bool hasNext() { return _rowAvailable; } bool hasNext() { return _rowAvailable; } virtual Result getNext() = 0; Loading @@ -15,4 +13,3 @@ protected: }; #endif // RESULTITERATOR_HPP
src/db/SQLiteAreaPopulationReader.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -43,7 +43,8 @@ SQLiteAreaPopulationReader::SQLiteAreaPopulationReader(std::string dbPath, doubl BOOST_LOG_TRIVIAL(error) << "Database connection failed in SQLiteAreaPopulationReader"; } assert(retval == SQLITE_OK); BOOST_LOG_TRIVIAL(info) << "SQLite connection to " << dbPath << " successfully established in SQLiteAreaPopulationReader!"; BOOST_LOG_TRIVIAL(info) << "SQLite connection to " << dbPath << " successfully established in SQLiteAreaPopulationReader!"; std::string queryString( " SELECT geo.Latitude AS Latitude," Loading
src/db/SQLiteLocationReader.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -42,7 +42,8 @@ SQLiteLocationReader::SQLiteLocationReader(std::string dbPath, int populationThr if (retval) { BOOST_LOG_TRIVIAL(error) << "Database connection failed for SQLiteLocationReader"; } BOOST_LOG_TRIVIAL(info) << "SQLite connection to " << dbPath << " successfully established in SQLiteLocationReader!"; BOOST_LOG_TRIVIAL(info) << "SQLite connection to " << dbPath << " successfully established in SQLiteLocationReader!"; std::string queryString( " SELECT geo.Name AS Name," Loading