Skip to content
Snippets Groups Projects
Commit f5cf4a6e authored by Marcel Loose's avatar Marcel Loose :sunglasses:
Browse files

Task #2050: Added missing #include's and missing using namespace LOFAR.

parent 0e9f8b10
No related branches found
No related tags found
No related merge requests found
Showing
with 19 additions and 3 deletions
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
#include <Common/LofarLogger.h> #include <Common/LofarLogger.h>
#include <Common/StreamUtil.h> #include <Common/StreamUtil.h>
#include <Common/SystemUtil.h> #include <Common/SystemUtil.h>
#include <Common/Exception.h>
#ifdef HAVE_PQXX #ifdef HAVE_PQXX
#include <BBSControl/CalSession.h> #include <BBSControl/CalSession.h>
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include <lofar_config.h> #include <lofar_config.h>
#include <Common/SystemUtil.h> #include <Common/SystemUtil.h>
#include <Common/Exception.h>
#include <BBSControl/Package__Version.h> #include <BBSControl/Package__Version.h>
#include <BBSControl/CalSession.h> #include <BBSControl/CalSession.h>
#include <BBSControl/CommandHandlerEstimator.h> #include <BBSControl/CommandHandlerEstimator.h>
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include <DPPP/Package__Version.h> #include <DPPP/Package__Version.h>
#include <Common/LofarLogger.h> #include <Common/LofarLogger.h>
#include <Common/SystemUtil.h> #include <Common/SystemUtil.h>
#include <Common/Exception.h>
#include <iostream> #include <iostream>
#include <stdexcept> #include <stdexcept>
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include <Common/LofarLogger.h> #include <Common/LofarLogger.h>
#include <Common/StringUtil.h> #include <Common/StringUtil.h>
#include <Common/SystemUtil.h> #include <Common/SystemUtil.h>
#include <Common/Exception.h>
#include <stdexcept> #include <stdexcept>
#include <iostream> #include <iostream>
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include <MS/Package__Version.h> #include <MS/Package__Version.h>
#include <Common/LofarLogger.h> #include <Common/LofarLogger.h>
#include <Common/SystemUtil.h> #include <Common/SystemUtil.h>
#include <Common/Exception.h>
#include <stdexcept> #include <stdexcept>
#include <iostream> #include <iostream>
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
#include <Common/InputParSet.h> #include <Common/InputParSet.h>
#include <Common/LofarLogger.h> #include <Common/LofarLogger.h>
#include <Common/SystemUtil.h> #include <Common/SystemUtil.h>
#include <Common/Exception.h>
#include <casa/Quanta/MVTime.h> #include <casa/Quanta/MVTime.h>
#include <casa/Utilities/MUString.h> #include <casa/Utilities/MUString.h>
......
...@@ -75,9 +75,6 @@ int main() ...@@ -75,9 +75,6 @@ int main()
pos = conv(pos); pos = conv(pos);
showPos(pos); showPos(pos);
} }
} catch (Exception& e) {
cerr << "LOFAR Exception: " << e << endl;
return 1;
} catch (exception& e) { } catch (exception& e) {
cerr << "Exception: " << e.what() << endl; cerr << "Exception: " << e.what() << endl;
return 1; return 1;
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
using namespace LOFAR::GCF::TM; using namespace LOFAR::GCF::TM;
using namespace LOFAR::CEPCU; using namespace LOFAR::CEPCU;
using namespace LOFAR;
// Use a terminate handler that can produce a backtrace. // Use a terminate handler that can produce a backtrace.
Exception::TerminateHandler t(Exception::terminate); Exception::TerminateHandler t(Exception::terminate);
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
using namespace LOFAR::GCF::TM; using namespace LOFAR::GCF::TM;
using namespace LOFAR::CEPCU; using namespace LOFAR::CEPCU;
using namespace LOFAR;
// Use a terminate handler that can produce a backtrace. // Use a terminate handler that can produce a backtrace.
Exception::TerminateHandler t(Exception::terminate); Exception::TerminateHandler t(Exception::terminate);
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include <Common/Exception.h> #include <Common/Exception.h>
#include "KeyValueLogger.h" #include "KeyValueLogger.h"
using namespace LOFAR;
using namespace LOFAR::GCF::TM; using namespace LOFAR::GCF::TM;
using namespace LOFAR::GCF::RTDBDaemons; using namespace LOFAR::GCF::RTDBDaemons;
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include <Common/Exception.h> #include <Common/Exception.h>
#include "LogProcessor.h" #include "LogProcessor.h"
using namespace LOFAR;
using namespace LOFAR::GCF::TM; using namespace LOFAR::GCF::TM;
using namespace LOFAR::GCF::RTDBDaemons; using namespace LOFAR::GCF::RTDBDaemons;
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include <Common/Exception.h> #include <Common/Exception.h>
#include "SASGateway.h" #include "SASGateway.h"
using namespace LOFAR;
using namespace LOFAR::GCF::TM; using namespace LOFAR::GCF::TM;
using namespace LOFAR::GCF::RTDBDaemons; using namespace LOFAR::GCF::RTDBDaemons;
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
using namespace LOFAR::GCF::TM; using namespace LOFAR::GCF::TM;
using namespace LOFAR::MainCU; using namespace LOFAR::MainCU;
using namespace LOFAR;
// Use a terminate handler that can produce a backtrace. // Use a terminate handler that can produce a backtrace.
Exception::TerminateHandler t(Exception::terminate); Exception::TerminateHandler t(Exception::terminate);
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
using namespace LOFAR::GCF::TM; using namespace LOFAR::GCF::TM;
using namespace LOFAR::MainCU; using namespace LOFAR::MainCU;
using namespace LOFAR::APLCommon; using namespace LOFAR::APLCommon;
using namespace LOFAR;
// Use a terminate handler that can produce a backtrace. // Use a terminate handler that can produce a backtrace.
Exception::TerminateHandler t(Exception::terminate); Exception::TerminateHandler t(Exception::terminate);
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
using namespace LOFAR::GCF::TM; using namespace LOFAR::GCF::TM;
using namespace LOFAR::MainCU; using namespace LOFAR::MainCU;
using namespace LOFAR::APLCommon; using namespace LOFAR::APLCommon;
using namespace LOFAR;
// Use a terminate handler that can produce a backtrace. // Use a terminate handler that can produce a backtrace.
Exception::TerminateHandler t(Exception::terminate); Exception::TerminateHandler t(Exception::terminate);
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
using namespace LOFAR::GCF::TM; using namespace LOFAR::GCF::TM;
using namespace LOFAR::AMI; using namespace LOFAR::AMI;
using namespace LOFAR;
// Use a terminate handler that can produce a backtrace. // Use a terminate handler that can produce a backtrace.
Exception::TerminateHandler t(Exception::terminate); Exception::TerminateHandler t(Exception::terminate);
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include <Common/Exception.h> #include <Common/Exception.h>
#include "BeamControl.h" #include "BeamControl.h"
using namespace LOFAR;
using namespace LOFAR::GCF::TM; using namespace LOFAR::GCF::TM;
using namespace LOFAR::StationCU; using namespace LOFAR::StationCU;
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include <Common/Exception.h> #include <Common/Exception.h>
#include "CalibrationControl.h" #include "CalibrationControl.h"
using namespace LOFAR;
using namespace LOFAR::GCF::TM; using namespace LOFAR::GCF::TM;
using namespace LOFAR::StationCU; using namespace LOFAR::StationCU;
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include "ClockControl.h" #include "ClockControl.h"
using namespace LOFAR;
using namespace LOFAR::GCF::TM; using namespace LOFAR::GCF::TM;
using namespace LOFAR::StationCU; using namespace LOFAR::StationCU;
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include <Common/Exception.h> #include <Common/Exception.h>
#include "TBBControl.h" #include "TBBControl.h"
using namespace LOFAR;
using namespace LOFAR::GCF::TM; using namespace LOFAR::GCF::TM;
using namespace LOFAR::StationCU; using namespace LOFAR::StationCU;
......
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