From f70a2f81d80f38ee10c2e419df5f21392142e50e Mon Sep 17 00:00:00 2001 From: Joris van Zwieten <zwieten@astron.nl> Date: Thu, 14 Sep 2006 16:10:54 +0000 Subject: [PATCH] BugID: 873 - placed all BBS kernel code in the LOFAR::BBS namespace. probably needs more checking with other compilers (64 bit?) --- CEP/BB/BBS/src/BBSKernel.cc | 4 +-- CEP/BB/BBS/src/BBSKernelProcessControl.cc | 4 +++ CEP/BB/BBS/src/BBSKernelProcessControl.h | 10 ++++++- CEP/BB/BBS/src/BBSTestLogger.cc | 7 ++++- CEP/BB/BBS/src/BBSTestLogger.h | 3 +++ CEP/BB/BBS/src/BBSrun.cc | 1 + CEP/BB/BBS/src/Fitter.cc | 6 ++++- CEP/BB/BBS/src/Fitter.h | 3 +++ CEP/BB/BBS/src/FlagsMap.cc | 3 +++ CEP/BB/BBS/src/FlagsMap.h | 4 ++- CEP/BB/BBS/src/MMap.cc | 3 +++ CEP/BB/BBS/src/MMap.h | 3 +++ CEP/BB/BBS/src/MMapMSInfo.cc | 5 +++- CEP/BB/BBS/src/MMapMSInfo.h | 4 +++ CEP/BB/BBS/src/MNS/MeqBaseDFTPS.cc | 10 +++++-- CEP/BB/BBS/src/MNS/MeqBaseDFTPS.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqBaseLinPS.cc | 8 ++++-- CEP/BB/BBS/src/MNS/MeqBaseLinPS.h | 9 ++++--- CEP/BB/BBS/src/MNS/MeqDFTPS.cc | 9 ++++--- CEP/BB/BBS/src/MNS/MeqDFTPS.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqDiag.cc | 8 ++++-- CEP/BB/BBS/src/MNS/MeqDiag.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqDomain.cc | 8 ++++-- CEP/BB/BBS/src/MNS/MeqDomain.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqExpr.cc | 8 ++++-- CEP/BB/BBS/src/MNS/MeqExpr.h | 9 +++++-- CEP/BB/BBS/src/MNS/MeqFunklet.cc | 10 ++++--- CEP/BB/BBS/src/MNS/MeqFunklet.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqGaussSource.cc | 8 ++++-- CEP/BB/BBS/src/MNS/MeqGaussSource.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqJonesCMul2.cc | 8 ++++-- CEP/BB/BBS/src/MNS/MeqJonesCMul2.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqJonesCMul3.cc | 9 ++++--- CEP/BB/BBS/src/MNS/MeqJonesCMul3.h | 9 +++++-- CEP/BB/BBS/src/MNS/MeqJonesExpr.cc | 8 ++++-- CEP/BB/BBS/src/MNS/MeqJonesExpr.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqJonesInvert.cc | 8 ++++-- CEP/BB/BBS/src/MNS/MeqJonesInvert.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqJonesMMap.cc | 9 +++++-- CEP/BB/BBS/src/MNS/MeqJonesMMap.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqJonesMul2.cc | 8 ++++-- CEP/BB/BBS/src/MNS/MeqJonesMul2.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqJonesMul3.cc | 8 ++++-- CEP/BB/BBS/src/MNS/MeqJonesMul3.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqJonesNode.cc | 8 ++++-- CEP/BB/BBS/src/MNS/MeqJonesNode.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqJonesResult.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqJonesSum.cc | 9 +++++-- CEP/BB/BBS/src/MNS/MeqJonesSum.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqLMN.cc | 8 ++++-- CEP/BB/BBS/src/MNS/MeqLMN.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqLMNAn.cc | 8 ++++-- CEP/BB/BBS/src/MNS/MeqMatrix.cc | 9 ++++--- CEP/BB/BBS/src/MNS/MeqMatrix.h | 27 +++++++++++++------ CEP/BB/BBS/src/MNS/MeqMatrixComplexArr.cc | 8 ++++-- CEP/BB/BBS/src/MNS/MeqMatrixComplexArr.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqMatrixComplexSca.cc | 8 ++++-- CEP/BB/BBS/src/MNS/MeqMatrixComplexSca.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqMatrixRealArr.cc | 8 ++++-- CEP/BB/BBS/src/MNS/MeqMatrixRealArr.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqMatrixRealSca.cc | 8 ++++-- CEP/BB/BBS/src/MNS/MeqMatrixRealSca.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqMatrixRep.cc | 8 ++++-- CEP/BB/BBS/src/MNS/MeqMatrixRep.h | 14 +++++++--- CEP/BB/BBS/src/MNS/MeqMatrixTmp.cc | 8 ++++-- CEP/BB/BBS/src/MNS/MeqMatrixTmp.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqParm.cc | 8 ++++-- CEP/BB/BBS/src/MNS/MeqParm.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqParmExpr.cc | 8 ++++-- CEP/BB/BBS/src/MNS/MeqParmExpr.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqParmFunklet.cc | 10 ++++--- CEP/BB/BBS/src/MNS/MeqParmFunklet.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqParmSingle.cc | 8 ++++-- CEP/BB/BBS/src/MNS/MeqParmSingle.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqPhaseRef.cc | 8 ++++-- CEP/BB/BBS/src/MNS/MeqPhaseRef.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqPointSource.cc | 8 ++++-- CEP/BB/BBS/src/MNS/MeqPointSource.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqPolc.cc | 8 ++++-- CEP/BB/BBS/src/MNS/MeqPolc.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqPolcAn.cc | 8 ++++-- CEP/BB/BBS/src/MNS/MeqPolcLog.cc | 8 ++++-- CEP/BB/BBS/src/MNS/MeqPolcLog.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqRequest.cc | 8 ++++-- CEP/BB/BBS/src/MNS/MeqRequest.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqRequestId.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqResult.cc | 8 ++++-- CEP/BB/BBS/src/MNS/MeqResult.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqResultVec.cc | 8 ++++-- CEP/BB/BBS/src/MNS/MeqResultVec.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqSource.cc | 8 ++++-- CEP/BB/BBS/src/MNS/MeqSource.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqSourceList.cc | 8 ++++-- CEP/BB/BBS/src/MNS/MeqSourceList.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqStatExpr.cc | 8 ++++-- CEP/BB/BBS/src/MNS/MeqStatExpr.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqStatUVW.cc | 8 ++++-- CEP/BB/BBS/src/MNS/MeqStatUVW.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqStation.cc | 8 ++++-- CEP/BB/BBS/src/MNS/MeqStation.h | 8 ++++-- CEP/BB/BBS/src/MNS/MeqTabular.cc | 7 ++++- CEP/BB/BBS/src/MNS/MeqTabular.h | 7 +++-- CEP/BB/BBS/src/MNS/Pool.h | 8 ++++-- CEP/BB/BBS/src/MSDataArray.h | 10 ++++--- CEP/BB/BBS/src/ParmData.cc | 10 +++++-- CEP/BB/BBS/src/ParmData.h | 12 ++++++--- CEP/BB/BBS/src/ParmWriter.cc | 4 +++ CEP/BB/BBS/src/ParmWriter.h | 27 ++++++++++++++----- CEP/BB/BBS/src/Prediffer.cc | 3 +++ CEP/BB/BBS/src/Prediffer.h | 3 +++ CEP/BB/BBS/src/Quality.cc | 3 +++ CEP/BB/BBS/src/Quality.h | 3 +++ CEP/BB/BBS/src/SolveProp.h | 3 +++ CEP/BB/BBS/src/Solver.cc | 8 +++++- CEP/BB/BBS/src/Solver.h | 6 ++++- CEP/BB/BBS/src/StepProp.cc | 3 +++ CEP/BB/BBS/src/StepProp.h | 3 +++ CEP/BB/BBS/src/StrategyProp.cc | 3 +++ CEP/BB/BBS/src/StrategyProp.h | 3 +++ CEP/BB/BBS/test/tBandpass.run | 12 ++++----- CEP/BB/BBS/test/tBandpass.sh | 2 +- CEP/BB/BBS/test/tCorrect.cc | 1 + CEP/BB/BBS/test/tFillRow.cc | 1 + CEP/BB/BBS/test/tMSData.cc | 1 + CEP/BB/BBS/test/tMeqParm.cc | 1 + CEP/BB/BBS/test/tMeqPolc.cc | 1 + CEP/BB/BBS/test/tMeqPolcLog.cc | 1 + CEP/BB/BBS/test/tMeqTabular.cc | 1 + CEP/BB/BBS/test/tParmMerge.cc | 9 ++++--- CEP/BB/BBS/test/tPerturbed.cc | 1 + CEP/BB/BBS/test/tPredSolv.cc | 1 + CEP/BB/BBS/test/tPredict.cc | 1 + CEP/BB/BBS/test/tSubtract.cc | 1 + .../include/BBSKernel/BBSTestLogger.h | 3 +++ CEP/BB/BBSKernel/include/BBSKernel/Fitter.h | 3 +++ CEP/BB/BBSKernel/include/BBSKernel/FlagsMap.h | 4 ++- CEP/BB/BBSKernel/include/BBSKernel/MMap.h | 3 +++ .../BBSKernel/include/BBSKernel/MMapMSInfo.h | 4 +++ .../include/BBSKernel/MNS/MeqBaseDFTPS.h | 8 ++++-- .../include/BBSKernel/MNS/MeqBaseLinPS.h | 9 ++++--- .../include/BBSKernel/MNS/MeqDFTPS.h | 8 ++++-- .../BBSKernel/include/BBSKernel/MNS/MeqDiag.h | 8 ++++-- .../include/BBSKernel/MNS/MeqDomain.h | 8 ++++-- .../BBSKernel/include/BBSKernel/MNS/MeqExpr.h | 9 +++++-- .../include/BBSKernel/MNS/MeqFunklet.h | 8 ++++-- .../include/BBSKernel/MNS/MeqGaussSource.h | 8 ++++-- .../include/BBSKernel/MNS/MeqJonesCMul2.h | 8 ++++-- .../include/BBSKernel/MNS/MeqJonesCMul3.h | 9 +++++-- .../include/BBSKernel/MNS/MeqJonesExpr.h | 8 ++++-- .../include/BBSKernel/MNS/MeqJonesInvert.h | 8 ++++-- .../include/BBSKernel/MNS/MeqJonesMMap.h | 8 ++++-- .../include/BBSKernel/MNS/MeqJonesMul2.h | 8 ++++-- .../include/BBSKernel/MNS/MeqJonesMul3.h | 8 ++++-- .../include/BBSKernel/MNS/MeqJonesNode.h | 8 ++++-- .../include/BBSKernel/MNS/MeqJonesResult.h | 8 ++++-- .../include/BBSKernel/MNS/MeqJonesSum.h | 8 ++++-- .../BBSKernel/include/BBSKernel/MNS/MeqLMN.h | 8 ++++-- .../include/BBSKernel/MNS/MeqMatrix.h | 27 +++++++++++++------ .../BBSKernel/MNS/MeqMatrixComplexArr.h | 8 ++++-- .../BBSKernel/MNS/MeqMatrixComplexSca.h | 8 ++++-- .../include/BBSKernel/MNS/MeqMatrixRealArr.h | 8 ++++-- .../include/BBSKernel/MNS/MeqMatrixRealSca.h | 8 ++++-- .../include/BBSKernel/MNS/MeqMatrixRep.h | 14 +++++++--- .../include/BBSKernel/MNS/MeqMatrixTmp.h | 8 ++++-- .../BBSKernel/include/BBSKernel/MNS/MeqParm.h | 8 ++++-- .../include/BBSKernel/MNS/MeqParmExpr.h | 8 ++++-- .../include/BBSKernel/MNS/MeqParmFunklet.h | 8 ++++-- .../include/BBSKernel/MNS/MeqParmSingle.h | 8 ++++-- .../include/BBSKernel/MNS/MeqPhaseRef.h | 8 ++++-- .../include/BBSKernel/MNS/MeqPointSource.h | 8 ++++-- .../BBSKernel/include/BBSKernel/MNS/MeqPolc.h | 8 ++++-- .../include/BBSKernel/MNS/MeqPolcLog.h | 8 ++++-- .../include/BBSKernel/MNS/MeqRequest.h | 8 ++++-- .../include/BBSKernel/MNS/MeqRequestId.h | 8 ++++-- .../include/BBSKernel/MNS/MeqResult.h | 8 ++++-- .../include/BBSKernel/MNS/MeqResultVec.h | 8 ++++-- .../include/BBSKernel/MNS/MeqSource.h | 8 ++++-- .../include/BBSKernel/MNS/MeqSourceList.h | 8 ++++-- .../include/BBSKernel/MNS/MeqStatExpr.h | 8 ++++-- .../include/BBSKernel/MNS/MeqStatUVW.h | 8 ++++-- .../include/BBSKernel/MNS/MeqStation.h | 8 ++++-- .../include/BBSKernel/MNS/MeqTabular.h | 7 +++-- CEP/BB/BBSKernel/include/BBSKernel/MNS/Pool.h | 8 ++++-- .../BBSKernel/include/BBSKernel/MSDataArray.h | 10 ++++--- CEP/BB/BBSKernel/include/BBSKernel/ParmData.h | 12 ++++++--- .../BBSKernel/include/BBSKernel/ParmWriter.h | 27 ++++++++++++++----- .../BBSKernel/include/BBSKernel/Prediffer.h | 3 +++ CEP/BB/BBSKernel/include/BBSKernel/Quality.h | 3 +++ .../BBSKernel/include/BBSKernel/SolveProp.h | 3 +++ CEP/BB/BBSKernel/include/BBSKernel/Solver.h | 6 ++++- CEP/BB/BBSKernel/include/BBSKernel/StepProp.h | 3 +++ .../include/BBSKernel/StrategyProp.h | 3 +++ CEP/BB/BBSKernel/src/BBSKernel.cc | 4 +-- .../BBSKernel/src/BBSKernelProcessControl.cc | 4 +++ .../BBSKernel/src/BBSKernelProcessControl.h | 10 ++++++- CEP/BB/BBSKernel/src/BBSTestLogger.cc | 7 ++++- CEP/BB/BBSKernel/src/BBSTestLogger.h | 3 +++ CEP/BB/BBSKernel/src/BBSrun.cc | 1 + CEP/BB/BBSKernel/src/Fitter.cc | 6 ++++- CEP/BB/BBSKernel/src/Fitter.h | 3 +++ CEP/BB/BBSKernel/src/FlagsMap.cc | 3 +++ CEP/BB/BBSKernel/src/FlagsMap.h | 4 ++- CEP/BB/BBSKernel/src/MMap.cc | 3 +++ CEP/BB/BBSKernel/src/MMap.h | 3 +++ CEP/BB/BBSKernel/src/MMapMSInfo.cc | 5 +++- CEP/BB/BBSKernel/src/MMapMSInfo.h | 4 +++ CEP/BB/BBSKernel/src/MNS/MeqBaseDFTPS.cc | 10 +++++-- CEP/BB/BBSKernel/src/MNS/MeqBaseDFTPS.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqBaseLinPS.cc | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqBaseLinPS.h | 9 ++++--- CEP/BB/BBSKernel/src/MNS/MeqDFTPS.cc | 9 ++++--- CEP/BB/BBSKernel/src/MNS/MeqDFTPS.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqDiag.cc | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqDiag.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqDomain.cc | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqDomain.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqExpr.cc | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqExpr.h | 9 +++++-- CEP/BB/BBSKernel/src/MNS/MeqFunklet.cc | 10 ++++--- CEP/BB/BBSKernel/src/MNS/MeqFunklet.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqGaussSource.cc | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqGaussSource.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqJonesCMul2.cc | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqJonesCMul2.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqJonesCMul3.cc | 9 ++++--- CEP/BB/BBSKernel/src/MNS/MeqJonesCMul3.h | 9 +++++-- CEP/BB/BBSKernel/src/MNS/MeqJonesExpr.cc | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqJonesExpr.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqJonesInvert.cc | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqJonesInvert.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqJonesMMap.cc | 9 +++++-- CEP/BB/BBSKernel/src/MNS/MeqJonesMMap.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqJonesMul2.cc | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqJonesMul2.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqJonesMul3.cc | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqJonesMul3.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqJonesNode.cc | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqJonesNode.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqJonesResult.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqJonesSum.cc | 9 +++++-- CEP/BB/BBSKernel/src/MNS/MeqJonesSum.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqLMN.cc | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqLMN.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqLMNAn.cc | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqMatrix.cc | 9 ++++--- CEP/BB/BBSKernel/src/MNS/MeqMatrix.h | 27 +++++++++++++------ .../BBSKernel/src/MNS/MeqMatrixComplexArr.cc | 8 ++++-- .../BBSKernel/src/MNS/MeqMatrixComplexArr.h | 8 ++++-- .../BBSKernel/src/MNS/MeqMatrixComplexSca.cc | 8 ++++-- .../BBSKernel/src/MNS/MeqMatrixComplexSca.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqMatrixRealArr.cc | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqMatrixRealArr.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqMatrixRealSca.cc | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqMatrixRealSca.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqMatrixRep.cc | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqMatrixRep.h | 14 +++++++--- CEP/BB/BBSKernel/src/MNS/MeqMatrixTmp.cc | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqMatrixTmp.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqParm.cc | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqParm.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqParmExpr.cc | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqParmExpr.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqParmFunklet.cc | 10 ++++--- CEP/BB/BBSKernel/src/MNS/MeqParmFunklet.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqParmSingle.cc | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqParmSingle.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqPhaseRef.cc | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqPhaseRef.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqPointSource.cc | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqPointSource.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqPolc.cc | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqPolc.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqPolcAn.cc | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqPolcLog.cc | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqPolcLog.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqRequest.cc | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqRequest.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqRequestId.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqResult.cc | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqResult.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqResultVec.cc | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqResultVec.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqSource.cc | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqSource.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqSourceList.cc | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqSourceList.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqStatExpr.cc | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqStatExpr.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqStatUVW.cc | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqStatUVW.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqStation.cc | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqStation.h | 8 ++++-- CEP/BB/BBSKernel/src/MNS/MeqTabular.cc | 7 ++++- CEP/BB/BBSKernel/src/MNS/MeqTabular.h | 7 +++-- CEP/BB/BBSKernel/src/MNS/Pool.h | 8 ++++-- CEP/BB/BBSKernel/src/MSDataArray.h | 10 ++++--- CEP/BB/BBSKernel/src/ParmData.cc | 10 +++++-- CEP/BB/BBSKernel/src/ParmData.h | 12 ++++++--- CEP/BB/BBSKernel/src/ParmWriter.cc | 4 +++ CEP/BB/BBSKernel/src/ParmWriter.h | 27 ++++++++++++++----- CEP/BB/BBSKernel/src/Prediffer.cc | 3 +++ CEP/BB/BBSKernel/src/Prediffer.h | 3 +++ CEP/BB/BBSKernel/src/Quality.cc | 3 +++ CEP/BB/BBSKernel/src/Quality.h | 3 +++ CEP/BB/BBSKernel/src/SolveProp.h | 3 +++ CEP/BB/BBSKernel/src/Solver.cc | 8 +++++- CEP/BB/BBSKernel/src/Solver.h | 6 ++++- CEP/BB/BBSKernel/src/StepProp.cc | 3 +++ CEP/BB/BBSKernel/src/StepProp.h | 3 +++ CEP/BB/BBSKernel/src/StrategyProp.cc | 3 +++ CEP/BB/BBSKernel/src/StrategyProp.h | 3 +++ CEP/BB/BBSKernel/test/tBandpass.run | 12 ++++----- CEP/BB/BBSKernel/test/tBandpass.sh | 2 +- CEP/BB/BBSKernel/test/tCorrect.cc | 1 + CEP/BB/BBSKernel/test/tFillRow.cc | 1 + CEP/BB/BBSKernel/test/tMSData.cc | 1 + CEP/BB/BBSKernel/test/tMeqParm.cc | 1 + CEP/BB/BBSKernel/test/tMeqPolc.cc | 1 + CEP/BB/BBSKernel/test/tMeqPolcLog.cc | 1 + CEP/BB/BBSKernel/test/tMeqTabular.cc | 1 + CEP/BB/BBSKernel/test/tParmMerge.cc | 9 ++++--- CEP/BB/BBSKernel/test/tPerturbed.cc | 1 + CEP/BB/BBSKernel/test/tPredSolv.cc | 1 + CEP/BB/BBSKernel/test/tPredict.cc | 1 + CEP/BB/BBSKernel/test/tSubtract.cc | 1 + 325 files changed, 1799 insertions(+), 569 deletions(-) diff --git a/CEP/BB/BBS/src/BBSKernel.cc b/CEP/BB/BBS/src/BBSKernel.cc index 635f36f5c21..38d0b130f60 100644 --- a/CEP/BB/BBS/src/BBSKernel.cc +++ b/CEP/BB/BBS/src/BBSKernel.cc @@ -27,12 +27,12 @@ #include <PLC/ACCmain.h> #include <BBS/BBSKernelProcessControl.h> -using namespace LOFAR; +using namespace LOFAR::BBS; int main(int argc, char **argv) { INIT_LOGGER(basename(argv[0])); BBSKernelProcessControl process; - return ACC::PLC::ACCmain(argc, argv, &process); + return LOFAR::ACC::PLC::ACCmain(argc, argv, &process); } diff --git a/CEP/BB/BBS/src/BBSKernelProcessControl.cc b/CEP/BB/BBS/src/BBSKernelProcessControl.cc index 9cfaf0d3337..4f26d049f1c 100644 --- a/CEP/BB/BBS/src/BBSKernelProcessControl.cc +++ b/CEP/BB/BBS/src/BBSKernelProcessControl.cc @@ -30,6 +30,9 @@ namespace LOFAR { +namespace BBS +{ + BBSKernelProcessControl::BBSKernelProcessControl() : ProcessControl() { @@ -128,4 +131,5 @@ namespace LOFAR return std::string(""); } +} // namespace BBS } // namespace LOFAR diff --git a/CEP/BB/BBS/src/BBSKernelProcessControl.h b/CEP/BB/BBS/src/BBSKernelProcessControl.h index 20aa1815379..ef606db1da8 100644 --- a/CEP/BB/BBS/src/BBSKernelProcessControl.h +++ b/CEP/BB/BBS/src/BBSKernelProcessControl.h @@ -31,7 +31,14 @@ #include <PLC/ProcessControl.h> #include <APS/ParameterSet.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ + +// \addtogroup BBS +// @{ + //# Description of class. // The ProcessControl class defines the command interface that can be used // to control the processes of an application.<br> @@ -107,6 +114,7 @@ public: std::string askInfo(const string& keylist); }; // class BBSKernelProcessControl +} // namespace BBS } // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/BBSTestLogger.cc b/CEP/BB/BBS/src/BBSTestLogger.cc index ae4b77016ab..adadde26de0 100644 --- a/CEP/BB/BBS/src/BBSTestLogger.cc +++ b/CEP/BB/BBS/src/BBSTestLogger.cc @@ -30,7 +30,10 @@ #include <BBS/ParmData.h> #include <sstream> -namespace LOFAR{ +namespace LOFAR +{ +namespace BBS +{ namespace BBSTest { @@ -98,4 +101,6 @@ namespace LOFAR{ } } } + +} // namespace BBS } // namespace LOFAR diff --git a/CEP/BB/BBS/src/BBSTestLogger.h b/CEP/BB/BBS/src/BBSTestLogger.h index 534ac86999f..2b6df2ed7d9 100644 --- a/CEP/BB/BBS/src/BBSTestLogger.h +++ b/CEP/BB/BBS/src/BBSTestLogger.h @@ -40,6 +40,8 @@ namespace LOFAR { +namespace BBS +{ // \addtogroup BBS // @{ @@ -111,6 +113,7 @@ namespace LOFAR }; } +} // end namespace BBS } // end namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/BBSrun.cc b/CEP/BB/BBS/src/BBSrun.cc index c73f1f9d760..7af34e91a99 100644 --- a/CEP/BB/BBS/src/BBSrun.cc +++ b/CEP/BB/BBS/src/BBSrun.cc @@ -42,6 +42,7 @@ using namespace std; using namespace casa; using namespace LOFAR; +using namespace LOFAR::BBS; using namespace LOFAR::ParmDB; using namespace LOFAR::ACC::APS; diff --git a/CEP/BB/BBS/src/Fitter.cc b/CEP/BB/BBS/src/Fitter.cc index b00d2bc5f19..34d4a842647 100644 --- a/CEP/BB/BBS/src/Fitter.cc +++ b/CEP/BB/BBS/src/Fitter.cc @@ -33,7 +33,10 @@ using namespace std; using namespace casa; -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ void Fitter::set (int nfitter, int nunknown) { @@ -97,4 +100,5 @@ namespace LOFAR { aio.getend(); } +} // namespace BBS } // namespace LOFAR diff --git a/CEP/BB/BBS/src/Fitter.h b/CEP/BB/BBS/src/Fitter.h index 1eb036f82a6..c2efaf08b6d 100644 --- a/CEP/BB/BBS/src/Fitter.h +++ b/CEP/BB/BBS/src/Fitter.h @@ -31,6 +31,8 @@ namespace LOFAR { +namespace BBS +{ // \addtogroup BBS // @{ @@ -61,6 +63,7 @@ private: // @} +} // namespace BBS } // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/FlagsMap.cc b/CEP/BB/BBS/src/FlagsMap.cc index 4e8c2d98220..94d51ac11ab 100644 --- a/CEP/BB/BBS/src/FlagsMap.cc +++ b/CEP/BB/BBS/src/FlagsMap.cc @@ -24,6 +24,8 @@ #include <BBS/FlagsMap.h> namespace LOFAR +{ +namespace BBS { FlagsMap::FlagsMap (const string& fileName, MMap::protection prot) @@ -64,4 +66,5 @@ namespace LOFAR } +} // namespace BBS } // namespace LOFAR diff --git a/CEP/BB/BBS/src/FlagsMap.h b/CEP/BB/BBS/src/FlagsMap.h index 5cf7ad4d2aa..c2112440335 100644 --- a/CEP/BB/BBS/src/FlagsMap.h +++ b/CEP/BB/BBS/src/FlagsMap.h @@ -28,7 +28,8 @@ namespace LOFAR { - +namespace BBS +{ // This class implements a mmap operation for the data flags which are bits. class FlagsMap @@ -94,6 +95,7 @@ namespace LOFAR return ((itsFlags[index] & (uchar(1) << (realpos%8))) == 0); } +} // namespace BBS } // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MMap.cc b/CEP/BB/BBS/src/MMap.cc index fc3e13280b4..db791375c0d 100644 --- a/CEP/BB/BBS/src/MMap.cc +++ b/CEP/BB/BBS/src/MMap.cc @@ -32,6 +32,8 @@ namespace LOFAR { +namespace BBS +{ MMap::MMap (const string& fileName, protection prot) : itsFileName (fileName), @@ -141,4 +143,5 @@ void MMap::flush() } } +} // namespace BBS } // namespace LOFAR diff --git a/CEP/BB/BBS/src/MMap.h b/CEP/BB/BBS/src/MMap.h index 0795fdca017..8c8e14f3d27 100644 --- a/CEP/BB/BBS/src/MMap.h +++ b/CEP/BB/BBS/src/MMap.h @@ -33,6 +33,8 @@ namespace LOFAR { +namespace BBS +{ // \ addtogroup BBS // @{ @@ -111,6 +113,7 @@ inline bool MMap::isWritable() const // @} +} // namespace BBS } // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MMapMSInfo.cc b/CEP/BB/BBS/src/MMapMSInfo.cc index e7fd98ec4b8..44ef2b06de0 100644 --- a/CEP/BB/BBS/src/MMapMSInfo.cc +++ b/CEP/BB/BBS/src/MMapMSInfo.cc @@ -24,6 +24,8 @@ #include <MS/MSDesc.h> namespace LOFAR +{ +namespace BBS { MMapMSInfo::MMapMSInfo (const MSDesc& msdesc, uint ddid, @@ -48,4 +50,5 @@ namespace LOFAR } } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MMapMSInfo.h b/CEP/BB/BBS/src/MMapMSInfo.h index dc521f28f0d..9ed6885dccc 100644 --- a/CEP/BB/BBS/src/MMapMSInfo.h +++ b/CEP/BB/BBS/src/MMapMSInfo.h @@ -34,6 +34,9 @@ namespace LOFAR // Forward Declarations. class MSDesc; +namespace BBS +{ + // \ addtogroup BBS // @{ // @@ -102,6 +105,7 @@ private: // @} +} // namespace BBS } // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqBaseDFTPS.cc b/CEP/BB/BBS/src/MNS/MeqBaseDFTPS.cc index 111c9a3a921..298ead81bdb 100644 --- a/CEP/BB/BBS/src/MNS/MeqBaseDFTPS.cc +++ b/CEP/BB/BBS/src/MNS/MeqBaseDFTPS.cc @@ -28,7 +28,12 @@ using namespace casa; -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ +using LOFAR::dcomplex; +using LOFAR::conj; MeqBaseDFTPS::MeqBaseDFTPS (const MeqExpr& left, const MeqExpr& right, const MeqExpr& lmn) @@ -173,4 +178,5 @@ std::string MeqBaseDFTPS::getLabel() } #endif -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqBaseDFTPS.h b/CEP/BB/BBS/src/MNS/MeqBaseDFTPS.h index 8db406906e6..122abfe5bc6 100644 --- a/CEP/BB/BBS/src/MNS/MeqBaseDFTPS.h +++ b/CEP/BB/BBS/src/MNS/MeqBaseDFTPS.h @@ -29,7 +29,10 @@ //# Includes #include <BBS/MNS/MeqExpr.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -58,6 +61,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqBaseLinPS.cc b/CEP/BB/BBS/src/MNS/MeqBaseLinPS.cc index e23f6083c7d..19d40ba51ae 100644 --- a/CEP/BB/BBS/src/MNS/MeqBaseLinPS.cc +++ b/CEP/BB/BBS/src/MNS/MeqBaseLinPS.cc @@ -29,7 +29,10 @@ using namespace casa; -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqBaseLinPS::MeqBaseLinPS (const MeqExpr& dft, MeqPointSource* source) : itsDFT (dft), @@ -130,4 +133,5 @@ std::string MeqBaseLinPS::getLabel() } #endif -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqBaseLinPS.h b/CEP/BB/BBS/src/MNS/MeqBaseLinPS.h index 4978e1f287c..562dbecd6ec 100644 --- a/CEP/BB/BBS/src/MNS/MeqBaseLinPS.h +++ b/CEP/BB/BBS/src/MNS/MeqBaseLinPS.h @@ -32,7 +32,10 @@ #include <BBS/MNS/MeqPointSource.h> #include <BBS/MNS/MeqDFTPS.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -62,6 +65,6 @@ private: // @} -} - +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqDFTPS.cc b/CEP/BB/BBS/src/MNS/MeqDFTPS.cc index e99b93b68f2..8f1914c4572 100644 --- a/CEP/BB/BBS/src/MNS/MeqDFTPS.cc +++ b/CEP/BB/BBS/src/MNS/MeqDFTPS.cc @@ -32,8 +32,10 @@ using namespace casa; -namespace LOFAR { - +namespace LOFAR +{ +namespace BBS +{ MeqDFTPS::MeqDFTPS (const MeqExpr& lmn, MeqStatUVW* uvw) : itsLMN (lmn), @@ -130,4 +132,5 @@ std::string MeqDFTPS::getLabel() } #endif -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqDFTPS.h b/CEP/BB/BBS/src/MNS/MeqDFTPS.h index 057fafbf2f2..4cb817e02cd 100644 --- a/CEP/BB/BBS/src/MNS/MeqDFTPS.h +++ b/CEP/BB/BBS/src/MNS/MeqDFTPS.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqExpr.h> #include <Common/lofar_vector.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -64,6 +67,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqDiag.cc b/CEP/BB/BBS/src/MNS/MeqDiag.cc index 14e2efa8e3e..92de9acc84c 100644 --- a/CEP/BB/BBS/src/MNS/MeqDiag.cc +++ b/CEP/BB/BBS/src/MNS/MeqDiag.cc @@ -26,7 +26,10 @@ #include <BBS/MNS/MeqDiag.h> #include <BBS/MNS/MeqExpr.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqDiag::MeqDiag(const MeqExpr& xx, const MeqExpr& yy) : itsXX(xx), @@ -53,4 +56,5 @@ MeqJonesResult MeqDiag::getJResult(const MeqRequest& request) return res; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqDiag.h b/CEP/BB/BBS/src/MNS/MeqDiag.h index 61228b57629..744c75c6f2b 100644 --- a/CEP/BB/BBS/src/MNS/MeqDiag.h +++ b/CEP/BB/BBS/src/MNS/MeqDiag.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqJonesExpr.h> #include <BBS/MNS/MeqExpr.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -60,6 +63,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqDomain.cc b/CEP/BB/BBS/src/MNS/MeqDomain.cc index e32087abd1e..5191166540c 100644 --- a/CEP/BB/BBS/src/MNS/MeqDomain.cc +++ b/CEP/BB/BBS/src/MNS/MeqDomain.cc @@ -24,7 +24,10 @@ #include <BBS/MNS/MeqDomain.h> #include <Common/LofarLogger.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqDomain::MeqDomain() : itsStartX (0), @@ -68,4 +71,5 @@ std::ostream& operator<< (std::ostream& os, const MeqDomain& domain) return os; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqDomain.h b/CEP/BB/BBS/src/MNS/MeqDomain.h index 8ba9521ccd3..7d04381ff4a 100644 --- a/CEP/BB/BBS/src/MNS/MeqDomain.h +++ b/CEP/BB/BBS/src/MNS/MeqDomain.h @@ -29,7 +29,10 @@ #include <iosfwd> #include <ParmDB/ParmDomain.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -85,6 +88,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqExpr.cc b/CEP/BB/BBS/src/MNS/MeqExpr.cc index d3e4a879c96..428b62eac37 100644 --- a/CEP/BB/BBS/src/MNS/MeqExpr.cc +++ b/CEP/BB/BBS/src/MNS/MeqExpr.cc @@ -31,7 +31,10 @@ #include <iomanip> #include <algorithm> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqExprRep::MeqExprRep() : itsCount (0), @@ -373,4 +376,5 @@ std::string MeqExprAPToComplex::getLabel() } #endif -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqExpr.h b/CEP/BB/BBS/src/MNS/MeqExpr.h index ba266cfbd8f..7cbe0f89470 100644 --- a/CEP/BB/BBS/src/MNS/MeqExpr.h +++ b/CEP/BB/BBS/src/MNS/MeqExpr.h @@ -38,7 +38,11 @@ #include <iostream> #endif -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ + //# Forward Declarations. class MeqExpr; @@ -276,6 +280,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqFunklet.cc b/CEP/BB/BBS/src/MNS/MeqFunklet.cc index 8c23e31cb34..839db362387 100644 --- a/CEP/BB/BBS/src/MNS/MeqFunklet.cc +++ b/CEP/BB/BBS/src/MNS/MeqFunklet.cc @@ -32,8 +32,11 @@ using namespace casa; -namespace LOFAR { - +namespace LOFAR +{ +namespace BBS +{ +using LOFAR::operator<<; MeqFunklet::MeqFunklet() : itsNrScid (0) @@ -188,4 +191,5 @@ void MeqFunklet::update (const vector<double>& values) } } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqFunklet.h b/CEP/BB/BBS/src/MNS/MeqFunklet.h index d798f6708ff..11b7b8666eb 100644 --- a/CEP/BB/BBS/src/MNS/MeqFunklet.h +++ b/CEP/BB/BBS/src/MNS/MeqFunklet.h @@ -32,7 +32,10 @@ #include <ParmDB/ParmValue.h> #include <Common/lofar_vector.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -158,6 +161,7 @@ protected: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqGaussSource.cc b/CEP/BB/BBS/src/MNS/MeqGaussSource.cc index 4b506524626..3e360e4c545 100644 --- a/CEP/BB/BBS/src/MNS/MeqGaussSource.cc +++ b/CEP/BB/BBS/src/MNS/MeqGaussSource.cc @@ -24,7 +24,10 @@ #include <BBS/MNS/MeqGaussSource.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqGaussSource::MeqGaussSource (const string& name, const string& groupName, @@ -46,4 +49,5 @@ MeqGaussSource::MeqGaussSource (const string& name, MeqGaussSource::~MeqGaussSource() {} -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqGaussSource.h b/CEP/BB/BBS/src/MNS/MeqGaussSource.h index 024f1c9cb90..5577212c35d 100644 --- a/CEP/BB/BBS/src/MNS/MeqGaussSource.h +++ b/CEP/BB/BBS/src/MNS/MeqGaussSource.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqSource.h> #include <Common/lofar_string.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -78,6 +81,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqJonesCMul2.cc b/CEP/BB/BBS/src/MNS/MeqJonesCMul2.cc index e858014df1f..b75c337d590 100644 --- a/CEP/BB/BBS/src/MNS/MeqJonesCMul2.cc +++ b/CEP/BB/BBS/src/MNS/MeqJonesCMul2.cc @@ -31,7 +31,10 @@ using namespace casa; -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqJonesCMul2::MeqJonesCMul2 (const MeqJonesExpr& left, const MeqJonesExpr& right) @@ -151,4 +154,5 @@ MeqJonesResult MeqJonesCMul2::getJResult (const MeqRequest& request) return result; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqJonesCMul2.h b/CEP/BB/BBS/src/MNS/MeqJonesCMul2.h index 82e6ecf60a3..f063edd0f5b 100644 --- a/CEP/BB/BBS/src/MNS/MeqJonesCMul2.h +++ b/CEP/BB/BBS/src/MNS/MeqJonesCMul2.h @@ -28,7 +28,10 @@ //# Includes #include <BBS/MNS/MeqJonesExpr.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -54,6 +57,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqJonesCMul3.cc b/CEP/BB/BBS/src/MNS/MeqJonesCMul3.cc index 2b11de23aa1..fa5079133f5 100644 --- a/CEP/BB/BBS/src/MNS/MeqJonesCMul3.cc +++ b/CEP/BB/BBS/src/MNS/MeqJonesCMul3.cc @@ -35,10 +35,12 @@ #include <xmmintrin.h> #endif - using namespace casa; -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqJonesCMul3::MeqJonesCMul3 (const MeqJonesExpr& left, const MeqJonesExpr& mid, @@ -617,4 +619,5 @@ std::string MeqJonesCMul3::getLabel() } #endif -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqJonesCMul3.h b/CEP/BB/BBS/src/MNS/MeqJonesCMul3.h index 3641556e8d3..557768318c8 100644 --- a/CEP/BB/BBS/src/MNS/MeqJonesCMul3.h +++ b/CEP/BB/BBS/src/MNS/MeqJonesCMul3.h @@ -29,7 +29,10 @@ //# Includes #include <BBS/MNS/MeqJonesExpr.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -62,6 +65,8 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR + #endif diff --git a/CEP/BB/BBS/src/MNS/MeqJonesExpr.cc b/CEP/BB/BBS/src/MNS/MeqJonesExpr.cc index 0ede1819975..d906012aeaa 100644 --- a/CEP/BB/BBS/src/MNS/MeqJonesExpr.cc +++ b/CEP/BB/BBS/src/MNS/MeqJonesExpr.cc @@ -26,7 +26,10 @@ #include <Common/LofarLogger.h> //#include <Common/Timer.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqJonesExprRep::~MeqJonesExprRep() { @@ -42,4 +45,5 @@ void MeqJonesExprRep::precalculate (const MeqRequest& request) itsReqId = request.getId(); } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqJonesExpr.h b/CEP/BB/BBS/src/MNS/MeqJonesExpr.h index bd061e66871..ee9717907d1 100644 --- a/CEP/BB/BBS/src/MNS/MeqJonesExpr.h +++ b/CEP/BB/BBS/src/MNS/MeqJonesExpr.h @@ -33,7 +33,10 @@ #include <Common/LofarLogger.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -127,6 +130,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqJonesInvert.cc b/CEP/BB/BBS/src/MNS/MeqJonesInvert.cc index db330b20d26..f40ce8ef535 100644 --- a/CEP/BB/BBS/src/MNS/MeqJonesInvert.cc +++ b/CEP/BB/BBS/src/MNS/MeqJonesInvert.cc @@ -40,7 +40,10 @@ // // Also note that conj(AB) = conj(B)conj(A) -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqJonesInvert::~MeqJonesInvert() {} @@ -102,4 +105,5 @@ MeqJonesResult MeqJonesInvert::getJResult (const MeqRequest& request) return result; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqJonesInvert.h b/CEP/BB/BBS/src/MNS/MeqJonesInvert.h index d83615e1481..b086acc9584 100644 --- a/CEP/BB/BBS/src/MNS/MeqJonesInvert.h +++ b/CEP/BB/BBS/src/MNS/MeqJonesInvert.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqJonesExpr.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -58,6 +61,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqJonesMMap.cc b/CEP/BB/BBS/src/MNS/MeqJonesMMap.cc index 5d03a476713..455a86a9e74 100644 --- a/CEP/BB/BBS/src/MNS/MeqJonesMMap.cc +++ b/CEP/BB/BBS/src/MNS/MeqJonesMMap.cc @@ -24,7 +24,10 @@ #include <BBS/MNS/MeqJonesMMap.h> #include <Common/LofarLogger.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqJonesMMap::MeqJonesMMap (const MMapMSInfo& info, int blnr) : itsInfo (&info), @@ -137,4 +140,6 @@ namespace LOFAR { } } } -} + +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqJonesMMap.h b/CEP/BB/BBS/src/MNS/MeqJonesMMap.h index eca44a5791d..f6ad6d72521 100644 --- a/CEP/BB/BBS/src/MNS/MeqJonesMMap.h +++ b/CEP/BB/BBS/src/MNS/MeqJonesMMap.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqJonesExpr.h> #include <BBS/MMapMSInfo.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -59,6 +62,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqJonesMul2.cc b/CEP/BB/BBS/src/MNS/MeqJonesMul2.cc index d95e24d81f4..bdfde500029 100644 --- a/CEP/BB/BBS/src/MNS/MeqJonesMul2.cc +++ b/CEP/BB/BBS/src/MNS/MeqJonesMul2.cc @@ -31,7 +31,10 @@ using namespace casa; -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqJonesMul2::MeqJonesMul2 (const MeqJonesExpr& left, const MeqJonesExpr& right) @@ -151,4 +154,5 @@ MeqJonesResult MeqJonesMul2::getJResult (const MeqRequest& request) return result; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqJonesMul2.h b/CEP/BB/BBS/src/MNS/MeqJonesMul2.h index 0e47f081304..cecdb0bae2d 100644 --- a/CEP/BB/BBS/src/MNS/MeqJonesMul2.h +++ b/CEP/BB/BBS/src/MNS/MeqJonesMul2.h @@ -28,7 +28,10 @@ //# Includes #include <BBS/MNS/MeqJonesExpr.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -54,6 +57,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqJonesMul3.cc b/CEP/BB/BBS/src/MNS/MeqJonesMul3.cc index b6b0fd45747..b002479b408 100644 --- a/CEP/BB/BBS/src/MNS/MeqJonesMul3.cc +++ b/CEP/BB/BBS/src/MNS/MeqJonesMul3.cc @@ -31,7 +31,10 @@ using namespace casa; -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqJonesMul3::MeqJonesMul3 (const MeqJonesExpr& left, const MeqJonesExpr& mid, @@ -196,4 +199,5 @@ MeqJonesResult MeqJonesMul3::getJResult (const MeqRequest& request) return result; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqJonesMul3.h b/CEP/BB/BBS/src/MNS/MeqJonesMul3.h index 16589806c03..5f51d6c1d03 100644 --- a/CEP/BB/BBS/src/MNS/MeqJonesMul3.h +++ b/CEP/BB/BBS/src/MNS/MeqJonesMul3.h @@ -29,7 +29,10 @@ //# Includes #include <BBS/MNS/MeqJonesExpr.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -58,6 +61,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqJonesNode.cc b/CEP/BB/BBS/src/MNS/MeqJonesNode.cc index 54f36b4fb0a..9a14dc5abb2 100644 --- a/CEP/BB/BBS/src/MNS/MeqJonesNode.cc +++ b/CEP/BB/BBS/src/MNS/MeqJonesNode.cc @@ -25,7 +25,10 @@ #include <BBS/MNS/MeqJonesNode.h> #include <BBS/MNS/MeqExpr.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqJonesNode::MeqJonesNode (const MeqExpr& elem11, const MeqExpr& elem12, const MeqExpr& elem21, const MeqExpr& elem22) @@ -62,4 +65,5 @@ std::string MeqJonesNode::getLabel() } #endif -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqJonesNode.h b/CEP/BB/BBS/src/MNS/MeqJonesNode.h index 502af447676..85739fef4d5 100644 --- a/CEP/BB/BBS/src/MNS/MeqJonesNode.h +++ b/CEP/BB/BBS/src/MNS/MeqJonesNode.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqJonesExpr.h> #include <BBS/MNS/MeqExpr.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -68,6 +71,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqJonesResult.h b/CEP/BB/BBS/src/MNS/MeqJonesResult.h index c12eb0989ea..8aadacee203 100644 --- a/CEP/BB/BBS/src/MNS/MeqJonesResult.h +++ b/CEP/BB/BBS/src/MNS/MeqJonesResult.h @@ -32,7 +32,10 @@ // This class represents the result in a Jones matrix of a domain for // which the expressions have been evaluated. -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -78,6 +81,7 @@ namespace LOFAR { // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqJonesSum.cc b/CEP/BB/BBS/src/MNS/MeqJonesSum.cc index 86d6a3e93a8..dee25c651cb 100644 --- a/CEP/BB/BBS/src/MNS/MeqJonesSum.cc +++ b/CEP/BB/BBS/src/MNS/MeqJonesSum.cc @@ -26,7 +26,10 @@ #include <BBS/MNS/MeqJonesResult.h> #include <BBS/MNS/MeqMatrixTmp.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqJonesSum::MeqJonesSum (const std::vector<MeqJonesExpr>& expr) : itsExpr (expr) @@ -113,4 +116,6 @@ std::string MeqJonesSum::getLabel() return std::string("MeqJonesSum\\nSum of Jones matrices"); } #endif -} + +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqJonesSum.h b/CEP/BB/BBS/src/MNS/MeqJonesSum.h index fc414d04de1..c96509ca2c2 100644 --- a/CEP/BB/BBS/src/MNS/MeqJonesSum.h +++ b/CEP/BB/BBS/src/MNS/MeqJonesSum.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqJonesExpr.h> #include <vector> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -60,6 +63,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqLMN.cc b/CEP/BB/BBS/src/MNS/MeqLMN.cc index d686616ef12..4fa3eb2e55c 100644 --- a/CEP/BB/BBS/src/MNS/MeqLMN.cc +++ b/CEP/BB/BBS/src/MNS/MeqLMN.cc @@ -30,7 +30,10 @@ #include <Common/LofarLogger.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqLMN::MeqLMN (MeqSource* source) : itsSource (source) @@ -209,4 +212,5 @@ std::string MeqLMN::getLabel() } #endif -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqLMN.h b/CEP/BB/BBS/src/MNS/MeqLMN.h index b2ba596ab34..119ff89392e 100644 --- a/CEP/BB/BBS/src/MNS/MeqLMN.h +++ b/CEP/BB/BBS/src/MNS/MeqLMN.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqExpr.h> #include <Common/lofar_string.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -72,6 +75,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqLMNAn.cc b/CEP/BB/BBS/src/MNS/MeqLMNAn.cc index 2e21d3ae288..e8750d6836e 100644 --- a/CEP/BB/BBS/src/MNS/MeqLMNAn.cc +++ b/CEP/BB/BBS/src/MNS/MeqLMNAn.cc @@ -31,7 +31,10 @@ #include <Common/LofarLogger.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqLMN::MeqLMN (MeqPointSource* source) : itsSource (source) @@ -140,4 +143,5 @@ MeqResultVec MeqLMN::getResultVec (const MeqRequest& request) return result; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqMatrix.cc b/CEP/BB/BBS/src/MNS/MeqMatrix.cc index fb56173ce91..bc49be8f88f 100644 --- a/CEP/BB/BBS/src/MNS/MeqMatrix.cc +++ b/CEP/BB/BBS/src/MNS/MeqMatrix.cc @@ -35,7 +35,10 @@ using namespace casa; -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqMatrix::MeqMatrix (double value) { @@ -445,8 +448,8 @@ LOFAR::BlobIStream& operator>> (LOFAR::BlobIStream& bs, MeqMatrix& vec) return bs; } -} - +} // namespace BBS +} // namespace LOFAR //# Instantiate the AIPS++ templates needed for Matrix<dcomplex> //# This is needed because dcomplex is usually not the same as casa::DComplex. diff --git a/CEP/BB/BBS/src/MNS/MeqMatrix.h b/CEP/BB/BBS/src/MNS/MeqMatrix.h index ee0d40de636..f57291e271a 100644 --- a/CEP/BB/BBS/src/MNS/MeqMatrix.h +++ b/CEP/BB/BBS/src/MNS/MeqMatrix.h @@ -30,17 +30,26 @@ #include <BBS/MNS/MeqMatrixRep.h> //# Forward Declarations -namespace casa { -template<class T> class Matrix; +namespace casa +{ + template<class T> class Matrix; } -namespace LOFAR { -class BlobOStream; -class BlobIStream; -class MeqMatrixTmp; +namespace LOFAR +{ + class BlobOStream; + class BlobIStream; + + namespace BBS + { + class MeqMatrixTmp; + } } -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -224,6 +233,8 @@ LOFAR::BlobIStream& operator>> (LOFAR::BlobIStream& os, MeqMatrix& vec); // @} -} +} // namespace BBS +} // namespace LOFAR + #endif diff --git a/CEP/BB/BBS/src/MNS/MeqMatrixComplexArr.cc b/CEP/BB/BBS/src/MNS/MeqMatrixComplexArr.cc index de516f6e026..4739b80aadf 100644 --- a/CEP/BB/BBS/src/MNS/MeqMatrixComplexArr.cc +++ b/CEP/BB/BBS/src/MNS/MeqMatrixComplexArr.cc @@ -41,7 +41,10 @@ #include <xmmintrin.h> #endif -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // Allocation will be done from the pool containing matrices of poolNElements // or less elements. @@ -1015,4 +1018,5 @@ void MeqMatrixComplexArr::fillRowWithProducts(dcomplex v0, dcomplex factor, #endif } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqMatrixComplexArr.h b/CEP/BB/BBS/src/MNS/MeqMatrixComplexArr.h index a65e835eaeb..c6ab7d93ec3 100644 --- a/CEP/BB/BBS/src/MNS/MeqMatrixComplexArr.h +++ b/CEP/BB/BBS/src/MNS/MeqMatrixComplexArr.h @@ -31,7 +31,10 @@ #include <Common/lofar_complex.h> #include <Common/lofar_stack.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -132,6 +135,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqMatrixComplexSca.cc b/CEP/BB/BBS/src/MNS/MeqMatrixComplexSca.cc index f97e7856297..77e7c797181 100644 --- a/CEP/BB/BBS/src/MNS/MeqMatrixComplexSca.cc +++ b/CEP/BB/BBS/src/MNS/MeqMatrixComplexSca.cc @@ -33,7 +33,10 @@ #include <Common/Timer.h> #endif -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqMatrixComplexSca::~MeqMatrixComplexSca() {} @@ -305,4 +308,5 @@ MeqMatrixRep* MeqMatrixComplexSca::sum() return this; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqMatrixComplexSca.h b/CEP/BB/BBS/src/MNS/MeqMatrixComplexSca.h index 501e6a3d278..e6ba3187119 100644 --- a/CEP/BB/BBS/src/MNS/MeqMatrixComplexSca.h +++ b/CEP/BB/BBS/src/MNS/MeqMatrixComplexSca.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqMatrixRep.h> #include <Common/lofar_complex.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -101,6 +104,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqMatrixRealArr.cc b/CEP/BB/BBS/src/MNS/MeqMatrixRealArr.cc index 664130cc296..5c373faece8 100644 --- a/CEP/BB/BBS/src/MNS/MeqMatrixRealArr.cc +++ b/CEP/BB/BBS/src/MNS/MeqMatrixRealArr.cc @@ -43,7 +43,10 @@ using namespace casa; -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // Allocation will be done from the pool containing matrices of poolNElements // or less elements. @@ -887,4 +890,5 @@ MeqMatrixRep* MeqMatrixRealArr::sum() return result; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqMatrixRealArr.h b/CEP/BB/BBS/src/MNS/MeqMatrixRealArr.h index 6e114a4c9b7..62673f65dc2 100644 --- a/CEP/BB/BBS/src/MNS/MeqMatrixRealArr.h +++ b/CEP/BB/BBS/src/MNS/MeqMatrixRealArr.h @@ -29,7 +29,10 @@ //# Includes #include <BBS/MNS/MeqMatrixRep.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -129,6 +132,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqMatrixRealSca.cc b/CEP/BB/BBS/src/MNS/MeqMatrixRealSca.cc index ea1ac6018d9..0b5791c94c7 100644 --- a/CEP/BB/BBS/src/MNS/MeqMatrixRealSca.cc +++ b/CEP/BB/BBS/src/MNS/MeqMatrixRealSca.cc @@ -31,7 +31,10 @@ using namespace casa; -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqMatrixRealSca::~MeqMatrixRealSca() {} @@ -257,4 +260,5 @@ MeqMatrixRep* MeqMatrixRealSca::sum() return this; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqMatrixRealSca.h b/CEP/BB/BBS/src/MNS/MeqMatrixRealSca.h index 3c1a8dfa65b..7a4f7c09e2d 100644 --- a/CEP/BB/BBS/src/MNS/MeqMatrixRealSca.h +++ b/CEP/BB/BBS/src/MNS/MeqMatrixRealSca.h @@ -29,7 +29,10 @@ //# Includes #include <BBS/MNS/MeqMatrixRep.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -109,6 +112,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqMatrixRep.cc b/CEP/BB/BBS/src/MNS/MeqMatrixRep.cc index 8a2e05b1112..10bf4274d04 100644 --- a/CEP/BB/BBS/src/MNS/MeqMatrixRep.cc +++ b/CEP/BB/BBS/src/MNS/MeqMatrixRep.cc @@ -26,7 +26,10 @@ using namespace casa; -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqMatrixRep::~MeqMatrixRep() @@ -73,4 +76,5 @@ void MeqMatrixRep::fillRowWithProducts(dcomplex, dcomplex, int) throw (AipsError ("MeqMatrixRep::fillRowWithProducts not implemented")); } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqMatrixRep.h b/CEP/BB/BBS/src/MNS/MeqMatrixRep.h index f5a6eec2cee..a970b04c966 100644 --- a/CEP/BB/BBS/src/MNS/MeqMatrixRep.h +++ b/CEP/BB/BBS/src/MNS/MeqMatrixRep.h @@ -28,14 +28,19 @@ //# Includes #include <Common/lofar_complex.h> -#include <Common/lofar_iostream.h> +//#include <Common/lofar_iostream.h> +#include <iostream> #include <casa/iosfwd.h> #if defined _OPENMP #include <omp.h> #endif -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ +using LOFAR::dcomplex; // \ingroup BBS // \addtogroup MNS @@ -88,7 +93,7 @@ public: int nelements() const { return itsLength; } - virtual void show (ostream& os) const = 0; + virtual void show (std::ostream& os) const = 0; bool isComplex() const { return (type & 2) != 0; } @@ -172,6 +177,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqMatrixTmp.cc b/CEP/BB/BBS/src/MNS/MeqMatrixTmp.cc index 3008190724f..ace3100a3de 100644 --- a/CEP/BB/BBS/src/MNS/MeqMatrixTmp.cc +++ b/CEP/BB/BBS/src/MNS/MeqMatrixTmp.cc @@ -26,7 +26,10 @@ #include <BBS/MNS/MeqMatrixComplexArr.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqMatrixTmp::MeqMatrixTmp (double value, int nx, int ny, bool init) { @@ -121,4 +124,5 @@ MeqMatrixTmp sum (const MeqMatrixTmp& arg) return arg.itsRep->sum(); } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqMatrixTmp.h b/CEP/BB/BBS/src/MNS/MeqMatrixTmp.h index 4285899b481..88ebadaa0a9 100644 --- a/CEP/BB/BBS/src/MNS/MeqMatrixTmp.h +++ b/CEP/BB/BBS/src/MNS/MeqMatrixTmp.h @@ -33,7 +33,10 @@ #include <BBS/MNS/MeqMatrixComplexSca.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -176,6 +179,7 @@ inline ostream& operator<< (ostream& os, const MeqMatrixTmp& vec) // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqParm.cc b/CEP/BB/BBS/src/MNS/MeqParm.cc index 4ff851c5d22..aa171beaf91 100644 --- a/CEP/BB/BBS/src/MNS/MeqParm.cc +++ b/CEP/BB/BBS/src/MNS/MeqParm.cc @@ -25,7 +25,10 @@ #include <Common/LofarLogger.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqParm::MeqParm (const string& name) @@ -105,4 +108,5 @@ void MeqParmGroup::clear() itsParms.clear(); } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqParm.h b/CEP/BB/BBS/src/MNS/MeqParm.h index 16c16d41d73..6b32358fc1d 100644 --- a/CEP/BB/BBS/src/MNS/MeqParm.h +++ b/CEP/BB/BBS/src/MNS/MeqParm.h @@ -33,7 +33,10 @@ #include <Common/lofar_string.h> #include <Common/lofar_map.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -211,6 +214,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqParmExpr.cc b/CEP/BB/BBS/src/MNS/MeqParmExpr.cc index 45f6b20581b..b9fefc508dd 100644 --- a/CEP/BB/BBS/src/MNS/MeqParmExpr.cc +++ b/CEP/BB/BBS/src/MNS/MeqParmExpr.cc @@ -24,7 +24,10 @@ #include <BBS/MNS/MeqParmFunklet.h> #include <BBS/MNS/MeqMatrixTmp.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqParmExpr::MeqParmExpr (const string& expr, MeqParmGroup& group, ParmDB::ParmDB* table) @@ -69,4 +72,5 @@ namespace LOFAR { return *v[0] * *v[1]; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqParmExpr.h b/CEP/BB/BBS/src/MNS/MeqParmExpr.h index f0c59738cbf..42cd4882360 100644 --- a/CEP/BB/BBS/src/MNS/MeqParmExpr.h +++ b/CEP/BB/BBS/src/MNS/MeqParmExpr.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqExpr.h> #include <ParmDB/ParmDB.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -64,6 +67,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqParmFunklet.cc b/CEP/BB/BBS/src/MNS/MeqParmFunklet.cc index c34d3594d55..e325ead049a 100644 --- a/CEP/BB/BBS/src/MNS/MeqParmFunklet.cc +++ b/CEP/BB/BBS/src/MNS/MeqParmFunklet.cc @@ -35,7 +35,7 @@ using namespace std; // Make sorting vector<MPFHolder> possible (on domain). // So define operator< for it. -bool less_mp (LOFAR::MeqFunklet* x, LOFAR::MeqFunklet* y) +bool less_mp (LOFAR::BBS::MeqFunklet* x, LOFAR::BBS::MeqFunklet* y) { return (x->domain().startY() < y->domain().startY() || (x->domain().startY() == y->domain().startY() && @@ -43,7 +43,10 @@ bool less_mp (LOFAR::MeqFunklet* x, LOFAR::MeqFunklet* y) } -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqParmFunklet::MeqParmFunklet (const string& name, ParmDB::ParmDB* table) : MeqParm (name), @@ -398,4 +401,5 @@ void MeqParmFunklet::save() } } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqParmFunklet.h b/CEP/BB/BBS/src/MNS/MeqParmFunklet.h index 5bcf0e0cf4b..9acfc1badf0 100644 --- a/CEP/BB/BBS/src/MNS/MeqParmFunklet.h +++ b/CEP/BB/BBS/src/MNS/MeqParmFunklet.h @@ -37,7 +37,10 @@ namespace LOFAR { class ParmData; } -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -131,6 +134,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqParmSingle.cc b/CEP/BB/BBS/src/MNS/MeqParmSingle.cc index 8c15221574c..e44f88d72c2 100644 --- a/CEP/BB/BBS/src/MNS/MeqParmSingle.cc +++ b/CEP/BB/BBS/src/MNS/MeqParmSingle.cc @@ -27,7 +27,10 @@ #include <Common/LofarLogger.h> #include <cmath> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqParmSingle::MeqParmSingle (const string& name, double value) : MeqParm (name), @@ -44,4 +47,5 @@ MeqResult MeqParmSingle::getResult (const MeqRequest& request) return result; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqParmSingle.h b/CEP/BB/BBS/src/MNS/MeqParmSingle.h index 3d63111917e..4dd865d5062 100644 --- a/CEP/BB/BBS/src/MNS/MeqParmSingle.h +++ b/CEP/BB/BBS/src/MNS/MeqParmSingle.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqParm.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -57,6 +60,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqPhaseRef.cc b/CEP/BB/BBS/src/MNS/MeqPhaseRef.cc index e01b05e751d..6ca89c61fb7 100644 --- a/CEP/BB/BBS/src/MNS/MeqPhaseRef.cc +++ b/CEP/BB/BBS/src/MNS/MeqPhaseRef.cc @@ -36,7 +36,10 @@ using namespace casa; -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqPhaseRef::MeqPhaseRef (const MDirection& phaseRef, double startTime) : itsStartTime (startTime) @@ -94,4 +97,5 @@ MeqPhaseRef::MeqPhaseRef (const MDirection& phaseRef, double startTime) // cout << "ep3 " << ep3 << endl; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqPhaseRef.h b/CEP/BB/BBS/src/MNS/MeqPhaseRef.h index 785a14f14a3..f4dd7e3f095 100644 --- a/CEP/BB/BBS/src/MNS/MeqPhaseRef.h +++ b/CEP/BB/BBS/src/MNS/MeqPhaseRef.h @@ -30,7 +30,10 @@ #include <measures/Measures/MDirection.h> #include <measures/Measures/MPosition.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -78,6 +81,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqPointSource.cc b/CEP/BB/BBS/src/MNS/MeqPointSource.cc index da938791262..10c13727d0c 100644 --- a/CEP/BB/BBS/src/MNS/MeqPointSource.cc +++ b/CEP/BB/BBS/src/MNS/MeqPointSource.cc @@ -24,7 +24,10 @@ #include <BBS/MNS/MeqPointSource.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqPointSource::MeqPointSource (const string& name, const string& groupName, @@ -41,4 +44,5 @@ MeqPointSource::MeqPointSource (const string& name, MeqPointSource::~MeqPointSource() {} -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqPointSource.h b/CEP/BB/BBS/src/MNS/MeqPointSource.h index 2786e324429..95420d39a59 100644 --- a/CEP/BB/BBS/src/MNS/MeqPointSource.h +++ b/CEP/BB/BBS/src/MNS/MeqPointSource.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqSource.h> #include <Common/lofar_string.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -66,6 +69,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqPolc.cc b/CEP/BB/BBS/src/MNS/MeqPolc.cc index 9ee18fbc660..9af88a7c2c9 100644 --- a/CEP/BB/BBS/src/MNS/MeqPolc.cc +++ b/CEP/BB/BBS/src/MNS/MeqPolc.cc @@ -30,7 +30,10 @@ using namespace casa; -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqPolc::MeqPolc (const ParmDB::ParmValue& pvalue) @@ -311,4 +314,5 @@ MeqResult MeqPolc::getAnResult (const MeqRequest& request, return result; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqPolc.h b/CEP/BB/BBS/src/MNS/MeqPolc.h index 7b3c8d65ad9..e98179bb1b0 100644 --- a/CEP/BB/BBS/src/MNS/MeqPolc.h +++ b/CEP/BB/BBS/src/MNS/MeqPolc.h @@ -29,7 +29,10 @@ //# Includes #include <BBS/MNS/MeqFunklet.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -68,6 +71,7 @@ public: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqPolcAn.cc b/CEP/BB/BBS/src/MNS/MeqPolcAn.cc index d38e5f50dbb..0efa72090e3 100644 --- a/CEP/BB/BBS/src/MNS/MeqPolcAn.cc +++ b/CEP/BB/BBS/src/MNS/MeqPolcAn.cc @@ -31,7 +31,10 @@ using namespace casa; -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqPolc::~MeqPolc() @@ -178,4 +181,5 @@ MeqResult MeqPolc::getResult (const MeqRequest& request) return result; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqPolcLog.cc b/CEP/BB/BBS/src/MNS/MeqPolcLog.cc index 07bb81c7d3b..5f094fb4d43 100644 --- a/CEP/BB/BBS/src/MNS/MeqPolcLog.cc +++ b/CEP/BB/BBS/src/MNS/MeqPolcLog.cc @@ -31,7 +31,10 @@ using namespace casa; -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqPolcLog::MeqPolcLog(const ParmDB::ParmValue& pvalue) : MeqFunklet(pvalue) @@ -332,4 +335,5 @@ MeqResult MeqPolcLog::getAnResult(const MeqRequest& request, int nrpert, int per return getResult(request, nrpert, pertInx); } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqPolcLog.h b/CEP/BB/BBS/src/MNS/MeqPolcLog.h index 4c43d914004..d32029ce32d 100644 --- a/CEP/BB/BBS/src/MNS/MeqPolcLog.h +++ b/CEP/BB/BBS/src/MNS/MeqPolcLog.h @@ -57,7 +57,10 @@ //# Includes #include <BBS/MNS/MeqFunklet.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -103,6 +106,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqRequest.cc b/CEP/BB/BBS/src/MNS/MeqRequest.cc index 08b64a8dff7..fc61d45e5f8 100644 --- a/CEP/BB/BBS/src/MNS/MeqRequest.cc +++ b/CEP/BB/BBS/src/MNS/MeqRequest.cc @@ -25,7 +25,10 @@ #include <Common/LofarLogger.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqRequestId MeqRequest::theirRequestId = 0; @@ -134,4 +137,5 @@ void MeqRequest::setDomain (const MeqDomain& domain, int nx, itsYP = &itsY[0]; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqRequest.h b/CEP/BB/BBS/src/MNS/MeqRequest.h index a3328afa812..ca2204b594d 100644 --- a/CEP/BB/BBS/src/MNS/MeqRequest.h +++ b/CEP/BB/BBS/src/MNS/MeqRequest.h @@ -32,7 +32,10 @@ #include <BBS/MNS/MeqMatrix.h> #include <Common/lofar_vector.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -134,6 +137,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqRequestId.h b/CEP/BB/BBS/src/MNS/MeqRequestId.h index b134628e3af..9dc30d3688e 100644 --- a/CEP/BB/BBS/src/MNS/MeqRequestId.h +++ b/CEP/BB/BBS/src/MNS/MeqRequestId.h @@ -26,7 +26,10 @@ // \file // Class holding an interferometer -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -37,6 +40,7 @@ namespace LOFAR { // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqResult.cc b/CEP/BB/BBS/src/MNS/MeqResult.cc index d468c1f10c3..577bdb55fc9 100644 --- a/CEP/BB/BBS/src/MNS/MeqResult.cc +++ b/CEP/BB/BBS/src/MNS/MeqResult.cc @@ -26,7 +26,10 @@ #include <BBS/MNS/Pool.h> #include <BBS/MNS/MeqParmFunklet.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ Pool<MeqResultRep> MeqResultRep::theirPool; #pragma omp threadprivate(MeqResultRep::theirPool) @@ -126,4 +129,5 @@ MeqResult& MeqResult::operator= (const MeqResult& that) return *this; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqResult.h b/CEP/BB/BBS/src/MNS/MeqResult.h index 2257609d073..a7e40feabdc 100644 --- a/CEP/BB/BBS/src/MNS/MeqResult.h +++ b/CEP/BB/BBS/src/MNS/MeqResult.h @@ -36,7 +36,10 @@ // This class represents a result of a domain for which an expression // has been evaluated. -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ //# Forward Declarations class MeqParmFunklet; @@ -213,6 +216,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqResultVec.cc b/CEP/BB/BBS/src/MNS/MeqResultVec.cc index 0b2bc3e278e..271d14ec30b 100644 --- a/CEP/BB/BBS/src/MNS/MeqResultVec.cc +++ b/CEP/BB/BBS/src/MNS/MeqResultVec.cc @@ -26,7 +26,10 @@ // This class represents the result in a Jones matrix of a domain for // which the expressions have been evaluated. -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqResultVecRep::MeqResultVecRep (int size, int nspid) : itsCount (0) @@ -73,4 +76,5 @@ namespace LOFAR { return *this; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqResultVec.h b/CEP/BB/BBS/src/MNS/MeqResultVec.h index 469448a9dd5..7173b25965a 100644 --- a/CEP/BB/BBS/src/MNS/MeqResultVec.h +++ b/CEP/BB/BBS/src/MNS/MeqResultVec.h @@ -34,7 +34,10 @@ // This class represents multiple results. // It is faster than a vector<MeqResult>. -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -110,6 +113,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqSource.cc b/CEP/BB/BBS/src/MNS/MeqSource.cc index a6f5755852b..03dc3a57097 100644 --- a/CEP/BB/BBS/src/MNS/MeqSource.cc +++ b/CEP/BB/BBS/src/MNS/MeqSource.cc @@ -24,7 +24,10 @@ #include <BBS/MNS/MeqSource.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqSource::MeqSource (const string& name, const string& groupName, @@ -39,4 +42,5 @@ MeqSource::MeqSource (const string& name, const string& groupName, MeqSource::~MeqSource() {} -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqSource.h b/CEP/BB/BBS/src/MNS/MeqSource.h index 420f57ad999..d4a9d643384 100644 --- a/CEP/BB/BBS/src/MNS/MeqSource.h +++ b/CEP/BB/BBS/src/MNS/MeqSource.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqExpr.h> #include <Common/lofar_string.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -76,6 +79,7 @@ protected: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqSourceList.cc b/CEP/BB/BBS/src/MNS/MeqSourceList.cc index e3f4eab7922..e24731ee250 100644 --- a/CEP/BB/BBS/src/MNS/MeqSourceList.cc +++ b/CEP/BB/BBS/src/MNS/MeqSourceList.cc @@ -33,7 +33,10 @@ using namespace casa; -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqSourceList::MeqSourceList (ParmDB::ParmDB& parmTable, MeqParmGroup& group) { @@ -158,4 +161,5 @@ void MeqSourceList::add (MeqSource* source) group.push_back (idx); } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqSourceList.h b/CEP/BB/BBS/src/MNS/MeqSourceList.h index 69f8b45cab5..cb59574835d 100644 --- a/CEP/BB/BBS/src/MNS/MeqSourceList.h +++ b/CEP/BB/BBS/src/MNS/MeqSourceList.h @@ -32,7 +32,10 @@ #include <Common/lofar_vector.h> #include <Common/lofar_map.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ //# Forward Declarations class MeqParmGroup; @@ -88,6 +91,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqStatExpr.cc b/CEP/BB/BBS/src/MNS/MeqStatExpr.cc index cfa107ad5ef..29b6e589145 100644 --- a/CEP/BB/BBS/src/MNS/MeqStatExpr.cc +++ b/CEP/BB/BBS/src/MNS/MeqStatExpr.cc @@ -29,7 +29,10 @@ #include <BBS/MNS/MeqMatrix.h> #include <BBS/MNS/MeqMatrixTmp.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqStatExpr::MeqStatExpr (const MeqExpr& faradayRotation, const MeqExpr& dipoleRotation, @@ -191,4 +194,5 @@ MeqJonesResult MeqStatExpr::getJResult (const MeqRequest& request) return result; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqStatExpr.h b/CEP/BB/BBS/src/MNS/MeqStatExpr.h index 3bbad743d6f..5a3cb3f576b 100644 --- a/CEP/BB/BBS/src/MNS/MeqStatExpr.h +++ b/CEP/BB/BBS/src/MNS/MeqStatExpr.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqJonesExpr.h> #include <BBS/MNS/MeqExpr.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -66,6 +69,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqStatUVW.cc b/CEP/BB/BBS/src/MNS/MeqStatUVW.cc index 82d5ca9a0a5..3ec6326fb2d 100644 --- a/CEP/BB/BBS/src/MNS/MeqStatUVW.cc +++ b/CEP/BB/BBS/src/MNS/MeqStatUVW.cc @@ -37,7 +37,10 @@ using namespace casa; -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqStatUVW::MeqStatUVW (MeqStation* station, const MeqPhaseRef* phaseRef) @@ -140,4 +143,5 @@ void MeqStatUVW::set (double time, double u, double v, double w) itsUVW[MeqTime(time)] = MeqUVW(u,v,w); } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqStatUVW.h b/CEP/BB/BBS/src/MNS/MeqStatUVW.h index 11e08237266..bfdfdc4d80a 100644 --- a/CEP/BB/BBS/src/MNS/MeqStatUVW.h +++ b/CEP/BB/BBS/src/MNS/MeqStatUVW.h @@ -33,7 +33,10 @@ #include <Common/lofar_map.h> #include <measures/Measures/MeasFrame.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -105,6 +108,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqStation.cc b/CEP/BB/BBS/src/MNS/MeqStation.cc index 5de156a3e43..7763bb92ad8 100644 --- a/CEP/BB/BBS/src/MNS/MeqStation.cc +++ b/CEP/BB/BBS/src/MNS/MeqStation.cc @@ -23,7 +23,10 @@ #include <lofar_config.h> #include <BBS/MNS/MeqStation.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqStation::MeqStation() {} @@ -36,4 +39,5 @@ MeqStation::MeqStation (MeqExpr posX, MeqExpr posY, MeqExpr posZ, itsName (name) {} -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqStation.h b/CEP/BB/BBS/src/MNS/MeqStation.h index e161fc3122e..f984aa574b9 100644 --- a/CEP/BB/BBS/src/MNS/MeqStation.h +++ b/CEP/BB/BBS/src/MNS/MeqStation.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqExpr.h> #include <Common/lofar_string.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -66,6 +69,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/MeqTabular.cc b/CEP/BB/BBS/src/MNS/MeqTabular.cc index bccfa4676dc..a0a294f4ad2 100644 --- a/CEP/BB/BBS/src/MNS/MeqTabular.cc +++ b/CEP/BB/BBS/src/MNS/MeqTabular.cc @@ -36,6 +36,9 @@ using namespace casa; namespace LOFAR { +namespace BBS +{ + MeqTabular::MeqTabular (const ParmDB::ParmValue& pvalue) : MeqFunklet (pvalue) { @@ -236,4 +239,6 @@ namespace LOFAR { return getResult (request, nrpert, pertInx); } -} + +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/MNS/MeqTabular.h b/CEP/BB/BBS/src/MNS/MeqTabular.h index 64fb8a862ac..d26d2bb3f8a 100644 --- a/CEP/BB/BBS/src/MNS/MeqTabular.h +++ b/CEP/BB/BBS/src/MNS/MeqTabular.h @@ -31,7 +31,9 @@ namespace LOFAR { - +namespace BBS +{ + // \ingroup BBS // \addtogroup MNS // @{ @@ -64,6 +66,7 @@ namespace LOFAR // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MNS/Pool.h b/CEP/BB/BBS/src/MNS/Pool.h index 859b1bb8abf..a28b3632b0b 100644 --- a/CEP/BB/BBS/src/MNS/Pool.h +++ b/CEP/BB/BBS/src/MNS/Pool.h @@ -4,7 +4,10 @@ #include <assert.h> #include <stdlib.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // The Pool class is a very fast, stack-based allocator where objects can // be temporarily stored that would otherwise be deleted and allocated again. @@ -51,6 +54,7 @@ template <class T> class Pool { T *top; }; -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/MSDataArray.h b/CEP/BB/BBS/src/MSDataArray.h index 4ad670a3ff0..b2bd4473ae7 100644 --- a/CEP/BB/BBS/src/MSDataArray.h +++ b/CEP/BB/BBS/src/MSDataArray.h @@ -29,8 +29,11 @@ //# Includes -namespace LOFAR { - +namespace LOFAR +{ +namespace BBS +{ + // \ingroup BBS // @{ @@ -56,6 +59,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/ParmData.cc b/CEP/BB/BBS/src/ParmData.cc index 325866c647f..8555ed51778 100644 --- a/CEP/BB/BBS/src/ParmData.cc +++ b/CEP/BB/BBS/src/ParmData.cc @@ -27,7 +27,11 @@ #include <Common/VectorUtil.h> #include <Common/LofarLogger.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ + using LOFAR::operator<<; ParmData::ParmData() : itsDBSeqNr (-1), @@ -237,4 +241,6 @@ namespace LOFAR { os << ' ' << itsDomains[i] << " [" << itsDomainIndices[i] << ']' << endl; } } -} + +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBS/src/ParmData.h b/CEP/BB/BBS/src/ParmData.h index b634095d82d..1de1de7b2ca 100644 --- a/CEP/BB/BBS/src/ParmData.h +++ b/CEP/BB/BBS/src/ParmData.h @@ -35,13 +35,16 @@ namespace LOFAR { -// \addtogroup BBS -// @{ - //# Forward Declarations. class BlobOStream; class BlobIStream; +namespace BBS +{ + +// \addtogroup BBS +// @{ + class ParmData { public: @@ -187,6 +190,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/ParmWriter.cc b/CEP/BB/BBS/src/ParmWriter.cc index 010e55a6392..ac180f6fc2e 100644 --- a/CEP/BB/BBS/src/ParmWriter.cc +++ b/CEP/BB/BBS/src/ParmWriter.cc @@ -37,6 +37,9 @@ using namespace std; namespace LOFAR { +namespace BBS +{ + ParmWriter::ParmWriter() {} @@ -115,4 +118,5 @@ void ParmWriter::setCoeff (ParmDB::ParmValueRep& pval, const MeqMatrix& coeff) } } +} // namespace BBS } // namespace LOFAR diff --git a/CEP/BB/BBS/src/ParmWriter.h b/CEP/BB/BBS/src/ParmWriter.h index 2112fb05f57..2b249bd2351 100644 --- a/CEP/BB/BBS/src/ParmWriter.h +++ b/CEP/BB/BBS/src/ParmWriter.h @@ -31,17 +31,29 @@ //# Includes #include <Common/lofar_map.h> +//# Forward Declarations namespace LOFAR -{ - // \addtogroup BBS - // @{ - //# Forward Declarations - class ParmDataInfo; - class MeqMatrix; - namespace ParmDB { +{ + namespace ParmDB + { class ParmValueRep; } + namespace BBS + { + class ParmDataInfo; + class MeqMatrix; + } +} + + +namespace LOFAR +{ +namespace BBS +{ + + // \addtogroup BBS + // @{ // Description of class. class ParmWriter @@ -62,6 +74,7 @@ namespace LOFAR }; // @} +} // namespace BBS } // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/Prediffer.cc b/CEP/BB/BBS/src/Prediffer.cc index d399931c13c..ac4ae88c24e 100644 --- a/CEP/BB/BBS/src/Prediffer.cc +++ b/CEP/BB/BBS/src/Prediffer.cc @@ -116,6 +116,8 @@ using namespace casa; namespace LOFAR { +namespace BBS +{ Prediffer::Prediffer(const string& msName, const ParmDB::ParmDBMeta& meqPdm, @@ -2203,4 +2205,5 @@ void Prediffer::showSettings() const cout << endl; } +} // namespace BBS } // namespace LOFAR diff --git a/CEP/BB/BBS/src/Prediffer.h b/CEP/BB/BBS/src/Prediffer.h index 18a2c38c8df..6d2f86a7fc6 100644 --- a/CEP/BB/BBS/src/Prediffer.h +++ b/CEP/BB/BBS/src/Prediffer.h @@ -62,6 +62,8 @@ namespace casa { namespace LOFAR { +namespace BBS +{ // \addtogroup BBS // @{ @@ -438,6 +440,7 @@ private: // @} +} // namespace BBS } // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/Quality.cc b/CEP/BB/BBS/src/Quality.cc index 1ef85acf2a5..0e1d2f8812d 100644 --- a/CEP/BB/BBS/src/Quality.cc +++ b/CEP/BB/BBS/src/Quality.cc @@ -26,6 +26,8 @@ namespace LOFAR { +namespace BBS +{ Quality::Quality() { @@ -51,4 +53,5 @@ void Quality::show(ostream& os) const os << "itsChi : " << itsChi << endl; } +} // namespace BBS } // namespace LOFAR diff --git a/CEP/BB/BBS/src/Quality.h b/CEP/BB/BBS/src/Quality.h index c6398dd5df7..fb5281387c1 100644 --- a/CEP/BB/BBS/src/Quality.h +++ b/CEP/BB/BBS/src/Quality.h @@ -31,6 +31,8 @@ namespace LOFAR { +namespace BBS +{ // \addtogroup BBS // @{ @@ -62,6 +64,7 @@ inline ostream& operator<< (ostream& os, const Quality& qual) // @} +} // namespace BBS } // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/SolveProp.h b/CEP/BB/BBS/src/SolveProp.h index 3875b0478b1..365315b7a22 100644 --- a/CEP/BB/BBS/src/SolveProp.h +++ b/CEP/BB/BBS/src/SolveProp.h @@ -32,6 +32,8 @@ namespace LOFAR { +namespace BBS +{ // \addtogroup BBS // @{ @@ -118,6 +120,7 @@ private: // @} +} // namespace BBS } // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/Solver.cc b/CEP/BB/BBS/src/Solver.cc index 7b87ef4bd10..729eb4566b8 100644 --- a/CEP/BB/BBS/src/Solver.cc +++ b/CEP/BB/BBS/src/Solver.cc @@ -42,6 +42,9 @@ using namespace casa; namespace LOFAR { +namespace BBS +{ +using LOFAR::operator<<; Solver::Solver () : itsDoSet (true) @@ -58,7 +61,7 @@ void Solver::solve (bool useSVD) { LOG_INFO_STR( "solve using file "); ASSERT (!itsDoSet); - BBSTest::ScopedTimer timer("S:solver"); + //BBSTest::ScopedTimer timer("S:solver"); vector<ParmData>& globalParms = itsParmInfo.parms(); for (uint i=0; i<itsFitters.size(); ++i) { FitterData& fitObj = itsFitters[i]; @@ -322,10 +325,12 @@ void Solver::show (ostream& os) } os << "Solver ParmInfo: " << endl; itsParmInfo.show (os); + os << "Solver Fitter Values:" << endl; for (uint i=0; i<itsFitters.size(); ++i) { os << ' ' << itsFitters[i].solvableValues << endl; } + os << "Solver PredInfo:" << endl; for (uint i=0; i<itsPredInfo.size(); ++i) { os << " sdindices " << itsPredInfo[i].solveDomainIndices << endl; @@ -337,6 +342,7 @@ void Solver::show (ostream& os) } } +} // namespace BBS } // namespace LOFAR //# Instantiate the makeNorm template. diff --git a/CEP/BB/BBS/src/Solver.h b/CEP/BB/BBS/src/Solver.h index cb0f515215a..eb8edda60b4 100644 --- a/CEP/BB/BBS/src/Solver.h +++ b/CEP/BB/BBS/src/Solver.h @@ -37,6 +37,8 @@ namespace LOFAR { +namespace BBS +{ // \addtogroup BBS // @{ @@ -113,10 +115,11 @@ private: { casa::LSQFit fitter; Quality quality; - vector<double> solvableValues; + std::vector<double> solvableValues; int nused; int nflagged; }; + struct PredifferInfo { vector<int> solveDomainIndices; @@ -132,6 +135,7 @@ private: // @} +} // namespace BBS } // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/StepProp.cc b/CEP/BB/BBS/src/StepProp.cc index 0b4aadb8f2a..2eef8595322 100644 --- a/CEP/BB/BBS/src/StepProp.cc +++ b/CEP/BB/BBS/src/StepProp.cc @@ -27,6 +27,8 @@ using namespace casa; namespace LOFAR { +namespace BBS +{ // \addtogroup BBS // @{ @@ -124,4 +126,5 @@ void StepProp::expandPatterns (const vector<string>& antNames) const } } +} // namespace BBS } // namespace LOFAR diff --git a/CEP/BB/BBS/src/StepProp.h b/CEP/BB/BBS/src/StepProp.h index 2f06b145b4a..9e0c7d5af78 100644 --- a/CEP/BB/BBS/src/StepProp.h +++ b/CEP/BB/BBS/src/StepProp.h @@ -33,6 +33,8 @@ namespace LOFAR { +namespace BBS +{ // \addtogroup BBS // @{ @@ -139,6 +141,7 @@ private: // @} +} // namespace BBS } // namespace LOFAR #endif diff --git a/CEP/BB/BBS/src/StrategyProp.cc b/CEP/BB/BBS/src/StrategyProp.cc index 2d69832a938..83efc149f3e 100644 --- a/CEP/BB/BBS/src/StrategyProp.cc +++ b/CEP/BB/BBS/src/StrategyProp.cc @@ -27,6 +27,8 @@ using namespace casa; namespace LOFAR { +namespace BBS +{ // \addtogroup BBS // @{ @@ -61,4 +63,5 @@ void StrategyProp::expandPatterns (const vector<string>& antNames) const } } +} // namespace BBS } // namespace LOFAR diff --git a/CEP/BB/BBS/src/StrategyProp.h b/CEP/BB/BBS/src/StrategyProp.h index d12fa87be77..7c287617bc0 100644 --- a/CEP/BB/BBS/src/StrategyProp.h +++ b/CEP/BB/BBS/src/StrategyProp.h @@ -33,6 +33,8 @@ namespace LOFAR { +namespace BBS +{ // \addtogroup BBS // @{ @@ -95,6 +97,7 @@ private: // @} +} // namespace BBS } // namespace LOFAR #endif diff --git a/CEP/BB/BBS/test/tBandpass.run b/CEP/BB/BBS/test/tBandpass.run index 4ae03e2ba7a..34068374675 100755 --- a/CEP/BB/BBS/test/tBandpass.run +++ b/CEP/BB/BBS/test/tBandpass.run @@ -124,11 +124,11 @@ echo "---------------- END $1 ----------------" return $RETURN_VALUE } -run_subtest clean_constant && -run_subtest clean_polc && -run_subtest clean_band_constant && -run_subtest noise_constant && -run_subtest noise_polc && -run_subtest noise_band_constant +run_subtest clean_constant > tBandpass_tmp.log 2>&1 && +run_subtest clean_polc > tBandpass_tmp.log 2>&1 && +run_subtest clean_band_constant > tBandpass_tmp.log 2>&1 && +run_subtest noise_constant > tBandpass_tmp.log 2>&1 && +run_subtest noise_polc > tBandpass_tmp.log 2>&1 && +run_subtest noise_band_constant > tBandpass_tmp.log 2>&1 exit $? diff --git a/CEP/BB/BBS/test/tBandpass.sh b/CEP/BB/BBS/test/tBandpass.sh index 6d17a6a92d6..83a3b0bf031 100755 --- a/CEP/BB/BBS/test/tBandpass.sh +++ b/CEP/BB/BBS/test/tBandpass.sh @@ -1,2 +1,2 @@ #!/bin/sh -$lofar_sharedir/runtest.sh tBandpass > tBandpass.log 2>&1 +$lofar_sharedir/runtest.sh tBandpass > /dev/null 2>&1 diff --git a/CEP/BB/BBS/test/tCorrect.cc b/CEP/BB/BBS/test/tCorrect.cc index 4905d04a47a..025f354d712 100644 --- a/CEP/BB/BBS/test/tCorrect.cc +++ b/CEP/BB/BBS/test/tCorrect.cc @@ -29,6 +29,7 @@ #include <stdexcept> using namespace LOFAR; +using namespace LOFAR::BBS; using namespace std; using namespace casa; diff --git a/CEP/BB/BBS/test/tFillRow.cc b/CEP/BB/BBS/test/tFillRow.cc index ee0424aec54..c36bb1d344e 100644 --- a/CEP/BB/BBS/test/tFillRow.cc +++ b/CEP/BB/BBS/test/tFillRow.cc @@ -27,6 +27,7 @@ using namespace LOFAR; +using namespace LOFAR::BBS; using namespace std; void doTest (int nx, int ny) diff --git a/CEP/BB/BBS/test/tMSData.cc b/CEP/BB/BBS/test/tMSData.cc index 05f63b6bc34..286be9757d8 100644 --- a/CEP/BB/BBS/test/tMSData.cc +++ b/CEP/BB/BBS/test/tMSData.cc @@ -39,6 +39,7 @@ #include <sstream> using namespace LOFAR; +using namespace LOFAR::BBS; using namespace casa; using namespace std; diff --git a/CEP/BB/BBS/test/tMeqParm.cc b/CEP/BB/BBS/test/tMeqParm.cc index 4e7c7db65ba..fa0ecbbf705 100644 --- a/CEP/BB/BBS/test/tMeqParm.cc +++ b/CEP/BB/BBS/test/tMeqParm.cc @@ -30,6 +30,7 @@ #include <Common/LofarLogger.h> using namespace LOFAR; +using namespace LOFAR::BBS; using namespace casa; diff --git a/CEP/BB/BBS/test/tMeqPolc.cc b/CEP/BB/BBS/test/tMeqPolc.cc index 5aa63d9e39d..aca77884234 100644 --- a/CEP/BB/BBS/test/tMeqPolc.cc +++ b/CEP/BB/BBS/test/tMeqPolc.cc @@ -29,6 +29,7 @@ #include <Common/LofarLogger.h> using namespace LOFAR; +using namespace LOFAR::BBS; using namespace casa; diff --git a/CEP/BB/BBS/test/tMeqPolcLog.cc b/CEP/BB/BBS/test/tMeqPolcLog.cc index 847f4a76a1e..d98f6b3b36b 100644 --- a/CEP/BB/BBS/test/tMeqPolcLog.cc +++ b/CEP/BB/BBS/test/tMeqPolcLog.cc @@ -29,6 +29,7 @@ #include <Common/LofarLogger.h> using namespace LOFAR; +using namespace LOFAR::BBS; using namespace casa; diff --git a/CEP/BB/BBS/test/tMeqTabular.cc b/CEP/BB/BBS/test/tMeqTabular.cc index 76a372de082..bab732fab08 100644 --- a/CEP/BB/BBS/test/tMeqTabular.cc +++ b/CEP/BB/BBS/test/tMeqTabular.cc @@ -29,6 +29,7 @@ #include <Common/LofarLogger.h> using namespace LOFAR; +using namespace LOFAR::BBS; using namespace casa; #define EPSILON 1.0e-12 diff --git a/CEP/BB/BBS/test/tParmMerge.cc b/CEP/BB/BBS/test/tParmMerge.cc index d091c244855..7f496a90a1c 100644 --- a/CEP/BB/BBS/test/tParmMerge.cc +++ b/CEP/BB/BBS/test/tParmMerge.cc @@ -31,6 +31,7 @@ #include <Blob/BlobIStream.h> using namespace LOFAR; +using namespace LOFAR::BBS; using namespace std; @@ -81,7 +82,7 @@ void doIt1sd (const ParmDB::ParmDBMeta& pdm) { int nr = iter->second.initDomain (localSolveDomains, nrpert, nrscids); if (nr > 0) { - parmdata.parms().push_back (ParmData(iter->second.getName(), + parmdata.parms().push_back (LOFAR::BBS::ParmData(iter->second.getName(), iter->second.getParmDBSeqNr(), iter->second.getFunklets())); } @@ -125,7 +126,7 @@ void doIt4sd (const ParmDB::ParmDBMeta& pdm) { int nr = iter->second.initDomain (localSolveDomains, nrpert, nrscids); if (nr > 0) { - parmdata.parms().push_back (ParmData(iter->second.getName(), + parmdata.parms().push_back (LOFAR::BBS::ParmData(iter->second.getName(), iter->second.getParmDBSeqNr(), iter->second.getFunklets())); } @@ -174,7 +175,7 @@ void doIt4sd2pd (const ParmDB::ParmDBMeta& pdm) { int nr = iter->second.initDomain (localSolveDomains1, nrpert1, nrscids1); if (nr > 0) { - parmdata1.parms().push_back (ParmData(iter->second.getName(), + parmdata1.parms().push_back (LOFAR::BBS::ParmData(iter->second.getName(), iter->second.getParmDBSeqNr(), iter->second.getFunklets())); } @@ -205,7 +206,7 @@ void doIt4sd2pd (const ParmDB::ParmDBMeta& pdm) { int nr = iter->second.initDomain (localSolveDomains2, nrpert2, nrscids2); if (nr > 0) { - parmdata2.parms().push_back (ParmData(iter->second.getName(), + parmdata2.parms().push_back (LOFAR::BBS::ParmData(iter->second.getName(), iter->second.getParmDBSeqNr(), iter->second.getFunklets())); } diff --git a/CEP/BB/BBS/test/tPerturbed.cc b/CEP/BB/BBS/test/tPerturbed.cc index 4462c4f9e68..cf5e4d3a6e2 100644 --- a/CEP/BB/BBS/test/tPerturbed.cc +++ b/CEP/BB/BBS/test/tPerturbed.cc @@ -34,6 +34,7 @@ using namespace LOFAR; +using namespace LOFAR::BBS; using namespace std; // Note: diff --git a/CEP/BB/BBS/test/tPredSolv.cc b/CEP/BB/BBS/test/tPredSolv.cc index ce30640d5e9..c0ba52aef95 100644 --- a/CEP/BB/BBS/test/tPredSolv.cc +++ b/CEP/BB/BBS/test/tPredSolv.cc @@ -37,6 +37,7 @@ using namespace LOFAR; +using namespace LOFAR::BBS; using namespace std; // Note: diff --git a/CEP/BB/BBS/test/tPredict.cc b/CEP/BB/BBS/test/tPredict.cc index 012cdab9fc4..15cb07e4c09 100644 --- a/CEP/BB/BBS/test/tPredict.cc +++ b/CEP/BB/BBS/test/tPredict.cc @@ -29,6 +29,7 @@ #include <stdexcept> using namespace LOFAR; +using namespace LOFAR::BBS; using namespace std; using namespace casa; diff --git a/CEP/BB/BBS/test/tSubtract.cc b/CEP/BB/BBS/test/tSubtract.cc index 9732deec0d7..6d4d919b87e 100644 --- a/CEP/BB/BBS/test/tSubtract.cc +++ b/CEP/BB/BBS/test/tSubtract.cc @@ -29,6 +29,7 @@ #include <stdexcept> using namespace LOFAR; +using namespace LOFAR::BBS; using namespace std; using namespace casa; diff --git a/CEP/BB/BBSKernel/include/BBSKernel/BBSTestLogger.h b/CEP/BB/BBSKernel/include/BBSKernel/BBSTestLogger.h index 534ac86999f..2b6df2ed7d9 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/BBSTestLogger.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/BBSTestLogger.h @@ -40,6 +40,8 @@ namespace LOFAR { +namespace BBS +{ // \addtogroup BBS // @{ @@ -111,6 +113,7 @@ namespace LOFAR }; } +} // end namespace BBS } // end namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/Fitter.h b/CEP/BB/BBSKernel/include/BBSKernel/Fitter.h index 1eb036f82a6..c2efaf08b6d 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/Fitter.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/Fitter.h @@ -31,6 +31,8 @@ namespace LOFAR { +namespace BBS +{ // \addtogroup BBS // @{ @@ -61,6 +63,7 @@ private: // @} +} // namespace BBS } // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/FlagsMap.h b/CEP/BB/BBSKernel/include/BBSKernel/FlagsMap.h index 5cf7ad4d2aa..c2112440335 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/FlagsMap.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/FlagsMap.h @@ -28,7 +28,8 @@ namespace LOFAR { - +namespace BBS +{ // This class implements a mmap operation for the data flags which are bits. class FlagsMap @@ -94,6 +95,7 @@ namespace LOFAR return ((itsFlags[index] & (uchar(1) << (realpos%8))) == 0); } +} // namespace BBS } // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MMap.h b/CEP/BB/BBSKernel/include/BBSKernel/MMap.h index 0795fdca017..8c8e14f3d27 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MMap.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MMap.h @@ -33,6 +33,8 @@ namespace LOFAR { +namespace BBS +{ // \ addtogroup BBS // @{ @@ -111,6 +113,7 @@ inline bool MMap::isWritable() const // @} +} // namespace BBS } // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MMapMSInfo.h b/CEP/BB/BBSKernel/include/BBSKernel/MMapMSInfo.h index dc521f28f0d..9ed6885dccc 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MMapMSInfo.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MMapMSInfo.h @@ -34,6 +34,9 @@ namespace LOFAR // Forward Declarations. class MSDesc; +namespace BBS +{ + // \ addtogroup BBS // @{ // @@ -102,6 +105,7 @@ private: // @} +} // namespace BBS } // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqBaseDFTPS.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqBaseDFTPS.h index 8db406906e6..122abfe5bc6 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqBaseDFTPS.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqBaseDFTPS.h @@ -29,7 +29,10 @@ //# Includes #include <BBS/MNS/MeqExpr.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -58,6 +61,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqBaseLinPS.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqBaseLinPS.h index 4978e1f287c..562dbecd6ec 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqBaseLinPS.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqBaseLinPS.h @@ -32,7 +32,10 @@ #include <BBS/MNS/MeqPointSource.h> #include <BBS/MNS/MeqDFTPS.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -62,6 +65,6 @@ private: // @} -} - +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqDFTPS.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqDFTPS.h index 057fafbf2f2..4cb817e02cd 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqDFTPS.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqDFTPS.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqExpr.h> #include <Common/lofar_vector.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -64,6 +67,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqDiag.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqDiag.h index 61228b57629..744c75c6f2b 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqDiag.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqDiag.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqJonesExpr.h> #include <BBS/MNS/MeqExpr.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -60,6 +63,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqDomain.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqDomain.h index 8ba9521ccd3..7d04381ff4a 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqDomain.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqDomain.h @@ -29,7 +29,10 @@ #include <iosfwd> #include <ParmDB/ParmDomain.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -85,6 +88,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqExpr.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqExpr.h index ba266cfbd8f..7cbe0f89470 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqExpr.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqExpr.h @@ -38,7 +38,11 @@ #include <iostream> #endif -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ + //# Forward Declarations. class MeqExpr; @@ -276,6 +280,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqFunklet.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqFunklet.h index d798f6708ff..11b7b8666eb 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqFunklet.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqFunklet.h @@ -32,7 +32,10 @@ #include <ParmDB/ParmValue.h> #include <Common/lofar_vector.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -158,6 +161,7 @@ protected: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqGaussSource.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqGaussSource.h index 024f1c9cb90..5577212c35d 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqGaussSource.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqGaussSource.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqSource.h> #include <Common/lofar_string.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -78,6 +81,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesCMul2.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesCMul2.h index 82e6ecf60a3..f063edd0f5b 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesCMul2.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesCMul2.h @@ -28,7 +28,10 @@ //# Includes #include <BBS/MNS/MeqJonesExpr.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -54,6 +57,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesCMul3.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesCMul3.h index 3641556e8d3..557768318c8 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesCMul3.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesCMul3.h @@ -29,7 +29,10 @@ //# Includes #include <BBS/MNS/MeqJonesExpr.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -62,6 +65,8 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR + #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesExpr.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesExpr.h index bd061e66871..ee9717907d1 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesExpr.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesExpr.h @@ -33,7 +33,10 @@ #include <Common/LofarLogger.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -127,6 +130,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesInvert.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesInvert.h index d83615e1481..b086acc9584 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesInvert.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesInvert.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqJonesExpr.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -58,6 +61,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesMMap.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesMMap.h index eca44a5791d..f6ad6d72521 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesMMap.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesMMap.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqJonesExpr.h> #include <BBS/MMapMSInfo.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -59,6 +62,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesMul2.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesMul2.h index 0e47f081304..cecdb0bae2d 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesMul2.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesMul2.h @@ -28,7 +28,10 @@ //# Includes #include <BBS/MNS/MeqJonesExpr.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -54,6 +57,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesMul3.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesMul3.h index 16589806c03..5f51d6c1d03 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesMul3.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesMul3.h @@ -29,7 +29,10 @@ //# Includes #include <BBS/MNS/MeqJonesExpr.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -58,6 +61,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesNode.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesNode.h index 502af447676..85739fef4d5 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesNode.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesNode.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqJonesExpr.h> #include <BBS/MNS/MeqExpr.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -68,6 +71,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesResult.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesResult.h index c12eb0989ea..8aadacee203 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesResult.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesResult.h @@ -32,7 +32,10 @@ // This class represents the result in a Jones matrix of a domain for // which the expressions have been evaluated. -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -78,6 +81,7 @@ namespace LOFAR { // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesSum.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesSum.h index fc414d04de1..c96509ca2c2 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesSum.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqJonesSum.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqJonesExpr.h> #include <vector> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -60,6 +63,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqLMN.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqLMN.h index b2ba596ab34..119ff89392e 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqLMN.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqLMN.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqExpr.h> #include <Common/lofar_string.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -72,6 +75,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqMatrix.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqMatrix.h index ee0d40de636..f57291e271a 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqMatrix.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqMatrix.h @@ -30,17 +30,26 @@ #include <BBS/MNS/MeqMatrixRep.h> //# Forward Declarations -namespace casa { -template<class T> class Matrix; +namespace casa +{ + template<class T> class Matrix; } -namespace LOFAR { -class BlobOStream; -class BlobIStream; -class MeqMatrixTmp; +namespace LOFAR +{ + class BlobOStream; + class BlobIStream; + + namespace BBS + { + class MeqMatrixTmp; + } } -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -224,6 +233,8 @@ LOFAR::BlobIStream& operator>> (LOFAR::BlobIStream& os, MeqMatrix& vec); // @} -} +} // namespace BBS +} // namespace LOFAR + #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqMatrixComplexArr.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqMatrixComplexArr.h index a65e835eaeb..c6ab7d93ec3 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqMatrixComplexArr.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqMatrixComplexArr.h @@ -31,7 +31,10 @@ #include <Common/lofar_complex.h> #include <Common/lofar_stack.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -132,6 +135,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqMatrixComplexSca.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqMatrixComplexSca.h index 501e6a3d278..e6ba3187119 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqMatrixComplexSca.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqMatrixComplexSca.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqMatrixRep.h> #include <Common/lofar_complex.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -101,6 +104,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqMatrixRealArr.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqMatrixRealArr.h index 6e114a4c9b7..62673f65dc2 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqMatrixRealArr.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqMatrixRealArr.h @@ -29,7 +29,10 @@ //# Includes #include <BBS/MNS/MeqMatrixRep.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -129,6 +132,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqMatrixRealSca.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqMatrixRealSca.h index 3c1a8dfa65b..7a4f7c09e2d 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqMatrixRealSca.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqMatrixRealSca.h @@ -29,7 +29,10 @@ //# Includes #include <BBS/MNS/MeqMatrixRep.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -109,6 +112,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqMatrixRep.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqMatrixRep.h index f5a6eec2cee..a970b04c966 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqMatrixRep.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqMatrixRep.h @@ -28,14 +28,19 @@ //# Includes #include <Common/lofar_complex.h> -#include <Common/lofar_iostream.h> +//#include <Common/lofar_iostream.h> +#include <iostream> #include <casa/iosfwd.h> #if defined _OPENMP #include <omp.h> #endif -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ +using LOFAR::dcomplex; // \ingroup BBS // \addtogroup MNS @@ -88,7 +93,7 @@ public: int nelements() const { return itsLength; } - virtual void show (ostream& os) const = 0; + virtual void show (std::ostream& os) const = 0; bool isComplex() const { return (type & 2) != 0; } @@ -172,6 +177,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqMatrixTmp.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqMatrixTmp.h index 4285899b481..88ebadaa0a9 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqMatrixTmp.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqMatrixTmp.h @@ -33,7 +33,10 @@ #include <BBS/MNS/MeqMatrixComplexSca.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -176,6 +179,7 @@ inline ostream& operator<< (ostream& os, const MeqMatrixTmp& vec) // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqParm.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqParm.h index 16c16d41d73..6b32358fc1d 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqParm.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqParm.h @@ -33,7 +33,10 @@ #include <Common/lofar_string.h> #include <Common/lofar_map.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -211,6 +214,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqParmExpr.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqParmExpr.h index f0c59738cbf..42cd4882360 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqParmExpr.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqParmExpr.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqExpr.h> #include <ParmDB/ParmDB.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -64,6 +67,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqParmFunklet.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqParmFunklet.h index 5bcf0e0cf4b..9acfc1badf0 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqParmFunklet.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqParmFunklet.h @@ -37,7 +37,10 @@ namespace LOFAR { class ParmData; } -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -131,6 +134,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqParmSingle.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqParmSingle.h index 3d63111917e..4dd865d5062 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqParmSingle.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqParmSingle.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqParm.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -57,6 +60,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqPhaseRef.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqPhaseRef.h index 785a14f14a3..f4dd7e3f095 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqPhaseRef.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqPhaseRef.h @@ -30,7 +30,10 @@ #include <measures/Measures/MDirection.h> #include <measures/Measures/MPosition.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -78,6 +81,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqPointSource.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqPointSource.h index 2786e324429..95420d39a59 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqPointSource.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqPointSource.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqSource.h> #include <Common/lofar_string.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -66,6 +69,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqPolc.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqPolc.h index 7b3c8d65ad9..e98179bb1b0 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqPolc.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqPolc.h @@ -29,7 +29,10 @@ //# Includes #include <BBS/MNS/MeqFunklet.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -68,6 +71,7 @@ public: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqPolcLog.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqPolcLog.h index 4c43d914004..d32029ce32d 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqPolcLog.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqPolcLog.h @@ -57,7 +57,10 @@ //# Includes #include <BBS/MNS/MeqFunklet.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -103,6 +106,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqRequest.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqRequest.h index a3328afa812..ca2204b594d 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqRequest.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqRequest.h @@ -32,7 +32,10 @@ #include <BBS/MNS/MeqMatrix.h> #include <Common/lofar_vector.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -134,6 +137,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqRequestId.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqRequestId.h index b134628e3af..9dc30d3688e 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqRequestId.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqRequestId.h @@ -26,7 +26,10 @@ // \file // Class holding an interferometer -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -37,6 +40,7 @@ namespace LOFAR { // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqResult.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqResult.h index 2257609d073..a7e40feabdc 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqResult.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqResult.h @@ -36,7 +36,10 @@ // This class represents a result of a domain for which an expression // has been evaluated. -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ //# Forward Declarations class MeqParmFunklet; @@ -213,6 +216,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqResultVec.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqResultVec.h index 469448a9dd5..7173b25965a 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqResultVec.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqResultVec.h @@ -34,7 +34,10 @@ // This class represents multiple results. // It is faster than a vector<MeqResult>. -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -110,6 +113,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqSource.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqSource.h index 420f57ad999..d4a9d643384 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqSource.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqSource.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqExpr.h> #include <Common/lofar_string.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -76,6 +79,7 @@ protected: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqSourceList.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqSourceList.h index 69f8b45cab5..cb59574835d 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqSourceList.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqSourceList.h @@ -32,7 +32,10 @@ #include <Common/lofar_vector.h> #include <Common/lofar_map.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ //# Forward Declarations class MeqParmGroup; @@ -88,6 +91,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqStatExpr.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqStatExpr.h index 3bbad743d6f..5a3cb3f576b 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqStatExpr.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqStatExpr.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqJonesExpr.h> #include <BBS/MNS/MeqExpr.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -66,6 +69,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqStatUVW.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqStatUVW.h index 11e08237266..bfdfdc4d80a 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqStatUVW.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqStatUVW.h @@ -33,7 +33,10 @@ #include <Common/lofar_map.h> #include <measures/Measures/MeasFrame.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -105,6 +108,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqStation.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqStation.h index e161fc3122e..f984aa574b9 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqStation.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqStation.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqExpr.h> #include <Common/lofar_string.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -66,6 +69,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqTabular.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqTabular.h index 64fb8a862ac..d26d2bb3f8a 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqTabular.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/MeqTabular.h @@ -31,7 +31,9 @@ namespace LOFAR { - +namespace BBS +{ + // \ingroup BBS // \addtogroup MNS // @{ @@ -64,6 +66,7 @@ namespace LOFAR // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MNS/Pool.h b/CEP/BB/BBSKernel/include/BBSKernel/MNS/Pool.h index 859b1bb8abf..a28b3632b0b 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MNS/Pool.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MNS/Pool.h @@ -4,7 +4,10 @@ #include <assert.h> #include <stdlib.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // The Pool class is a very fast, stack-based allocator where objects can // be temporarily stored that would otherwise be deleted and allocated again. @@ -51,6 +54,7 @@ template <class T> class Pool { T *top; }; -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/MSDataArray.h b/CEP/BB/BBSKernel/include/BBSKernel/MSDataArray.h index 4ad670a3ff0..b2bd4473ae7 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/MSDataArray.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/MSDataArray.h @@ -29,8 +29,11 @@ //# Includes -namespace LOFAR { - +namespace LOFAR +{ +namespace BBS +{ + // \ingroup BBS // @{ @@ -56,6 +59,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/ParmData.h b/CEP/BB/BBSKernel/include/BBSKernel/ParmData.h index b634095d82d..1de1de7b2ca 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/ParmData.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/ParmData.h @@ -35,13 +35,16 @@ namespace LOFAR { -// \addtogroup BBS -// @{ - //# Forward Declarations. class BlobOStream; class BlobIStream; +namespace BBS +{ + +// \addtogroup BBS +// @{ + class ParmData { public: @@ -187,6 +190,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/ParmWriter.h b/CEP/BB/BBSKernel/include/BBSKernel/ParmWriter.h index 2112fb05f57..2b249bd2351 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/ParmWriter.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/ParmWriter.h @@ -31,17 +31,29 @@ //# Includes #include <Common/lofar_map.h> +//# Forward Declarations namespace LOFAR -{ - // \addtogroup BBS - // @{ - //# Forward Declarations - class ParmDataInfo; - class MeqMatrix; - namespace ParmDB { +{ + namespace ParmDB + { class ParmValueRep; } + namespace BBS + { + class ParmDataInfo; + class MeqMatrix; + } +} + + +namespace LOFAR +{ +namespace BBS +{ + + // \addtogroup BBS + // @{ // Description of class. class ParmWriter @@ -62,6 +74,7 @@ namespace LOFAR }; // @} +} // namespace BBS } // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/Prediffer.h b/CEP/BB/BBSKernel/include/BBSKernel/Prediffer.h index 18a2c38c8df..6d2f86a7fc6 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/Prediffer.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/Prediffer.h @@ -62,6 +62,8 @@ namespace casa { namespace LOFAR { +namespace BBS +{ // \addtogroup BBS // @{ @@ -438,6 +440,7 @@ private: // @} +} // namespace BBS } // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/Quality.h b/CEP/BB/BBSKernel/include/BBSKernel/Quality.h index c6398dd5df7..fb5281387c1 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/Quality.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/Quality.h @@ -31,6 +31,8 @@ namespace LOFAR { +namespace BBS +{ // \addtogroup BBS // @{ @@ -62,6 +64,7 @@ inline ostream& operator<< (ostream& os, const Quality& qual) // @} +} // namespace BBS } // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/SolveProp.h b/CEP/BB/BBSKernel/include/BBSKernel/SolveProp.h index 3875b0478b1..365315b7a22 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/SolveProp.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/SolveProp.h @@ -32,6 +32,8 @@ namespace LOFAR { +namespace BBS +{ // \addtogroup BBS // @{ @@ -118,6 +120,7 @@ private: // @} +} // namespace BBS } // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/Solver.h b/CEP/BB/BBSKernel/include/BBSKernel/Solver.h index cb0f515215a..eb8edda60b4 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/Solver.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/Solver.h @@ -37,6 +37,8 @@ namespace LOFAR { +namespace BBS +{ // \addtogroup BBS // @{ @@ -113,10 +115,11 @@ private: { casa::LSQFit fitter; Quality quality; - vector<double> solvableValues; + std::vector<double> solvableValues; int nused; int nflagged; }; + struct PredifferInfo { vector<int> solveDomainIndices; @@ -132,6 +135,7 @@ private: // @} +} // namespace BBS } // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/StepProp.h b/CEP/BB/BBSKernel/include/BBSKernel/StepProp.h index 2f06b145b4a..9e0c7d5af78 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/StepProp.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/StepProp.h @@ -33,6 +33,8 @@ namespace LOFAR { +namespace BBS +{ // \addtogroup BBS // @{ @@ -139,6 +141,7 @@ private: // @} +} // namespace BBS } // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/include/BBSKernel/StrategyProp.h b/CEP/BB/BBSKernel/include/BBSKernel/StrategyProp.h index d12fa87be77..7c287617bc0 100644 --- a/CEP/BB/BBSKernel/include/BBSKernel/StrategyProp.h +++ b/CEP/BB/BBSKernel/include/BBSKernel/StrategyProp.h @@ -33,6 +33,8 @@ namespace LOFAR { +namespace BBS +{ // \addtogroup BBS // @{ @@ -95,6 +97,7 @@ private: // @} +} // namespace BBS } // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/BBSKernel.cc b/CEP/BB/BBSKernel/src/BBSKernel.cc index 635f36f5c21..38d0b130f60 100644 --- a/CEP/BB/BBSKernel/src/BBSKernel.cc +++ b/CEP/BB/BBSKernel/src/BBSKernel.cc @@ -27,12 +27,12 @@ #include <PLC/ACCmain.h> #include <BBS/BBSKernelProcessControl.h> -using namespace LOFAR; +using namespace LOFAR::BBS; int main(int argc, char **argv) { INIT_LOGGER(basename(argv[0])); BBSKernelProcessControl process; - return ACC::PLC::ACCmain(argc, argv, &process); + return LOFAR::ACC::PLC::ACCmain(argc, argv, &process); } diff --git a/CEP/BB/BBSKernel/src/BBSKernelProcessControl.cc b/CEP/BB/BBSKernel/src/BBSKernelProcessControl.cc index 9cfaf0d3337..4f26d049f1c 100644 --- a/CEP/BB/BBSKernel/src/BBSKernelProcessControl.cc +++ b/CEP/BB/BBSKernel/src/BBSKernelProcessControl.cc @@ -30,6 +30,9 @@ namespace LOFAR { +namespace BBS +{ + BBSKernelProcessControl::BBSKernelProcessControl() : ProcessControl() { @@ -128,4 +131,5 @@ namespace LOFAR return std::string(""); } +} // namespace BBS } // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/BBSKernelProcessControl.h b/CEP/BB/BBSKernel/src/BBSKernelProcessControl.h index 20aa1815379..ef606db1da8 100644 --- a/CEP/BB/BBSKernel/src/BBSKernelProcessControl.h +++ b/CEP/BB/BBSKernel/src/BBSKernelProcessControl.h @@ -31,7 +31,14 @@ #include <PLC/ProcessControl.h> #include <APS/ParameterSet.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ + +// \addtogroup BBS +// @{ + //# Description of class. // The ProcessControl class defines the command interface that can be used // to control the processes of an application.<br> @@ -107,6 +114,7 @@ public: std::string askInfo(const string& keylist); }; // class BBSKernelProcessControl +} // namespace BBS } // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/BBSTestLogger.cc b/CEP/BB/BBSKernel/src/BBSTestLogger.cc index ae4b77016ab..adadde26de0 100644 --- a/CEP/BB/BBSKernel/src/BBSTestLogger.cc +++ b/CEP/BB/BBSKernel/src/BBSTestLogger.cc @@ -30,7 +30,10 @@ #include <BBS/ParmData.h> #include <sstream> -namespace LOFAR{ +namespace LOFAR +{ +namespace BBS +{ namespace BBSTest { @@ -98,4 +101,6 @@ namespace LOFAR{ } } } + +} // namespace BBS } // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/BBSTestLogger.h b/CEP/BB/BBSKernel/src/BBSTestLogger.h index 534ac86999f..2b6df2ed7d9 100644 --- a/CEP/BB/BBSKernel/src/BBSTestLogger.h +++ b/CEP/BB/BBSKernel/src/BBSTestLogger.h @@ -40,6 +40,8 @@ namespace LOFAR { +namespace BBS +{ // \addtogroup BBS // @{ @@ -111,6 +113,7 @@ namespace LOFAR }; } +} // end namespace BBS } // end namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/BBSrun.cc b/CEP/BB/BBSKernel/src/BBSrun.cc index c73f1f9d760..7af34e91a99 100644 --- a/CEP/BB/BBSKernel/src/BBSrun.cc +++ b/CEP/BB/BBSKernel/src/BBSrun.cc @@ -42,6 +42,7 @@ using namespace std; using namespace casa; using namespace LOFAR; +using namespace LOFAR::BBS; using namespace LOFAR::ParmDB; using namespace LOFAR::ACC::APS; diff --git a/CEP/BB/BBSKernel/src/Fitter.cc b/CEP/BB/BBSKernel/src/Fitter.cc index b00d2bc5f19..34d4a842647 100644 --- a/CEP/BB/BBSKernel/src/Fitter.cc +++ b/CEP/BB/BBSKernel/src/Fitter.cc @@ -33,7 +33,10 @@ using namespace std; using namespace casa; -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ void Fitter::set (int nfitter, int nunknown) { @@ -97,4 +100,5 @@ namespace LOFAR { aio.getend(); } +} // namespace BBS } // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/Fitter.h b/CEP/BB/BBSKernel/src/Fitter.h index 1eb036f82a6..c2efaf08b6d 100644 --- a/CEP/BB/BBSKernel/src/Fitter.h +++ b/CEP/BB/BBSKernel/src/Fitter.h @@ -31,6 +31,8 @@ namespace LOFAR { +namespace BBS +{ // \addtogroup BBS // @{ @@ -61,6 +63,7 @@ private: // @} +} // namespace BBS } // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/FlagsMap.cc b/CEP/BB/BBSKernel/src/FlagsMap.cc index 4e8c2d98220..94d51ac11ab 100644 --- a/CEP/BB/BBSKernel/src/FlagsMap.cc +++ b/CEP/BB/BBSKernel/src/FlagsMap.cc @@ -24,6 +24,8 @@ #include <BBS/FlagsMap.h> namespace LOFAR +{ +namespace BBS { FlagsMap::FlagsMap (const string& fileName, MMap::protection prot) @@ -64,4 +66,5 @@ namespace LOFAR } +} // namespace BBS } // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/FlagsMap.h b/CEP/BB/BBSKernel/src/FlagsMap.h index 5cf7ad4d2aa..c2112440335 100644 --- a/CEP/BB/BBSKernel/src/FlagsMap.h +++ b/CEP/BB/BBSKernel/src/FlagsMap.h @@ -28,7 +28,8 @@ namespace LOFAR { - +namespace BBS +{ // This class implements a mmap operation for the data flags which are bits. class FlagsMap @@ -94,6 +95,7 @@ namespace LOFAR return ((itsFlags[index] & (uchar(1) << (realpos%8))) == 0); } +} // namespace BBS } // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MMap.cc b/CEP/BB/BBSKernel/src/MMap.cc index fc3e13280b4..db791375c0d 100644 --- a/CEP/BB/BBSKernel/src/MMap.cc +++ b/CEP/BB/BBSKernel/src/MMap.cc @@ -32,6 +32,8 @@ namespace LOFAR { +namespace BBS +{ MMap::MMap (const string& fileName, protection prot) : itsFileName (fileName), @@ -141,4 +143,5 @@ void MMap::flush() } } +} // namespace BBS } // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MMap.h b/CEP/BB/BBSKernel/src/MMap.h index 0795fdca017..8c8e14f3d27 100644 --- a/CEP/BB/BBSKernel/src/MMap.h +++ b/CEP/BB/BBSKernel/src/MMap.h @@ -33,6 +33,8 @@ namespace LOFAR { +namespace BBS +{ // \ addtogroup BBS // @{ @@ -111,6 +113,7 @@ inline bool MMap::isWritable() const // @} +} // namespace BBS } // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MMapMSInfo.cc b/CEP/BB/BBSKernel/src/MMapMSInfo.cc index e7fd98ec4b8..44ef2b06de0 100644 --- a/CEP/BB/BBSKernel/src/MMapMSInfo.cc +++ b/CEP/BB/BBSKernel/src/MMapMSInfo.cc @@ -24,6 +24,8 @@ #include <MS/MSDesc.h> namespace LOFAR +{ +namespace BBS { MMapMSInfo::MMapMSInfo (const MSDesc& msdesc, uint ddid, @@ -48,4 +50,5 @@ namespace LOFAR } } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MMapMSInfo.h b/CEP/BB/BBSKernel/src/MMapMSInfo.h index dc521f28f0d..9ed6885dccc 100644 --- a/CEP/BB/BBSKernel/src/MMapMSInfo.h +++ b/CEP/BB/BBSKernel/src/MMapMSInfo.h @@ -34,6 +34,9 @@ namespace LOFAR // Forward Declarations. class MSDesc; +namespace BBS +{ + // \ addtogroup BBS // @{ // @@ -102,6 +105,7 @@ private: // @} +} // namespace BBS } // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqBaseDFTPS.cc b/CEP/BB/BBSKernel/src/MNS/MeqBaseDFTPS.cc index 111c9a3a921..298ead81bdb 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqBaseDFTPS.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqBaseDFTPS.cc @@ -28,7 +28,12 @@ using namespace casa; -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ +using LOFAR::dcomplex; +using LOFAR::conj; MeqBaseDFTPS::MeqBaseDFTPS (const MeqExpr& left, const MeqExpr& right, const MeqExpr& lmn) @@ -173,4 +178,5 @@ std::string MeqBaseDFTPS::getLabel() } #endif -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqBaseDFTPS.h b/CEP/BB/BBSKernel/src/MNS/MeqBaseDFTPS.h index 8db406906e6..122abfe5bc6 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqBaseDFTPS.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqBaseDFTPS.h @@ -29,7 +29,10 @@ //# Includes #include <BBS/MNS/MeqExpr.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -58,6 +61,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqBaseLinPS.cc b/CEP/BB/BBSKernel/src/MNS/MeqBaseLinPS.cc index e23f6083c7d..19d40ba51ae 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqBaseLinPS.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqBaseLinPS.cc @@ -29,7 +29,10 @@ using namespace casa; -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqBaseLinPS::MeqBaseLinPS (const MeqExpr& dft, MeqPointSource* source) : itsDFT (dft), @@ -130,4 +133,5 @@ std::string MeqBaseLinPS::getLabel() } #endif -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqBaseLinPS.h b/CEP/BB/BBSKernel/src/MNS/MeqBaseLinPS.h index 4978e1f287c..562dbecd6ec 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqBaseLinPS.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqBaseLinPS.h @@ -32,7 +32,10 @@ #include <BBS/MNS/MeqPointSource.h> #include <BBS/MNS/MeqDFTPS.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -62,6 +65,6 @@ private: // @} -} - +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqDFTPS.cc b/CEP/BB/BBSKernel/src/MNS/MeqDFTPS.cc index e99b93b68f2..8f1914c4572 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqDFTPS.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqDFTPS.cc @@ -32,8 +32,10 @@ using namespace casa; -namespace LOFAR { - +namespace LOFAR +{ +namespace BBS +{ MeqDFTPS::MeqDFTPS (const MeqExpr& lmn, MeqStatUVW* uvw) : itsLMN (lmn), @@ -130,4 +132,5 @@ std::string MeqDFTPS::getLabel() } #endif -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqDFTPS.h b/CEP/BB/BBSKernel/src/MNS/MeqDFTPS.h index 057fafbf2f2..4cb817e02cd 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqDFTPS.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqDFTPS.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqExpr.h> #include <Common/lofar_vector.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -64,6 +67,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqDiag.cc b/CEP/BB/BBSKernel/src/MNS/MeqDiag.cc index 14e2efa8e3e..92de9acc84c 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqDiag.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqDiag.cc @@ -26,7 +26,10 @@ #include <BBS/MNS/MeqDiag.h> #include <BBS/MNS/MeqExpr.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqDiag::MeqDiag(const MeqExpr& xx, const MeqExpr& yy) : itsXX(xx), @@ -53,4 +56,5 @@ MeqJonesResult MeqDiag::getJResult(const MeqRequest& request) return res; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqDiag.h b/CEP/BB/BBSKernel/src/MNS/MeqDiag.h index 61228b57629..744c75c6f2b 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqDiag.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqDiag.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqJonesExpr.h> #include <BBS/MNS/MeqExpr.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -60,6 +63,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqDomain.cc b/CEP/BB/BBSKernel/src/MNS/MeqDomain.cc index e32087abd1e..5191166540c 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqDomain.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqDomain.cc @@ -24,7 +24,10 @@ #include <BBS/MNS/MeqDomain.h> #include <Common/LofarLogger.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqDomain::MeqDomain() : itsStartX (0), @@ -68,4 +71,5 @@ std::ostream& operator<< (std::ostream& os, const MeqDomain& domain) return os; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqDomain.h b/CEP/BB/BBSKernel/src/MNS/MeqDomain.h index 8ba9521ccd3..7d04381ff4a 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqDomain.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqDomain.h @@ -29,7 +29,10 @@ #include <iosfwd> #include <ParmDB/ParmDomain.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -85,6 +88,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqExpr.cc b/CEP/BB/BBSKernel/src/MNS/MeqExpr.cc index d3e4a879c96..428b62eac37 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqExpr.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqExpr.cc @@ -31,7 +31,10 @@ #include <iomanip> #include <algorithm> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqExprRep::MeqExprRep() : itsCount (0), @@ -373,4 +376,5 @@ std::string MeqExprAPToComplex::getLabel() } #endif -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqExpr.h b/CEP/BB/BBSKernel/src/MNS/MeqExpr.h index ba266cfbd8f..7cbe0f89470 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqExpr.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqExpr.h @@ -38,7 +38,11 @@ #include <iostream> #endif -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ + //# Forward Declarations. class MeqExpr; @@ -276,6 +280,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqFunklet.cc b/CEP/BB/BBSKernel/src/MNS/MeqFunklet.cc index 8c23e31cb34..839db362387 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqFunklet.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqFunklet.cc @@ -32,8 +32,11 @@ using namespace casa; -namespace LOFAR { - +namespace LOFAR +{ +namespace BBS +{ +using LOFAR::operator<<; MeqFunklet::MeqFunklet() : itsNrScid (0) @@ -188,4 +191,5 @@ void MeqFunklet::update (const vector<double>& values) } } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqFunklet.h b/CEP/BB/BBSKernel/src/MNS/MeqFunklet.h index d798f6708ff..11b7b8666eb 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqFunklet.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqFunklet.h @@ -32,7 +32,10 @@ #include <ParmDB/ParmValue.h> #include <Common/lofar_vector.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -158,6 +161,7 @@ protected: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqGaussSource.cc b/CEP/BB/BBSKernel/src/MNS/MeqGaussSource.cc index 4b506524626..3e360e4c545 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqGaussSource.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqGaussSource.cc @@ -24,7 +24,10 @@ #include <BBS/MNS/MeqGaussSource.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqGaussSource::MeqGaussSource (const string& name, const string& groupName, @@ -46,4 +49,5 @@ MeqGaussSource::MeqGaussSource (const string& name, MeqGaussSource::~MeqGaussSource() {} -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqGaussSource.h b/CEP/BB/BBSKernel/src/MNS/MeqGaussSource.h index 024f1c9cb90..5577212c35d 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqGaussSource.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqGaussSource.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqSource.h> #include <Common/lofar_string.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -78,6 +81,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqJonesCMul2.cc b/CEP/BB/BBSKernel/src/MNS/MeqJonesCMul2.cc index e858014df1f..b75c337d590 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqJonesCMul2.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqJonesCMul2.cc @@ -31,7 +31,10 @@ using namespace casa; -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqJonesCMul2::MeqJonesCMul2 (const MeqJonesExpr& left, const MeqJonesExpr& right) @@ -151,4 +154,5 @@ MeqJonesResult MeqJonesCMul2::getJResult (const MeqRequest& request) return result; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqJonesCMul2.h b/CEP/BB/BBSKernel/src/MNS/MeqJonesCMul2.h index 82e6ecf60a3..f063edd0f5b 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqJonesCMul2.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqJonesCMul2.h @@ -28,7 +28,10 @@ //# Includes #include <BBS/MNS/MeqJonesExpr.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -54,6 +57,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqJonesCMul3.cc b/CEP/BB/BBSKernel/src/MNS/MeqJonesCMul3.cc index 2b11de23aa1..fa5079133f5 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqJonesCMul3.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqJonesCMul3.cc @@ -35,10 +35,12 @@ #include <xmmintrin.h> #endif - using namespace casa; -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqJonesCMul3::MeqJonesCMul3 (const MeqJonesExpr& left, const MeqJonesExpr& mid, @@ -617,4 +619,5 @@ std::string MeqJonesCMul3::getLabel() } #endif -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqJonesCMul3.h b/CEP/BB/BBSKernel/src/MNS/MeqJonesCMul3.h index 3641556e8d3..557768318c8 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqJonesCMul3.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqJonesCMul3.h @@ -29,7 +29,10 @@ //# Includes #include <BBS/MNS/MeqJonesExpr.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -62,6 +65,8 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR + #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqJonesExpr.cc b/CEP/BB/BBSKernel/src/MNS/MeqJonesExpr.cc index 0ede1819975..d906012aeaa 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqJonesExpr.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqJonesExpr.cc @@ -26,7 +26,10 @@ #include <Common/LofarLogger.h> //#include <Common/Timer.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqJonesExprRep::~MeqJonesExprRep() { @@ -42,4 +45,5 @@ void MeqJonesExprRep::precalculate (const MeqRequest& request) itsReqId = request.getId(); } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqJonesExpr.h b/CEP/BB/BBSKernel/src/MNS/MeqJonesExpr.h index bd061e66871..ee9717907d1 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqJonesExpr.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqJonesExpr.h @@ -33,7 +33,10 @@ #include <Common/LofarLogger.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -127,6 +130,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqJonesInvert.cc b/CEP/BB/BBSKernel/src/MNS/MeqJonesInvert.cc index db330b20d26..f40ce8ef535 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqJonesInvert.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqJonesInvert.cc @@ -40,7 +40,10 @@ // // Also note that conj(AB) = conj(B)conj(A) -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqJonesInvert::~MeqJonesInvert() {} @@ -102,4 +105,5 @@ MeqJonesResult MeqJonesInvert::getJResult (const MeqRequest& request) return result; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqJonesInvert.h b/CEP/BB/BBSKernel/src/MNS/MeqJonesInvert.h index d83615e1481..b086acc9584 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqJonesInvert.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqJonesInvert.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqJonesExpr.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -58,6 +61,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqJonesMMap.cc b/CEP/BB/BBSKernel/src/MNS/MeqJonesMMap.cc index 5d03a476713..455a86a9e74 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqJonesMMap.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqJonesMMap.cc @@ -24,7 +24,10 @@ #include <BBS/MNS/MeqJonesMMap.h> #include <Common/LofarLogger.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqJonesMMap::MeqJonesMMap (const MMapMSInfo& info, int blnr) : itsInfo (&info), @@ -137,4 +140,6 @@ namespace LOFAR { } } } -} + +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqJonesMMap.h b/CEP/BB/BBSKernel/src/MNS/MeqJonesMMap.h index eca44a5791d..f6ad6d72521 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqJonesMMap.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqJonesMMap.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqJonesExpr.h> #include <BBS/MMapMSInfo.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -59,6 +62,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqJonesMul2.cc b/CEP/BB/BBSKernel/src/MNS/MeqJonesMul2.cc index d95e24d81f4..bdfde500029 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqJonesMul2.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqJonesMul2.cc @@ -31,7 +31,10 @@ using namespace casa; -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqJonesMul2::MeqJonesMul2 (const MeqJonesExpr& left, const MeqJonesExpr& right) @@ -151,4 +154,5 @@ MeqJonesResult MeqJonesMul2::getJResult (const MeqRequest& request) return result; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqJonesMul2.h b/CEP/BB/BBSKernel/src/MNS/MeqJonesMul2.h index 0e47f081304..cecdb0bae2d 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqJonesMul2.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqJonesMul2.h @@ -28,7 +28,10 @@ //# Includes #include <BBS/MNS/MeqJonesExpr.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -54,6 +57,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqJonesMul3.cc b/CEP/BB/BBSKernel/src/MNS/MeqJonesMul3.cc index b6b0fd45747..b002479b408 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqJonesMul3.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqJonesMul3.cc @@ -31,7 +31,10 @@ using namespace casa; -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqJonesMul3::MeqJonesMul3 (const MeqJonesExpr& left, const MeqJonesExpr& mid, @@ -196,4 +199,5 @@ MeqJonesResult MeqJonesMul3::getJResult (const MeqRequest& request) return result; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqJonesMul3.h b/CEP/BB/BBSKernel/src/MNS/MeqJonesMul3.h index 16589806c03..5f51d6c1d03 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqJonesMul3.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqJonesMul3.h @@ -29,7 +29,10 @@ //# Includes #include <BBS/MNS/MeqJonesExpr.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -58,6 +61,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqJonesNode.cc b/CEP/BB/BBSKernel/src/MNS/MeqJonesNode.cc index 54f36b4fb0a..9a14dc5abb2 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqJonesNode.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqJonesNode.cc @@ -25,7 +25,10 @@ #include <BBS/MNS/MeqJonesNode.h> #include <BBS/MNS/MeqExpr.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqJonesNode::MeqJonesNode (const MeqExpr& elem11, const MeqExpr& elem12, const MeqExpr& elem21, const MeqExpr& elem22) @@ -62,4 +65,5 @@ std::string MeqJonesNode::getLabel() } #endif -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqJonesNode.h b/CEP/BB/BBSKernel/src/MNS/MeqJonesNode.h index 502af447676..85739fef4d5 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqJonesNode.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqJonesNode.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqJonesExpr.h> #include <BBS/MNS/MeqExpr.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -68,6 +71,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqJonesResult.h b/CEP/BB/BBSKernel/src/MNS/MeqJonesResult.h index c12eb0989ea..8aadacee203 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqJonesResult.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqJonesResult.h @@ -32,7 +32,10 @@ // This class represents the result in a Jones matrix of a domain for // which the expressions have been evaluated. -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -78,6 +81,7 @@ namespace LOFAR { // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqJonesSum.cc b/CEP/BB/BBSKernel/src/MNS/MeqJonesSum.cc index 86d6a3e93a8..dee25c651cb 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqJonesSum.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqJonesSum.cc @@ -26,7 +26,10 @@ #include <BBS/MNS/MeqJonesResult.h> #include <BBS/MNS/MeqMatrixTmp.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqJonesSum::MeqJonesSum (const std::vector<MeqJonesExpr>& expr) : itsExpr (expr) @@ -113,4 +116,6 @@ std::string MeqJonesSum::getLabel() return std::string("MeqJonesSum\\nSum of Jones matrices"); } #endif -} + +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqJonesSum.h b/CEP/BB/BBSKernel/src/MNS/MeqJonesSum.h index fc414d04de1..c96509ca2c2 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqJonesSum.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqJonesSum.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqJonesExpr.h> #include <vector> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -60,6 +63,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqLMN.cc b/CEP/BB/BBSKernel/src/MNS/MeqLMN.cc index d686616ef12..4fa3eb2e55c 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqLMN.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqLMN.cc @@ -30,7 +30,10 @@ #include <Common/LofarLogger.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqLMN::MeqLMN (MeqSource* source) : itsSource (source) @@ -209,4 +212,5 @@ std::string MeqLMN::getLabel() } #endif -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqLMN.h b/CEP/BB/BBSKernel/src/MNS/MeqLMN.h index b2ba596ab34..119ff89392e 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqLMN.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqLMN.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqExpr.h> #include <Common/lofar_string.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -72,6 +75,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqLMNAn.cc b/CEP/BB/BBSKernel/src/MNS/MeqLMNAn.cc index 2e21d3ae288..e8750d6836e 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqLMNAn.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqLMNAn.cc @@ -31,7 +31,10 @@ #include <Common/LofarLogger.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqLMN::MeqLMN (MeqPointSource* source) : itsSource (source) @@ -140,4 +143,5 @@ MeqResultVec MeqLMN::getResultVec (const MeqRequest& request) return result; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqMatrix.cc b/CEP/BB/BBSKernel/src/MNS/MeqMatrix.cc index fb56173ce91..bc49be8f88f 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqMatrix.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqMatrix.cc @@ -35,7 +35,10 @@ using namespace casa; -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqMatrix::MeqMatrix (double value) { @@ -445,8 +448,8 @@ LOFAR::BlobIStream& operator>> (LOFAR::BlobIStream& bs, MeqMatrix& vec) return bs; } -} - +} // namespace BBS +} // namespace LOFAR //# Instantiate the AIPS++ templates needed for Matrix<dcomplex> //# This is needed because dcomplex is usually not the same as casa::DComplex. diff --git a/CEP/BB/BBSKernel/src/MNS/MeqMatrix.h b/CEP/BB/BBSKernel/src/MNS/MeqMatrix.h index ee0d40de636..f57291e271a 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqMatrix.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqMatrix.h @@ -30,17 +30,26 @@ #include <BBS/MNS/MeqMatrixRep.h> //# Forward Declarations -namespace casa { -template<class T> class Matrix; +namespace casa +{ + template<class T> class Matrix; } -namespace LOFAR { -class BlobOStream; -class BlobIStream; -class MeqMatrixTmp; +namespace LOFAR +{ + class BlobOStream; + class BlobIStream; + + namespace BBS + { + class MeqMatrixTmp; + } } -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -224,6 +233,8 @@ LOFAR::BlobIStream& operator>> (LOFAR::BlobIStream& os, MeqMatrix& vec); // @} -} +} // namespace BBS +} // namespace LOFAR + #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqMatrixComplexArr.cc b/CEP/BB/BBSKernel/src/MNS/MeqMatrixComplexArr.cc index de516f6e026..4739b80aadf 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqMatrixComplexArr.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqMatrixComplexArr.cc @@ -41,7 +41,10 @@ #include <xmmintrin.h> #endif -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // Allocation will be done from the pool containing matrices of poolNElements // or less elements. @@ -1015,4 +1018,5 @@ void MeqMatrixComplexArr::fillRowWithProducts(dcomplex v0, dcomplex factor, #endif } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqMatrixComplexArr.h b/CEP/BB/BBSKernel/src/MNS/MeqMatrixComplexArr.h index a65e835eaeb..c6ab7d93ec3 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqMatrixComplexArr.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqMatrixComplexArr.h @@ -31,7 +31,10 @@ #include <Common/lofar_complex.h> #include <Common/lofar_stack.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -132,6 +135,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqMatrixComplexSca.cc b/CEP/BB/BBSKernel/src/MNS/MeqMatrixComplexSca.cc index f97e7856297..77e7c797181 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqMatrixComplexSca.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqMatrixComplexSca.cc @@ -33,7 +33,10 @@ #include <Common/Timer.h> #endif -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqMatrixComplexSca::~MeqMatrixComplexSca() {} @@ -305,4 +308,5 @@ MeqMatrixRep* MeqMatrixComplexSca::sum() return this; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqMatrixComplexSca.h b/CEP/BB/BBSKernel/src/MNS/MeqMatrixComplexSca.h index 501e6a3d278..e6ba3187119 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqMatrixComplexSca.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqMatrixComplexSca.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqMatrixRep.h> #include <Common/lofar_complex.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -101,6 +104,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqMatrixRealArr.cc b/CEP/BB/BBSKernel/src/MNS/MeqMatrixRealArr.cc index 664130cc296..5c373faece8 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqMatrixRealArr.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqMatrixRealArr.cc @@ -43,7 +43,10 @@ using namespace casa; -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // Allocation will be done from the pool containing matrices of poolNElements // or less elements. @@ -887,4 +890,5 @@ MeqMatrixRep* MeqMatrixRealArr::sum() return result; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqMatrixRealArr.h b/CEP/BB/BBSKernel/src/MNS/MeqMatrixRealArr.h index 6e114a4c9b7..62673f65dc2 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqMatrixRealArr.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqMatrixRealArr.h @@ -29,7 +29,10 @@ //# Includes #include <BBS/MNS/MeqMatrixRep.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -129,6 +132,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqMatrixRealSca.cc b/CEP/BB/BBSKernel/src/MNS/MeqMatrixRealSca.cc index ea1ac6018d9..0b5791c94c7 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqMatrixRealSca.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqMatrixRealSca.cc @@ -31,7 +31,10 @@ using namespace casa; -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqMatrixRealSca::~MeqMatrixRealSca() {} @@ -257,4 +260,5 @@ MeqMatrixRep* MeqMatrixRealSca::sum() return this; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqMatrixRealSca.h b/CEP/BB/BBSKernel/src/MNS/MeqMatrixRealSca.h index 3c1a8dfa65b..7a4f7c09e2d 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqMatrixRealSca.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqMatrixRealSca.h @@ -29,7 +29,10 @@ //# Includes #include <BBS/MNS/MeqMatrixRep.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -109,6 +112,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqMatrixRep.cc b/CEP/BB/BBSKernel/src/MNS/MeqMatrixRep.cc index 8a2e05b1112..10bf4274d04 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqMatrixRep.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqMatrixRep.cc @@ -26,7 +26,10 @@ using namespace casa; -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqMatrixRep::~MeqMatrixRep() @@ -73,4 +76,5 @@ void MeqMatrixRep::fillRowWithProducts(dcomplex, dcomplex, int) throw (AipsError ("MeqMatrixRep::fillRowWithProducts not implemented")); } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqMatrixRep.h b/CEP/BB/BBSKernel/src/MNS/MeqMatrixRep.h index f5a6eec2cee..a970b04c966 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqMatrixRep.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqMatrixRep.h @@ -28,14 +28,19 @@ //# Includes #include <Common/lofar_complex.h> -#include <Common/lofar_iostream.h> +//#include <Common/lofar_iostream.h> +#include <iostream> #include <casa/iosfwd.h> #if defined _OPENMP #include <omp.h> #endif -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ +using LOFAR::dcomplex; // \ingroup BBS // \addtogroup MNS @@ -88,7 +93,7 @@ public: int nelements() const { return itsLength; } - virtual void show (ostream& os) const = 0; + virtual void show (std::ostream& os) const = 0; bool isComplex() const { return (type & 2) != 0; } @@ -172,6 +177,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqMatrixTmp.cc b/CEP/BB/BBSKernel/src/MNS/MeqMatrixTmp.cc index 3008190724f..ace3100a3de 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqMatrixTmp.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqMatrixTmp.cc @@ -26,7 +26,10 @@ #include <BBS/MNS/MeqMatrixComplexArr.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqMatrixTmp::MeqMatrixTmp (double value, int nx, int ny, bool init) { @@ -121,4 +124,5 @@ MeqMatrixTmp sum (const MeqMatrixTmp& arg) return arg.itsRep->sum(); } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqMatrixTmp.h b/CEP/BB/BBSKernel/src/MNS/MeqMatrixTmp.h index 4285899b481..88ebadaa0a9 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqMatrixTmp.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqMatrixTmp.h @@ -33,7 +33,10 @@ #include <BBS/MNS/MeqMatrixComplexSca.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -176,6 +179,7 @@ inline ostream& operator<< (ostream& os, const MeqMatrixTmp& vec) // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqParm.cc b/CEP/BB/BBSKernel/src/MNS/MeqParm.cc index 4ff851c5d22..aa171beaf91 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqParm.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqParm.cc @@ -25,7 +25,10 @@ #include <Common/LofarLogger.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqParm::MeqParm (const string& name) @@ -105,4 +108,5 @@ void MeqParmGroup::clear() itsParms.clear(); } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqParm.h b/CEP/BB/BBSKernel/src/MNS/MeqParm.h index 16c16d41d73..6b32358fc1d 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqParm.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqParm.h @@ -33,7 +33,10 @@ #include <Common/lofar_string.h> #include <Common/lofar_map.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -211,6 +214,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqParmExpr.cc b/CEP/BB/BBSKernel/src/MNS/MeqParmExpr.cc index 45f6b20581b..b9fefc508dd 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqParmExpr.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqParmExpr.cc @@ -24,7 +24,10 @@ #include <BBS/MNS/MeqParmFunklet.h> #include <BBS/MNS/MeqMatrixTmp.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqParmExpr::MeqParmExpr (const string& expr, MeqParmGroup& group, ParmDB::ParmDB* table) @@ -69,4 +72,5 @@ namespace LOFAR { return *v[0] * *v[1]; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqParmExpr.h b/CEP/BB/BBSKernel/src/MNS/MeqParmExpr.h index f0c59738cbf..42cd4882360 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqParmExpr.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqParmExpr.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqExpr.h> #include <ParmDB/ParmDB.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -64,6 +67,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqParmFunklet.cc b/CEP/BB/BBSKernel/src/MNS/MeqParmFunklet.cc index c34d3594d55..e325ead049a 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqParmFunklet.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqParmFunklet.cc @@ -35,7 +35,7 @@ using namespace std; // Make sorting vector<MPFHolder> possible (on domain). // So define operator< for it. -bool less_mp (LOFAR::MeqFunklet* x, LOFAR::MeqFunklet* y) +bool less_mp (LOFAR::BBS::MeqFunklet* x, LOFAR::BBS::MeqFunklet* y) { return (x->domain().startY() < y->domain().startY() || (x->domain().startY() == y->domain().startY() && @@ -43,7 +43,10 @@ bool less_mp (LOFAR::MeqFunklet* x, LOFAR::MeqFunklet* y) } -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqParmFunklet::MeqParmFunklet (const string& name, ParmDB::ParmDB* table) : MeqParm (name), @@ -398,4 +401,5 @@ void MeqParmFunklet::save() } } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqParmFunklet.h b/CEP/BB/BBSKernel/src/MNS/MeqParmFunklet.h index 5bcf0e0cf4b..9acfc1badf0 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqParmFunklet.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqParmFunklet.h @@ -37,7 +37,10 @@ namespace LOFAR { class ParmData; } -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -131,6 +134,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqParmSingle.cc b/CEP/BB/BBSKernel/src/MNS/MeqParmSingle.cc index 8c15221574c..e44f88d72c2 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqParmSingle.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqParmSingle.cc @@ -27,7 +27,10 @@ #include <Common/LofarLogger.h> #include <cmath> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqParmSingle::MeqParmSingle (const string& name, double value) : MeqParm (name), @@ -44,4 +47,5 @@ MeqResult MeqParmSingle::getResult (const MeqRequest& request) return result; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqParmSingle.h b/CEP/BB/BBSKernel/src/MNS/MeqParmSingle.h index 3d63111917e..4dd865d5062 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqParmSingle.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqParmSingle.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqParm.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -57,6 +60,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqPhaseRef.cc b/CEP/BB/BBSKernel/src/MNS/MeqPhaseRef.cc index e01b05e751d..6ca89c61fb7 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqPhaseRef.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqPhaseRef.cc @@ -36,7 +36,10 @@ using namespace casa; -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqPhaseRef::MeqPhaseRef (const MDirection& phaseRef, double startTime) : itsStartTime (startTime) @@ -94,4 +97,5 @@ MeqPhaseRef::MeqPhaseRef (const MDirection& phaseRef, double startTime) // cout << "ep3 " << ep3 << endl; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqPhaseRef.h b/CEP/BB/BBSKernel/src/MNS/MeqPhaseRef.h index 785a14f14a3..f4dd7e3f095 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqPhaseRef.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqPhaseRef.h @@ -30,7 +30,10 @@ #include <measures/Measures/MDirection.h> #include <measures/Measures/MPosition.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -78,6 +81,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqPointSource.cc b/CEP/BB/BBSKernel/src/MNS/MeqPointSource.cc index da938791262..10c13727d0c 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqPointSource.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqPointSource.cc @@ -24,7 +24,10 @@ #include <BBS/MNS/MeqPointSource.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqPointSource::MeqPointSource (const string& name, const string& groupName, @@ -41,4 +44,5 @@ MeqPointSource::MeqPointSource (const string& name, MeqPointSource::~MeqPointSource() {} -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqPointSource.h b/CEP/BB/BBSKernel/src/MNS/MeqPointSource.h index 2786e324429..95420d39a59 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqPointSource.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqPointSource.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqSource.h> #include <Common/lofar_string.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -66,6 +69,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqPolc.cc b/CEP/BB/BBSKernel/src/MNS/MeqPolc.cc index 9ee18fbc660..9af88a7c2c9 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqPolc.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqPolc.cc @@ -30,7 +30,10 @@ using namespace casa; -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqPolc::MeqPolc (const ParmDB::ParmValue& pvalue) @@ -311,4 +314,5 @@ MeqResult MeqPolc::getAnResult (const MeqRequest& request, return result; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqPolc.h b/CEP/BB/BBSKernel/src/MNS/MeqPolc.h index 7b3c8d65ad9..e98179bb1b0 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqPolc.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqPolc.h @@ -29,7 +29,10 @@ //# Includes #include <BBS/MNS/MeqFunklet.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -68,6 +71,7 @@ public: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqPolcAn.cc b/CEP/BB/BBSKernel/src/MNS/MeqPolcAn.cc index d38e5f50dbb..0efa72090e3 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqPolcAn.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqPolcAn.cc @@ -31,7 +31,10 @@ using namespace casa; -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqPolc::~MeqPolc() @@ -178,4 +181,5 @@ MeqResult MeqPolc::getResult (const MeqRequest& request) return result; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqPolcLog.cc b/CEP/BB/BBSKernel/src/MNS/MeqPolcLog.cc index 07bb81c7d3b..5f094fb4d43 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqPolcLog.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqPolcLog.cc @@ -31,7 +31,10 @@ using namespace casa; -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqPolcLog::MeqPolcLog(const ParmDB::ParmValue& pvalue) : MeqFunklet(pvalue) @@ -332,4 +335,5 @@ MeqResult MeqPolcLog::getAnResult(const MeqRequest& request, int nrpert, int per return getResult(request, nrpert, pertInx); } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqPolcLog.h b/CEP/BB/BBSKernel/src/MNS/MeqPolcLog.h index 4c43d914004..d32029ce32d 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqPolcLog.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqPolcLog.h @@ -57,7 +57,10 @@ //# Includes #include <BBS/MNS/MeqFunklet.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -103,6 +106,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqRequest.cc b/CEP/BB/BBSKernel/src/MNS/MeqRequest.cc index 08b64a8dff7..fc61d45e5f8 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqRequest.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqRequest.cc @@ -25,7 +25,10 @@ #include <Common/LofarLogger.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqRequestId MeqRequest::theirRequestId = 0; @@ -134,4 +137,5 @@ void MeqRequest::setDomain (const MeqDomain& domain, int nx, itsYP = &itsY[0]; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqRequest.h b/CEP/BB/BBSKernel/src/MNS/MeqRequest.h index a3328afa812..ca2204b594d 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqRequest.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqRequest.h @@ -32,7 +32,10 @@ #include <BBS/MNS/MeqMatrix.h> #include <Common/lofar_vector.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -134,6 +137,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqRequestId.h b/CEP/BB/BBSKernel/src/MNS/MeqRequestId.h index b134628e3af..9dc30d3688e 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqRequestId.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqRequestId.h @@ -26,7 +26,10 @@ // \file // Class holding an interferometer -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -37,6 +40,7 @@ namespace LOFAR { // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqResult.cc b/CEP/BB/BBSKernel/src/MNS/MeqResult.cc index d468c1f10c3..577bdb55fc9 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqResult.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqResult.cc @@ -26,7 +26,10 @@ #include <BBS/MNS/Pool.h> #include <BBS/MNS/MeqParmFunklet.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ Pool<MeqResultRep> MeqResultRep::theirPool; #pragma omp threadprivate(MeqResultRep::theirPool) @@ -126,4 +129,5 @@ MeqResult& MeqResult::operator= (const MeqResult& that) return *this; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqResult.h b/CEP/BB/BBSKernel/src/MNS/MeqResult.h index 2257609d073..a7e40feabdc 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqResult.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqResult.h @@ -36,7 +36,10 @@ // This class represents a result of a domain for which an expression // has been evaluated. -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ //# Forward Declarations class MeqParmFunklet; @@ -213,6 +216,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqResultVec.cc b/CEP/BB/BBSKernel/src/MNS/MeqResultVec.cc index 0b2bc3e278e..271d14ec30b 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqResultVec.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqResultVec.cc @@ -26,7 +26,10 @@ // This class represents the result in a Jones matrix of a domain for // which the expressions have been evaluated. -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqResultVecRep::MeqResultVecRep (int size, int nspid) : itsCount (0) @@ -73,4 +76,5 @@ namespace LOFAR { return *this; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqResultVec.h b/CEP/BB/BBSKernel/src/MNS/MeqResultVec.h index 469448a9dd5..7173b25965a 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqResultVec.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqResultVec.h @@ -34,7 +34,10 @@ // This class represents multiple results. // It is faster than a vector<MeqResult>. -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -110,6 +113,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqSource.cc b/CEP/BB/BBSKernel/src/MNS/MeqSource.cc index a6f5755852b..03dc3a57097 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqSource.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqSource.cc @@ -24,7 +24,10 @@ #include <BBS/MNS/MeqSource.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqSource::MeqSource (const string& name, const string& groupName, @@ -39,4 +42,5 @@ MeqSource::MeqSource (const string& name, const string& groupName, MeqSource::~MeqSource() {} -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqSource.h b/CEP/BB/BBSKernel/src/MNS/MeqSource.h index 420f57ad999..d4a9d643384 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqSource.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqSource.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqExpr.h> #include <Common/lofar_string.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -76,6 +79,7 @@ protected: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqSourceList.cc b/CEP/BB/BBSKernel/src/MNS/MeqSourceList.cc index e3f4eab7922..e24731ee250 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqSourceList.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqSourceList.cc @@ -33,7 +33,10 @@ using namespace casa; -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqSourceList::MeqSourceList (ParmDB::ParmDB& parmTable, MeqParmGroup& group) { @@ -158,4 +161,5 @@ void MeqSourceList::add (MeqSource* source) group.push_back (idx); } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqSourceList.h b/CEP/BB/BBSKernel/src/MNS/MeqSourceList.h index 69f8b45cab5..cb59574835d 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqSourceList.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqSourceList.h @@ -32,7 +32,10 @@ #include <Common/lofar_vector.h> #include <Common/lofar_map.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ //# Forward Declarations class MeqParmGroup; @@ -88,6 +91,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqStatExpr.cc b/CEP/BB/BBSKernel/src/MNS/MeqStatExpr.cc index cfa107ad5ef..29b6e589145 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqStatExpr.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqStatExpr.cc @@ -29,7 +29,10 @@ #include <BBS/MNS/MeqMatrix.h> #include <BBS/MNS/MeqMatrixTmp.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqStatExpr::MeqStatExpr (const MeqExpr& faradayRotation, const MeqExpr& dipoleRotation, @@ -191,4 +194,5 @@ MeqJonesResult MeqStatExpr::getJResult (const MeqRequest& request) return result; } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqStatExpr.h b/CEP/BB/BBSKernel/src/MNS/MeqStatExpr.h index 3bbad743d6f..5a3cb3f576b 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqStatExpr.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqStatExpr.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqJonesExpr.h> #include <BBS/MNS/MeqExpr.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -66,6 +69,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqStatUVW.cc b/CEP/BB/BBSKernel/src/MNS/MeqStatUVW.cc index 82d5ca9a0a5..3ec6326fb2d 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqStatUVW.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqStatUVW.cc @@ -37,7 +37,10 @@ using namespace casa; -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqStatUVW::MeqStatUVW (MeqStation* station, const MeqPhaseRef* phaseRef) @@ -140,4 +143,5 @@ void MeqStatUVW::set (double time, double u, double v, double w) itsUVW[MeqTime(time)] = MeqUVW(u,v,w); } -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqStatUVW.h b/CEP/BB/BBSKernel/src/MNS/MeqStatUVW.h index 11e08237266..bfdfdc4d80a 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqStatUVW.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqStatUVW.h @@ -33,7 +33,10 @@ #include <Common/lofar_map.h> #include <measures/Measures/MeasFrame.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -105,6 +108,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqStation.cc b/CEP/BB/BBSKernel/src/MNS/MeqStation.cc index 5de156a3e43..7763bb92ad8 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqStation.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqStation.cc @@ -23,7 +23,10 @@ #include <lofar_config.h> #include <BBS/MNS/MeqStation.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ MeqStation::MeqStation() {} @@ -36,4 +39,5 @@ MeqStation::MeqStation (MeqExpr posX, MeqExpr posY, MeqExpr posZ, itsName (name) {} -} +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqStation.h b/CEP/BB/BBSKernel/src/MNS/MeqStation.h index e161fc3122e..f984aa574b9 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqStation.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqStation.h @@ -30,7 +30,10 @@ #include <BBS/MNS/MeqExpr.h> #include <Common/lofar_string.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // \ingroup BBS // \addtogroup MNS @@ -66,6 +69,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/MeqTabular.cc b/CEP/BB/BBSKernel/src/MNS/MeqTabular.cc index bccfa4676dc..a0a294f4ad2 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqTabular.cc +++ b/CEP/BB/BBSKernel/src/MNS/MeqTabular.cc @@ -36,6 +36,9 @@ using namespace casa; namespace LOFAR { +namespace BBS +{ + MeqTabular::MeqTabular (const ParmDB::ParmValue& pvalue) : MeqFunklet (pvalue) { @@ -236,4 +239,6 @@ namespace LOFAR { return getResult (request, nrpert, pertInx); } -} + +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/MNS/MeqTabular.h b/CEP/BB/BBSKernel/src/MNS/MeqTabular.h index 64fb8a862ac..d26d2bb3f8a 100644 --- a/CEP/BB/BBSKernel/src/MNS/MeqTabular.h +++ b/CEP/BB/BBSKernel/src/MNS/MeqTabular.h @@ -31,7 +31,9 @@ namespace LOFAR { - +namespace BBS +{ + // \ingroup BBS // \addtogroup MNS // @{ @@ -64,6 +66,7 @@ namespace LOFAR // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MNS/Pool.h b/CEP/BB/BBSKernel/src/MNS/Pool.h index 859b1bb8abf..a28b3632b0b 100644 --- a/CEP/BB/BBSKernel/src/MNS/Pool.h +++ b/CEP/BB/BBSKernel/src/MNS/Pool.h @@ -4,7 +4,10 @@ #include <assert.h> #include <stdlib.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ // The Pool class is a very fast, stack-based allocator where objects can // be temporarily stored that would otherwise be deleted and allocated again. @@ -51,6 +54,7 @@ template <class T> class Pool { T *top; }; -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/MSDataArray.h b/CEP/BB/BBSKernel/src/MSDataArray.h index 4ad670a3ff0..b2bd4473ae7 100644 --- a/CEP/BB/BBSKernel/src/MSDataArray.h +++ b/CEP/BB/BBSKernel/src/MSDataArray.h @@ -29,8 +29,11 @@ //# Includes -namespace LOFAR { - +namespace LOFAR +{ +namespace BBS +{ + // \ingroup BBS // @{ @@ -56,6 +59,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/ParmData.cc b/CEP/BB/BBSKernel/src/ParmData.cc index 325866c647f..8555ed51778 100644 --- a/CEP/BB/BBSKernel/src/ParmData.cc +++ b/CEP/BB/BBSKernel/src/ParmData.cc @@ -27,7 +27,11 @@ #include <Common/VectorUtil.h> #include <Common/LofarLogger.h> -namespace LOFAR { +namespace LOFAR +{ +namespace BBS +{ + using LOFAR::operator<<; ParmData::ParmData() : itsDBSeqNr (-1), @@ -237,4 +241,6 @@ namespace LOFAR { os << ' ' << itsDomains[i] << " [" << itsDomainIndices[i] << ']' << endl; } } -} + +} // namespace BBS +} // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/ParmData.h b/CEP/BB/BBSKernel/src/ParmData.h index b634095d82d..1de1de7b2ca 100644 --- a/CEP/BB/BBSKernel/src/ParmData.h +++ b/CEP/BB/BBSKernel/src/ParmData.h @@ -35,13 +35,16 @@ namespace LOFAR { -// \addtogroup BBS -// @{ - //# Forward Declarations. class BlobOStream; class BlobIStream; +namespace BBS +{ + +// \addtogroup BBS +// @{ + class ParmData { public: @@ -187,6 +190,7 @@ private: // @} -} +} // namespace BBS +} // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/ParmWriter.cc b/CEP/BB/BBSKernel/src/ParmWriter.cc index 010e55a6392..ac180f6fc2e 100644 --- a/CEP/BB/BBSKernel/src/ParmWriter.cc +++ b/CEP/BB/BBSKernel/src/ParmWriter.cc @@ -37,6 +37,9 @@ using namespace std; namespace LOFAR { +namespace BBS +{ + ParmWriter::ParmWriter() {} @@ -115,4 +118,5 @@ void ParmWriter::setCoeff (ParmDB::ParmValueRep& pval, const MeqMatrix& coeff) } } +} // namespace BBS } // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/ParmWriter.h b/CEP/BB/BBSKernel/src/ParmWriter.h index 2112fb05f57..2b249bd2351 100644 --- a/CEP/BB/BBSKernel/src/ParmWriter.h +++ b/CEP/BB/BBSKernel/src/ParmWriter.h @@ -31,17 +31,29 @@ //# Includes #include <Common/lofar_map.h> +//# Forward Declarations namespace LOFAR -{ - // \addtogroup BBS - // @{ - //# Forward Declarations - class ParmDataInfo; - class MeqMatrix; - namespace ParmDB { +{ + namespace ParmDB + { class ParmValueRep; } + namespace BBS + { + class ParmDataInfo; + class MeqMatrix; + } +} + + +namespace LOFAR +{ +namespace BBS +{ + + // \addtogroup BBS + // @{ // Description of class. class ParmWriter @@ -62,6 +74,7 @@ namespace LOFAR }; // @} +} // namespace BBS } // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/Prediffer.cc b/CEP/BB/BBSKernel/src/Prediffer.cc index d399931c13c..ac4ae88c24e 100644 --- a/CEP/BB/BBSKernel/src/Prediffer.cc +++ b/CEP/BB/BBSKernel/src/Prediffer.cc @@ -116,6 +116,8 @@ using namespace casa; namespace LOFAR { +namespace BBS +{ Prediffer::Prediffer(const string& msName, const ParmDB::ParmDBMeta& meqPdm, @@ -2203,4 +2205,5 @@ void Prediffer::showSettings() const cout << endl; } +} // namespace BBS } // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/Prediffer.h b/CEP/BB/BBSKernel/src/Prediffer.h index 18a2c38c8df..6d2f86a7fc6 100644 --- a/CEP/BB/BBSKernel/src/Prediffer.h +++ b/CEP/BB/BBSKernel/src/Prediffer.h @@ -62,6 +62,8 @@ namespace casa { namespace LOFAR { +namespace BBS +{ // \addtogroup BBS // @{ @@ -438,6 +440,7 @@ private: // @} +} // namespace BBS } // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/Quality.cc b/CEP/BB/BBSKernel/src/Quality.cc index 1ef85acf2a5..0e1d2f8812d 100644 --- a/CEP/BB/BBSKernel/src/Quality.cc +++ b/CEP/BB/BBSKernel/src/Quality.cc @@ -26,6 +26,8 @@ namespace LOFAR { +namespace BBS +{ Quality::Quality() { @@ -51,4 +53,5 @@ void Quality::show(ostream& os) const os << "itsChi : " << itsChi << endl; } +} // namespace BBS } // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/Quality.h b/CEP/BB/BBSKernel/src/Quality.h index c6398dd5df7..fb5281387c1 100644 --- a/CEP/BB/BBSKernel/src/Quality.h +++ b/CEP/BB/BBSKernel/src/Quality.h @@ -31,6 +31,8 @@ namespace LOFAR { +namespace BBS +{ // \addtogroup BBS // @{ @@ -62,6 +64,7 @@ inline ostream& operator<< (ostream& os, const Quality& qual) // @} +} // namespace BBS } // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/SolveProp.h b/CEP/BB/BBSKernel/src/SolveProp.h index 3875b0478b1..365315b7a22 100644 --- a/CEP/BB/BBSKernel/src/SolveProp.h +++ b/CEP/BB/BBSKernel/src/SolveProp.h @@ -32,6 +32,8 @@ namespace LOFAR { +namespace BBS +{ // \addtogroup BBS // @{ @@ -118,6 +120,7 @@ private: // @} +} // namespace BBS } // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/Solver.cc b/CEP/BB/BBSKernel/src/Solver.cc index 7b87ef4bd10..729eb4566b8 100644 --- a/CEP/BB/BBSKernel/src/Solver.cc +++ b/CEP/BB/BBSKernel/src/Solver.cc @@ -42,6 +42,9 @@ using namespace casa; namespace LOFAR { +namespace BBS +{ +using LOFAR::operator<<; Solver::Solver () : itsDoSet (true) @@ -58,7 +61,7 @@ void Solver::solve (bool useSVD) { LOG_INFO_STR( "solve using file "); ASSERT (!itsDoSet); - BBSTest::ScopedTimer timer("S:solver"); + //BBSTest::ScopedTimer timer("S:solver"); vector<ParmData>& globalParms = itsParmInfo.parms(); for (uint i=0; i<itsFitters.size(); ++i) { FitterData& fitObj = itsFitters[i]; @@ -322,10 +325,12 @@ void Solver::show (ostream& os) } os << "Solver ParmInfo: " << endl; itsParmInfo.show (os); + os << "Solver Fitter Values:" << endl; for (uint i=0; i<itsFitters.size(); ++i) { os << ' ' << itsFitters[i].solvableValues << endl; } + os << "Solver PredInfo:" << endl; for (uint i=0; i<itsPredInfo.size(); ++i) { os << " sdindices " << itsPredInfo[i].solveDomainIndices << endl; @@ -337,6 +342,7 @@ void Solver::show (ostream& os) } } +} // namespace BBS } // namespace LOFAR //# Instantiate the makeNorm template. diff --git a/CEP/BB/BBSKernel/src/Solver.h b/CEP/BB/BBSKernel/src/Solver.h index cb0f515215a..eb8edda60b4 100644 --- a/CEP/BB/BBSKernel/src/Solver.h +++ b/CEP/BB/BBSKernel/src/Solver.h @@ -37,6 +37,8 @@ namespace LOFAR { +namespace BBS +{ // \addtogroup BBS // @{ @@ -113,10 +115,11 @@ private: { casa::LSQFit fitter; Quality quality; - vector<double> solvableValues; + std::vector<double> solvableValues; int nused; int nflagged; }; + struct PredifferInfo { vector<int> solveDomainIndices; @@ -132,6 +135,7 @@ private: // @} +} // namespace BBS } // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/StepProp.cc b/CEP/BB/BBSKernel/src/StepProp.cc index 0b4aadb8f2a..2eef8595322 100644 --- a/CEP/BB/BBSKernel/src/StepProp.cc +++ b/CEP/BB/BBSKernel/src/StepProp.cc @@ -27,6 +27,8 @@ using namespace casa; namespace LOFAR { +namespace BBS +{ // \addtogroup BBS // @{ @@ -124,4 +126,5 @@ void StepProp::expandPatterns (const vector<string>& antNames) const } } +} // namespace BBS } // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/StepProp.h b/CEP/BB/BBSKernel/src/StepProp.h index 2f06b145b4a..9e0c7d5af78 100644 --- a/CEP/BB/BBSKernel/src/StepProp.h +++ b/CEP/BB/BBSKernel/src/StepProp.h @@ -33,6 +33,8 @@ namespace LOFAR { +namespace BBS +{ // \addtogroup BBS // @{ @@ -139,6 +141,7 @@ private: // @} +} // namespace BBS } // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/src/StrategyProp.cc b/CEP/BB/BBSKernel/src/StrategyProp.cc index 2d69832a938..83efc149f3e 100644 --- a/CEP/BB/BBSKernel/src/StrategyProp.cc +++ b/CEP/BB/BBSKernel/src/StrategyProp.cc @@ -27,6 +27,8 @@ using namespace casa; namespace LOFAR { +namespace BBS +{ // \addtogroup BBS // @{ @@ -61,4 +63,5 @@ void StrategyProp::expandPatterns (const vector<string>& antNames) const } } +} // namespace BBS } // namespace LOFAR diff --git a/CEP/BB/BBSKernel/src/StrategyProp.h b/CEP/BB/BBSKernel/src/StrategyProp.h index d12fa87be77..7c287617bc0 100644 --- a/CEP/BB/BBSKernel/src/StrategyProp.h +++ b/CEP/BB/BBSKernel/src/StrategyProp.h @@ -33,6 +33,8 @@ namespace LOFAR { +namespace BBS +{ // \addtogroup BBS // @{ @@ -95,6 +97,7 @@ private: // @} +} // namespace BBS } // namespace LOFAR #endif diff --git a/CEP/BB/BBSKernel/test/tBandpass.run b/CEP/BB/BBSKernel/test/tBandpass.run index 4ae03e2ba7a..34068374675 100755 --- a/CEP/BB/BBSKernel/test/tBandpass.run +++ b/CEP/BB/BBSKernel/test/tBandpass.run @@ -124,11 +124,11 @@ echo "---------------- END $1 ----------------" return $RETURN_VALUE } -run_subtest clean_constant && -run_subtest clean_polc && -run_subtest clean_band_constant && -run_subtest noise_constant && -run_subtest noise_polc && -run_subtest noise_band_constant +run_subtest clean_constant > tBandpass_tmp.log 2>&1 && +run_subtest clean_polc > tBandpass_tmp.log 2>&1 && +run_subtest clean_band_constant > tBandpass_tmp.log 2>&1 && +run_subtest noise_constant > tBandpass_tmp.log 2>&1 && +run_subtest noise_polc > tBandpass_tmp.log 2>&1 && +run_subtest noise_band_constant > tBandpass_tmp.log 2>&1 exit $? diff --git a/CEP/BB/BBSKernel/test/tBandpass.sh b/CEP/BB/BBSKernel/test/tBandpass.sh index 6d17a6a92d6..83a3b0bf031 100755 --- a/CEP/BB/BBSKernel/test/tBandpass.sh +++ b/CEP/BB/BBSKernel/test/tBandpass.sh @@ -1,2 +1,2 @@ #!/bin/sh -$lofar_sharedir/runtest.sh tBandpass > tBandpass.log 2>&1 +$lofar_sharedir/runtest.sh tBandpass > /dev/null 2>&1 diff --git a/CEP/BB/BBSKernel/test/tCorrect.cc b/CEP/BB/BBSKernel/test/tCorrect.cc index 4905d04a47a..025f354d712 100644 --- a/CEP/BB/BBSKernel/test/tCorrect.cc +++ b/CEP/BB/BBSKernel/test/tCorrect.cc @@ -29,6 +29,7 @@ #include <stdexcept> using namespace LOFAR; +using namespace LOFAR::BBS; using namespace std; using namespace casa; diff --git a/CEP/BB/BBSKernel/test/tFillRow.cc b/CEP/BB/BBSKernel/test/tFillRow.cc index ee0424aec54..c36bb1d344e 100644 --- a/CEP/BB/BBSKernel/test/tFillRow.cc +++ b/CEP/BB/BBSKernel/test/tFillRow.cc @@ -27,6 +27,7 @@ using namespace LOFAR; +using namespace LOFAR::BBS; using namespace std; void doTest (int nx, int ny) diff --git a/CEP/BB/BBSKernel/test/tMSData.cc b/CEP/BB/BBSKernel/test/tMSData.cc index 05f63b6bc34..286be9757d8 100644 --- a/CEP/BB/BBSKernel/test/tMSData.cc +++ b/CEP/BB/BBSKernel/test/tMSData.cc @@ -39,6 +39,7 @@ #include <sstream> using namespace LOFAR; +using namespace LOFAR::BBS; using namespace casa; using namespace std; diff --git a/CEP/BB/BBSKernel/test/tMeqParm.cc b/CEP/BB/BBSKernel/test/tMeqParm.cc index 4e7c7db65ba..fa0ecbbf705 100644 --- a/CEP/BB/BBSKernel/test/tMeqParm.cc +++ b/CEP/BB/BBSKernel/test/tMeqParm.cc @@ -30,6 +30,7 @@ #include <Common/LofarLogger.h> using namespace LOFAR; +using namespace LOFAR::BBS; using namespace casa; diff --git a/CEP/BB/BBSKernel/test/tMeqPolc.cc b/CEP/BB/BBSKernel/test/tMeqPolc.cc index 5aa63d9e39d..aca77884234 100644 --- a/CEP/BB/BBSKernel/test/tMeqPolc.cc +++ b/CEP/BB/BBSKernel/test/tMeqPolc.cc @@ -29,6 +29,7 @@ #include <Common/LofarLogger.h> using namespace LOFAR; +using namespace LOFAR::BBS; using namespace casa; diff --git a/CEP/BB/BBSKernel/test/tMeqPolcLog.cc b/CEP/BB/BBSKernel/test/tMeqPolcLog.cc index 847f4a76a1e..d98f6b3b36b 100644 --- a/CEP/BB/BBSKernel/test/tMeqPolcLog.cc +++ b/CEP/BB/BBSKernel/test/tMeqPolcLog.cc @@ -29,6 +29,7 @@ #include <Common/LofarLogger.h> using namespace LOFAR; +using namespace LOFAR::BBS; using namespace casa; diff --git a/CEP/BB/BBSKernel/test/tMeqTabular.cc b/CEP/BB/BBSKernel/test/tMeqTabular.cc index 76a372de082..bab732fab08 100644 --- a/CEP/BB/BBSKernel/test/tMeqTabular.cc +++ b/CEP/BB/BBSKernel/test/tMeqTabular.cc @@ -29,6 +29,7 @@ #include <Common/LofarLogger.h> using namespace LOFAR; +using namespace LOFAR::BBS; using namespace casa; #define EPSILON 1.0e-12 diff --git a/CEP/BB/BBSKernel/test/tParmMerge.cc b/CEP/BB/BBSKernel/test/tParmMerge.cc index d091c244855..7f496a90a1c 100644 --- a/CEP/BB/BBSKernel/test/tParmMerge.cc +++ b/CEP/BB/BBSKernel/test/tParmMerge.cc @@ -31,6 +31,7 @@ #include <Blob/BlobIStream.h> using namespace LOFAR; +using namespace LOFAR::BBS; using namespace std; @@ -81,7 +82,7 @@ void doIt1sd (const ParmDB::ParmDBMeta& pdm) { int nr = iter->second.initDomain (localSolveDomains, nrpert, nrscids); if (nr > 0) { - parmdata.parms().push_back (ParmData(iter->second.getName(), + parmdata.parms().push_back (LOFAR::BBS::ParmData(iter->second.getName(), iter->second.getParmDBSeqNr(), iter->second.getFunklets())); } @@ -125,7 +126,7 @@ void doIt4sd (const ParmDB::ParmDBMeta& pdm) { int nr = iter->second.initDomain (localSolveDomains, nrpert, nrscids); if (nr > 0) { - parmdata.parms().push_back (ParmData(iter->second.getName(), + parmdata.parms().push_back (LOFAR::BBS::ParmData(iter->second.getName(), iter->second.getParmDBSeqNr(), iter->second.getFunklets())); } @@ -174,7 +175,7 @@ void doIt4sd2pd (const ParmDB::ParmDBMeta& pdm) { int nr = iter->second.initDomain (localSolveDomains1, nrpert1, nrscids1); if (nr > 0) { - parmdata1.parms().push_back (ParmData(iter->second.getName(), + parmdata1.parms().push_back (LOFAR::BBS::ParmData(iter->second.getName(), iter->second.getParmDBSeqNr(), iter->second.getFunklets())); } @@ -205,7 +206,7 @@ void doIt4sd2pd (const ParmDB::ParmDBMeta& pdm) { int nr = iter->second.initDomain (localSolveDomains2, nrpert2, nrscids2); if (nr > 0) { - parmdata2.parms().push_back (ParmData(iter->second.getName(), + parmdata2.parms().push_back (LOFAR::BBS::ParmData(iter->second.getName(), iter->second.getParmDBSeqNr(), iter->second.getFunklets())); } diff --git a/CEP/BB/BBSKernel/test/tPerturbed.cc b/CEP/BB/BBSKernel/test/tPerturbed.cc index 4462c4f9e68..cf5e4d3a6e2 100644 --- a/CEP/BB/BBSKernel/test/tPerturbed.cc +++ b/CEP/BB/BBSKernel/test/tPerturbed.cc @@ -34,6 +34,7 @@ using namespace LOFAR; +using namespace LOFAR::BBS; using namespace std; // Note: diff --git a/CEP/BB/BBSKernel/test/tPredSolv.cc b/CEP/BB/BBSKernel/test/tPredSolv.cc index ce30640d5e9..c0ba52aef95 100644 --- a/CEP/BB/BBSKernel/test/tPredSolv.cc +++ b/CEP/BB/BBSKernel/test/tPredSolv.cc @@ -37,6 +37,7 @@ using namespace LOFAR; +using namespace LOFAR::BBS; using namespace std; // Note: diff --git a/CEP/BB/BBSKernel/test/tPredict.cc b/CEP/BB/BBSKernel/test/tPredict.cc index 012cdab9fc4..15cb07e4c09 100644 --- a/CEP/BB/BBSKernel/test/tPredict.cc +++ b/CEP/BB/BBSKernel/test/tPredict.cc @@ -29,6 +29,7 @@ #include <stdexcept> using namespace LOFAR; +using namespace LOFAR::BBS; using namespace std; using namespace casa; diff --git a/CEP/BB/BBSKernel/test/tSubtract.cc b/CEP/BB/BBSKernel/test/tSubtract.cc index 9732deec0d7..6d4d919b87e 100644 --- a/CEP/BB/BBSKernel/test/tSubtract.cc +++ b/CEP/BB/BBSKernel/test/tSubtract.cc @@ -29,6 +29,7 @@ #include <stdexcept> using namespace LOFAR; +using namespace LOFAR::BBS; using namespace std; using namespace casa; -- GitLab