diff --git a/.gitattributes b/.gitattributes index ff8723cac84f017c79f1174aa0e92108aab9e622..cae69d4d46783cb24490fc9d41b8f12719404b60 100644 --- a/.gitattributes +++ b/.gitattributes @@ -251,7 +251,6 @@ LCS/pyparameterset/bootstrap -text LCS/pytools/bootstrap -text MAC/APL/APLCommon/Makefile.am -text svneol=native#application/octet-stream MAC/APL/APLCommon/bootstrap -text svneol=native#application/octet-stream -MAC/APL/APLCommon/configure.in -text svneol=native#application/octet-stream MAC/APL/APLCommon/src/Makefile.am -text svneol=native#application/octet-stream MAC/APL/APLCommon/src/StartDaemon_Protocol.prot -text svneol=native#application/octet-stream MAC/APL/CEPCU/src/ApplController/CMakeLists.txt -text @@ -278,7 +277,6 @@ MAC/APL/PAC/MatlabCal/test/frequencies.dat -text MAC/APL/PAC/MatlabCal/test/srcpos.dat -text MAC/APL/PIC/MIS/Makefile.am -text svneol=native#application/octet-stream MAC/APL/PIC/MIS/bootstrap -text svneol=native#application/octet-stream -MAC/APL/PIC/MIS/configure.in -text svneol=native#application/octet-stream MAC/APL/PIC/MIS/src/MIS_Protocol.prot -text svneol=native#application/octet-stream MAC/APL/PIC/MIS/src/Makefile.am -text svneol=native#application/octet-stream MAC/APL/PIC/MIS/test/MACall.tse.prot -text svneol=native#application/octet-stream @@ -376,7 +374,6 @@ MAC/GCF/RTDB/test/readScript.ctl -text MAC/GCF/RTDB/test/writeScript.ctl -text MAC/GCF/TM/Makefile.am -text svneol=native#application/octet-stream MAC/GCF/TM/bootstrap -text svneol=native#application/octet-stream -MAC/GCF/TM/configure.in -text svneol=native#application/octet-stream MAC/GCF/TM/src/Makefile.am -text svneol=native#application/octet-stream MAC/GCF/TM/test/Echo_Protocol.prot -text svneol=native#application/octet-stream MAC/GCF/TM/test/tGCFTask1.cc -text @@ -408,7 +405,6 @@ MAC/GCF/_PAL/SAL/test/Echo_Protocol.prot -text svneol=native#application/octet-s MAC/GCF/_PAL/SAL/test/Makefile.am -text svneol=native#application/octet-stream MAC/GCF/_PAL/SAL/test/sal-test.conf.in -text svneol=native#application/octet-stream MAC/GCF/_PAL/bootstrap -text svneol=native#application/octet-stream -MAC/GCF/_PAL/configure.in -text svneol=native#application/octet-stream MAC/GCF/_PALlight/CEP-PMLlight/Makefile.am -text svneol=native#application/octet-stream MAC/GCF/_PALlight/CEP-PMLlight/src/Makefile.am -text svneol=native#application/octet-stream MAC/GCF/_PALlight/Makefile.am -text svneol=native#application/octet-stream diff --git a/.gitignore b/.gitignore index 5765184c961b4ff7c5b86a81dd6f7938b28b2d5b..45d71d07043c8add1348564c81dd349fb41625bf 100644 --- a/.gitignore +++ b/.gitignore @@ -61,9 +61,6 @@ JAVA/MAC/jRSP/nbproject/private LCS/ACC/ALC/Makefile.common LCS/ACC/ALC/autoconf_share LCS/ACC/ALC/lofarconf -LCS/ACC/APS/Makefile.common -LCS/ACC/APS/autoconf_share -LCS/ACC/APS/lofarconf LCS/ACC/PLC/Makefile.common LCS/ACC/PLC/autoconf_share LCS/ACC/PLC/lofarconf @@ -233,6 +230,9 @@ MAC/Test/TestHarness/TSE/lofarconf RTCP/CNProc/Makefile.common RTCP/CNProc/autoconf_share RTCP/CNProc/lofarconf +RTCP/FCNP/Makefile.common +RTCP/FCNP/autoconf_share +RTCP/FCNP/lofarconf RTCP/IONProc/Makefile.common RTCP/IONProc/autoconf_share RTCP/IONProc/lofarconf diff --git a/CEP/Calibration/BBSControl/configure.in b/CEP/Calibration/BBSControl/configure.in index f12f5c40825ff46fe2482fc4a0f99af761e51354..971d05ea148238b4d206d1b95e4729a2c0d992c5 100644 --- a/CEP/Calibration/BBSControl/configure.in +++ b/CEP/Calibration/BBSControl/configure.in @@ -33,7 +33,6 @@ lofar_MPI lofar_INTERNAL(LCS/Common,Common,,1,Common/LofarTypes.h) lofar_INTERNAL(LCS/Blob,Blob,,1,Blob/BlobHeader.h) lofar_INTERNAL(LCS/Transport,Transport,,1,Transport/TransportHolder.h) -lofar_INTERNAL(LCS/ACC/APS,APS,,1,APS/ParameterSet.h) lofar_INTERNAL(LCS/ACC/PLC,PLC,,1,PLC/ProcessControl.h) lofar_INTERNAL(CEP/Calibration/BBSKernel,BBSKernel,,1,BBSKernel/Equator.h) diff --git a/CEP/Calibration/BBSControl/include/BBSControl/Command.h b/CEP/Calibration/BBSControl/include/BBSControl/Command.h index bc589de6b7e771aaa55d646025481e00cc577fc1..5add24cc4de05b461f7dcd92c87d41f7c5ff6b5e 100644 --- a/CEP/Calibration/BBSControl/include/BBSControl/Command.h +++ b/CEP/Calibration/BBSControl/include/BBSControl/Command.h @@ -33,7 +33,7 @@ namespace LOFAR { //# Forward declarations - namespace ACC { namespace APS { class ParameterSet; } } + class ParameterSet; namespace BBS { @@ -56,10 +56,10 @@ namespace LOFAR virtual const string& type() const = 0; // Write the contents of \c *this into the ParameterSet \a ps. - virtual void write(ACC::APS::ParameterSet& ps) const = 0; + virtual void write(ParameterSet& ps) const = 0; // Read the contents from the ParameterSet \a ps into \c *this. - virtual void read(const ACC::APS::ParameterSet& ps) = 0; + virtual void read(const ParameterSet& ps) = 0; // Print the contents of \c *this in human readable form into the output // stream \a os. @@ -77,12 +77,12 @@ namespace LOFAR friend ostream& operator<<(ostream&, const Command&); // Write the contents of a Command to a ParameterSet. - friend ACC::APS::ParameterSet& - operator<<(ACC::APS::ParameterSet&, const Command&); + friend ParameterSet& + operator<<(ParameterSet&, const Command&); // Read the contents of a ParameterSet into a Command. - friend ACC::APS::ParameterSet& - operator>>(ACC::APS::ParameterSet&, Command&); + friend ParameterSet& + operator>>(ParameterSet&, Command&); }; // Factory that can be used to generate new Command objects. diff --git a/CEP/Calibration/BBSControl/include/BBSControl/CommandQueue.h b/CEP/Calibration/BBSControl/include/BBSControl/CommandQueue.h index 90ba1ee7babe59c95364c731065a4a12d2dac104..6455597e1ef1deddf5e6d162d2f18f6bfb9ebd36 100644 --- a/CEP/Calibration/BBSControl/include/BBSControl/CommandQueue.h +++ b/CEP/Calibration/BBSControl/include/BBSControl/CommandQueue.h @@ -53,7 +53,7 @@ namespace LOFAR { //# Forward Declarations - namespace ACC { namespace APS { class ParameterSet; } } + class ParameterSet; namespace BBS { @@ -254,7 +254,7 @@ namespace LOFAR // Constructor for select-like queries. The result is returned as a // string. - ExecQuery(const string& query, ACC::APS::ParameterSet& result); + ExecQuery(const string& query, ParameterSet& result); // This method will be invoked by the perform() method of your // pqxx::connection class to execute the query stored in itsQuery. The @@ -273,13 +273,13 @@ namespace LOFAR private: // Empty ParameterSet, used to initialize itsResult properly, when the // one-argument constructor is used. - static ACC::APS::ParameterSet emptyResult; + static ParameterSet emptyResult; // String containing the query to be executed. const string itsQuery; // Reference to the ParameterSet that will hold the query result. - ACC::APS::ParameterSet& itsResult; + ParameterSet& itsResult; // The result of the executed query must be stored internally, because // it will be written in operator() and will be read in on_commit(). @@ -291,7 +291,7 @@ namespace LOFAR // optional argument \a doAlwaysPrefix indicates whether keys should // always be prefixed with \c _row(<row-nr>) or not. By default, when // only one row is returned, the prefix \c _row(0). is dropped. - ACC::APS::ParameterSet execQuery(const string& query, + ParameterSet execQuery(const string& query, bool doAlwaysPrefix = false) const; // Connection to the PostgreSQL database. The pqxx::connection object diff --git a/CEP/Calibration/BBSControl/include/BBSControl/CorrectStep.h b/CEP/Calibration/BBSControl/include/BBSControl/CorrectStep.h index eb80218a551227b20d48289ca4ec7327db383d1d..db7319bedc20a0a6b8b21f6017142b6e86af8a1b 100644 --- a/CEP/Calibration/BBSControl/include/BBSControl/CorrectStep.h +++ b/CEP/Calibration/BBSControl/include/BBSControl/CorrectStep.h @@ -49,7 +49,7 @@ namespace LOFAR } CorrectStep(const string& name, - const ACC::APS::ParameterSet& parSet, + const ParameterSet& parSet, const Step* parent); // Accept a CommandVisitor that wants to process \c *this. diff --git a/CEP/Calibration/BBSControl/include/BBSControl/FinalizeCommand.h b/CEP/Calibration/BBSControl/include/BBSControl/FinalizeCommand.h index 167ff53b04db64b1c53cb50473db6a4ed03de8ff..ffa0f6bd76d63645501655e8d2e1c7db6b6068e7 100644 --- a/CEP/Calibration/BBSControl/include/BBSControl/FinalizeCommand.h +++ b/CEP/Calibration/BBSControl/include/BBSControl/FinalizeCommand.h @@ -48,10 +48,10 @@ namespace LOFAR virtual const string& type() const; // Write the contents of \c *this into the ParameterSet \a ps. - virtual void write(ACC::APS::ParameterSet& ps) const; + virtual void write(ParameterSet& ps) const; // Read the contents from the ParameterSet \a ps into \c *this. - virtual void read(const ACC::APS::ParameterSet& ps); + virtual void read(const ParameterSet& ps); // Print the contents of \c *this in human readable form into the output // stream \a os. diff --git a/CEP/Calibration/BBSControl/include/BBSControl/InitializeCommand.h b/CEP/Calibration/BBSControl/include/BBSControl/InitializeCommand.h index 4719833fbde811855808212f7b862da32cfdaf8c..70d2a5d8da2a0038d54b5ae65c94cda0aafcd347 100644 --- a/CEP/Calibration/BBSControl/include/BBSControl/InitializeCommand.h +++ b/CEP/Calibration/BBSControl/include/BBSControl/InitializeCommand.h @@ -50,10 +50,10 @@ namespace LOFAR virtual const string& type() const; // Write the contents of \c *this into the ParameterSet \a ps. - virtual void write(ACC::APS::ParameterSet& ps) const; + virtual void write(ParameterSet& ps) const; // Read the contents from the ParameterSet \a ps into \c *this. - virtual void read(const ACC::APS::ParameterSet& ps); + virtual void read(const ParameterSet& ps); // Print the contents of \c *this in human readable form into the output // stream \a os. diff --git a/CEP/Calibration/BBSControl/include/BBSControl/MultiStep.h b/CEP/Calibration/BBSControl/include/BBSControl/MultiStep.h index 3df417ee88d1a2ac5495fd84a179ca9c59dd5c96..9e461b9c0341103f7fc9ee4dc132ce79004ea2a6 100644 --- a/CEP/Calibration/BBSControl/include/BBSControl/MultiStep.h +++ b/CEP/Calibration/BBSControl/include/BBSControl/MultiStep.h @@ -48,7 +48,7 @@ namespace LOFAR // object being created. The third argument is used to pass a // backreference to the parent Step object. MultiStep(const string& name, - const ACC::APS::ParameterSet& parset, + const ParameterSet& parset, const Step* parent); // Default constructor. Construct an empty MultiStep object and make @@ -72,18 +72,18 @@ namespace LOFAR private: // Write the contents of \c *this into the ParameterSet \a ps. - virtual void write(ACC::APS::ParameterSet& ps) const; + virtual void write(ParameterSet& ps) const; // Read the contents from the ParameterSet \a ps into \c *this. - virtual void read(const ACC::APS::ParameterSet& ps); + virtual void read(const ParameterSet& ps); // Write the individual Step objects in \a itsSteps, which make up // this MultiStep, to the ParameterSet \a ps. - void writeSteps(ACC::APS::ParameterSet& ps) const; + void writeSteps(ParameterSet& ps) const; // Read the individual Step objects, which make up this MultiStep, // from the ParameterSet \a ps and store them in \a itsSteps. - void readSteps(const ACC::APS::ParameterSet& ps); + void readSteps(const ParameterSet& ps); // Implementation of getAllSteps() for MultiStep. It retrieves all // steps by calling getAllSteps() on all steps that comprise this diff --git a/CEP/Calibration/BBSControl/include/BBSControl/NextChunkCommand.h b/CEP/Calibration/BBSControl/include/BBSControl/NextChunkCommand.h index cdd77e5c432e09eb1d30e56e41171aa299d2b447..c3b3e4400c13a1a0be9c775a71fa104be9779782 100644 --- a/CEP/Calibration/BBSControl/include/BBSControl/NextChunkCommand.h +++ b/CEP/Calibration/BBSControl/include/BBSControl/NextChunkCommand.h @@ -67,10 +67,10 @@ namespace LOFAR virtual const string& type() const; // Write the contents of \c *this into the ParameterSet \a ps. - virtual void write(ACC::APS::ParameterSet& ps) const; + virtual void write(ParameterSet& ps) const; // Read the contents from the ParameterSet \a ps into \c *this. - virtual void read(const ACC::APS::ParameterSet& ps); + virtual void read(const ParameterSet& ps); // Print the contents of \c *this in human readable form into the output // stream \a os. diff --git a/CEP/Calibration/BBSControl/include/BBSControl/NoiseStep.h b/CEP/Calibration/BBSControl/include/BBSControl/NoiseStep.h index 055416904e7ac88ba3496f09980bc02bf27b6276..2bce1cd8ea221b0044c7db6a562209b3681e70c7 100644 --- a/CEP/Calibration/BBSControl/include/BBSControl/NoiseStep.h +++ b/CEP/Calibration/BBSControl/include/BBSControl/NoiseStep.h @@ -49,7 +49,7 @@ public: // parset, by searching for keys <tt>Step.\a name</tt>. \a parent // is a pointer to the Step object that is the parent of \c *this. NoiseStep(const string& name, - const ACC::APS::ParameterSet& parset, + const ParameterSet& parset, const Step* parent); virtual ~NoiseStep(); @@ -79,10 +79,10 @@ public: private: // Write the contents of \c *this into the ParameterSet \a ps. - virtual void write(ACC::APS::ParameterSet& ps) const; + virtual void write(ParameterSet& ps) const; // Read the contents from the ParameterSet \a ps into \c *this. - virtual void read(const ACC::APS::ParameterSet& ps); + virtual void read(const ParameterSet& ps); double itsMean, itsSigma; // uint32 itsSeed; diff --git a/CEP/Calibration/BBSControl/include/BBSControl/PredictStep.h b/CEP/Calibration/BBSControl/include/BBSControl/PredictStep.h index b7dd849ddbb49b7c96149d8be24c5a3198317516..085ee1042fd6eb80dae04a1c7f76f56860938b8b 100644 --- a/CEP/Calibration/BBSControl/include/BBSControl/PredictStep.h +++ b/CEP/Calibration/BBSControl/include/BBSControl/PredictStep.h @@ -49,7 +49,7 @@ namespace LOFAR } PredictStep(const string& name, - const ACC::APS::ParameterSet& parSet, + const ParameterSet& parSet, const Step* parent); // Accept a CommandVisitor that wants to process \c *this. diff --git a/CEP/Calibration/BBSControl/include/BBSControl/RecoverCommand.h b/CEP/Calibration/BBSControl/include/BBSControl/RecoverCommand.h index 7fc96685a230366c9f87669b529edc7873e920f3..051b41bdf28f6a3312e7ef38cf50623c2dc6bf3d 100644 --- a/CEP/Calibration/BBSControl/include/BBSControl/RecoverCommand.h +++ b/CEP/Calibration/BBSControl/include/BBSControl/RecoverCommand.h @@ -39,10 +39,10 @@ namespace LOFAR virtual const string& type() const; // Write the contents of \c *this into the ParameterSet \a ps. - virtual void write(ACC::APS::ParameterSet& ps) const; + virtual void write(ParameterSet& ps) const; // Read the contents from the ParameterSet \a ps into \c *this. - virtual void read(const ACC::APS::ParameterSet& ps); + virtual void read(const ParameterSet& ps); // Print the contents of \c *this in human readable form into the output // stream \a os. diff --git a/CEP/Calibration/BBSControl/include/BBSControl/RefitStep.h b/CEP/Calibration/BBSControl/include/BBSControl/RefitStep.h index aa6300352ddb639ab40d65dd8f673df375b29abe..a0427446f6a7af0cead75a6d57b3a034fff96629 100644 --- a/CEP/Calibration/BBSControl/include/BBSControl/RefitStep.h +++ b/CEP/Calibration/BBSControl/include/BBSControl/RefitStep.h @@ -49,7 +49,7 @@ namespace LOFAR } RefitStep(const string& name, - const ACC::APS::ParameterSet& parSet, + const ParameterSet& parSet, const Step* parent); // Accept a CommandVisitor that wants to process \c *this. diff --git a/CEP/Calibration/BBSControl/include/BBSControl/ShiftStep.h b/CEP/Calibration/BBSControl/include/BBSControl/ShiftStep.h index e537493674e20e807165d4cfa5b86740a53e396b..708f9a88fcbf99d68de2bf35b68a245976322dae 100644 --- a/CEP/Calibration/BBSControl/include/BBSControl/ShiftStep.h +++ b/CEP/Calibration/BBSControl/include/BBSControl/ShiftStep.h @@ -49,7 +49,7 @@ namespace LOFAR } ShiftStep(const string& name, - const ACC::APS::ParameterSet& parSet, + const ParameterSet& parSet, const Step* parent); // Accept a CommandVisitor that wants to process \c *this. diff --git a/CEP/Calibration/BBSControl/include/BBSControl/SingleStep.h b/CEP/Calibration/BBSControl/include/BBSControl/SingleStep.h index 690be60d1cfb9c8dedf1d84cd6073bf74c629c2a..86ec82a58b3f3e95a8c0fd5a4558ba97df44b12d 100644 --- a/CEP/Calibration/BBSControl/include/BBSControl/SingleStep.h +++ b/CEP/Calibration/BBSControl/include/BBSControl/SingleStep.h @@ -66,17 +66,17 @@ namespace LOFAR // parset, by searching for keys <tt>Step.\a name</tt>. \a parent // is a pointer to the Step object that is the parent of \c *this. // SingleStep(const string& name, -// const ACC::APS::ParameterSet& parset, +// const ParameterSet& parset, // const Step* parent); SingleStep(const string& name, const Step* parent); // Write the contents of \c *this into the ParameterSet \a ps. - virtual void write(ACC::APS::ParameterSet& ps) const; + virtual void write(ParameterSet& ps) const; // Read the contents from the ParameterSet \a ps into \c *this, // overriding the default values, "inherited" from the parent step // object. - virtual void read(const ACC::APS::ParameterSet& ps); + virtual void read(const ParameterSet& ps); // Name of the column to write data to. string itsOutputColumn; diff --git a/CEP/Calibration/BBSControl/include/BBSControl/SolveStep.h b/CEP/Calibration/BBSControl/include/BBSControl/SolveStep.h index fd58abd38391d6b58159e54c6e1131618e671480..aa15a3b9d117a5498193a6628f289c58fa8efcec 100644 --- a/CEP/Calibration/BBSControl/include/BBSControl/SolveStep.h +++ b/CEP/Calibration/BBSControl/include/BBSControl/SolveStep.h @@ -52,7 +52,7 @@ namespace LOFAR // parset, by searching for keys <tt>Step.\a name</tt>. \a parent // is a pointer to the Step object that is the parent of \c *this. SolveStep(const string& name, - const ACC::APS::ParameterSet& parset, + const ParameterSet& parset, const Step* parent); virtual ~SolveStep(); @@ -83,10 +83,10 @@ namespace LOFAR private: // Write the contents of \c *this into the ParameterSet \a ps. - virtual void write(ACC::APS::ParameterSet& ps) const; + virtual void write(ParameterSet& ps) const; // Read the contents from the ParameterSet \a ps into \c *this. - virtual void read(const ACC::APS::ParameterSet& ps); + virtual void read(const ParameterSet& ps); vector<string> itsParms; ///< Names of the solvable parameters vector<string> itsExclParms; ///< Parameters excluded from solve diff --git a/CEP/Calibration/BBSControl/include/BBSControl/Step.h b/CEP/Calibration/BBSControl/include/BBSControl/Step.h index 7981f22b7f0f25a365f4df34d8cccd0e79786681..91210372b68584591c903013c6333c3a7ca7cca7 100644 --- a/CEP/Calibration/BBSControl/include/BBSControl/Step.h +++ b/CEP/Calibration/BBSControl/include/BBSControl/Step.h @@ -39,7 +39,7 @@ namespace LOFAR { //# Forward Declarations. - namespace ACC { namespace APS { class ParameterSet; } } + class ParameterSet; namespace BBS { @@ -92,7 +92,7 @@ namespace LOFAR // otherwise it is a SingleStep. The third, optional, argument is used // to pass a backreference to the parent Step object. static shared_ptr<Step> create(const string& name, - const ACC::APS::ParameterSet& parSet, + const ParameterSet& parSet, const Step* parent = 0); // Print the contents of \c *this in human readable form into the output @@ -123,12 +123,12 @@ namespace LOFAR // @} // Write the contents of \c *this into the ParameterSet \a ps. - virtual void write(ACC::APS::ParameterSet& ps) const; + virtual void write(ParameterSet& ps) const; // Read the contents from the ParameterSet \a ps into \c *this, // overriding the default values, "inherited" from the parent step // object. - virtual void read(const ACC::APS::ParameterSet& ps); + virtual void read(const ParameterSet& ps); protected: // Default constructor. Construct an empty Step object and make it a @@ -140,7 +140,7 @@ namespace LOFAR // object being created. The third argument is used to pass a // backreference to the parent Step object. // Step(const string& name, -// const ACC::APS::ParameterSet& parSet, +// const ParameterSet& parSet, // const Step* parent); Step(const string& name, const Step* parent); diff --git a/CEP/Calibration/BBSControl/include/BBSControl/Strategy.h b/CEP/Calibration/BBSControl/include/BBSControl/Strategy.h index 5af68632dc86d7aeac268f7a0447367f52b6a1d8..dc93cab1b3353c5b06ac107a928aed2d3abe66cc 100644 --- a/CEP/Calibration/BBSControl/include/BBSControl/Strategy.h +++ b/CEP/Calibration/BBSControl/include/BBSControl/Strategy.h @@ -37,7 +37,7 @@ namespace LOFAR { //# Forward declarations - namespace ACC { namespace APS { class ParameterSet; } } + class ParameterSet; namespace BBS { @@ -55,7 +55,7 @@ namespace LOFAR Strategy() {} // Create a solve strategy for the given work domain. - Strategy(const ACC::APS::ParameterSet& aParamSet); + Strategy(const ParameterSet& aParamSet); // Destructor. ~Strategy(); @@ -64,10 +64,10 @@ namespace LOFAR virtual const string& type() const; // Write the contents of \c *this into the ParameterSet \a ps. - virtual void write(ACC::APS::ParameterSet& ps) const; + virtual void write(ParameterSet& ps) const; // Read the contents from the ParameterSet \a ps into \c *this. - virtual void read(const ACC::APS::ParameterSet& ps); + virtual void read(const ParameterSet& ps); // Accept a CommandVisitor that wants to process \c *this. virtual void accept(CommandVisitor &visitor) const; @@ -100,10 +100,10 @@ namespace LOFAR private: // Read the Step objects from the parameter set \a ps and store them // in \a itsSteps. - bool readSteps(const ACC::APS::ParameterSet& ps); + bool readSteps(const ParameterSet& ps); // Write the Step objects in \a itsSteps to parameter set \a ps. - void writeSteps(ACC::APS::ParameterSet& ps) const; + void writeSteps(ParameterSet& ps) const; // Name of the Measurement Set string itsDataSet; diff --git a/CEP/Calibration/BBSControl/include/BBSControl/SubtractStep.h b/CEP/Calibration/BBSControl/include/BBSControl/SubtractStep.h index baf552967887e0bc4d564b1d036e582df6437aef..724320a9c2c728b9783caf6d860b7957ce09ebbe 100644 --- a/CEP/Calibration/BBSControl/include/BBSControl/SubtractStep.h +++ b/CEP/Calibration/BBSControl/include/BBSControl/SubtractStep.h @@ -47,7 +47,7 @@ namespace LOFAR SingleStep(parent) {} SubtractStep(const string& name, - const ACC::APS::ParameterSet& parSet, + const ParameterSet& parSet, const Step* parent); // Accept a CommandVisitor that wants to process \c *this. diff --git a/CEP/Calibration/BBSControl/include/BBSControl/SynchronizeCommand.h b/CEP/Calibration/BBSControl/include/BBSControl/SynchronizeCommand.h index 409b42cc93cb9d1a7c4637a7fccca2e73b992d8b..59fd46dbd90174a0e7a9115d001c1c0577618949 100644 --- a/CEP/Calibration/BBSControl/include/BBSControl/SynchronizeCommand.h +++ b/CEP/Calibration/BBSControl/include/BBSControl/SynchronizeCommand.h @@ -39,10 +39,10 @@ namespace LOFAR virtual const string& type() const; // Write the contents of \c *this into the ParameterSet \a ps. - virtual void write(ACC::APS::ParameterSet& ps) const; + virtual void write(ParameterSet& ps) const; // Read the contents from the ParameterSet \a ps into \c *this. - virtual void read(const ACC::APS::ParameterSet& ps); + virtual void read(const ParameterSet& ps); // Print the contents of \c *this in human readable form into the output // stream \a os. diff --git a/CEP/Calibration/BBSControl/src/Command.cc b/CEP/Calibration/BBSControl/src/Command.cc index dc7de35d2d974d8c8041e5ac84ddbcbf0c130e4d..3fe6690b348ece5beb8a1b22a4bc58c834a29ffc 100644 --- a/CEP/Calibration/BBSControl/src/Command.cc +++ b/CEP/Calibration/BBSControl/src/Command.cc @@ -26,14 +26,13 @@ //# Includes #include <BBSControl/Command.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <Common/LofarLogger.h> namespace LOFAR { namespace BBS { - using ACC::APS::ParameterSet; //##-------- P u b l i c m e t h o d s --------##// diff --git a/CEP/Calibration/BBSControl/src/CommandExecutor.cc b/CEP/Calibration/BBSControl/src/CommandExecutor.cc index 4c7f24a18cb8fa9789c1aaf7ca7cfb7d9b95b42a..d0cb9dc02c54cb197b45bcd06235b89450c23da4 100644 --- a/CEP/Calibration/BBSControl/src/CommandExecutor.cc +++ b/CEP/Calibration/BBSControl/src/CommandExecutor.cc @@ -56,7 +56,7 @@ #include <Blob/BlobIStream.h> #include <Blob/BlobIBufStream.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <Common/LofarLogger.h> #include <Common/lofar_fstream.h> diff --git a/CEP/Calibration/BBSControl/src/CommandQueue.cc b/CEP/Calibration/BBSControl/src/CommandQueue.cc index c98f0a6b29809f24cae555c713999b2aa0ecece6..c348724149c8fe1a78005e836ca008f102970eb4 100644 --- a/CEP/Calibration/BBSControl/src/CommandQueue.cc +++ b/CEP/Calibration/BBSControl/src/CommandQueue.cc @@ -33,7 +33,7 @@ #include <BBSControl/Strategy.h> #include <BBSControl/Exceptions.h> #include <BBSControl/StreamUtil.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <Common/LofarLogger.h> //# For getpid() and pid_t. @@ -68,7 +68,6 @@ namespace LOFAR { - using ACC::APS::ParameterSet; namespace BBS { diff --git a/CEP/Calibration/BBSControl/src/CorrectStep.cc b/CEP/Calibration/BBSControl/src/CorrectStep.cc index ce9f54b219f52f14ed42e0230e59a0198423b1f3..3fdb1a26443f6a7fc25a9a689dfc62298a9eecb2 100644 --- a/CEP/Calibration/BBSControl/src/CorrectStep.cc +++ b/CEP/Calibration/BBSControl/src/CorrectStep.cc @@ -23,7 +23,7 @@ #include <lofar_config.h> #include <BBSControl/CorrectStep.h> #include <BBSControl/CommandVisitor.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> namespace LOFAR { @@ -31,7 +31,7 @@ namespace LOFAR { CorrectStep::CorrectStep(const string& name, - const ACC::APS::ParameterSet& parSet, + const ParameterSet& parSet, const Step* parent) : SingleStep(name, parent) { diff --git a/CEP/Calibration/BBSControl/src/FinalizeCommand.cc b/CEP/Calibration/BBSControl/src/FinalizeCommand.cc index 20e305a59a6da147ed2fb8328993da8187dc5c9a..0385a1ca0653892786601ff9a0d718c37c8642d1 100644 --- a/CEP/Calibration/BBSControl/src/FinalizeCommand.cc +++ b/CEP/Calibration/BBSControl/src/FinalizeCommand.cc @@ -30,7 +30,6 @@ namespace LOFAR { namespace BBS { - using ACC::APS::ParameterSet; // Register FinalizeCommand with the CommandFactory. Use an anonymous // namespace. This ensures that the variable `dummy' gets its own private diff --git a/CEP/Calibration/BBSControl/src/GlobalProcessControl.cc b/CEP/Calibration/BBSControl/src/GlobalProcessControl.cc index 8644e1d421a9124b789248c7eac227483bf9c13d..5a74d276514d775dc278be6621a7fd06a29acf2e 100644 --- a/CEP/Calibration/BBSControl/src/GlobalProcessControl.cc +++ b/CEP/Calibration/BBSControl/src/GlobalProcessControl.cc @@ -32,7 +32,7 @@ #include <BBSControl/FinalizeCommand.h> #include <BBSControl/CommandQueue.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <Blob/BlobIStream.h> #include <Blob/BlobIBufStream.h> #include <Common/LofarLogger.h> @@ -46,7 +46,6 @@ #include <unistd.h> // for sleep() -using namespace LOFAR::ACC::APS; namespace LOFAR { diff --git a/CEP/Calibration/BBSControl/src/InitializeCommand.cc b/CEP/Calibration/BBSControl/src/InitializeCommand.cc index 20d2b7b291b339d33b2308aeb050b60b9494182d..fb1f97a17ff632de8ff898241400c181cf3e1e9b 100644 --- a/CEP/Calibration/BBSControl/src/InitializeCommand.cc +++ b/CEP/Calibration/BBSControl/src/InitializeCommand.cc @@ -30,7 +30,6 @@ namespace LOFAR { namespace BBS { - using ACC::APS::ParameterSet; // Register InitializeCommand with the CommandFactory. Use an anonymous // namespace. This ensures that the variable `dummy' gets its own private diff --git a/CEP/Calibration/BBSControl/src/KernelProcessControl.cc b/CEP/Calibration/BBSControl/src/KernelProcessControl.cc index dd8865b9ccad3f9dcdaf9305bd618e02f097abd4..40fca13faf509ba09bab126bbc3f640c5930a0e2 100644 --- a/CEP/Calibration/BBSControl/src/KernelProcessControl.cc +++ b/CEP/Calibration/BBSControl/src/KernelProcessControl.cc @@ -36,8 +36,8 @@ #include <BBSControl/Exceptions.h> #include <BBSControl/StreamUtil.h> -#include <APS/ParameterSet.h> -#include <APS/Exceptions.h> +#include <Common/ParameterSet.h> +#include <Common/Exceptions.h> #include <Blob/BlobStreamable.h> #include <Common/LofarLogger.h> @@ -51,7 +51,6 @@ #include <stdlib.h> -using namespace LOFAR::ACC::APS; namespace LOFAR { @@ -112,7 +111,7 @@ namespace LOFAR try { uint32 kernelId = - LOFAR::ACC::APS::globalParameterSet()->getUint32("Kernel.Id"); + globalParameterSet()->getUint32("Kernel.Id"); // Create a new CommandQueue. This will open a connection to the // blackboard database. diff --git a/CEP/Calibration/BBSControl/src/MultiStep.cc b/CEP/Calibration/BBSControl/src/MultiStep.cc index 0335251304b6c6f5eca58c1dfb2c70c52c470ad6..7e9240819ec63c3b298b7043810ff077976103cf 100644 --- a/CEP/Calibration/BBSControl/src/MultiStep.cc +++ b/CEP/Calibration/BBSControl/src/MultiStep.cc @@ -25,7 +25,7 @@ #include <BBSControl/MultiStep.h> #include <BBSControl/Exceptions.h> #include <BBSControl/CommandVisitor.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <BBSControl/StreamUtil.h> #include <Common/LofarLogger.h> @@ -33,7 +33,6 @@ namespace LOFAR { namespace BBS { - using ACC::APS::ParameterSet; //##-------- P u b l i c m e t h o d s --------##// diff --git a/CEP/Calibration/BBSControl/src/NextChunkCommand.cc b/CEP/Calibration/BBSControl/src/NextChunkCommand.cc index ac3cd0c72539939b27438b30a4bca2f362e6eb9c..87c09f3aeeb6db95bc767810e7127c94c7ca1d5f 100644 --- a/CEP/Calibration/BBSControl/src/NextChunkCommand.cc +++ b/CEP/Calibration/BBSControl/src/NextChunkCommand.cc @@ -26,7 +26,7 @@ #include <Common/LofarLogger.h> #include <Common/lofar_iostream.h> #include <Common/lofar_iomanip.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <casa/Quanta/Quantum.h> #include <casa/Quanta/MVTime.h> @@ -35,8 +35,6 @@ namespace LOFAR { namespace BBS { - using ACC::APS::ParameterSet; - using ACC::APS::KVpair; // Register NextChunkCommand with the CommandFactory. Use an anonymous // namespace. This ensures that the variable `dummy' gets its own private diff --git a/CEP/Calibration/BBSControl/src/NoiseStep.cc b/CEP/Calibration/BBSControl/src/NoiseStep.cc index 51029bb483df23192489beb1d10c6f8b418974c9..0f835dd99658afe28c3ff40b3923ad5d9a1daad2 100644 --- a/CEP/Calibration/BBSControl/src/NoiseStep.cc +++ b/CEP/Calibration/BBSControl/src/NoiseStep.cc @@ -25,13 +25,12 @@ #include <BBSControl/CommandVisitor.h> #include <BBSControl/StreamUtil.h> #include <Common/LofarLogger.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> namespace LOFAR { namespace BBS { -using ACC::APS::ParameterSet; using LOFAR::operator<<; NoiseStep::NoiseStep(const Step* parent) @@ -41,7 +40,7 @@ NoiseStep::NoiseStep(const Step* parent) } NoiseStep::NoiseStep(const string& name, - const ACC::APS::ParameterSet& parset, + const ParameterSet& parset, const Step* parent) : SingleStep(name, parent) { @@ -89,7 +88,7 @@ const string& NoiseStep::type() const //##-------- P r i v a t e m e t h o d s --------##// -void NoiseStep::write(ACC::APS::ParameterSet& ps) const +void NoiseStep::write(ParameterSet& ps) const { LOG_TRACE_LIFETIME(TRACE_LEVEL_COND, ""); SingleStep::write(ps); @@ -102,7 +101,7 @@ void NoiseStep::write(ACC::APS::ParameterSet& ps) const LOG_TRACE_VAR_STR("\nContents of ParameterSet ps:\n" << ps); } -void NoiseStep::read(const ACC::APS::ParameterSet& ps) +void NoiseStep::read(const ParameterSet& ps) { LOG_TRACE_LIFETIME(TRACE_LEVEL_COND, ""); SingleStep::read(ps); diff --git a/CEP/Calibration/BBSControl/src/PredictStep.cc b/CEP/Calibration/BBSControl/src/PredictStep.cc index 79fc52b92a75d35f7d006662c2c087d6173864a8..e1d97a160c2c09344bc007d06cd67861b2897c5d 100644 --- a/CEP/Calibration/BBSControl/src/PredictStep.cc +++ b/CEP/Calibration/BBSControl/src/PredictStep.cc @@ -23,7 +23,7 @@ #include <lofar_config.h> #include <BBSControl/PredictStep.h> #include <BBSControl/CommandVisitor.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> namespace LOFAR { @@ -31,7 +31,7 @@ namespace LOFAR { PredictStep::PredictStep(const string& name, - const ACC::APS::ParameterSet& parSet, + const ParameterSet& parSet, const Step* parent) : SingleStep(name, parent) { diff --git a/CEP/Calibration/BBSControl/src/QueryBuilder/AddCommand.cc b/CEP/Calibration/BBSControl/src/QueryBuilder/AddCommand.cc index 2a5002a10c5181f99506742208b9e816f3e58bca..e316b68446b6ed0a596b30339d8fdb5cf38b4643 100644 --- a/CEP/Calibration/BBSControl/src/QueryBuilder/AddCommand.cc +++ b/CEP/Calibration/BBSControl/src/QueryBuilder/AddCommand.cc @@ -41,7 +41,7 @@ #include <BBSControl/NoiseStep.h> #include <BBSControl/Exceptions.h> #include <BBSControl/StreamUtil.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <Common/LofarLogger.h> namespace LOFAR @@ -49,7 +49,6 @@ namespace LOFAR namespace BBS { using LOFAR::operator<<; - using ACC::APS::ParameterSet; namespace QueryBuilder { diff --git a/CEP/Calibration/BBSControl/src/RecoverCommand.cc b/CEP/Calibration/BBSControl/src/RecoverCommand.cc index 53ebd5f391b677756ebddf71760aaa7a22a1715a..9cbf2cfeb76832ba0b247ce1a375a974db7dc008 100644 --- a/CEP/Calibration/BBSControl/src/RecoverCommand.cc +++ b/CEP/Calibration/BBSControl/src/RecoverCommand.cc @@ -30,7 +30,6 @@ namespace LOFAR { namespace BBS { - using ACC::APS::ParameterSet; // Register RecoverCommand with the CommandFactory. Use an anonymous // namespace. This ensures that the variable `dummy' gets its own private diff --git a/CEP/Calibration/BBSControl/src/RefitStep.cc b/CEP/Calibration/BBSControl/src/RefitStep.cc index 17c7281bc661b588c9bc1ef2f4ae9c78d52136c2..c4071fbbdf67f07347ee79c808af329759695501 100644 --- a/CEP/Calibration/BBSControl/src/RefitStep.cc +++ b/CEP/Calibration/BBSControl/src/RefitStep.cc @@ -23,7 +23,7 @@ #include <lofar_config.h> #include <BBSControl/RefitStep.h> #include <BBSControl/CommandVisitor.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> namespace LOFAR { @@ -31,7 +31,7 @@ namespace LOFAR { RefitStep::RefitStep(const string& name, - const ACC::APS::ParameterSet& parSet, + const ParameterSet& parSet, const Step* parent) : SingleStep(name, parent) { diff --git a/CEP/Calibration/BBSControl/src/ShiftStep.cc b/CEP/Calibration/BBSControl/src/ShiftStep.cc index 210b8250d7693658963e7de88e0378a69e6e8a0d..2e42b66207c508f478d1abcbbc1403feca6a2526 100644 --- a/CEP/Calibration/BBSControl/src/ShiftStep.cc +++ b/CEP/Calibration/BBSControl/src/ShiftStep.cc @@ -23,7 +23,7 @@ #include <lofar_config.h> #include <BBSControl/ShiftStep.h> #include <BBSControl/CommandVisitor.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> namespace LOFAR { @@ -31,7 +31,7 @@ namespace LOFAR { ShiftStep::ShiftStep(const string& name, - const ACC::APS::ParameterSet& parSet, + const ParameterSet& parSet, const Step* parent) : SingleStep(name, parent) { diff --git a/CEP/Calibration/BBSControl/src/SingleStep.cc b/CEP/Calibration/BBSControl/src/SingleStep.cc index 13f5f981b2a47eaf6d873694c9661029ea8306d2..f22dec996a853f98120b5c8c262b3f411e6cb383 100644 --- a/CEP/Calibration/BBSControl/src/SingleStep.cc +++ b/CEP/Calibration/BBSControl/src/SingleStep.cc @@ -26,14 +26,13 @@ #include <BBSControl/Exceptions.h> #include <BBSControl/CommandVisitor.h> #include <BBSControl/StreamUtil.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <Common/LofarLogger.h> namespace LOFAR { namespace BBS { - using ACC::APS::ParameterSet; using LOFAR::operator<<; //##-------- P u b l i c m e t h o d s --------##// diff --git a/CEP/Calibration/BBSControl/src/SolveStep.cc b/CEP/Calibration/BBSControl/src/SolveStep.cc index e32539864471bff3a6afb5c21ca64203d96fbfab..47edd0cedf3a5114544a26084b3a92ea34f0968a 100644 --- a/CEP/Calibration/BBSControl/src/SolveStep.cc +++ b/CEP/Calibration/BBSControl/src/SolveStep.cc @@ -26,7 +26,7 @@ #include <BBSControl/Exceptions.h> #include <BBSControl/CommandVisitor.h> #include <BBSControl/StreamUtil.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <Common/LofarLogger.h> #include <Common/lofar_iomanip.h> @@ -34,7 +34,6 @@ namespace LOFAR { namespace BBS { - using ACC::APS::ParameterSet; using LOFAR::operator<<; diff --git a/CEP/Calibration/BBSControl/src/SolverProcessControl.cc b/CEP/Calibration/BBSControl/src/SolverProcessControl.cc index ab98479e3d5e4582a7cc2ff1607ae3162a575a01..18621343a433064f00990227c28b8c7a3b970713 100644 --- a/CEP/Calibration/BBSControl/src/SolverProcessControl.cc +++ b/CEP/Calibration/BBSControl/src/SolverProcessControl.cc @@ -37,7 +37,7 @@ #include <BBSControl/Exceptions.h> #include <BBSControl/Types.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <Blob/BlobStreamable.h> #include <Common/Exceptions.h> #include <Common/LofarLogger.h> @@ -49,7 +49,6 @@ namespace LOFAR { - using namespace ACC::APS; namespace BBS { diff --git a/CEP/Calibration/BBSControl/src/Step.cc b/CEP/Calibration/BBSControl/src/Step.cc index ecada4e188b7a76bc4d817f850d3effe3ad4a97c..e08f396575bf6c9562afc840d41e1ea807803ab4 100644 --- a/CEP/Calibration/BBSControl/src/Step.cc +++ b/CEP/Calibration/BBSControl/src/Step.cc @@ -33,15 +33,13 @@ #include <BBSControl/MultiStep.h> #include <BBSControl/Exceptions.h> #include <BBSControl/StreamUtil.h> -#include <APS/ParameterSet.h> -#include <APS/Exceptions.h> +#include <Common/ParameterSet.h> +#include <Common/Exceptions.h> #include <Common/LofarLogger.h> #include <Common/lofar_iomanip.h> namespace LOFAR { - using ACC::APS::ParameterSet; - using ACC::APS::APSException; namespace BBS { diff --git a/CEP/Calibration/BBSControl/src/Strategy.cc b/CEP/Calibration/BBSControl/src/Strategy.cc index b66b7274bd3edbeeccad5740681265b1f172a6a1..a07bf1594b43c178acafff967007beb0709a24dc 100644 --- a/CEP/Calibration/BBSControl/src/Strategy.cc +++ b/CEP/Calibration/BBSControl/src/Strategy.cc @@ -27,15 +27,13 @@ #include <BBSControl/Types.h> #include <BBSControl/CommandVisitor.h> #include <BBSControl/Exceptions.h> -#include <APS/ParameterSet.h> -#include <APS/Exceptions.h> +#include <Common/ParameterSet.h> +#include <Common/Exceptions.h> #include <BBSControl/StreamUtil.h> #include <Common/LofarLogger.h> namespace LOFAR { - using ACC::APS::ParameterSet; - using ACC::APS::APSException; namespace BBS { @@ -146,7 +144,7 @@ namespace LOFAR //##-------- P r i v a t e m e t h o d s --------##// - void Strategy::write(ACC::APS::ParameterSet& ps) const + void Strategy::write(ParameterSet& ps) const { LOG_TRACE_LIFETIME(TRACE_LEVEL_COND, ""); ps.add("DataSet", itsDataSet); @@ -168,7 +166,7 @@ namespace LOFAR } - void Strategy::read(const ACC::APS::ParameterSet& ps) + void Strategy::read(const ParameterSet& ps) { LOG_TRACE_LIFETIME(TRACE_LEVEL_COND, ""); diff --git a/CEP/Calibration/BBSControl/src/SubtractStep.cc b/CEP/Calibration/BBSControl/src/SubtractStep.cc index d6015f2d9ff9c7fb7b72a9e75aa3429b2c7e2673..7946ec442ca857eab8793ddc3ec8eec7d56e6e11 100644 --- a/CEP/Calibration/BBSControl/src/SubtractStep.cc +++ b/CEP/Calibration/BBSControl/src/SubtractStep.cc @@ -23,7 +23,7 @@ #include <lofar_config.h> #include <BBSControl/SubtractStep.h> #include <BBSControl/CommandVisitor.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> namespace LOFAR { @@ -31,7 +31,7 @@ namespace LOFAR { SubtractStep::SubtractStep(const string& name, - const ACC::APS::ParameterSet& parSet, + const ParameterSet& parSet, const Step* parent) : SingleStep(name, parent) { diff --git a/CEP/Calibration/BBSControl/src/SynchronizeCommand.cc b/CEP/Calibration/BBSControl/src/SynchronizeCommand.cc index beb435712a44a858142f3d86dabc9ceb952954e9..34e86861b1caf5114be92d2d115ab22f69e141a9 100644 --- a/CEP/Calibration/BBSControl/src/SynchronizeCommand.cc +++ b/CEP/Calibration/BBSControl/src/SynchronizeCommand.cc @@ -30,7 +30,6 @@ namespace LOFAR { namespace BBS { - using ACC::APS::ParameterSet; // Register SynchronizeCommand with the CommandFactory. Use an anonymous // namespace. This ensures that the variable `dummy' gets its own private diff --git a/CEP/Calibration/BBSControl/test/tCommandQueue.cc b/CEP/Calibration/BBSControl/test/tCommandQueue.cc index f103ec08c628ac8ef7ef4eaac56efa00c69c412c..2206a492d6e98de5d9eb861be1bfb9866ca81458 100644 --- a/CEP/Calibration/BBSControl/test/tCommandQueue.cc +++ b/CEP/Calibration/BBSControl/test/tCommandQueue.cc @@ -34,7 +34,7 @@ #include <BBSControl/PredictStep.h> #include <BBSControl/ShiftStep.h> #include <BBSControl/RefitStep.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <Common/LofarLogger.h> #include <Common/lofar_fstream.h> #include <stdlib.h> @@ -42,7 +42,6 @@ using namespace LOFAR; using namespace LOFAR::BBS; -using namespace LOFAR::ACC::APS; int main(int /*argc*/, char* argv[]) { diff --git a/CEP/Calibration/BBSControl/test/tStrategy.cc b/CEP/Calibration/BBSControl/test/tStrategy.cc index 1dfb38f136ced9bd0ff036cda3ebf26acef3f2fd..e905e6d7b69cb2aa7da593514ac6ea42be8b145c 100644 --- a/CEP/Calibration/BBSControl/test/tStrategy.cc +++ b/CEP/Calibration/BBSControl/test/tStrategy.cc @@ -25,12 +25,11 @@ #include <BBSControl/Strategy.h> #include <BBSControl/Step.h> #include <BBSControl/MultiStep.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <Common/LofarLogger.h> using namespace LOFAR; using namespace LOFAR::BBS; -using namespace LOFAR::ACC::APS; // Compare files. Return true if equal, otherwise false. bool compareFiles(const char* f1, const char* f2) diff --git a/CEP/DP3/CS1_SPWCombine/configure.in b/CEP/DP3/CS1_SPWCombine/configure.in index a0381c7007a203bb15a187a6576872a2c3fa218d..29d415df4635ac7441afa17a22f552393906b819 100644 --- a/CEP/DP3/CS1_SPWCombine/configure.in +++ b/CEP/DP3/CS1_SPWCombine/configure.in @@ -44,8 +44,8 @@ dnl Check for LOFAR specific things dnl lofar_GENERAL(1) lofar_AIPSPP(1) +lofar_INTERNAL(LCS/Common,Common,,1,Common/LofarTypes.h) lofar_INTERNAL(LCS/ACC/PLC,PLC,,1,PLC/ProcessControl.h) -lofar_INTERNAL(LCS/ACC/APS,APS,,1,APS/ParameterSet.h) dnl dnl Output Makefiles diff --git a/CEP/DP3/CS1_SPWCombine/include/CS1_SPWCombine/CombinerProcessControl.h b/CEP/DP3/CS1_SPWCombine/include/CS1_SPWCombine/CombinerProcessControl.h index e077ceec58f95fd27b678bf52ad25bbb8a77c42d..57034010ab1e1caf4f58f92da15f33ab7c60ec44 100644 --- a/CEP/DP3/CS1_SPWCombine/include/CS1_SPWCombine/CombinerProcessControl.h +++ b/CEP/DP3/CS1_SPWCombine/include/CS1_SPWCombine/CombinerProcessControl.h @@ -21,7 +21,7 @@ #define LOFARCOMBINERPROCESSCONTROL_H #include <PLC/ProcessControl.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <vector> /** diff --git a/CEP/DP3/CS1_SPWCombine/src/CombinerProcessControl.cc b/CEP/DP3/CS1_SPWCombine/src/CombinerProcessControl.cc index 973c5a7601542eceede6f3338f6fca3d4d468a91..a1dd1babc5adf2c04db6a15b56be1bf9f2b326fd 100644 --- a/CEP/DP3/CS1_SPWCombine/src/CombinerProcessControl.cc +++ b/CEP/DP3/CS1_SPWCombine/src/CombinerProcessControl.cc @@ -56,7 +56,7 @@ namespace LOFAR //===============>>> CombinerProcessControl::define <<<============================== tribool CombinerProcessControl::define() { - LOFAR::ACC::APS::ParameterSet* ParamSet = LOFAR::ACC::APS::globalParameterSet(); + ParameterSet* ParamSet = globalParameterSet(); itsInMS = ParamSet->getStringVector("inms"); itsOutMS = ParamSet->getString("outms"); return true; diff --git a/CEP/DP3/CS1_pp_lib/configure.in b/CEP/DP3/CS1_pp_lib/configure.in index 8282dfd922510ededcf530e290278f807d45f89c..cbf04665079508362f7e377d24e24c2402c8c933 100644 --- a/CEP/DP3/CS1_pp_lib/configure.in +++ b/CEP/DP3/CS1_pp_lib/configure.in @@ -50,8 +50,8 @@ dnl Check for LOFAR specific things dnl lofar_GENERAL(1) lofar_AIPSPP(1) +lofar_INTERNAL(LCS/Common,Common,,1,Common/LofarTypes.h) lofar_INTERNAL(LCS/ACC/PLC,PLC,,1,PLC/ProcessControl.h) -lofar_INTERNAL(LCS/ACC/APS,APS,,1,APS/ParameterSet.h) dnl dnl Output Makefiles diff --git a/CEP/DP3/CS1_pp_lib/include/CS1_pp_lib/PipelineProcessControl.h b/CEP/DP3/CS1_pp_lib/include/CS1_pp_lib/PipelineProcessControl.h index 707f567f5e7ecd37c74cf9debe35ee7523c05a6e..8d6c7afe1f7869a101bd53c07d0fc0743efc4a43 100644 --- a/CEP/DP3/CS1_pp_lib/include/CS1_pp_lib/PipelineProcessControl.h +++ b/CEP/DP3/CS1_pp_lib/include/CS1_pp_lib/PipelineProcessControl.h @@ -21,7 +21,7 @@ #define LOFARPIPELINEPROCESSCONTROL_H #include <PLC/ProcessControl.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> /** @author Adriaan Renting diff --git a/CEP/DP3/CS1_pp_lib/src/PipelineProcessControl.cc b/CEP/DP3/CS1_pp_lib/src/PipelineProcessControl.cc index 3b19e4b47d0c498af4e02972885f8771fb243386..7d7be1dbd786bf7a9c5e58da607919e3dccdbfbb 100644 --- a/CEP/DP3/CS1_pp_lib/src/PipelineProcessControl.cc +++ b/CEP/DP3/CS1_pp_lib/src/PipelineProcessControl.cc @@ -65,7 +65,7 @@ namespace LOFAR //===============>>> PipelineProcessControl::define <<<============================== tribool PipelineProcessControl::define() { - LOFAR::ACC::APS::ParameterSet* ParamSet = LOFAR::ACC::APS::globalParameterSet(); + ParameterSet* ParamSet = globalParameterSet(); myDetails = new RunDetails(); myDetails->Fixed = ParamSet->getUint32("fixed", 0); // BandpassCorrector myDetails->FreqWindow = ParamSet->getUint32("freqwindow", 1); // FrequencyFlagger, MADFlagger diff --git a/CEP/DP3/CS1_pp_lib/test/test_flaggers.cc b/CEP/DP3/CS1_pp_lib/test/test_flaggers.cc index bee4231bd35b24f0f250561be73bd59bfa2c9cef..3d4953ed0f9cf3ba6eab7766ef908f49427296d9 100644 --- a/CEP/DP3/CS1_pp_lib/test/test_flaggers.cc +++ b/CEP/DP3/CS1_pp_lib/test/test_flaggers.cc @@ -58,7 +58,7 @@ int main(int argc, char *argv[]) details.FreqWindow = 9; details.TimeWindow = SIZE; details.Existing = false; - details.Treshold = 4.5; + details.Threshold = 4.5; DataBuffer data(&info, details.TimeWindow, false); ACG gen(11, 20); diff --git a/CEP/Imager/MWCommon/configure.in b/CEP/Imager/MWCommon/configure.in index 9f392b2db0a904d5ca613b14602b6377e1edae4d..6024a848a3c270527770b5bfc902a5fd250eb27e 100644 --- a/CEP/Imager/MWCommon/configure.in +++ b/CEP/Imager/MWCommon/configure.in @@ -52,8 +52,8 @@ dnl Check for LOFAR specific things dnl lofar_GENERAL lofar_AIPSPP(1,"-lcasa") +lofar_INTERNAL(LCS/Common,Common,,1,Common/LofarTypes.h) lofar_INTERNAL(LCS/Blob,Blob,,1,Blob/BlobHeader.h,,) -lofar_INTERNAL(LCS/ACC/APS,APS,,1,APS/ParameterSet.h,,) dnl dnl Output Makefiles diff --git a/CEP/Imager/MWCommon/include/MWCommon/ParameterHandler.h b/CEP/Imager/MWCommon/include/MWCommon/ParameterHandler.h index bdc00fe67b01b3fa35acbd7de4008b6a0466bc81..3a98573de912684968b3222f34d24252ad7b4f83 100644 --- a/CEP/Imager/MWCommon/include/MWCommon/ParameterHandler.h +++ b/CEP/Imager/MWCommon/include/MWCommon/ParameterHandler.h @@ -27,14 +27,13 @@ // @brief Handle a LOFAR .parset file // @author Ger van Diepen (diepen AT astron nl) -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <Blob/BlobIStream.h> #include <Blob/BlobOStream.h> namespace LOFAR { namespace CEP { //# Put ParameterSet into LOFAR::CEP namespace for ease of use. - using LOFAR::ACC::APS::ParameterSet; // @ingroup MWCommon // @brief Handle a LOFAR .parset file diff --git a/CEP/Imager/MWCommon/include/MWCommon/VdsPartDesc.h b/CEP/Imager/MWCommon/include/MWCommon/VdsPartDesc.h index c3b1ccd083eb430a021f5dd199001e69f9f508fd..5c7471bef4436d59927e89f7f45b375eb539ab20 100644 --- a/CEP/Imager/MWCommon/include/MWCommon/VdsPartDesc.h +++ b/CEP/Imager/MWCommon/include/MWCommon/VdsPartDesc.h @@ -28,7 +28,7 @@ // @author Ger van Diepen (diepen AT astron nl) //# Includes -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <Blob/BlobOStream.h> #include <Blob/BlobIStream.h> #include <string> @@ -60,7 +60,7 @@ namespace LOFAR { namespace CEP { {} // Construct from the given parameterset. - explicit VdsPartDesc (const ACC::APS::ParameterSet&); + explicit VdsPartDesc (const ParameterSet&); // Set VDS name and file system. void setName (const std::string& name, const std::string& fileSys); @@ -91,7 +91,7 @@ namespace LOFAR { namespace CEP { { return itsParms.add (key, value); } // Get access to the extra parameters. - const ACC::APS::ParameterSet& getParms() const + const ParameterSet& getParms() const { return itsParms; } // Clear the extra parameters. @@ -147,7 +147,7 @@ namespace LOFAR { namespace CEP { std::vector<int32> itsNChan; //# nr of channels per band std::vector<double> itsStartFreqs; //# start freq of each channel std::vector<double> itsEndFreqs; //# end freq of each channel - ACC::APS::ParameterSet itsParms; //# extra parameters + ParameterSet itsParms; //# extra parameters }; // Put/get the object to/from a blob. diff --git a/CEP/Imager/MWCommon/src/VdsPartDesc.cc b/CEP/Imager/MWCommon/src/VdsPartDesc.cc index 3e63ab9f73acd96ef9fa2d75c8d17b3f2db0e58c..a82827aebf28e9b4834e04ff8a7a0a81653f036c 100644 --- a/CEP/Imager/MWCommon/src/VdsPartDesc.cc +++ b/CEP/Imager/MWCommon/src/VdsPartDesc.cc @@ -20,7 +20,6 @@ namespace std { } using namespace std; using namespace casa; -using LOFAR::ACC::APS::ParameterSet; namespace LOFAR { namespace CEP { diff --git a/CEP/Imager/MWCommon/test/tClusterDesc.cc b/CEP/Imager/MWCommon/test/tClusterDesc.cc index 62ed03ed8f8950f21800ab516ffa1364b7907531..ae1cc23f4830c3cb538a982253015de64561fbe3 100644 --- a/CEP/Imager/MWCommon/test/tClusterDesc.cc +++ b/CEP/Imager/MWCommon/test/tClusterDesc.cc @@ -8,11 +8,13 @@ #include <MWCommon/ClusterDesc.h> #include <Common/LofarLogger.h> +#include <Common/ParameterSet.h> #include <ostream> #include <fstream> -using namespace LOFAR::CEP; using namespace std; +using namespace LOFAR; +using namespace LOFAR::CEP; void check (const ClusterDesc& cl) { @@ -59,7 +61,7 @@ void doIt() ofstream fos("tClusterDesc_tmp.fil"); cl.write (fos); // Read back. - LOFAR::ACC::APS::ParameterSet parset("tClusterDesc_tmp.fil"); + ParameterSet parset("tClusterDesc_tmp.fil"); ClusterDesc cl2(parset); check(cl2); cl = cl2; @@ -96,7 +98,7 @@ void doParset() ofstream fos("tClusterDesc_tmp.fil2"); cdesc.write (fos); // Read back. - LOFAR::ACC::APS::ParameterSet parset("tClusterDesc_tmp.fil2"); + ParameterSet parset("tClusterDesc_tmp.fil2"); ClusterDesc cl2(parset); check1 (cl2); } diff --git a/CEP/Imager/MWCommon/test/tNodeDesc.cc b/CEP/Imager/MWCommon/test/tNodeDesc.cc index 5f75b3ecac75b45433ee4d2ca1369c66c91d0bbf..f21d59e217b66261c4e381bd2dab00c9b78aacf1 100644 --- a/CEP/Imager/MWCommon/test/tNodeDesc.cc +++ b/CEP/Imager/MWCommon/test/tNodeDesc.cc @@ -8,11 +8,13 @@ #include <MWCommon/NodeDesc.h> #include <Common/LofarLogger.h> +#include <Common/ParameterSet.h> #include <ostream> #include <fstream> -using namespace LOFAR::CEP; using namespace std; +using namespace LOFAR; +using namespace LOFAR::CEP; void check (const NodeDesc& node) { @@ -39,7 +41,7 @@ void doIt() ofstream fos("tNodeDesc_tmp.fil"); node.write (fos, ""); // Read back. - LOFAR::ACC::APS::ParameterSet parset("tNodeDesc_tmp.fil"); + ParameterSet parset("tNodeDesc_tmp.fil"); NodeDesc node2(parset); check(node2); node = node2; diff --git a/CEP/Imager/MWCommon/test/tVdsDesc.cc b/CEP/Imager/MWCommon/test/tVdsDesc.cc index 533443847f5188c81e5d2ca4af204da0e590c2ba..1c2d03d164e4e5046de4620178b2f92ba627dee5 100644 --- a/CEP/Imager/MWCommon/test/tVdsDesc.cc +++ b/CEP/Imager/MWCommon/test/tVdsDesc.cc @@ -8,12 +8,14 @@ #include <MWCommon/VdsDesc.h> #include <Common/LofarLogger.h> +#include <Common/ParameterSet.h> #include <ostream> #include <fstream> -using namespace LOFAR::CEP; -using namespace casa; using namespace std; +using namespace casa; +using namespace LOFAR; +using namespace LOFAR::CEP; void checkVds (const VdsPartDesc& vds, double endTime) { @@ -60,7 +62,7 @@ void doIt() ofstream fos("tVdsDesc_tmp.fil"); vfds.write (fos); // Read back. - LOFAR::ACC::APS::ParameterSet parset("tVdsDesc_tmp.fil"); + ParameterSet parset("tVdsDesc_tmp.fil"); VdsDesc vfds2(parset); check(vfds2); vfds = vfds2; diff --git a/CEP/Imager/MWCommon/test/tVdsPartDesc.cc b/CEP/Imager/MWCommon/test/tVdsPartDesc.cc index 7dd66edb023dfdb703ca244cf77e824b856e075b..54a8f8186af681c1afc929fd863e1a5ddaa80ec0 100644 --- a/CEP/Imager/MWCommon/test/tVdsPartDesc.cc +++ b/CEP/Imager/MWCommon/test/tVdsPartDesc.cc @@ -11,6 +11,7 @@ #include <Blob/BlobOBufString.h> #include <Blob/BlobIBufString.h> #include <Common/LofarLogger.h> +#include <Common/ParameterSet.h> #include <ostream> #include <fstream> @@ -69,7 +70,7 @@ void doIt() ofstream fos("tVdsPartDesc_tmp.fil"); vds.write (fos, ""); // Read back. - LOFAR::ACC::APS::ParameterSet parset("tVdsPartDesc_tmp.fil"); + ParameterSet parset("tVdsPartDesc_tmp.fil"); VdsPartDesc vds2(parset); check(vds2); vds = vds2; @@ -90,7 +91,7 @@ void doIt() // Check if times are written as well. ofstream fos2("tVdsPartDesc_tmp.fil2"); vdsb.write (fos2, ""); - VdsPartDesc vdsb2(LOFAR::ACC::APS::ParameterSet("tVdsPartDesc_tmp.fil2")); + VdsPartDesc vdsb2(ParameterSet("tVdsPartDesc_tmp.fil2")); check(vdsb2, 10); vdsb.clearParms(); ASSERT (vdsb.getParms().size() == 0); diff --git a/CEP/Imager/MWControl/src/MWSpec.cc b/CEP/Imager/MWControl/src/MWSpec.cc index cbbb2ce5aa456803c971a07c0c2056e7e90e26ec..bbdb6388f3d0175a119a36dbc1cb0a36b00f064a 100644 --- a/CEP/Imager/MWControl/src/MWSpec.cc +++ b/CEP/Imager/MWControl/src/MWSpec.cc @@ -33,7 +33,6 @@ namespace std { using LOFAR::operator<<; } -using namespace LOFAR::ACC::APS; using namespace std; namespace LOFAR { namespace CEP { diff --git a/CEP/Imager/MWControl/test/tMWSpec.cc b/CEP/Imager/MWControl/test/tMWSpec.cc index 0a226930c31d41ad29cd7826fe4620f6bb613ffd..3da065bd1418631c844dc37706e3f9af075fcbe3 100644 --- a/CEP/Imager/MWControl/test/tMWSpec.cc +++ b/CEP/Imager/MWControl/test/tMWSpec.cc @@ -23,10 +23,11 @@ #include <lofar_config.h> #include <MWControl/MWMultiSpec.h> #include <MWControl/MWParameterHandler.h> +#include <Common/ParameterSet.h> +#include <Common/lofar_iostream.h> -using namespace LOFAR::ACC::APS; +using namespace LOFAR; using namespace LOFAR::CEP; -using namespace std; int main() { diff --git a/CEP/Imager/MWImager/configure.in b/CEP/Imager/MWImager/configure.in index c3e001bffb75eb1fe4f25c32fb9cca32b35f86c5..bd244cbda16e7c222a4761e64a051c437d988fc6 100644 --- a/CEP/Imager/MWImager/configure.in +++ b/CEP/Imager/MWImager/configure.in @@ -52,7 +52,6 @@ dnl Check for LOFAR specific things dnl lofar_GENERAL lofar_INTERNAL(LCS/Common,Common,,1,Common/LofarTypedefs.h,,) -lofar_INTERNAL(LCS/ACC/APS,APS,,1,APS/ParameterSet.h,,) lofar_INTERNAL(CEP/Imager/MWCommon,MWCommon,,1,MWCommon/ClusterDesc.h,,) lofar_INTERNAL(CEP/MS,MS,,1,MS/VdsMaker.h,bbms,) diff --git a/CEP/Imager/MWImager/include/MWImager/ConvertParset.h b/CEP/Imager/MWImager/include/MWImager/ConvertParset.h index 44663fbb4d9fa7bc996f24778c02910af87375f4..3351ad5c1e6d257130c25a65826e1a86f17e8ca1 100644 --- a/CEP/Imager/MWImager/include/MWImager/ConvertParset.h +++ b/CEP/Imager/MWImager/include/MWImager/ConvertParset.h @@ -43,13 +43,13 @@ namespace LOFAR { // Convert the input parset file (in SAS format) to the output parset // (in cimager format). // The output parset is written if the output name is not empty. - static ACC::APS::ParameterSet convertParset (const std::string& nameIn, + static ParameterSet convertParset (const std::string& nameIn, const std::string& nameOut); // Convert the input parset (in SAS format) to the output parset // (in cimager format). // The output parset is written if the output name is not empty. - static ACC::APS::ParameterSet convertParset (const ACC::APS::ParameterSet&, + static ParameterSet convertParset (const ParameterSet&, const std::string& nameOut); // Append the parameters of in to the output. @@ -57,8 +57,8 @@ namespace LOFAR { // Parameter names in the <src>old2newNameMap</src> are renamed. // Parameters defined in the <src>defaults</src> are written in the output // if not defined in the input. - static void convert (ACC::APS::ParameterSet& out, - const ACC::APS::ParameterSet& in, + static void convert (ParameterSet& out, + const ParameterSet& in, const std::map<std::string,std::string>& old2NewNameMap, const std::map<std::string,std::string>& defaults, const std::string& prefix); diff --git a/CEP/Imager/MWImager/src/ConvertParset.cc b/CEP/Imager/MWImager/src/ConvertParset.cc index 3c4b5913c5815102071cd6ef9193f8feb2978c40..53eca38d27199dff6612982c03eda8d528cbabfd 100644 --- a/CEP/Imager/MWImager/src/ConvertParset.cc +++ b/CEP/Imager/MWImager/src/ConvertParset.cc @@ -28,7 +28,6 @@ #include <iostream> using namespace std; -using namespace LOFAR::ACC::APS; namespace LOFAR { @@ -65,18 +64,18 @@ namespace LOFAR { } } - ACC::APS::ParameterSet MWImager::convertParset (const string& nameIn, + ParameterSet MWImager::convertParset (const string& nameIn, const string& nameOut) { - return convertParset (ACC::APS::ParameterSet(nameIn), nameOut); + return convertParset (ParameterSet(nameIn), nameOut); } - ACC::APS::ParameterSet MWImager::convertParset (const ACC::APS::ParameterSet& parset, + ParameterSet MWImager::convertParset (const ParameterSet& parset, const string& nameOut) { map<string,string> emptyMap; - ACC::APS::ParameterSet out; - ACC::APS::ParameterSet in (parset); + ParameterSet out; + ParameterSet in (parset); // The output name is the base MS name minus the possible extension // and directory. string outname = in.getString ("dataset"); @@ -90,7 +89,7 @@ namespace LOFAR { } // Convert the gridder keywords. { - ACC::APS::ParameterSet grin = in.makeSubset ("Gridder."); + ParameterSet grin = in.makeSubset ("Gridder."); in.subtractSubset ("Gridder."); // Get the gridder type. string type = grin.getString ("type"); @@ -100,7 +99,7 @@ namespace LOFAR { } // Convert the solver keywords. { - ACC::APS::ParameterSet soin = in.makeSubset ("Solver."); + ParameterSet soin = in.makeSubset ("Solver."); in.subtractSubset ("Solver."); // Get the solver type (dirty, clean). string type = soin.getString ("type"); @@ -111,7 +110,7 @@ namespace LOFAR { } // Convert the images keywords. { - ACC::APS::ParameterSet imin = in.makeSubset ("Images."); + ParameterSet imin = in.makeSubset ("Images."); in.subtractSubset ("Images."); // Combine ra,dec,type into a single string. string angle1 = imin.getString ("ra"); diff --git a/CEP/MS/configure.in b/CEP/MS/configure.in index 6f6ae320996c0d5cd458bab0f562434138c98dc5..12edfe76b7277470565d576f343b07041d2a3a9f 100644 --- a/CEP/MS/configure.in +++ b/CEP/MS/configure.in @@ -56,7 +56,6 @@ lofar_AIPSPP(1,"-lms -lmeasures -ltables -lscimath -lscimath_f -lcasa") lofar_INTERNAL(LCS/Common,Common,,1,Common/LofarTypedefs.h,,) lofar_INTERNAL(LCS/Blob,Blob,,1,Blob/BlobHeader.h,,) lofar_INTERNAL(LCS/Transport,Transport,,1,Transport/DataHolder.h,,) -lofar_INTERNAL(LCS/ACC/APS,APS,,1,APS/ParameterSet.h,,) lofar_INTERNAL(CEP/Imager/MWCommon,MWCommon,,1,MWCommon/ClusterDesc.h,,) dnl diff --git a/CEP/MS/src/combinevds.cc b/CEP/MS/src/combinevds.cc index 2f32d2fdb709514057f65d89a854ab40f189425f..4de5867259ea60bae3966ebbbdb00588926a3d70 100644 --- a/CEP/MS/src/combinevds.cc +++ b/CEP/MS/src/combinevds.cc @@ -23,14 +23,15 @@ #include <lofar_config.h> #include <MWCommon/VdsDesc.h> #include <Common/LofarLogger.h> +#include <Common/ParameterSet.h> #include <casa/OS/Path.h> -#include<stdexcept> +#include <stdexcept> #include <iostream> #include <fstream> using namespace std; +using namespace LOFAR; using namespace LOFAR::CEP; -using LOFAR::ACC::APS::ParameterSet; int main(int argc, const char* argv[]) { diff --git a/CEP/MS/src/makems.cc b/CEP/MS/src/makems.cc index dd220fddd81215155036a48b65380e36d3025504..4ede277af5890929f8afe2b42f59fd08fb2a5fca 100644 --- a/CEP/MS/src/makems.cc +++ b/CEP/MS/src/makems.cc @@ -26,7 +26,7 @@ #include <MS/DH_MSMake.h> #include <MS/MSCreate.h> #include <MS/MSDesc.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <Blob/BlobOBufStream.h> #include <Blob/BlobOStream.h> #include <Blob/BlobArray.h> @@ -48,7 +48,6 @@ #include <sstream> using namespace LOFAR; -using namespace ACC; using namespace casa; using namespace std; @@ -188,7 +187,7 @@ void createMSSeq (const string& msName, int seqnr, void doMaster (bool send) { - APS::ParameterSet params ("makems.cfg"); + ParameterSet params ("makems.cfg"); // Get the various parameters. double startFreq = params.getDouble ("StartFreq"); double stepFreq = params.getDouble ("StepFreq"); diff --git a/JAVA/CEP/jParmFacade/configure.in b/JAVA/CEP/jParmFacade/configure.in index da547a72f43d3c8aa5bd8c03654e08b44efcf88c..1cf74cecaa841d4ded493654d95be62c4042264d 100644 --- a/JAVA/CEP/jParmFacade/configure.in +++ b/JAVA/CEP/jParmFacade/configure.in @@ -65,7 +65,6 @@ lofar_INTERNAL(CEP/BB/ParmDB,ParmDB,,1,ParmDB/ParmDB.h,,) lofar_INTERNAL(CEP/BB/BBSKernel,BBSKernel,,1,BBSKernel/MNS/MeqParmFunklet.h) lofar_INTERNAL(CEP/BB/ParmFacade,ParmFacade,,1,ParmFacade/ParmFacade.h,,) lofar_INTERNAL(CEP/BB/MS,MS,,1,MS/MSDesc.h,bbms) -lofar_INTERNAL(LCS/ACC/APS,APS,,1,APS/ParameterSet.h) lofar_INTERNAL(LCS/Transport,Transport,,1,Transport/TransportHolder.h,,) lofar_INTERNAL(LCS/Blob,Blob,,1,Blob/BlobHeader.h,,) lofar_INTERNAL(LCS/Common,Common,,1,Common/LofarTypedefs.h,,) diff --git a/LCS/ACC/APS/APS.spec.in b/LCS/ACC/APS/APS.spec.in deleted file mode 100644 index 515fb6f8bccd9d15ca5982a723f1a0dbe3d85dec..0000000000000000000000000000000000000000 --- a/LCS/ACC/APS/APS.spec.in +++ /dev/null @@ -1,162 +0,0 @@ -# -*- Mode:rpm-spec -*- -# APS.spec.in -# - -############################################################################## -# -# Preamble -# -############################################################################## - -Summary: APS contains a class for managing (startup) parameters for an application. - -%define release @RPM_RELEASE@ -%define version @VERSION@ -%define pkgname @PACKAGE@ -%define pkgdir %{pkgname}-%{version}-%{release} -%define prefix /opt/lofar -%define configure_args @RPM_CONFIGURE_ARGS@ -##define build_kernel_version @BUILD_KERNEL_VERSION@ - -Name: %{pkgname} -Version: %{version} -Release: %{release} -Copyright: LGPL -Group: Application/System -Source: %{pkgname}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{pkgdir}-root -URL: http://www.astron.nl -Prefix: %{prefix} -BuildArchitectures: i386 # Target platforms, i.e., i586 -#Requires: Common >= 3.0 -Packager: %{packager} -Distribution: The LOFAR project -Vendor: ASTRON - -AutoReqProv: no - -%description - -APS is the package that handles the (startup) parameters of an application. -Although it is designed to coorporae with the OTDB from SAS it can be used -as a stand-alone library. - -############################################################################## -# -# prep -# -############################################################################## -%prep -echo $prefix - -# create the build directory, untar the source -%setup - -############################################################################## -# -# build -# -############################################################################## -%build -./configure %{configure_args} --prefix=%{prefix} && make - -############################################################################## -# -# install -# -############################################################################## -%install -# To make things work with BUILDROOT -if [ "$RPM_BUILD_ROOT" != "%{_tmppath}/%{pkgdir}-root" ] -then - echo - echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ - echo @ @ - echo @ RPM_BUILD_ROOT is not what I expected. Please clean it yourself. @ - echo @ @ - echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ - echo -else - echo Cleaning RPM_BUILD_ROOT: "$RPM_BUILD_ROOT" - rm -rf "$RPM_BUILD_ROOT" -fi -mkdir -p $RPM_BUILD_ROOT%{prefix} -make DESTDIR="$RPM_BUILD_ROOT" install - -#uninstall - -############################################################################## -# -# verify -# -############################################################################## -#verify - -############################################################################## -# -# clean -# -############################################################################## -%clean -# Call me paranoid, but I do not want to be responsible for nuking -# someone's harddrive! -if [ "$RPM_BUILD_ROOT" != "%{_tmppath}/%{pkgdir}-root" ] -then - echo - echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ - echo @ @ - echo @ RPM_BUILD_ROOT is not what I expected. Please clean it yourself. @ - echo @ @ - echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ - echo -else - echo Cleaning RPM_BUILD_ROOT: "$RPM_BUILD_ROOT" - rm -rf "$RPM_BUILD_ROOT" -fi - -############################################################################## -# -# files -# -############################################################################## - -# empty 'files' means all distributed files -%files -%defattr(-, root, root) -%{prefix} - -# Your application file list goes here -# %{prefix}/lib/lib*.so* - -# Documentation -# doc COPYING ChangeLog README AUTHORS NEWS -# doc doc/* - -# link the module to the correct path -%post - -# before uninstall -%preun - -# after uninstall -%postun - -############################################################################## -# -# package devel -# -############################################################################## - -#package devel -#Summary: Development files for %{pkgname} -#Group: Applications/System -#description devel -#Development files for %{pkgname}. - -#files devel - -# Your development files go here -# Programmers documentation goes here -#doc doc - -# end of file diff --git a/LCS/ACC/APS/CMakeLists.txt b/LCS/ACC/APS/CMakeLists.txt deleted file mode 100644 index 98df6077c6c046a7ebbb380d854587761b608fe9..0000000000000000000000000000000000000000 --- a/LCS/ACC/APS/CMakeLists.txt +++ /dev/null @@ -1,14 +0,0 @@ - -## ------------------------------------------------------------------------------ -## Project characteristics - -project (APS) - -cmake_minimum_required (VERSION 2.5) - -## ------------------------------------------------------------------------------ -## Directories to be included in the build - -add_subdirectory (include) -add_subdirectory (src) -#add_subdirectory (test) diff --git a/LCS/ACC/APS/Makefile.am b/LCS/ACC/APS/Makefile.am deleted file mode 100644 index 13a42b9a7bd85ced814466a664e9fd839be3f05c..0000000000000000000000000000000000000000 --- a/LCS/ACC/APS/Makefile.am +++ /dev/null @@ -1,16 +0,0 @@ -SUBDIRS=src test include - -ACLOCAL_AMFLAGS = -I $(top_srcdir)/autoconf_share - -pkgextdir = $(prefix)/config/$(PACKAGE) -pkgext_DATA = pkgext pkgextcppflags pkgextcxxflags pkgextldflags - -DISTCHECK_CONFIGURE_FLAGS=\ - --with-common=$(prefix) - -EXTRA_DIST = \ - Makefile.common \ - APS.spec \ - autoconf_share/compiletool - -include $(top_srcdir)/Makefile.common diff --git a/LCS/ACC/APS/bootstrap b/LCS/ACC/APS/bootstrap deleted file mode 100755 index 06f18cde1dbfd6912ef7d927c4d35d25c7137a62..0000000000000000000000000000000000000000 --- a/LCS/ACC/APS/bootstrap +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -../../../autoconf_share/bootstrap ../../../autoconf_share diff --git a/LCS/ACC/APS/configure.in b/LCS/ACC/APS/configure.in deleted file mode 100644 index c56d4758c559af3e244ee9589df8306f45570f2f..0000000000000000000000000000000000000000 --- a/LCS/ACC/APS/configure.in +++ /dev/null @@ -1,66 +0,0 @@ -dnl -dnl Process this file with autoconf to produce a configure script. -dnl -AC_INIT -AM_CONFIG_HEADER(config.h) -AM_INIT_AUTOMAKE(APS, 2.1, no-define) - -dnl -dnl Initialize for LOFAR (may set compilers) -dnl -lofar_INIT - -dnl Checks for programs. -AC_PROG_AWK -AC_PROG_YACC -AC_PROG_CC -AC_PROG_CXX -AM_PROG_LEX -AC_PROG_INSTALL -AC_PROG_LN_S -AC_DISABLE_SHARED -AC_PROG_LIBTOOL - -dnl Checks for libraries. - -dnl dnl Replace `main' with a function in -lfl: -dnl AC_CHECK_LIB(fl, main) -dnl dnl Replace `main' with a function in -lcosev_r: -dnl AC_CHECK_LIB(cosev_r, main) -dnl dnl Replace `main' with a function in -lcosnm_r: -dnl AC_CHECK_LIB(cosnm_r, main) -dnl dnl Replace `main' with a function in -lorb_r: -dnl AC_CHECK_LIB(orb_r, main) -dnl dnl Replace `main' with a function in -lpthread: -dnl AC_CHECK_LIB(pthread, main) -dnl dnl Replace `main' with a function in -lvport_r: -dnl AC_CHECK_LIB(vport_r, main) - -dnl Checks for header files. -AC_HEADER_STDC -AC_CHECK_HEADERS(unistd.h) - -dnl Checks for typedefs, structures, and compiler characteristics. -AC_C_CONST -AC_TYPE_SIZE_T - -dnl Checks for library functions. -AC_FUNC_VPRINTF - -dnl -dnl Check for LOFAR specific things -dnl -lofar_GENERAL -lofar_INTERNAL(LCS/Common,Common,,1,Common/LofarTypedefs.h,,) - -dnl -dnl Output Makefiles -dnl -AC_OUTPUT( -include/Makefile -include/APS/Makefile -Makefile -src/Makefile -test/Makefile -APS.spec -) diff --git a/LCS/ACC/APS/include/APS/Exceptions.h b/LCS/ACC/APS/include/APS/Exceptions.h deleted file mode 100644 index 89caffa0cf692144a68d26379b51abbc591da6b8..0000000000000000000000000000000000000000 --- a/LCS/ACC/APS/include/APS/Exceptions.h +++ /dev/null @@ -1,51 +0,0 @@ -//# Exceptions.h: Implements a map of Key-Value pairs. -//# -//# Copyright (C) 2002-2003 -//# ASTRON (Netherlands Foundation for Research in Astronomy) -//# P.O.Box 2, 7990 AA Dwingeloo, The Netherlands, seg@astron.nl -//# -//# This program is free software; you can redistribute it and/or modify -//# it under the terms of the GNU General Public License as published by -//# the Free Software Foundation; either version 2 of the License, or -//# (at your option) any later version. -//# -//# This program is distributed in the hope that it will be useful, -//# but WITHOUT ANY WARRANTY; without even the implied warranty of -//# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -//# GNU General Public License for more details. -//# -//# You should have received a copy of the GNU General Public License -//# along with this program; if not, write to the Free Software -//# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -//# -//# Note: This source is read best with tabstop 4. -//# -//# $Id$ - -#ifndef LOFAR_APS_EXCEPTIONS_H -#define LOFAR_APS_EXCEPTIONS_H - -#include <Common/Exception.h> - -namespace LOFAR -{ - namespace ACC - { - namespace APS - { - // \addtogroup APS - // @{ - - // An APSException will be thrown when something goes awry in the - // ParameterSet classes. - EXCEPTION_CLASS(APSException, LOFAR::Exception); - - // @} - - } // namespace APS - - } // namespace ACC - -} // namespace LOFAR - -#endif diff --git a/LCS/ACC/APS/include/APS/Makefile.am b/LCS/ACC/APS/include/APS/Makefile.am deleted file mode 100644 index 283f5c3e52b63a05598ed1beaa5d361130d42c54..0000000000000000000000000000000000000000 --- a/LCS/ACC/APS/include/APS/Makefile.am +++ /dev/null @@ -1,11 +0,0 @@ -pkginclude_HEADERS = Package__Version.h \ - Exceptions.h \ - KVpair.h \ - ParameterValue.h \ - ParameterSet.h \ - ParameterSetImpl.h - - -noinst_HEADERS = - -include $(top_srcdir)/Makefile.common diff --git a/LCS/ACC/APS/include/Makefile.am b/LCS/ACC/APS/include/Makefile.am deleted file mode 100644 index 371dd9b48126b02091d8440ac071844c8ee7f90a..0000000000000000000000000000000000000000 --- a/LCS/ACC/APS/include/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -SUBDIRS = APS - -include $(top_srcdir)/Makefile.common diff --git a/LCS/ACC/APS/package.dox b/LCS/ACC/APS/package.dox deleted file mode 100644 index 129c3aa204e790a5ecdd703c84bcc6a51e758ea3..0000000000000000000000000000000000000000 --- a/LCS/ACC/APS/package.dox +++ /dev/null @@ -1,7 +0,0 @@ -// -// \ingroup ACC -// \defgroup APS Application ParameterSet (APS) -// -// Class for managing (startup) parameters. -// - diff --git a/LCS/ACC/APS/src/CMakeLists.txt b/LCS/ACC/APS/src/CMakeLists.txt deleted file mode 100644 index 4b307da67a0d77101005428e5eda96d2ee13f745..0000000000000000000000000000000000000000 --- a/LCS/ACC/APS/src/CMakeLists.txt +++ /dev/null @@ -1,17 +0,0 @@ - -## ------------------------------------------------------------------------------ -## Build the library - -file (GLOB libaps_SOURCES *.cc ) - -add_library (aps ${libaps_SOURCES}) - -## ------------------------------------------------------------------------------ -## Installation - -install ( - TARGETS aps - LIBRARY DESTINATION lib - ARCHIVE DESTINATION lib - ) - diff --git a/LCS/ACC/APS/src/Makefile.am b/LCS/ACC/APS/src/Makefile.am deleted file mode 100644 index 3019ddb185babe7557d1627274955923cab39b18..0000000000000000000000000000000000000000 --- a/LCS/ACC/APS/src/Makefile.am +++ /dev/null @@ -1,20 +0,0 @@ -lib_LTLIBRARIES = libaps.la - -libaps_la_SOURCES = Package__Version.cc \ - KVpair.cc \ - ParameterSet.cc \ - ParameterSetImpl.cc \ - ParameterValue.cc - -bin_PROGRAMS = getparsetvalue versionaps - -getparsetvalue_SOURCES = getparsetvalue.cc -getparsetvalue_LDADD = libaps.la -getparsetvalue_DEPENDENCIES = libaps.la $(LOFAR_DEPEND) - -versionaps_SOURCES = versionaps.cc -versionaps_LDADD = libaps.la -versionaps_DEPENDENCIES = libaps.la $(LOFAR_DEPEND) - -include $(top_srcdir)/Makefile.common - diff --git a/LCS/ACC/APS/test/Makefile.am b/LCS/ACC/APS/test/Makefile.am deleted file mode 100644 index 2885304951efa4ff5e005d0c684778427b9fd78d..0000000000000000000000000000000000000000 --- a/LCS/ACC/APS/test/Makefile.am +++ /dev/null @@ -1,32 +0,0 @@ - -check_PROGRAMS = tParameterValue tParameterSet tParameterSetPerf - -tParameterValue_SOURCES = tParameterValue.cc -tParameterSet_SOURCES = tParameterSet.cc -tParameterSetPerf_SOURCES= tParameterSetPerf.cc - -LDADD = ../src/libaps.la -DEPENDENCIES = ../src/libaps.la $(LOFAR_DEPEND) - -TESTSCRIPTS = tParameterValue.sh \ - tParameterSet.sh \ - tParameterSetPerf.sh \ - tgetparsetvalue.sh - -TESTS = $(TESTSCRIPTS) - - -EXTRA_DIST = tParameterSet.in_merge_nocase \ - tParameterSet.in_merge_normal \ - tParameterSet.in_param_nocase \ - tParameterSet.in_param_normal \ - tParameterSet.log_prop \ - tParameterSet.stdout \ - tParameterSetPerf.run \ - tgetparsetvalue.run \ - tgetparsetvalue.parset \ - tgetparsetvalue.stdout \ - $(TESTSCRIPTS) - -include $(top_srcdir)/Makefile.common - diff --git a/LCS/ACC/APS/test/newset.stdout b/LCS/ACC/APS/test/newset.stdout deleted file mode 100644 index 3bb562169a9834e4cf4f9166caad086df1f666a1..0000000000000000000000000000000000000000 --- a/LCS/ACC/APS/test/newset.stdout +++ /dev/null @@ -1,13 +0,0 @@ -a.b=0..3 -a.b.c=5 -a.b.c.d.e.f.g.h=tjee wat een levels! -a.b.d=7 -a.b.double=3.1415926535897932384626433832795 -a.b.lange_naam="dit is nu een andere naam geworden met extra spaties aan het einde " -a.b.time1=15 s -a.b.time2=15m -a.b.time3=15 hour -a.c.a=nog een afkorting -e.g=een voorbeeld -egg=een ei -vtest.intVector1Dim=[ 3, "20485", 002, '4904' , 25 ] diff --git a/LCS/ACC/PLC/configure.in b/LCS/ACC/PLC/configure.in index c229a60e2caa048daf68f5624bf46f17c79e7b0f..9256edba042b4f9665ce2a23c92b5ef94e911a70 100644 --- a/LCS/ACC/PLC/configure.in +++ b/LCS/ACC/PLC/configure.in @@ -55,7 +55,6 @@ lofar_MPI(0) lofar_INTERNAL(LCS/Common,Common,,1,Common/LofarTypedefs.h,,) lofar_INTERNAL(LCS/Blob,Blob,,1,Blob/BlobHeader.h,,) lofar_INTERNAL(LCS/Transport,Transport,,1,Transport/TransportHolder.h,,) -lofar_INTERNAL(LCS/ACC/APS,APS,,1,APS/ParameterSet.h,,) lofar_EXTERNAL(boost,1,boost/logic/tribool.hpp,"") dnl diff --git a/LCS/ACC/PLC/include/PLC/ProcCtrlCmdLine.h b/LCS/ACC/PLC/include/PLC/ProcCtrlCmdLine.h index bb4966529b912ef0adadaa22acc4b1bf030ef450..518f453c52b3fe9e7e2dcfd5a5db6f950332d003 100644 --- a/LCS/ACC/PLC/include/PLC/ProcCtrlCmdLine.h +++ b/LCS/ACC/PLC/include/PLC/ProcCtrlCmdLine.h @@ -52,7 +52,7 @@ namespace LOFAR // to ProcessController's member functions; the number of times that // the run() method will be called is determined by the value of the // value of the key \c noRuns in \a arg. - virtual int operator()(const APS::ParameterSet& arg); + virtual int operator()(const ParameterSet& arg); }; // @} diff --git a/LCS/ACC/PLC/include/PLC/ProcCtrlProxy.h b/LCS/ACC/PLC/include/PLC/ProcCtrlProxy.h index 3909bb0368fcbdb266a44abbc7080148cc25671f..2045a44bb6a896c42b4f96271123f6e706890293 100644 --- a/LCS/ACC/PLC/include/PLC/ProcCtrlProxy.h +++ b/LCS/ACC/PLC/include/PLC/ProcCtrlProxy.h @@ -34,11 +34,11 @@ namespace LOFAR { + //# Forward declarations + class ParameterSet; + namespace ACC { - //# Forward declarations - namespace APS { class ParameterSet; } - namespace PLC { //# Forward declarations @@ -96,7 +96,7 @@ namespace LOFAR // derived classes. // \return 0 : success // \return 1 : failure - virtual int operator()(const APS::ParameterSet& arg) = 0; + virtual int operator()(const ParameterSet& arg) = 0; private: // Pointer to the "real" ProcessControl object. diff --git a/LCS/ACC/PLC/include/PLC/ProcCtrlRemote.h b/LCS/ACC/PLC/include/PLC/ProcCtrlRemote.h index d5f2bffc6103f1f6bc31b02c5b308399c4ca624f..b48c5662a4f6530f4eda5c27773dbde5d2083d17 100644 --- a/LCS/ACC/PLC/include/PLC/ProcCtrlRemote.h +++ b/LCS/ACC/PLC/include/PLC/ProcCtrlRemote.h @@ -51,7 +51,7 @@ namespace LOFAR // Start the process controller. Let it run under control of a // ProcControlServer. - virtual int operator()(const APS::ParameterSet& arg); + virtual int operator()(const ParameterSet& arg); }; // @} diff --git a/LCS/ACC/PLC/src/ACCmain.cc b/LCS/ACC/PLC/src/ACCmain.cc index c3d9e1a1573e03e3d1e79349976ab7ef7b4f4d6e..f89cf4205f8c5cafbe45c6237c598d8bc1734ebe 100644 --- a/LCS/ACC/PLC/src/ACCmain.cc +++ b/LCS/ACC/PLC/src/ACCmain.cc @@ -27,8 +27,8 @@ #include <libgen.h> #include <Common/LofarLogger.h> #include <Common/LofarLocators.h> -#include <APS/ParameterSet.h> -#include <APS/Exceptions.h> +#include <Common/ParameterSet.h> +#include <Common/Exceptions.h> #include <PLC/ProcControlServer.h> #include <PLC/ProcCtrlCmdLine.h> #include <PLC/ProcCtrlRemote.h> @@ -41,7 +41,7 @@ namespace LOFAR { namespace ACC { namespace PLC { -using namespace APS; +using LOFAR::ParameterSet; // // ACCmain(argc, argv, procCtrl*) diff --git a/LCS/ACC/PLC/src/ProcCtrlCmdLine.cc b/LCS/ACC/PLC/src/ProcCtrlCmdLine.cc index 19bc11062f11d65cc20b4a25f35f32e941eef636..be0a2ee5d97b2eef2a4bbdbd3bc7d89b39cc7d14 100644 --- a/LCS/ACC/PLC/src/ProcCtrlCmdLine.cc +++ b/LCS/ACC/PLC/src/ProcCtrlCmdLine.cc @@ -26,7 +26,7 @@ //# Includes #include <PLC/ProcCtrlCmdLine.h> #include <PLC/PCCmd.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <Common/LofarLogger.h> namespace LOFAR @@ -35,7 +35,7 @@ namespace LOFAR { namespace PLC { - using APS::ParameterSet; +// using LOFAR::ParameterSet; //## -------- P u b l i c m e t h o d s -------- ##// diff --git a/LCS/ACC/PLC/src/ProcCtrlRemote.cc b/LCS/ACC/PLC/src/ProcCtrlRemote.cc index 67656ae59a7e2873c8f21cac64378dfaef83655a..fdc286bbb46e971200b97a2e383df20804fa268a 100644 --- a/LCS/ACC/PLC/src/ProcCtrlRemote.cc +++ b/LCS/ACC/PLC/src/ProcCtrlRemote.cc @@ -25,7 +25,7 @@ //# Includes #include <PLC/ProcCtrlRemote.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <Common/LofarLogger.h> namespace LOFAR @@ -34,7 +34,7 @@ namespace LOFAR { namespace PLC { - using namespace APS; + using LOFAR::ParameterSet; ProcCtrlRemote::ProcCtrlRemote(ProcessControl* aProcCtrl) : ProcCtrlProxy(aProcCtrl) diff --git a/LCS/ACC/lofarconf.in b/LCS/ACC/lofarconf.in index 056126688837cb6e09bc7bdc30b2dcf46dfcfe53..e2ab7286a13580caa300358ce7b9c3371df015b3 100644 --- a/LCS/ACC/lofarconf.in +++ b/LCS/ACC/lofarconf.in @@ -1,3 +1,2 @@ ALC PLC -APS diff --git a/LCS/ApplCommon/configure.in b/LCS/ApplCommon/configure.in index 83425e3199c6a19204024cb997987fd981bfb6e3..e1e5eddc17f59d1c8abdc669621e6c1fea08c449 100644 --- a/LCS/ApplCommon/configure.in +++ b/LCS/ApplCommon/configure.in @@ -53,7 +53,6 @@ dnl lofar_GENERAL lofar_MPI lofar_INTERNAL(LCS/Common, Common, , 1, Common/LofarTypes.h,,) -lofar_INTERNAL(LCS/ACC/APS, APS, , 1, APS/ParameterSet.h,,) lofar_EXTERNAL(boost,1,boost/date_time/date.hpp, boost_date_time) dnl dnl Output Makefiles diff --git a/LCS/ApplCommon/include/ApplCommon/Observation.h b/LCS/ApplCommon/include/ApplCommon/Observation.h index cba6a500a0228a85f78a5ddec71fb8f127e85041..f119ff99b358a93ccc2e7b88d74d4f9ebaaa8426 100644 --- a/LCS/ApplCommon/include/ApplCommon/Observation.h +++ b/LCS/ApplCommon/include/ApplCommon/Observation.h @@ -29,7 +29,7 @@ //# Never #include <config.h> or #include <lofar_config.h> in a header file! //# Includes -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <Common/lofar_bitset.h> #include <Common/lofar_vector.h> #include <Common/lofar_string.h> @@ -52,7 +52,7 @@ class Observation public: Observation(); ~Observation(); - explicit Observation (ACC::APS::ParameterSet* aParSet); + explicit Observation (ParameterSet* aParSet); // global function for converting filtername to nyquist zone static uint32 nyquistzoneFromFilter(const string& filterName); diff --git a/LCS/ApplCommon/src/Observation.cc b/LCS/ApplCommon/src/Observation.cc index 7df08a92a9ac52a599a7d292f6bc87cd6154a090..58fa3f83b804e1a17732f046e4bab5c0a3c6c1f9 100644 --- a/LCS/ApplCommon/src/Observation.cc +++ b/LCS/ApplCommon/src/Observation.cc @@ -31,7 +31,6 @@ #include <Common/lofar_set.h> namespace LOFAR { - using namespace ACC::APS; Observation::Observation() : name(), diff --git a/LCS/ApplCommon/test/tObservation.cc b/LCS/ApplCommon/test/tObservation.cc index 0e99592600be6c961d412d28d0463e4e7b1e8447..83dce3892784e690dc44a9a4aa4ed80f0dd4ad4e 100644 --- a/LCS/ApplCommon/test/tObservation.cc +++ b/LCS/ApplCommon/test/tObservation.cc @@ -25,11 +25,10 @@ //# Includes #include <Common/LofarLogger.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <ApplCommon/Observation.h> using namespace LOFAR; -using namespace LOFAR::ACC::APS; int main (int argc, char* argv[]) { diff --git a/LCS/Common/include/Common/Exceptions.h b/LCS/Common/include/Common/Exceptions.h index 4036e1114d3bfa53f51d447e88cadbf23092d1a6..f5b3deefc8d8ab5ee9ad9124af48f59e3908f24c 100644 --- a/LCS/Common/include/Common/Exceptions.h +++ b/LCS/Common/include/Common/Exceptions.h @@ -49,6 +49,12 @@ namespace LOFAR // EXCEPTION_CLASS(NotImplemented, Exception); + // + // This exception will be thrown when an error occurs in the ParameterSet + // classes. + // + EXCEPTION_CLASS(APSException, Exception); + } // namespace ASTRON #endif diff --git a/LCS/ACC/APS/include/APS/KVpair.h b/LCS/Common/include/Common/KVpair.h similarity index 93% rename from LCS/ACC/APS/include/APS/KVpair.h rename to LCS/Common/include/Common/KVpair.h index 8c030d4b8749c82927a660c7545525a4a4113c8e..2cd0a6b16b89c9e09311143c30ac3f42ed196b1d 100644 --- a/LCS/ACC/APS/include/APS/KVpair.h +++ b/LCS/Common/include/Common/KVpair.h @@ -22,8 +22,8 @@ //# //# $Id$ -#ifndef LOFAR_APS_KVPAIR_H -#define LOFAR_APS_KVPAIR_H +#ifndef LOFAR_COMMON_KVPAIR_H +#define LOFAR_COMMON_KVPAIR_H // \file // Implements a KV pair as a pair<string, string>. @@ -36,9 +36,7 @@ namespace LOFAR { - namespace ACC { - namespace APS { -// \addtogroup APS +// \addtogroup Common // @{ // Implements a KV pair as a pair<string, string>. @@ -61,8 +59,6 @@ public: }; // @} addgroup - } // namespace APS - } // namespace ACC } // namespace LOFAR #endif diff --git a/LCS/Common/include/Common/Makefile.am b/LCS/Common/include/Common/Makefile.am index f105b5a3115833f6f9989a6434c0ddba58813442..0e730a3fcef94210d793b36d2dc5e2085d1c1585 100644 --- a/LCS/Common/include/Common/Makefile.am +++ b/LCS/Common/include/Common/Makefile.am @@ -24,6 +24,7 @@ pkginclude_HEADERS = Package__Version.h \ FileLocator.h \ hexdump.h \ i4complex.h \ + KVpair.h \ lofar_algorithm.h \ lofar_bitset.h \ LofarConstants.h \ @@ -56,6 +57,9 @@ pkginclude_HEADERS = Package__Version.h \ lofar_vector.h \ Numeric.h \ ObjectFactory.h \ + ParameterValue.h \ + ParameterSet.h \ + ParameterSetImpl.h \ PrettyUnits.h \ Process.h \ RunOnNode.h \ diff --git a/LCS/ACC/APS/include/APS/ParameterSet.h b/LCS/Common/include/Common/ParameterSet.h similarity index 99% rename from LCS/ACC/APS/include/APS/ParameterSet.h rename to LCS/Common/include/Common/ParameterSet.h index f0dd23ceafcc814dfa34279f591a16637c690342..bbf7187143103e06d647fdfb4084c99e3f7d9077 100644 --- a/LCS/ACC/APS/include/APS/ParameterSet.h +++ b/LCS/Common/include/Common/ParameterSet.h @@ -22,22 +22,20 @@ //# //# $Id$ -#ifndef LOFAR_APS_PARAMETERSET_H -#define LOFAR_APS_PARAMETERSET_H +#ifndef LOFAR_COMMON_PARAMETERSET_H +#define LOFAR_COMMON_PARAMETERSET_H // \file // Implements a map of Key-Value pairs. //# Never #include <config.h> or #include <lofar_config.h> in a header file! //# Includes -#include <APS/ParameterSetImpl.h> -#include <APS/KVpair.h> +#include <Common/ParameterSetImpl.h> +#include <Common/KVpair.h> namespace LOFAR { - namespace ACC { - namespace APS { -// \addtogroup APS +// \addtogroup Common // @{ //# Description of class. @@ -818,8 +816,6 @@ inline vector<time_t> ParameterSet::getTimeVector(const string& aKey, return itsSet->getTimeVector(aKey, aValue, expandable); } - } // namespace APS - } // namespace ACC } // namespace LOFAR #endif diff --git a/LCS/ACC/APS/include/APS/ParameterSetImpl.h b/LCS/Common/include/Common/ParameterSetImpl.h similarity index 98% rename from LCS/ACC/APS/include/APS/ParameterSetImpl.h rename to LCS/Common/include/Common/ParameterSetImpl.h index 76ebdaa7cc176c95d7a85996ca1e3a9f246c785c..e5ece1b32a827f6122e591b2ccd93f289d02abd8 100644 --- a/LCS/ACC/APS/include/APS/ParameterSetImpl.h +++ b/LCS/Common/include/Common/ParameterSetImpl.h @@ -22,15 +22,15 @@ //# //# $Id$ -#ifndef LOFAR_APS_PARAMETERSETIMPL_H -#define LOFAR_APS_PARAMETERSETIMPL_H +#ifndef LOFAR_COMMON_PARAMETERSETIMPL_H +#define LOFAR_COMMON_PARAMETERSETIMPL_H // \file // Implements a map of Key-Value pairs. //# Never #include <config.h> or #include <lofar_config.h> in a header file! //# Includes -#include <APS/ParameterValue.h> +#include <Common/ParameterValue.h> #include <Common/LofarTypes.h> #include <Common/lofar_map.h> #include <Common/lofar_string.h> @@ -40,9 +40,8 @@ #include <Common/StringUtil.h> namespace LOFAR { - namespace ACC { - namespace APS { -// \addtogroup APS + +// \addtogroup Common // @{ const char PC_QUAL_STABLE[] = { "stable" }; @@ -57,7 +56,7 @@ typedef StringUtil::Compare KeyCompare; // A key/value map is defined as a map of strings. The third template // parameter, \c KeyCompare, is the string comparison functor that will be // used to compare keys. -typedef map <string, ParameterValue, KeyCompare> KeyValueMap; +typedef map <string, ParameterValue, KeyCompare> KVMap; //# Description of class. // The ParameterSetImpl class is a key-value implementation of the type @@ -67,11 +66,11 @@ typedef map <string, ParameterValue, KeyCompare> KeyValueMap; // A couple of getXxx routines are provided to convert the strings to the // desired type. // -class ParameterSetImpl : public KeyValueMap +class ParameterSetImpl : public KVMap { public: - typedef KeyValueMap::iterator iterator; - typedef KeyValueMap::const_iterator const_iterator; + typedef KVMap::iterator iterator; + typedef KVMap::const_iterator const_iterator; // \name Construction and Destruction // A ParameterSetImpl can be constructed as empty collection, can be @@ -598,8 +597,6 @@ inline time_t ParameterSetImpl::getTime(const string& aKey, const time_t& aValue return it->second.getTime(); } - } // namespace APS - } // namespace ACC } // namespace LOFAR #endif diff --git a/LCS/ACC/APS/include/APS/ParameterValue.h b/LCS/Common/include/Common/ParameterValue.h similarity index 97% rename from LCS/ACC/APS/include/APS/ParameterValue.h rename to LCS/Common/include/Common/ParameterValue.h index ad4050a3c0bfc67bf683d124037cd765eeeb208d..36c28056bcdaa46338c032d3e53eb84e2f353d93 100644 --- a/LCS/ACC/APS/include/APS/ParameterValue.h +++ b/LCS/Common/include/Common/ParameterValue.h @@ -20,8 +20,8 @@ //# //# $Id$ -#ifndef LOFAR_APS_PARAMETERVALUE_H -#define LOFAR_APS_PARAMETERVALUE_H +#ifndef LOFAR_COMMON_PARAMETERVALUE_H +#define LOFAR_COMMON_PARAMETERVALUE_H // \file // The value of a parameter @@ -33,7 +33,7 @@ #include <Common/lofar_vector.h> #include <Common/StringUtil.h> -namespace LOFAR { namespace ACC { namespace APS { +namespace LOFAR { class ParameterValue { @@ -168,6 +168,6 @@ namespace LOFAR { namespace ACC { namespace APS { string itsValue; }; -}}} +} #endif diff --git a/LCS/ACC/APS/src/KVpair.cc b/LCS/Common/src/KVpair.cc similarity index 96% rename from LCS/ACC/APS/src/KVpair.cc rename to LCS/Common/src/KVpair.cc index 409a5b4b3e37a02e37363b8f9ff31480c0b4ad9f..76ecf2bdca57c19979cbcb5bab7c2727cde9188c 100644 --- a/LCS/ACC/APS/src/KVpair.cc +++ b/LCS/Common/src/KVpair.cc @@ -26,12 +26,10 @@ //# Includes #include<Common/LofarLogger.h> #include<Common/StringUtil.h> -#include<APS/KVpair.h> +#include<Common/KVpair.h> #include<time.h> namespace LOFAR { - namespace ACC { - namespace APS { #define OPTIONAL_TIMESTAMP \ if (genTimestamp) { \ @@ -108,6 +106,4 @@ KVpair& KVpair::operator=(const KVpair& that) } - } // namespace APS - } // namespace ACC } // namespace LOFAR diff --git a/LCS/Common/src/Makefile.am b/LCS/Common/src/Makefile.am index e1a81212ebd15c8ff054166adf8e2d10c0dab5e5..c90b32fdfa379e1fa8f3950bbd3c88a5f13b2f53 100644 --- a/LCS/Common/src/Makefile.am +++ b/LCS/Common/src/Makefile.am @@ -14,10 +14,14 @@ libcommon_la_SOURCES = Package__Version.cc \ Exception.cc \ FileLocator.cc \ hexdump.cc \ + KVpair.cc \ lofar_bitset.cc \ LofarLogCout.cc \ LofarLogger.cc \ Numeric.cc \ + ParameterSet.cc \ + ParameterSetImpl.cc \ + ParameterValue.cc \ PrettyUnits.cc \ Process.cc \ RunOnNode.cc \ @@ -37,10 +41,14 @@ if HAVE_SHMEM libcommon_la_LIBADD = shmem/libshmem.la endif -bin_PROGRAMS = versioncommon +bin_PROGRAMS = versioncommon getparsetvalue versioncommon_SOURCES = versioncommon.cc versioncommon_LDADD = libcommon.la versioncommon_DEPENDENCIES = libcommon.la $(LOFAR_DEPEND) +getparsetvalue_SOURCES = getparsetvalue.cc +getparsetvalue_LDADD = libcommon.la +getparsetvalue_DEPENDENCIES = libcommon.la $(LOFAR_DEPEND) + include $(top_srcdir)/Makefile.common diff --git a/LCS/ACC/APS/src/ParameterSet.cc b/LCS/Common/src/ParameterSet.cc similarity index 96% rename from LCS/ACC/APS/src/ParameterSet.cc rename to LCS/Common/src/ParameterSet.cc index 3a77a7450e4edc2e3213abe025ae425ace624424..9d24c667267ab77589da76f3d7c8460d5e0d5561 100644 --- a/LCS/ACC/APS/src/ParameterSet.cc +++ b/LCS/Common/src/ParameterSet.cc @@ -24,14 +24,12 @@ #include <lofar_config.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <Common/LofarLogger.h> #include <Common/lofar_fstream.h> namespace LOFAR { - namespace ACC { - namespace APS { //-------------------------- creation and destroy --------------------------- static ParameterSet* globalParameterSetInstance = 0; @@ -122,6 +120,4 @@ std::ostream& operator<< (std::ostream& os, const ParameterSet &thePS) return os; } - } // namespace APS - } // namespace ACC } // namespace LOFAR diff --git a/LCS/ACC/APS/src/ParameterSetImpl.cc b/LCS/Common/src/ParameterSetImpl.cc similarity index 98% rename from LCS/ACC/APS/src/ParameterSetImpl.cc rename to LCS/Common/src/ParameterSetImpl.cc index 460841c65725a7a3ed3627ca2a1c40889e7d7602..ab314fc898110520ce4b0b73cd5e41fc7b09d9c2 100644 --- a/LCS/ACC/APS/src/ParameterSetImpl.cc +++ b/LCS/Common/src/ParameterSetImpl.cc @@ -23,8 +23,8 @@ //# Always #include <lofar_config.h> first! #include <lofar_config.h> -#include <APS/ParameterSetImpl.h> -#include <APS/Exceptions.h> +#include <Common/ParameterSetImpl.h> +#include <Common/Exceptions.h> #include <Common/LofarLogger.h> #include <Common/lofar_fstream.h> #include <Common/StreamUtil.h> @@ -32,17 +32,13 @@ #include <string> namespace LOFAR { - namespace ACC { - namespace APS { - - using LOFAR::operator<<; //-------------------------- creation and destroy --------------------------- // // Default constructor // ParameterSetImpl::ParameterSetImpl(KeyCompare::Mode mode) - : KeyValueMap(mode), + : KVMap(mode), itsCount (1), itsMode(mode) {} @@ -52,7 +48,7 @@ ParameterSetImpl::ParameterSetImpl(KeyCompare::Mode mode) // ParameterSetImpl::ParameterSetImpl(const string& theFilename, KeyCompare::Mode mode) - : KeyValueMap(mode), + : KVMap(mode), itsCount (1), itsMode(mode) { @@ -642,6 +638,4 @@ string ParameterSetImpl::locateModule(const string& shortKey) const return (""); } - } // namespace APS - } // namespace ACC } // namespace LOFAR diff --git a/LCS/ACC/APS/src/ParameterValue.cc b/LCS/Common/src/ParameterValue.cc similarity index 97% rename from LCS/ACC/APS/src/ParameterValue.cc rename to LCS/Common/src/ParameterValue.cc index 11f5f16d1102d4c366bea495d28bf39b5b250d74..4c184a853bf164307dffb4771cff75f17395689b 100644 --- a/LCS/ACC/APS/src/ParameterValue.cc +++ b/LCS/Common/src/ParameterValue.cc @@ -21,13 +21,13 @@ //# $Id$ #include<lofar_config.h> -#include <APS/ParameterValue.h> -#include <APS/Exceptions.h> +#include <Common/ParameterValue.h> +#include <Common/Exceptions.h> #include <Common/LofarLogger.h> -namespace LOFAR { namespace ACC { namespace APS { +namespace LOFAR { - ParameterValue::ParameterValue (const string& value, bool trim) + ParameterValue::ParameterValue (const string& value, bool trim) : itsValue (value) { if (trim) { @@ -38,7 +38,7 @@ namespace LOFAR { namespace ACC { namespace APS { } } } - + ParameterValue ParameterValue::expand() const { return ParameterValue (expandArrayString (itsValue)); @@ -285,4 +285,4 @@ time_t ParameterValue::StringToTime_t (const string& aString) return theTime; } -}}} +} diff --git a/LCS/ACC/APS/src/getparsetvalue.cc b/LCS/Common/src/getparsetvalue.cc similarity index 96% rename from LCS/ACC/APS/src/getparsetvalue.cc rename to LCS/Common/src/getparsetvalue.cc index ce8603f00c71be13102e611d49b89f8a7dd7bae9..18504ebe1655a0c0bb2563f1bd13260709d55df6 100644 --- a/LCS/ACC/APS/src/getparsetvalue.cc +++ b/LCS/Common/src/getparsetvalue.cc @@ -23,7 +23,7 @@ //# Always #include <lofar_config.h> first! #include <lofar_config.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <Common/LofarLogger.h> #include <stdexcept> #include <iostream> @@ -44,7 +44,7 @@ int main (int argc, const char* argv[]) iss >> inx; useAll = false; } - LOFAR::ACC::APS::ParameterSet parset(argv[1]); + LOFAR::ParameterSet parset(argv[1]); if (useAll) { std::string value = parset.getString (argv[2]); std::cout << value << std::endl; diff --git a/LCS/Common/test/Makefile.am b/LCS/Common/test/Makefile.am index 616c5567aa5e52eb5df22d2f6a6a2ccd3f9f5957..9e71d41559dc2c8d737ebc9701001487fb6ade8f 100644 --- a/LCS/Common/test/Makefile.am +++ b/LCS/Common/test/Makefile.am @@ -4,6 +4,7 @@ CHECKTOOLPROGS = testLogger tAllocator tDataConvert \ tHexdump testSocket tComplex tProcess \ tRunOnNode tTimer tNumeric tSingleton \ tObjectFactory tSystemUtil tSaxpy tPrettyUnits \ + tParameterValue tParameterSet tParameterSetPerf \ tBacktrace check_PROGRAMS = $(CHECKTOOLPROGS) @@ -12,7 +13,9 @@ TESTSCRIPTS = testLogger.sh tAllocator.sh tDataConvert.sh \ tFileLocator.sh tStringUtil.sh tStreamUtil.sh \ tHexdump.sh testSocket.sh tComplex.sh tProcess.sh \ tRunOnNode.sh tTimer.sh tNumeric.sh tSingleton.sh \ - tObjectFactory.sh tPrettyUnits.sh + tObjectFactory.sh tPrettyUnits.sh \ + tParameterValue.sh tParameterSet.sh \ + tParameterSetPerf.sh tgetparsetvalue.sh TESTS = $(TESTSCRIPTS) @@ -31,81 +34,31 @@ EXTRA_DIST = $(TESTSCRIPTS) \ tObjectFactory.stdout tPrettyUnits.stdout testLogger_SOURCES = testLogger.cc -testLogger_LDADD = ../src/libcommon.la -testLogger_DEPENDENCIES = ../src/libcommon.la $(LOFAR_DEPEND) - tAllocator_SOURCES = tAllocator.cc -tAllocator_LDADD = ../src/libcommon.la -tAllocator_DEPENDENCIES = ../src/libcommon.la $(LOFAR_DEPEND) - tDataConvert_SOURCES = tDataConvert.cc -tDataConvert_LDADD = ../src/libcommon.la -tDataConvert_DEPENDENCIES = ../src/libcommon.la $(LOFAR_DEPEND) - tFileLocator_SOURCES = tFileLocator.cc -tFileLocator_LDADD = ../src/libcommon.la -tFileLocator_DEPENDENCIES = ../src/libcommon.la $(LOFAR_DEPEND) - tStringUtil_SOURCES = tStringUtil.cc -tStringUtil_LDADD = ../src/libcommon.la -tStringUtil_DEPENDENCIES = ../src/libcommon.la $(LOFAR_DEPEND) - tStreamUtil_SOURCES = tStreamUtil.cc -tStreamUtil_LDADD = ../src/libcommon.la -tStreamUtil_DEPENDENCIES = ../src/libcommon.la $(LOFAR_DEPEND) - tHexdump_SOURCES = tHexdump.cc -tHexdump_LDADD = ../src/libcommon.la -tHexdump_DEPENDENCIES = ../src/libcommon.la $(LOFAR_DEPEND) - testSocket_SOURCES = testSocket.cc -testSocket_LDADD = ../src/libcommon.la -testSocket_DEPENDENCIES = ../src/libcommon.la $(LOFAR_DEPEND) - tComplex_SOURCES = tComplex.cc -tComplex_LDADD = ../src/libcommon.la -tComplex_DEPENDENCIES = ../src/libcommon.la $(LOFAR_DEPEND) - tProcess_SOURCES = tProcess.cc -tProcess_LDADD = ../src/libcommon.la -tProcess_DEPENDENCIES = ../src/libcommon.la $(LOFAR_DEPEND) - tRunOnNode_SOURCES = tRunOnNode.cc -tRunOnNode_LDADD = ../src/libcommon.la -tRunOnNode_DEPENDENCIES = ../src/libcommon.la $(LOFAR_DEPEND) - tTimer_SOURCES = tTimer.cc -tTimer_LDADD = ../src/libcommon.la -tTimer_DEPENDENCIES = ../src/libcommon.la $(LOFAR_DEPEND) - tNumeric_SOURCES = tNumeric.cc -tNumeric_LDADD = ../src/libcommon.la -tNumeric_DEPENDENCIES = ../src/libcommon.la $(LOFAR_DEPEND) - tSingleton_SOURCES = tSingleton.cc -tSingleton_LDADD = ../src/libcommon.la -tSingleton_DEPENDENCIES = ../src/libcommon.la $(LOFAR_DEPEND) - tObjectFactory_SOURCES = tObjectFactory.cc \ Shapes.h Shapes.cc \ Coordinates.h Coordinates.cc -tObjectFactory_LDADD = ../src/libcommon.la -tObjectFactory_DEPENDENCIES = ../src/libcommon.la $(LOFAR_DEPEND) - tSystemUtil_SOURCES = tSystemUtil.cc -tSystemUtil_LDADD = ../src/libcommon.la -tSystemUtil_DEPENDENCIES = ../src/libcommon.la $(LOFAR_DEPEND) - tSaxpy_SOURCES = tSaxpy.cc -tSaxpy_LDADD = ../src/libcommon.la -tSaxpy_DEPENDENCIES = ../src/libcommon.la $(LOFAR_DEPEND) - tPrettyUnits_SOURCES = tPrettyUnits.cc -tPrettyUnits_LDADD = ../src/libcommon.la -tPrettyUnits_DEPENDENCIES = ../src/libcommon.la $(LOFAR_DEPEND) - tBacktrace_SOURCES = tBacktrace.cc -tBacktrace_LDADD = ../src/libcommon.la -tBacktrace_DEPENDENCIES = ../src/libcommon.la $(LOFAR_DEPEND) +tParameterValue_SOURCES = tParameterValue.cc +tParameterSet_SOURCES = tParameterSet.cc +tParameterSetPerf_SOURCES = tParameterSetPerf.cc + +LDADD = ../src/libcommon.la +DEPENDENCIES = ../src/libcommon.la $(LOFAR_DEPEND) include $(top_srcdir)/Makefile.common diff --git a/LCS/ACC/APS/test/nocase2normal.sed b/LCS/Common/test/nocase2normal.sed similarity index 100% rename from LCS/ACC/APS/test/nocase2normal.sed rename to LCS/Common/test/nocase2normal.sed diff --git a/LCS/ACC/APS/test/tParameterSet.cc b/LCS/Common/test/tParameterSet.cc similarity index 99% rename from LCS/ACC/APS/test/tParameterSet.cc rename to LCS/Common/test/tParameterSet.cc index 3e8e237cfe029afd68e4fb1891bbe342ce9e9040..d3450f4ff6e8c13fc2c49e5f94757fc1cf203eb8 100644 --- a/LCS/ACC/APS/test/tParameterSet.cc +++ b/LCS/Common/test/tParameterSet.cc @@ -26,8 +26,8 @@ #include <Common/lofar_iostream.h> #include <iterator> -#include <APS/ParameterSet.h> -#include <APS/Exceptions.h> +#include <Common/ParameterSet.h> +#include <Common/Exceptions.h> #include <Common/LofarLogger.h> #include <Common/StreamUtil.h> @@ -36,7 +36,6 @@ using namespace std; using namespace LOFAR; -using namespace LOFAR::ACC::APS; int doIt(KeyCompare::Mode mode) { diff --git a/LCS/ACC/APS/test/tParameterSet.in_merge_nocase b/LCS/Common/test/tParameterSet.in_merge_nocase similarity index 100% rename from LCS/ACC/APS/test/tParameterSet.in_merge_nocase rename to LCS/Common/test/tParameterSet.in_merge_nocase diff --git a/LCS/ACC/APS/test/tParameterSet.in_merge_normal b/LCS/Common/test/tParameterSet.in_merge_normal similarity index 100% rename from LCS/ACC/APS/test/tParameterSet.in_merge_normal rename to LCS/Common/test/tParameterSet.in_merge_normal diff --git a/LCS/ACC/APS/test/tParameterSet.in_param_nocase b/LCS/Common/test/tParameterSet.in_param_nocase similarity index 100% rename from LCS/ACC/APS/test/tParameterSet.in_param_nocase rename to LCS/Common/test/tParameterSet.in_param_nocase diff --git a/LCS/ACC/APS/test/tParameterSet.in_param_normal b/LCS/Common/test/tParameterSet.in_param_normal similarity index 100% rename from LCS/ACC/APS/test/tParameterSet.in_param_normal rename to LCS/Common/test/tParameterSet.in_param_normal diff --git a/LCS/ACC/APS/test/tParameterSet.log_prop b/LCS/Common/test/tParameterSet.log_prop similarity index 100% rename from LCS/ACC/APS/test/tParameterSet.log_prop rename to LCS/Common/test/tParameterSet.log_prop diff --git a/LCS/ACC/APS/test/tParameterSet.sh b/LCS/Common/test/tParameterSet.sh similarity index 100% rename from LCS/ACC/APS/test/tParameterSet.sh rename to LCS/Common/test/tParameterSet.sh diff --git a/LCS/ACC/APS/test/tParameterSet.stdout b/LCS/Common/test/tParameterSet.stdout similarity index 100% rename from LCS/ACC/APS/test/tParameterSet.stdout rename to LCS/Common/test/tParameterSet.stdout diff --git a/LCS/ACC/APS/test/tParameterSetPerf.cc b/LCS/Common/test/tParameterSetPerf.cc similarity index 97% rename from LCS/ACC/APS/test/tParameterSetPerf.cc rename to LCS/Common/test/tParameterSetPerf.cc index b64b00076c4a608af31dc8f077ebaba78652fcbe..29233439b365519c8d2a9a07925ed02ae293d5b4 100644 --- a/LCS/ACC/APS/test/tParameterSetPerf.cc +++ b/LCS/Common/test/tParameterSetPerf.cc @@ -21,12 +21,11 @@ //# $Id$ #include <lofar_config.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <Common/LofarLogger.h> #include <Common/Timer.h> using namespace LOFAR; -using namespace ACC::APS; void test() { diff --git a/LCS/ACC/APS/test/tParameterSetPerf.run b/LCS/Common/test/tParameterSetPerf.run similarity index 100% rename from LCS/ACC/APS/test/tParameterSetPerf.run rename to LCS/Common/test/tParameterSetPerf.run diff --git a/LCS/ACC/APS/test/tParameterSetPerf.sh b/LCS/Common/test/tParameterSetPerf.sh similarity index 100% rename from LCS/ACC/APS/test/tParameterSetPerf.sh rename to LCS/Common/test/tParameterSetPerf.sh diff --git a/LCS/ACC/APS/test/tParameterValue.cc b/LCS/Common/test/tParameterValue.cc similarity index 98% rename from LCS/ACC/APS/test/tParameterValue.cc rename to LCS/Common/test/tParameterValue.cc index 33ef42a331a4a1479779b39de7442f9fb3981d17..18a396156dcf88f55fe31eb7a6b558f371148ce9 100644 --- a/LCS/ACC/APS/test/tParameterValue.cc +++ b/LCS/Common/test/tParameterValue.cc @@ -21,12 +21,11 @@ //# $Id$ #include <lofar_config.h> -#include <APS/ParameterValue.h> +#include <Common/ParameterValue.h> #include <Common/StringUtil.h> #include <Common/LofarLogger.h> using namespace LOFAR; -using namespace ACC::APS; void testScalar() { diff --git a/LCS/ACC/APS/test/tParameterValue.sh b/LCS/Common/test/tParameterValue.sh similarity index 100% rename from LCS/ACC/APS/test/tParameterValue.sh rename to LCS/Common/test/tParameterValue.sh diff --git a/LCS/ACC/APS/test/tgetparsetvalue.parset b/LCS/Common/test/tgetparsetvalue.parset similarity index 100% rename from LCS/ACC/APS/test/tgetparsetvalue.parset rename to LCS/Common/test/tgetparsetvalue.parset diff --git a/LCS/ACC/APS/test/tgetparsetvalue.run b/LCS/Common/test/tgetparsetvalue.run similarity index 100% rename from LCS/ACC/APS/test/tgetparsetvalue.run rename to LCS/Common/test/tgetparsetvalue.run diff --git a/LCS/ACC/APS/test/tgetparsetvalue.sh b/LCS/Common/test/tgetparsetvalue.sh similarity index 100% rename from LCS/ACC/APS/test/tgetparsetvalue.sh rename to LCS/Common/test/tgetparsetvalue.sh diff --git a/LCS/ACC/APS/test/tgetparsetvalue.stdout b/LCS/Common/test/tgetparsetvalue.stdout similarity index 100% rename from LCS/ACC/APS/test/tgetparsetvalue.stdout rename to LCS/Common/test/tgetparsetvalue.stdout diff --git a/LCS/pyparameterset/configure.in b/LCS/pyparameterset/configure.in index 5fd465774c415787f0d29451a04697f2d79e4bed..02413e834dfcee566fbd002d44957686be4f3541 100644 --- a/LCS/pyparameterset/configure.in +++ b/LCS/pyparameterset/configure.in @@ -54,7 +54,6 @@ dnl dnl Check for LOFAR specific things dnl lofar_GENERAL -lofar_INTERNAL(LCS/ACC/APS,APS,,1,APS/ParameterSet.h) lofar_INTERNAL(LCS/Common,Common,,1,Common/LofarTypedefs.h) lofar_INTERNAL(LCS/pytools,pytools,,,,"") diff --git a/LCS/pyparameterset/src/pyparameterset.cc b/LCS/pyparameterset/src/pyparameterset.cc index 3f624521070d34023cb43b8d86d2ff1df0eab972..6af366e6015d9c6634a7dcf15349e756689f6bd8 100644 --- a/LCS/pyparameterset/src/pyparameterset.cc +++ b/LCS/pyparameterset/src/pyparameterset.cc @@ -20,7 +20,7 @@ //# $Id$ #include <lofar_config.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <pyrap/Converters/PycExcp.h> #include <pyrap/Converters/PycBasicData.h> @@ -34,7 +34,7 @@ using namespace boost::python; using namespace casa::pyrap; -namespace LOFAR { namespace ACC { namespace APS { +namespace LOFAR { class PyParameterSet : public ParameterSet { @@ -232,7 +232,7 @@ namespace LOFAR { namespace ACC { namespace APS { ; } -}}} +} // Define the python module itself. @@ -240,7 +240,7 @@ BOOST_PYTHON_MODULE(_pyparameterset) { casa::pyrap::register_convert_excp(); casa::pyrap::register_convert_basicdata(); - casa::pyrap::register_convert_std_vector<LOFAR::ACC::APS::ParameterValue>(); + casa::pyrap::register_convert_std_vector<ParameterValue>(); casa::pyrap::register_convert_std_vector<bool>(); casa::pyrap::register_convert_std_vector<int>(); casa::pyrap::register_convert_std_vector<float>(); @@ -248,6 +248,6 @@ BOOST_PYTHON_MODULE(_pyparameterset) casa::pyrap::register_convert_std_vector<std::string>(); // casa::pyrap::register_convert_casa_record(); - LOFAR::ACC::APS::pyparametervalue(); - LOFAR::ACC::APS::pyparameterset(); + pyparametervalue(); + pyparameterset(); } diff --git a/MAC/APL/APLCommon/configure.in b/MAC/APL/APLCommon/configure.in index 8e05cf7cd761abf2b76b15fd1a1cbaeb7b0e0131..a68de81ab4091db7a6a6364bb835dd68e07313ca 100644 --- a/MAC/APL/APLCommon/configure.in +++ b/MAC/APL/APLCommon/configure.in @@ -55,7 +55,6 @@ dnl lofar_GENERAL lofar_COMPILETOOLS lofar_INTERNAL(LCS/Common, Common, , 1, Common/LofarTypes.h,,) -lofar_INTERNAL(LCS/ACC/APS, APS, , 1, APS/ParameterSet.h,,) lofar_INTERNAL(MAC/GCF/TM, GCFTM, , 1, GCF/TM/GCF_Control.h,,) lofar_INTERNAL(MAC/MACIO, MACIO, , 1, MACIO/MACServiceInfo.h,"",) dnl lofar_EXTERNAL(boost,1,boost/date_time/date.hpp, boost_date_time) diff --git a/MAC/APL/APLCommon/src/ChildControl.cc b/MAC/APL/APLCommon/src/ChildControl.cc index c198c4ce2ee8d54f57ccd2ccd59f82831aa176c3..8eb8ad83edc1d7ca17ed616c9e4f3d3a8540a7fd 100644 --- a/MAC/APL/APLCommon/src/ChildControl.cc +++ b/MAC/APL/APLCommon/src/ChildControl.cc @@ -27,7 +27,7 @@ #include <sys/stat.h> #include <Common/LofarLogger.h> #include <Common/SystemUtil.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <GCF/TM/GCF_Protocols.h> #include <MACIO/MACServiceInfo.h> #include <APL/APLCommon/APLUtilities.h> @@ -42,7 +42,6 @@ using namespace boost; namespace LOFAR { using namespace Deployment; using namespace GCF::TM; - using namespace ACC::APS; namespace APLCommon { //-------------------------- creation and destroy --------------------------- diff --git a/MAC/APL/APLCommon/src/ControllerDefines.cc b/MAC/APL/APLCommon/src/ControllerDefines.cc index 1b024906e5fbfaf9cedefe3c77917987226140d7..9ee4c4a1bfe0132d120d492dc4dc7b847c2e0695 100644 --- a/MAC/APL/APLCommon/src/ControllerDefines.cc +++ b/MAC/APL/APLCommon/src/ControllerDefines.cc @@ -27,7 +27,7 @@ #include <Common/LofarLogger.h> #include <Common/StringUtil.h> // rtrim #include <Common/SystemUtil.h> -#include <APS/ParameterSet.h> // indexValue +#include <Common/ParameterSet.h> // indexValue #include <APL/APLCommon/ControllerDefines.h> #include <APL/APLCommon/StationInfo.h> #include "Controller_Protocol.ph" @@ -165,7 +165,7 @@ bool isSharedController(uint16 cntlrType) // Get the ObservationNr from the controllername. uint32 getObservationNr (const string& controllerName) { - return (ACC::APS::indexValue(controllerName, "{}")); + return (indexValue(controllerName, "{}")); } // @@ -176,7 +176,7 @@ uint16 getInstanceNr (const string& controllerName) { string cntlrName (controllerName); // destroyable copy rtrim(cntlrName, "{}0123456789"); - return (ACC::APS::indexValue(cntlrName, "[]")); + return (indexValue(cntlrName, "[]")); } // diff --git a/MAC/APL/APLCommon/src/ParentControl.cc b/MAC/APL/APLCommon/src/ParentControl.cc index 517ca346815249aaddcc2c89ce19bdac17c10198..4e8b9d99cb7c8974c48890ebf869d692b05fc04b 100644 --- a/MAC/APL/APLCommon/src/ParentControl.cc +++ b/MAC/APL/APLCommon/src/ParentControl.cc @@ -26,7 +26,7 @@ //# Includes #include <Common/LofarLogger.h> #include <Common/SystemUtil.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <GCF/TM/GCF_Protocols.h> #include <MACIO/MACServiceInfo.h> #include <APL/APLCommon/APLUtilities.h> @@ -38,7 +38,6 @@ namespace LOFAR { using namespace Deployment; using namespace GCF::TM; - using namespace ACC::APS; namespace APLCommon { typedef struct stateFlow_t { diff --git a/MAC/APL/CEPCU/configure.in b/MAC/APL/CEPCU/configure.in index 9ff9ceb7c07b6fdc604c1d3e603d1dd2ab7343d6..f2d5ac2ca2ceae032589a41174c51ed1beba2571 100644 --- a/MAC/APL/CEPCU/configure.in +++ b/MAC/APL/CEPCU/configure.in @@ -56,7 +56,6 @@ lofar_GENERAL lofar_COMPILETOOLS lofar_PVSS(1) lofar_INTERNAL(LCS/Common, Common,, 1, Common/LofarTypes.h,,) -lofar_INTERNAL(LCS/ACC/APS, APS,, 1, APS/ParameterSet.h,,) lofar_INTERNAL(LCS/ApplCommon, ApplCommon,, 1, ApplCommon/Observation.h,,) lofar_INTERNAL(LCS/ACC/ALC, ALC,, 1, ALC/ApplControl.h,,) lofar_INTERNAL(LCS/ACC/PLC, PLC,, 1, PLC/PCCmd.h,,) diff --git a/MAC/APL/CEPCU/src/ApplController/ACDaemon.h b/MAC/APL/CEPCU/src/ApplController/ACDaemon.h index eea7a17bc2e9ac47879cc91867c18d896522b3a9..a84c6777b6d31653d4184ed03233c1c1831c5381 100644 --- a/MAC/APL/CEPCU/src/ApplController/ACDaemon.h +++ b/MAC/APL/CEPCU/src/ApplController/ACDaemon.h @@ -33,10 +33,9 @@ #include <Common/Exception.h> #include <Common/Net/Socket.h> #include <Common/Net/FdSet.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include "ACRequestPool.h" -using namespace LOFAR::ACC::APS; namespace LOFAR { namespace ACC { diff --git a/MAC/APL/CEPCU/src/ApplController/ApplController.h b/MAC/APL/CEPCU/src/ApplController/ApplController.h index e838ede56dcfa322d5f25ab815930bc78f38ba2c..a8a63fa87ade66f3d5c197f5628883e6c3f28e4c 100644 --- a/MAC/APL/CEPCU/src/ApplController/ApplController.h +++ b/MAC/APL/CEPCU/src/ApplController/ApplController.h @@ -37,7 +37,7 @@ #include <Transport/TH_Socket.h> #include <ALC/ApplControlServer.h> //# communication stub #include <PLC/DH_ProcControl.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <MACIO/EventPort.h> #include "ACCmdImpl.h" //# the real implementation #include "ACDaemonComm.h" @@ -47,7 +47,6 @@ #include "ItemList.h" #include "ProcRuler.h" -using namespace LOFAR::ACC::APS; using namespace LOFAR::ACC::ALC; using namespace LOFAR::ACC::PLC; diff --git a/MAC/APL/CEPCU/src/ApplController/ConfigurationMgr.cc b/MAC/APL/CEPCU/src/ApplController/ConfigurationMgr.cc index abe9a95b3efe8badcd4ef6f6abe3521ee04cabc8..a20ebf8fa062aa5ddbed7065b12e83484025c512 100644 --- a/MAC/APL/CEPCU/src/ApplController/ConfigurationMgr.cc +++ b/MAC/APL/CEPCU/src/ApplController/ConfigurationMgr.cc @@ -27,7 +27,7 @@ //# $Id$ #include <Common/LofarLogger.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <PL/TPersistentObject.h> #include <PL/PersistenceBroker.h> #include <PL/Attrib.h> diff --git a/MAC/APL/CEPCU/src/ApplController/ConfigurationMgr.h b/MAC/APL/CEPCU/src/ApplController/ConfigurationMgr.h index e93ac88baf68824fe3fd70ae4517f0a8ffda3d2d..123fc607cbaed27ebaf835c7136a3833cd3a6c5f 100644 --- a/MAC/APL/CEPCU/src/ApplController/ConfigurationMgr.h +++ b/MAC/APL/CEPCU/src/ApplController/ConfigurationMgr.h @@ -31,9 +31,8 @@ //# Never #include <config.h> or #include <lofar_config.h> in a header file! #include <Common/lofar_string.h> #include <PL/PersistenceBroker.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> -using LOFAR::ACC::APS::ParameterSet; namespace LOFAR { namespace ACC { diff --git a/MAC/APL/CEPCU/src/ApplController/ItemList.h b/MAC/APL/CEPCU/src/ApplController/ItemList.h index f817595792cbd750faa57ff492d48e732d3ea279..590ce6d99238a465cdd4efc48650b13e63188b8b 100644 --- a/MAC/APL/CEPCU/src/ApplController/ItemList.h +++ b/MAC/APL/CEPCU/src/ApplController/ItemList.h @@ -31,9 +31,8 @@ //# Never #include <config.h> or #include <lofar_config.h> in a header file! //# Includes #include <Common/lofar_vector.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> -using namespace LOFAR::ACC::APS; namespace LOFAR { namespace ACC { diff --git a/MAC/APL/CEPCU/src/ApplController/StateEngine.h b/MAC/APL/CEPCU/src/ApplController/StateEngine.h index 3b984913dc97dbb5392e1262c4f2a203bd9fae8b..8860093af673c512876b564bdbc13efc130afdd5 100644 --- a/MAC/APL/CEPCU/src/ApplController/StateEngine.h +++ b/MAC/APL/CEPCU/src/ApplController/StateEngine.h @@ -32,9 +32,8 @@ //# Includes #include <Common/Exception.h> #include <ALC/DH_ApplControl.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> -using namespace LOFAR::ACC::APS; using namespace LOFAR::ACC::ALC; namespace LOFAR { diff --git a/MAC/APL/CEPCU/src/OfflineControl/OfflineControl.cc b/MAC/APL/CEPCU/src/OfflineControl/OfflineControl.cc index 2b2c95d971c0b746a178021c293c89334c5033a1..2412be7ef3d241267bab3f77bd5f81ab0de00c6f 100644 --- a/MAC/APL/CEPCU/src/OfflineControl/OfflineControl.cc +++ b/MAC/APL/CEPCU/src/OfflineControl/OfflineControl.cc @@ -23,8 +23,8 @@ #include <Common/LofarLogger.h> #include <boost/shared_array.hpp> -#include <APS/ParameterSet.h> -#include <APS/Exceptions.h> +#include <Common/ParameterSet.h> +#include <Common/Exceptions.h> #include <GCF/GCF_PVTypes.h> #include <GCF/PAL/GCF_PVSSInfo.h> #include <GCF/Utils.h> @@ -46,7 +46,6 @@ using namespace std; namespace LOFAR { using namespace APLCommon; - using namespace ACC::APS; using namespace ACC::ALC; namespace CEPCU { @@ -451,7 +450,7 @@ uint16_t OfflineControl::doClaim(const string& cntlrName) CEPApplicationManagerPtr accClient(new CEPApplicationManager(*this, procName)); itsCepApplications[procName] = accClient; - ACC::APS::ParameterSet params; + ParameterSet params; params.clear(); // import the ApplCtrl section params.adoptCollection(globalParameterSet()->makeSubset("ApplCtrl", "ApplCtrl")); @@ -493,7 +492,7 @@ uint16_t OfflineControl::doPrepare(const string& cntlrName) try { - map<string, ACC::APS::ParameterSet>::iterator it; + map<string, ParameterSet>::iterator it; for(it = itsCepAppParams.begin(); it != itsCepAppParams.end();++it) { // only start processes that do not depend on other processes @@ -518,7 +517,7 @@ uint16_t OfflineControl::doPrepare(const string& cntlrName) // void OfflineControl::prepareProcess(const string& cntlrName, const string& procName, const time_t startTime) { - map<string, ACC::APS::ParameterSet>::iterator it = itsCepAppParams.find(procName); + map<string, ParameterSet>::iterator it = itsCepAppParams.find(procName); if(it != itsCepAppParams.end()) { string procName = it->second.getString("ApplCtrl.process[1].ID"); string hostName = it->second.getString("ApplCtrl.hostname"); @@ -592,7 +591,7 @@ void OfflineControl::prepareProcess(const string& cntlrName, const string& procN void OfflineControl::doRelease(void) { try { - map<string, ACC::APS::ParameterSet>::iterator it; + map<string, ParameterSet>::iterator it; for(it = itsCepAppParams.begin(); it != itsCepAppParams.end();++it) { string hostName, remoteFile, resultFile, procName; hostName = it->second.getString("ApplCtrl.hostname"); @@ -650,7 +649,7 @@ void OfflineControl::appBooted(const string& procName, uint16 result) if (result == (AcCmdMaskOk | AcCmdMaskScheduled)) { map<string,CEPApplicationManagerPtr>::iterator itApp = itsCepApplications.find(procName); - map<string, ACC::APS::ParameterSet>::iterator itParam = itsCepAppParams.find(procName); + map<string, ParameterSet>::iterator itParam = itsCepAppParams.find(procName); map<string,time_t>::iterator itStart = itsCepAppStartTimes.find(procName); if(itApp != itsCepApplications.end() && itParam != itsCepAppParams.end() && itStart != itsCepAppStartTimes.end()) { @@ -686,7 +685,7 @@ void OfflineControl::appDefined(const string& procName, uint16 result) if (result == (AcCmdMaskOk | AcCmdMaskScheduled)) { map<string,CEPApplicationManagerPtr>::iterator itApp = itsCepApplications.find(procName); - map<string, ACC::APS::ParameterSet>::iterator itParam = itsCepAppParams.find(procName); + map<string, ParameterSet>::iterator itParam = itsCepAppParams.find(procName); map<string,time_t>::iterator itStart = itsCepAppStartTimes.find(procName); if(itApp != itsCepApplications.end() && itParam != itsCepAppParams.end() && itStart != itsCepAppStartTimes.end()) { @@ -791,7 +790,7 @@ void OfflineControl::appQuitDone(const string& procName, uint16 result) // If the list only contains the finished process, the new process can be started if(itDep->second.size() == 1) { - map<string, ACC::APS::ParameterSet>::iterator itParam = itsCepAppParams.find(procName); + map<string, ParameterSet>::iterator itParam = itsCepAppParams.find(procName); if(itParam != itsCepAppParams.end()) { // boot the process in 30 seconds @@ -852,7 +851,7 @@ void OfflineControl::appRecovered(const string& procName, uint16 /*result*/) LOG_INFO_STR("appRecovered from " << procName); map<string,CEPApplicationManagerPtr>::iterator itApp = itsCepApplications.find(procName); - map<string, ACC::APS::ParameterSet>::iterator itParam = itsCepAppParams.find(procName); + map<string, ParameterSet>::iterator itParam = itsCepAppParams.find(procName); map<string,time_t>::iterator itStart = itsCepAppStartTimes.find(procName); if(itApp != itsCepApplications.end() && itParam != itsCepAppParams.end() && itStart != itsCepAppStartTimes.end()) { diff --git a/MAC/APL/CEPCU/src/OfflineControl/OfflineControl.h b/MAC/APL/CEPCU/src/OfflineControl/OfflineControl.h index eb543f89fff712899eae251f09e9cb0a77f32a3c..85d4a2bbaa69e9ede57178f8c2ba9217514c2d6c 100644 --- a/MAC/APL/CEPCU/src/OfflineControl/OfflineControl.h +++ b/MAC/APL/CEPCU/src/OfflineControl/OfflineControl.h @@ -30,7 +30,7 @@ #include <Common/LofarLogger.h> //# ACC Includes -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> //# GCF Includes #include <GCF/RTDB/RTDBPropertySet.h> @@ -116,8 +116,8 @@ private: GCFTimerPort* itsTimerPort; map<string, CEPApplicationManager*> itsCepApplications; - map<string, ACC::APS::ParameterSet> itsCepAppParams; - ACC::APS::ParameterSet itsResultParams; + map<string, ParameterSet> itsCepAppParams; + ParameterSet itsResultParams; map<string, vector<string> > itsProcessDependencies; map<string, time_t> itsCepAppStartTimes; diff --git a/MAC/APL/CEPCU/src/OnlineControl/OnlineControl.cc b/MAC/APL/CEPCU/src/OnlineControl/OnlineControl.cc index 719fa2a8f905322c2630e301ac8e5f9eb28f9c65..0fac1b95aed6283117b4d33747d5142286ad56e6 100644 --- a/MAC/APL/CEPCU/src/OnlineControl/OnlineControl.cc +++ b/MAC/APL/CEPCU/src/OnlineControl/OnlineControl.cc @@ -26,8 +26,8 @@ #include <Common/StreamUtil.h> //#include <Common/lofar_vector.h> //#include <Common/lofar_string.h> -#include <APS/ParameterSet.h> -#include <APS/Exceptions.h> +#include <Common/ParameterSet.h> +#include <Common/Exceptions.h> #include <GCF/PVSS/GCF_PVTypes.h> #include <Common/SystemUtil.h> #include <MACIO/MACServiceInfo.h> @@ -51,7 +51,6 @@ using namespace std; namespace LOFAR { using namespace APLCommon; - using namespace ACC::APS; using namespace ACC::ALC; namespace CEPCU { diff --git a/MAC/APL/CEPCU/src/OnlineControl/OnlineControl.h b/MAC/APL/CEPCU/src/OnlineControl/OnlineControl.h index f9dd572fb0a2fa35e5f2a81ac92b60f8361b0885..f459d178767f5b4c74353adf0a78bfa180d23ebd 100644 --- a/MAC/APL/CEPCU/src/OnlineControl/OnlineControl.h +++ b/MAC/APL/CEPCU/src/OnlineControl/OnlineControl.h @@ -30,7 +30,7 @@ #include <Common/LofarLogger.h> //# ACC Includes -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> //# GCF Includes #include <GCF/TM/GCF_Control.h> @@ -130,7 +130,7 @@ private: GCFTimerPort* itsTimerPort; CAMmap itsCEPapplications; - ACC::APS::ParameterSet itsResultParams; + ParameterSet itsResultParams; CTState::CTstateNr itsState; diff --git a/MAC/APL/CEPCU/test/ApplController/APCmdImpl.h b/MAC/APL/CEPCU/test/ApplController/APCmdImpl.h index 6d5a37e359567dde849c217e15713e90708605a9..309d5245fbc62369ee3efd875c175ed55ed71e34 100644 --- a/MAC/APL/CEPCU/test/ApplController/APCmdImpl.h +++ b/MAC/APL/CEPCU/test/ApplController/APCmdImpl.h @@ -27,7 +27,7 @@ //# Includes #include <PLC/ProcessControl.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <Common/lofar_tribool.h> using namespace LOFAR::ACC::PLC; diff --git a/MAC/APL/CEPCU/test/ApplController/APExample.cc b/MAC/APL/CEPCU/test/ApplController/APExample.cc index e6ca4db7191aee79231fc8f5c97c19e50b86e51b..8a2507945da09eeaa62c0916c878172d2d083fde 100644 --- a/MAC/APL/CEPCU/test/ApplController/APExample.cc +++ b/MAC/APL/CEPCU/test/ApplController/APExample.cc @@ -28,12 +28,11 @@ #include <libgen.h> #include <Common/LofarLogger.h> #include <PLC/ProcControlServer.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <APCmdImpl.h> using namespace LOFAR; using namespace LOFAR::ACC; -using namespace LOFAR::ACC::APS; using namespace LOFAR::ACC::PLC; // diff --git a/MAC/APL/CEPCU/test/ApplController/APTest.cc b/MAC/APL/CEPCU/test/ApplController/APTest.cc index 02f7db4daacff2638a168282f72ab5a4da693585..f73436313e7c03d29b0d34524fcff6ebcde5783a 100644 --- a/MAC/APL/CEPCU/test/ApplController/APTest.cc +++ b/MAC/APL/CEPCU/test/ApplController/APTest.cc @@ -30,12 +30,11 @@ #include <Common/LofarLogger.h> #include <Common/LofarLocators.h> #include <PLC/ProcControlServer.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <APCmdImpl.h> using namespace LOFAR; using namespace LOFAR::ACC; -using namespace LOFAR::ACC::APS; using namespace LOFAR::ACC::PLC; // diff --git a/MAC/APL/CUDaemons/configure.in b/MAC/APL/CUDaemons/configure.in index cc8a5f0bfa470d817efbfff3e28e39727e0c5b8a..1c794935f8142a832e0abff4d38f2b229629cb2f 100644 --- a/MAC/APL/CUDaemons/configure.in +++ b/MAC/APL/CUDaemons/configure.in @@ -55,7 +55,6 @@ dnl lofar_GENERAL lofar_COMPILETOOLS lofar_INTERNAL(LCS/Common, Common, , 1, Common/LofarTypes.h,,) -lofar_INTERNAL(LCS/ACC/APS, APS, , 1, APS/ParameterSet.h,,) lofar_INTERNAL(MAC/MACIO, MACIO, , 1, MACIO/MACServiceInfo.h,"kvt_protocol log_protocol macio",) lofar_INTERNAL(MAC/GCF/TM, GCFTM, , 1, GCF/TM/GCF_Task.h,,) lofar_INTERNAL(MAC/APL/APLCommon, APLCommon, , 1, APL/APLCommon/APL_Defines.h,,) diff --git a/MAC/APL/CUDaemons/src/LoggingClient/LoggingClient.cc b/MAC/APL/CUDaemons/src/LoggingClient/LoggingClient.cc index 7f038dcee1399d3d0f85d9c09ff07496001b4213..e4f0b0b7e9803b38979d1a69200e41ee13c56968 100644 --- a/MAC/APL/CUDaemons/src/LoggingClient/LoggingClient.cc +++ b/MAC/APL/CUDaemons/src/LoggingClient/LoggingClient.cc @@ -24,7 +24,7 @@ #include <Common/LofarLogger.h> #include <Common/lofar_fstream.h> #include <Common/Version.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> //#include <GCF/PVSS/GCF_PVTypes.h> #include <MACIO/MACServiceInfo.h> #include <MACIO/LOG_Protocol.ph> @@ -36,7 +36,6 @@ using namespace log4cplus; using namespace log4cplus::helpers; namespace LOFAR { - using namespace ACC::APS; using namespace GCF::TM; namespace CUDaemons { diff --git a/MAC/APL/CUDaemons/src/ServiceBroker/ServiceBroker.cc b/MAC/APL/CUDaemons/src/ServiceBroker/ServiceBroker.cc index 93474f6c8674147690a3f476bbde5aa5f976fe71..ea1a628b0165a73bf01259b0260d5e234293cccc 100644 --- a/MAC/APL/CUDaemons/src/ServiceBroker/ServiceBroker.cc +++ b/MAC/APL/CUDaemons/src/ServiceBroker/ServiceBroker.cc @@ -26,7 +26,7 @@ #include <Common/lofar_fstream.h> #include <Common/Version.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <MACIO/MACServiceInfo.h> #include <MACIO/SB_Protocol.ph> #include <MACIO/GCF_Event.h> @@ -244,12 +244,12 @@ void ServiceBroker::acceptConnectRequest() // void ServiceBroker::readRanges() { - ASSERTSTR (ACC::APS::globalParameterSet()->isDefined("firstPortNumber") && - ACC::APS::globalParameterSet()->isDefined("lastPortNumber"), + ASSERTSTR (globalParameterSet()->isDefined("firstPortNumber") && + globalParameterSet()->isDefined("lastPortNumber"), "Ranges not specified in ParameterSet"); - itsLowerLimit = ACC::APS::globalParameterSet()->getUint16("firstPortNumber"); - itsUpperLimit = ACC::APS::globalParameterSet()->getUint16("lastPortNumber"); + itsLowerLimit = globalParameterSet()->getUint16("firstPortNumber"); + itsUpperLimit = globalParameterSet()->getUint16("lastPortNumber"); ASSERTSTR(itsLowerLimit < itsUpperLimit, "Invalid portnumber range specified"); ASSERTSTR(itsLowerLimit > 1023, "Portnumbers below 1024 may not be used"); @@ -271,11 +271,11 @@ void ServiceBroker::readRanges() itsLowerLimit, itsUpperLimit, itsNrPorts)); // Finally read or construct name of adminfile. - if (!ACC::APS::globalParameterSet()->isDefined("adminFile")) { + if (!globalParameterSet()->isDefined("adminFile")) { itsAdminFile = "./SB.admin"; } else { - itsAdminFile = ACC::APS::globalParameterSet()->getString("adminFile"); + itsAdminFile = globalParameterSet()->getString("adminFile"); } LOG_INFO_STR ("Using file " << itsAdminFile << " for administration"); } diff --git a/MAC/APL/CURTDBDaemons/configure.in b/MAC/APL/CURTDBDaemons/configure.in index fe657b4ab2751da79f0c3d00093aa4cd2573d89b..6e01748dda44065a0aec6abd66818dbb42115c33 100644 --- a/MAC/APL/CURTDBDaemons/configure.in +++ b/MAC/APL/CURTDBDaemons/configure.in @@ -56,7 +56,6 @@ lofar_GENERAL lofar_COMPILETOOLS lofar_PVSS(1) lofar_INTERNAL(LCS/Common, Common, , 1, Common/LofarTypes.h,,) -lofar_INTERNAL(LCS/ACC/APS, APS, , 1, APS/ParameterSet.h,,) lofar_INTERNAL(MAC/MACIO, MACIO, , 1, MACIO/MACServiceInfo.h,"kvt_protocol log_protocol",) lofar_INTERNAL(MAC/GCF/TM, GCFTM, , 1, GCF/TM/GCF_Task.h,,) lofar_INTERNAL(MAC/APL/APLCommon, APLCommon, , 1, APL/APLCommon/APL_Defines.h,,) diff --git a/MAC/APL/CURTDBDaemons/src/KeyValueLogger/KeyValueLogger.cc b/MAC/APL/CURTDBDaemons/src/KeyValueLogger/KeyValueLogger.cc index 963c8d32286b121a3b36dbd1c6a276e10983de5c..a4ca6804ba8c31dfe22aae1c0b4f296dfea63161 100644 --- a/MAC/APL/CURTDBDaemons/src/KeyValueLogger/KeyValueLogger.cc +++ b/MAC/APL/CURTDBDaemons/src/KeyValueLogger/KeyValueLogger.cc @@ -23,7 +23,7 @@ #include <lofar_config.h> #include <Common/LofarLogger.h> #include <Common/Version.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <MACIO/GCF_Event.h> #include <MACIO/MACServiceInfo.h> #include <MACIO/KVT_Protocol.ph> @@ -211,7 +211,7 @@ GCFEvent::TResult KeyValueLogger::operational(GCFEvent& event, answer.seqnr = logEvent.seqnr; answer.result = PVSS::SA_NO_ERROR; - int32 timeStamp = ACC::APS::indexValue(logEvent.key, "{}"); + int32 timeStamp = indexValue(logEvent.key, "{}"); rtrim (logEvent.key, "{}01234565789"); // cut off timestamp // replace all but last . with underscore. string::reverse_iterator riter = logEvent.key.rbegin(); @@ -253,7 +253,7 @@ GCFEvent::TResult KeyValueLogger::operational(GCFEvent& event, answer.seqnr = logEvent.seqnr; answer.result = PVSS::SA_NO_ERROR; for (uint32 i = 0; i < logEvent.msgCount; i++) { - int32 timeStamp = ACC::APS::indexValue(logEvent.keys.theVector[i], "{}"); + int32 timeStamp = indexValue(logEvent.keys.theVector[i], "{}"); rtrim (logEvent.keys.theVector[i], "{}01234565789"); // cut off timestamp // replace all but last . with underscore. string::reverse_iterator riter = logEvent.keys.theVector[i].rbegin(); diff --git a/MAC/APL/CURTDBDaemons/src/SASGateway/SASGateway.cc b/MAC/APL/CURTDBDaemons/src/SASGateway/SASGateway.cc index cdcbca703ff1cb6732313b1d6397e23f0eb570ca..48a12179a8c323db33e8ec1847434487e06a0443 100644 --- a/MAC/APL/CURTDBDaemons/src/SASGateway/SASGateway.cc +++ b/MAC/APL/CURTDBDaemons/src/SASGateway/SASGateway.cc @@ -23,7 +23,7 @@ #include <lofar_config.h> #include <Common/LofarLogger.h> #include <Common/Version.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <MACIO/GCF_Event.h> #include <MACIO/MACServiceInfo.h> #include <MACIO/KVT_Protocol.ph> @@ -39,7 +39,6 @@ namespace LOFAR { using namespace MACIO; - using namespace ACC::APS; using namespace OTDB; using namespace Deployment; namespace GCF { diff --git a/MAC/APL/MainCU/configure.in b/MAC/APL/MainCU/configure.in index f59213ce5d814514222f1d859d31461c9f01001a..c30a8d7bae4354ab9309fc49de22fce15a212d59 100644 --- a/MAC/APL/MainCU/configure.in +++ b/MAC/APL/MainCU/configure.in @@ -56,7 +56,6 @@ lofar_GENERAL lofar_COMPILETOOLS lofar_PVSS(1) lofar_INTERNAL(LCS/Common, Common, , 1, Common/LofarTypes.h,,) -lofar_INTERNAL(LCS/ACC/APS, APS, , 1, APS/ParameterSet.h,,) lofar_INTERNAL(SAS/OTDB, OTDB, , 1, OTDB/OTDBconnection.h,,) lofar_INTERNAL(MAC/MACIO, MACIO, , 1, MACIO/MACServiceInfo.h,,) lofar_INTERNAL(MAC/GCF/TM, GCFTM, , 1, GCF/TM/GCF_Task.h,,) diff --git a/MAC/APL/MainCU/src/MACScheduler/MACScheduler.cc b/MAC/APL/MainCU/src/MACScheduler/MACScheduler.cc index 9eea804ae664d5dbbcf81eb07fa82e06f7049517..b87db1b50019fd86df5ab362c3c74d946c8e175b 100644 --- a/MAC/APL/MainCU/src/MACScheduler/MACScheduler.cc +++ b/MAC/APL/MainCU/src/MACScheduler/MACScheduler.cc @@ -25,7 +25,7 @@ #include <Common/StringUtil.h> #include <Common/Version.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <GCF/TM/GCF_Protocols.h> #include <MACIO/MACServiceInfo.h> #include <GCF/PVSS/GCF_PVTypes.h> @@ -51,7 +51,6 @@ using namespace std; namespace LOFAR { using namespace APLCommon; - using namespace ACC::APS; namespace MainCU { // static (this) pointer used for signal handling @@ -224,7 +223,7 @@ GCFEvent::TResult MACScheduler::initial_state(GCFEvent& event, GCFPortInterface& // Try to connect to the SAS database. - ACC::APS::ParameterSet* pParamSet = ACC::APS::globalParameterSet(); + ParameterSet* pParamSet = globalParameterSet(); string username = pParamSet->getString("OTDBusername"); string DBname = pParamSet->getString("OTDBdatabasename"); string password = pParamSet->getString("OTDBpassword"); diff --git a/MAC/APL/MainCU/src/MACScheduler/MACScheduler.h b/MAC/APL/MainCU/src/MACScheduler/MACScheduler.h index 8aa333f7441132a51ba47f1b6a74dafaa59683d8..672fc2103829bbdc5f85ead5a90f87310c67d3ca 100644 --- a/MAC/APL/MainCU/src/MACScheduler/MACScheduler.h +++ b/MAC/APL/MainCU/src/MACScheduler/MACScheduler.h @@ -44,7 +44,7 @@ #include <OTDB/OTDBconnection.h> #include <OTDB/TreeMaintenance.h> #include <OTDB/OTDBnode.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include "ObsClaimer.h" diff --git a/MAC/APL/MainCU/src/MACScheduler/ObsClaimer.cc b/MAC/APL/MainCU/src/MACScheduler/ObsClaimer.cc index 17127c32c45ff8c7b3a5dd18dd9aaa6234b18e92..70c53feb3dda8c34def5689c0434e9dea0e94313 100644 --- a/MAC/APL/MainCU/src/MACScheduler/ObsClaimer.cc +++ b/MAC/APL/MainCU/src/MACScheduler/ObsClaimer.cc @@ -25,7 +25,7 @@ #include <Common/StreamUtil.h> #include <Common/Version.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <GCF/TM/GCF_Protocols.h> #include <GCF/TM/GCF_PortInterface.h> #include <MACIO/MACServiceInfo.h> @@ -52,7 +52,6 @@ using namespace std; namespace LOFAR { using namespace APLCommon; - using namespace ACC::APS; namespace MainCU { // diff --git a/MAC/APL/MainCU/src/MACScheduler/ObsClaimer.h b/MAC/APL/MainCU/src/MACScheduler/ObsClaimer.h index 79e04dad3bb319c100824a2bea2c99f602fa532d..31bd16a23f9a8c430ea239ee3220d7a6aa6bdaa6 100644 --- a/MAC/APL/MainCU/src/MACScheduler/ObsClaimer.h +++ b/MAC/APL/MainCU/src/MACScheduler/ObsClaimer.h @@ -37,7 +37,7 @@ #include <APL/RTDBCommon/ClaimMgrTask.h> //# ACC Includes -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> // forward declaration diff --git a/MAC/APL/MainCU/src/ObservationControl/ObservationControl.cc b/MAC/APL/MainCU/src/ObservationControl/ObservationControl.cc index 1265da7ddc25365869ca2708670ea518d3e4111c..5540db2a1925365c4d6c7e9948e104f4975dd782 100644 --- a/MAC/APL/MainCU/src/ObservationControl/ObservationControl.cc +++ b/MAC/APL/MainCU/src/ObservationControl/ObservationControl.cc @@ -24,7 +24,7 @@ #include <Common/StreamUtil.h> #include <Common/Version.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <Common/SystemUtil.h> #include <ApplCommon/Observation.h> #include <MACIO/MACServiceInfo.h> @@ -46,7 +46,6 @@ namespace LOFAR { using namespace Deployment; using namespace APLCommon; - using namespace ACC::APS; using namespace GCF::TM; using namespace GCF::PVSS; using namespace GCF::RTDB; diff --git a/MAC/APL/MainCU/src/ObservationControl/ObservationControl.h b/MAC/APL/MainCU/src/ObservationControl/ObservationControl.h index 2d9a4cb658844c111ff459831ea559e483af076a..ba24199ae85efaae43e4d0d5d2655c9914275d01 100644 --- a/MAC/APL/MainCU/src/ObservationControl/ObservationControl.h +++ b/MAC/APL/MainCU/src/ObservationControl/ObservationControl.h @@ -43,7 +43,7 @@ #include <Common/lofar_datetime.h> //# ACC Includes -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> // forward declaration diff --git a/MAC/APL/PAC/BeamServer/src/BeamServer.cc b/MAC/APL/PAC/BeamServer/src/BeamServer.cc index aa0b6159f4ea01e2c956cb0f1f67584635851050..bc9890df8676ba749e949de06e324a16f17e75d8 100644 --- a/MAC/APL/PAC/BeamServer/src/BeamServer.cc +++ b/MAC/APL/PAC/BeamServer/src/BeamServer.cc @@ -25,7 +25,7 @@ #include <Common/LofarLogger.h> #include <Common/LofarLocators.h> #include <Common/Version.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <MACIO/MACServiceInfo.h> diff --git a/MAC/APL/PAC/BeamServer/src/BeamServerMain.cc b/MAC/APL/PAC/BeamServer/src/BeamServerMain.cc index f88c1ececf47ceeab7fb2efba4ebcf9d77cf00bf..990973d42995537fa779c322fd74558a6e363b4a 100644 --- a/MAC/APL/PAC/BeamServer/src/BeamServerMain.cc +++ b/MAC/APL/PAC/BeamServer/src/BeamServerMain.cc @@ -26,7 +26,7 @@ #include <lofar_config.h> #include <Common/LofarLogger.h> #include <Common/LofarLocators.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <GCF/TM/GCF_Task.h> #include <APL/RTCCommon/daemonize.h> @@ -35,7 +35,6 @@ using namespace LOFAR; using namespace LOFAR::BS; using namespace LOFAR::GCF::TM; -using namespace LOFAR::ACC::APS; // // MAIN diff --git a/MAC/APL/PAC/BeamServer/src/beamctl.cc b/MAC/APL/PAC/BeamServer/src/beamctl.cc index 7d591df2225a3bbb0392f601792120a160cd81e7..5db25422d247e11146c61bf43e183d83218b5b46 100644 --- a/MAC/APL/PAC/BeamServer/src/beamctl.cc +++ b/MAC/APL/PAC/BeamServer/src/beamctl.cc @@ -27,7 +27,7 @@ #include <APL/RSP_Protocol/RCUSettings.h> #include <MACIO/MACServiceInfo.h> #include <Common/LofarLocators.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include "beamctl.h" @@ -67,7 +67,6 @@ using namespace std; using namespace blitz; using namespace LOFAR; -using namespace ACC::APS; using namespace BS; using namespace RTC; using namespace CAL_Protocol; @@ -501,7 +500,7 @@ int main(int argc, char** argv) cout << "Reading configuration files" << endl; try { LOFAR::ConfigLocator cl; - LOFAR::ACC::APS::globalParameterSet()->adoptFile(cl.locate("beamctl.conf")); + globalParameterSet()->adoptFile(cl.locate("beamctl.conf")); } catch (LOFAR::Exception& e) { cerr << "Failed to load configuration files: " << e.text() << endl; diff --git a/MAC/APL/PAC/CalServer/src/ACMProxy.cc b/MAC/APL/PAC/CalServer/src/ACMProxy.cc index e7d697ad68df3cf28087b48e379cec5bc4785662..a213a0f4416a13cc612a5cadf1a759fb0b8938b5 100644 --- a/MAC/APL/PAC/CalServer/src/ACMProxy.cc +++ b/MAC/APL/PAC/CalServer/src/ACMProxy.cc @@ -34,7 +34,7 @@ #include <APL/RTCCommon/Timestamp.h> #include <APL/RTCCommon/PSAccess.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> using namespace std; using namespace blitz; diff --git a/MAC/APL/PAC/CalServer/src/CalServer.cc b/MAC/APL/PAC/CalServer/src/CalServer.cc index 8bee3d855365e03aadd4f61a7f581bda7ddf7577..3abebc0792e11598acb5998782744c378e509953 100644 --- a/MAC/APL/PAC/CalServer/src/CalServer.cc +++ b/MAC/APL/PAC/CalServer/src/CalServer.cc @@ -52,7 +52,7 @@ #include <APL/RTCCommon/Timestamp.h> #include <APL/RTCCommon/PSAccess.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <fstream> #include <signal.h> #include <getopt.h> diff --git a/MAC/APL/PIC/MIS/configure.in b/MAC/APL/PIC/MIS/configure.in index 96dc847eda01eb9e2a7c803c029b9a2f4a783bbb..a337971c0714b0572b3b1df60391e8b26c73d101 100644 --- a/MAC/APL/PIC/MIS/configure.in +++ b/MAC/APL/PIC/MIS/configure.in @@ -39,7 +39,6 @@ lofar_GENERAL lofar_COMPILETOOLS lofar_PVSS(1) lofar_INTERNAL(LCS/Common, Common, , 1, Common/LofarTypes.h,,) -lofar_INTERNAL(LCS/ACC/APS, APS, , 1, APS/ParameterSet.h,,) lofar_INTERNAL(MAC/MACIO, MACIO, , 1, MACIO/MACServiceInfo.h,,) lofar_INTERNAL(MAC/GCF/TM, GCFTM, , 1, GCF/TM/GCF_Task.h,,) lofar_INTERNAL(MAC/GCF/PVSS, GCFPVSS, , 1, GCF/PVSS/PVSSservice.h,,) diff --git a/MAC/APL/PIC/MIS/src/MISDaemon.cc b/MAC/APL/PIC/MIS/src/MISDaemon.cc index ec11df3e87443817c8109878b033e7ac3e65ff35..43b76db942db177c6c602519a626be088075bead 100644 --- a/MAC/APL/PIC/MIS/src/MISDaemon.cc +++ b/MAC/APL/PIC/MIS/src/MISDaemon.cc @@ -24,7 +24,7 @@ #include <Common/LofarLogger.h> #include <Common/LofarLocators.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <MACIO/MACServiceInfo.h> #include <GCF/PVSS/GCF_PVTypes.h> #include <GCF/PVSS/PVSSresult.h> @@ -41,7 +41,6 @@ namespace LOFAR { using namespace MACIO; using namespace GCF::TM; - using namespace ACC::APS; namespace AMI { // diff --git a/MAC/APL/PIC/RSPDriver/src/RSPDriver.cc b/MAC/APL/PIC/RSPDriver/src/RSPDriver.cc index a0cb72f272dc386419232cb38645c4a208bb2da6..52d125f7b4f3867194ecba3d0e53fa70b0a73a9b 100644 --- a/MAC/APL/PIC/RSPDriver/src/RSPDriver.cc +++ b/MAC/APL/PIC/RSPDriver/src/RSPDriver.cc @@ -30,7 +30,7 @@ #include <APL/RTCCommon/PSAccess.h> #include <APL/RTCCommon/daemonize.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <APL/RSP_Protocol/RSP_Protocol.ph> #include <APL/RSP_Protocol/EPA_Protocol.ph> diff --git a/MAC/APL/PIC/RSPDriver/test/EPAStub.cc b/MAC/APL/PIC/RSPDriver/test/EPAStub.cc index c5726246fd7d6c9b5ef10f78626dcfd9cd9c5e5e..5d6144dd3e7c7ea1076482ebc3394585dac61a78 100644 --- a/MAC/APL/PIC/RSPDriver/test/EPAStub.cc +++ b/MAC/APL/PIC/RSPDriver/test/EPAStub.cc @@ -32,7 +32,7 @@ #include <APL/RSP_Protocol/BeamletWeights.h> #include <APL/RTCCommon/PSAccess.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <iostream> #include <sys/time.h> diff --git a/MAC/APL/PIC/TBBDriver/configure.in b/MAC/APL/PIC/TBBDriver/configure.in index b7802be5552c6ad34e3a0cdde5854b9b31a111b6..cd99aab159ac053fa60ae0bcab6256f3f55e1a1a 100644 --- a/MAC/APL/PIC/TBBDriver/configure.in +++ b/MAC/APL/PIC/TBBDriver/configure.in @@ -58,7 +58,6 @@ lofar_INTERNAL(MAC/Test/Suite, Suite, , 1, Suite/test.h,,) lofar_INTERNAL(MAC/GCF/TM, GCFTM, , 1, GCF/TM/GCF_Control.h,,) lofar_INTERNAL(MAC/MACIO, MACIO, , 1, MACIO/MACServiceInfo.h,,) lofar_INTERNAL(MAC/APL/PIC/TBB_Protocol,TBB_Protocol,,1,APL/TBB_Protocol/TBB_Protocol.ph,,) -lofar_INTERNAL(LCS/ACC/APS,APS,,1,APS/ParameterSet.h) dnl dnl Output Makefiles diff --git a/MAC/APL/PIC/TBBDriver/src/DriverSettings.cc b/MAC/APL/PIC/TBBDriver/src/DriverSettings.cc index bbc1a45169ac5e64ec5d34894b23e881d5549de7..7d295983bb011c8c40c1705f7f563307e092dc51 100644 --- a/MAC/APL/PIC/TBBDriver/src/DriverSettings.cc +++ b/MAC/APL/PIC/TBBDriver/src/DriverSettings.cc @@ -24,14 +24,13 @@ #include <lofar_config.h> #include <Common/LofarLogger.h> #include <Common/LofarLocators.h> -#include <APS/ParameterSet.h> -#include <APS/Exceptions.h> +#include <Common/ParameterSet.h> +#include <Common/Exceptions.h> #include <MACIO/MACServiceInfo.h> #include <DriverSettings.h> using namespace LOFAR; //using namespace GCFCommon; -using namespace ACC::APS; using namespace TBB; diff --git a/MAC/APL/PIC/TBBDriver/src/TBBDriver.cc b/MAC/APL/PIC/TBBDriver/src/TBBDriver.cc index 1dcfd43065a6d706640a2d7e709d9b1ac306db8e..7c39d91e480eb364a6187018496bf01639521bfc 100644 --- a/MAC/APL/PIC/TBBDriver/src/TBBDriver.cc +++ b/MAC/APL/PIC/TBBDriver/src/TBBDriver.cc @@ -25,7 +25,7 @@ #include <Common/LofarLogger.h> #include <Common/LofarLocators.h> #include <APL/RTCCommon/daemonize.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <MACIO/MACServiceInfo.h> #include <Common/hexdump.h> @@ -72,7 +72,6 @@ #define ETHERTYPE_TP 0x7BB0 // letters of TBB using namespace LOFAR; -using namespace ACC::APS; using namespace TBB; static bool itsDaemonize = false; @@ -1333,8 +1332,8 @@ int main(int argc, char** argv) LOG_DEBUG_STR("Reading configuration files"); try { LOFAR::ConfigLocator cl; - LOFAR::ACC::APS::globalParameterSet()->adoptFile(cl.locate("TBBDriver.conf")); - LOFAR::ACC::APS::globalParameterSet()->adoptFile(cl.locate("RemoteStation.conf")); + LOFAR::globalParameterSet()->adoptFile(cl.locate("TBBDriver.conf")); + LOFAR::globalParameterSet()->adoptFile(cl.locate("RemoteStation.conf")); } catch (LOFAR::Exception& e) { LOG_ERROR_STR("Failed to load configuration files: " << e.text()); diff --git a/MAC/APL/PIC/TBBDriver/test/TPStub.cc b/MAC/APL/PIC/TBBDriver/test/TPStub.cc index 19dbdb76df15af3da923ab332ac6da63a23b7a0b..4c8ef90bd80315ec1dec724d7960fe047afd2168 100644 --- a/MAC/APL/PIC/TBBDriver/test/TPStub.cc +++ b/MAC/APL/PIC/TBBDriver/test/TPStub.cc @@ -24,7 +24,7 @@ #include <lofar_config.h> #include <Common/LofarLogger.h> #include <Common/LofarLocators.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <iostream> #include <sys/time.h> @@ -38,7 +38,6 @@ using namespace std; using namespace LOFAR; -using namespace ACC::APS; using namespace TP_Protocol; using namespace TBB; using namespace TBB_Test; diff --git a/MAC/APL/RTCCommon/include/APL/RTCCommon/PSAccess.h b/MAC/APL/RTCCommon/include/APL/RTCCommon/PSAccess.h index 387fbc2c1ff3a633b56fdae1fd5bc56b966c3285..b72d3f19be5de89bc1e9d1c60b15515d3b5c0339 100644 --- a/MAC/APL/RTCCommon/include/APL/RTCCommon/PSAccess.h +++ b/MAC/APL/RTCCommon/include/APL/RTCCommon/PSAccess.h @@ -25,9 +25,7 @@ #ifndef PSACCESS_H_ #define PSACCESS_H_ -#include <APS/ParameterSet.h> -using LOFAR::ACC::APS::ParameterSet; -using LOFAR::ACC::APS::globalParameterSet; +#include <Common/ParameterSet.h> #define __psaccess__convert_i getInt32 #define __psaccess__convert_f getFloat diff --git a/MAC/APL/RTDBCommon/configure.in b/MAC/APL/RTDBCommon/configure.in index d1d3fc5cc14c4427aa44dc4775bc7b8057735c39..8c9f0924a1d09e1f69e261d3f6b6281bcbe6a69e 100644 --- a/MAC/APL/RTDBCommon/configure.in +++ b/MAC/APL/RTDBCommon/configure.in @@ -56,7 +56,6 @@ lofar_GENERAL lofar_COMPILETOOLS lofar_PVSS(1) lofar_INTERNAL(LCS/Common, Common, , 1, Common/LofarTypes.h,,) -lofar_INTERNAL(LCS/ACC/APS, APS, , 1, APS/ParameterSet.h,,) lofar_INTERNAL(MAC/GCF/TM, GCFTM, , 1, GCF/TM/GCF_Control.h,,) lofar_INTERNAL(MAC/GCF/PVSS, GCFPVSS, , 1, GCF/PVSS/PVSSservice.h,,) lofar_INTERNAL(MAC/GCF/RTDB, GCFRTDB, , 1, GCF/RTDB/RTDB_PropertySet.h,,) diff --git a/MAC/APL/StationCU/configure.in b/MAC/APL/StationCU/configure.in index ab8133c727af821b4b23d0617804b0f71b86d3bd..1a5301018029aff82379cda52dd6b5e661066722 100644 --- a/MAC/APL/StationCU/configure.in +++ b/MAC/APL/StationCU/configure.in @@ -57,7 +57,6 @@ lofar_COMPILETOOLS lofar_PVSS(1) lofar_BLITZ lofar_INTERNAL(LCS/Common, Common,, 1, Common/LofarTypes.h,,) -lofar_INTERNAL(LCS/ACC/APS, APS,, 1, APS/ParameterSet.h,,) lofar_INTERNAL(LCS/ApplCommon, ApplCommon,, 1, ApplCommon/Observation.h,,) dnl lofar_INTERNAL(SAS/OTDB, OTDB,, 1, OTDB/OTDBconnection.h,,) lofar_INTERNAL(MAC/MACIO, MACIO, , 1, MACIO/MACServiceInfo.h,,) diff --git a/MAC/APL/StationCU/src/BeamControl/BeamControl.cc b/MAC/APL/StationCU/src/BeamControl/BeamControl.cc index 8303193901d7ab9bbafec659732b7317475500b2..2bad414a2fe071cec82593275d9dd78bcb7c52bf 100644 --- a/MAC/APL/StationCU/src/BeamControl/BeamControl.cc +++ b/MAC/APL/StationCU/src/BeamControl/BeamControl.cc @@ -25,7 +25,7 @@ #include <Common/Version.h> #include <ApplCommon/Observation.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <GCF/PVSS/GCF_PVTypes.h> #include <Common/SystemUtil.h> #include <MACIO/MACServiceInfo.h> @@ -47,7 +47,6 @@ using namespace std; namespace LOFAR { using namespace APLCommon; - using namespace ACC::APS; namespace StationCU { // static pointer to this object for signal handler diff --git a/MAC/APL/StationCU/src/BeamControl/BeamControl.h b/MAC/APL/StationCU/src/BeamControl/BeamControl.h index fbe8f3287cdcd9e8769188e18611f13772f0bd46..c222897418cc0eb8b77c55f58077c6c6376bde3f 100644 --- a/MAC/APL/StationCU/src/BeamControl/BeamControl.h +++ b/MAC/APL/StationCU/src/BeamControl/BeamControl.h @@ -29,7 +29,7 @@ #include <Common/lofar_datetime.h> //# ACC Includes -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> //# GCF Includes #include <MACIO/GCF_Event.h> diff --git a/MAC/APL/StationCU/src/CalibrationControl/CalibrationControl.cc b/MAC/APL/StationCU/src/CalibrationControl/CalibrationControl.cc index 81d9087c47730b9c73ed928c07d2f4a834b95b6a..ba42f7dc14eadcff3ed8a78981fe13c1497736e3 100644 --- a/MAC/APL/StationCU/src/CalibrationControl/CalibrationControl.cc +++ b/MAC/APL/StationCU/src/CalibrationControl/CalibrationControl.cc @@ -42,7 +42,6 @@ using namespace LOFAR::GCF::RTDB; namespace LOFAR { using namespace APLCommon; - using namespace ACC::APS; namespace StationCU { // static pointer to this object for signal handler diff --git a/MAC/APL/StationCU/src/DigitalBoardControl/DigitalBoardControl.cc b/MAC/APL/StationCU/src/DigitalBoardControl/DigitalBoardControl.cc index 1ffce4687f165e348721b89fbbec8a4792b922fb..68d7151e624b6392c098de55fc05d1ad7441518c 100644 --- a/MAC/APL/StationCU/src/DigitalBoardControl/DigitalBoardControl.cc +++ b/MAC/APL/StationCU/src/DigitalBoardControl/DigitalBoardControl.cc @@ -24,7 +24,7 @@ #include <Common/SystemUtil.h> #include <Common/Version.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <MACIO/MACServiceInfo.h> #include <GCF/PVSS/GCF_PVTypes.h> #include <APL/APLCommon/APL_Defines.h> @@ -45,7 +45,6 @@ using namespace std; namespace LOFAR { using namespace APLCommon; - using namespace ACC::APS; namespace StationCU { // static pointer to this object for signal handler diff --git a/MAC/APL/StationCU/src/DigitalBoardControl/DigitalBoardControl.h b/MAC/APL/StationCU/src/DigitalBoardControl/DigitalBoardControl.h index 4bbcb43ea5a11a198e604c7b74b5c268f7ccd3b5..2524fe8d5441cbf2e202471bcab26592fceee35f 100644 --- a/MAC/APL/StationCU/src/DigitalBoardControl/DigitalBoardControl.h +++ b/MAC/APL/StationCU/src/DigitalBoardControl/DigitalBoardControl.h @@ -28,7 +28,7 @@ #include <Common/lofar_string.h> //# ACC Includes -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> //# GCF Includes #include <MACIO/GCF_Event.h> diff --git a/MAC/APL/StationCU/src/HardwareMonitor/HardwareMonitorMain.cc b/MAC/APL/StationCU/src/HardwareMonitor/HardwareMonitorMain.cc index 8a63d86382e2b33886ef8f13a97dd59b90de746d..b47f3c5516866b9bbbae76d5bac4950687c3d083 100644 --- a/MAC/APL/StationCU/src/HardwareMonitor/HardwareMonitorMain.cc +++ b/MAC/APL/StationCU/src/HardwareMonitor/HardwareMonitorMain.cc @@ -24,7 +24,7 @@ #include <Common/LofarLogger.h> #include <Common/Version.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <APL/RSP_Protocol/RSP_Protocol.ph> #include <GCF/RTDB/DP_Protocol.ph> #include "RSPMonitor.h" @@ -32,7 +32,6 @@ #include "../Package__Version.h" using namespace LOFAR; -using namespace LOFAR::ACC::APS; using namespace LOFAR::GCF; using namespace LOFAR::GCF::TM; using namespace LOFAR::StationCU; diff --git a/MAC/APL/StationCU/src/StationControl/ActiveObs.cc b/MAC/APL/StationCU/src/StationControl/ActiveObs.cc index 22ceef60339e29ab55da00f9d1892698bcd3f2ef..1d027a7b39b527c4c2e3630919935f033c8fd12d 100644 --- a/MAC/APL/StationCU/src/StationControl/ActiveObs.cc +++ b/MAC/APL/StationCU/src/StationControl/ActiveObs.cc @@ -41,7 +41,6 @@ #include "ActiveObs.h" namespace LOFAR { - using ACC::APS::ParameterSet; using namespace APLCommon; using namespace MACIO; using namespace GCF::TM; diff --git a/MAC/APL/StationCU/src/StationControl/ActiveObs.h b/MAC/APL/StationCU/src/StationControl/ActiveObs.h index f015f3cb0704754c8b0414d4d318f90a275e1f83..a38c8cc46181fd1ac32b4fca80e5c5859ad3ee7a 100644 --- a/MAC/APL/StationCU/src/StationControl/ActiveObs.h +++ b/MAC/APL/StationCU/src/StationControl/ActiveObs.h @@ -62,7 +62,7 @@ class ActiveObs : public GCFFsm public: ActiveObs (const string& name, State initial, - ACC::APS::ParameterSet* aPS, + ParameterSet* aPS, GCFTask& task); virtual ~ActiveObs(); diff --git a/MAC/APL/StationCU/src/StationControl/StationControl.cc b/MAC/APL/StationCU/src/StationControl/StationControl.cc index 59c56b1db446f6b28ac86dda187790570936445f..3175ff401e68edf2dfb3824455f7a660017b65ed 100644 --- a/MAC/APL/StationCU/src/StationControl/StationControl.cc +++ b/MAC/APL/StationCU/src/StationControl/StationControl.cc @@ -30,7 +30,7 @@ #include <Common/SystemUtil.h> #include <Common/Version.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <GCF/PVSS/GCF_PVTypes.h> #include <MACIO/MACServiceInfo.h> #include <APL/APLCommon/APL_Defines.h> @@ -57,7 +57,6 @@ using namespace std; namespace LOFAR { using namespace APLCommon; - using namespace ACC::APS; namespace StationCU { // static pointer to this object for signalhandler diff --git a/MAC/APL/StationCU/src/StationControl/StationControl.h b/MAC/APL/StationCU/src/StationControl/StationControl.h index 09d714d9f6394d517b7922cee449c1b3a202df96..b3fd599e23f14bf1da3c614ebe74c560d6b9a850 100644 --- a/MAC/APL/StationCU/src/StationControl/StationControl.h +++ b/MAC/APL/StationCU/src/StationControl/StationControl.h @@ -32,7 +32,7 @@ #include <ApplCommon/Observation.h> //# ACC Includes -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> //# GCF Includes #include <MACIO/GCF_Event.h> diff --git a/MAC/APL/StationCU/src/TBBControl/TBBControl.cc b/MAC/APL/StationCU/src/TBBControl/TBBControl.cc index d8681aaeb2bfef679ebe0124cbe06d05005476bf..80ef45eebdc5e58f2a8b1796d1bfbc62348e17aa 100644 --- a/MAC/APL/StationCU/src/TBBControl/TBBControl.cc +++ b/MAC/APL/StationCU/src/TBBControl/TBBControl.cc @@ -25,7 +25,7 @@ #include <Common/LofarLogger.h> #include <Common/Version.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <GCF/PVSS/GCF_PVTypes.h> #include <GCF/Utils.h> #include <MACIO/MACServiceInfo.h> @@ -56,7 +56,6 @@ using namespace std; using namespace LOFAR; using namespace APLCommon; using namespace RTC; -using namespace ACC::APS; using namespace StationCU; // static pointer to this object for signal handler diff --git a/MAC/APL/StationCU/src/TBBControl/TBBControl.h b/MAC/APL/StationCU/src/TBBControl/TBBControl.h index f120c0cfbdc5e14156e0662274a956e0b2905494..db11af40e5e55f66769744ce8f5341970b1273c3 100644 --- a/MAC/APL/StationCU/src/TBBControl/TBBControl.h +++ b/MAC/APL/StationCU/src/TBBControl/TBBControl.h @@ -29,7 +29,7 @@ #include <Common/lofar_datetime.h> //# ACC Includes -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> //# GCF Includes #include <GCF/TM/GCF_Port.h> diff --git a/MAC/APL/StationCU/src/TBBControl/TBBObservation.cc b/MAC/APL/StationCU/src/TBBControl/TBBObservation.cc index 53074430c8791df7455a8dea46a5e3a8b03832b6..e9cb39446e2113be780b8b3bd6342b5a0e31f249 100644 --- a/MAC/APL/StationCU/src/TBBControl/TBBObservation.cc +++ b/MAC/APL/StationCU/src/TBBControl/TBBObservation.cc @@ -31,7 +31,6 @@ #include "TBBObservation.h" using namespace LOFAR; -using namespace ACC::APS; using namespace StationCU; using namespace APLCommon; diff --git a/MAC/APL/StationCU/src/TBBControl/TBBObservation.h b/MAC/APL/StationCU/src/TBBControl/TBBObservation.h index 0b3f341a183ed5c0aa733421ee531768746575f4..d347a84cba94f2537ceb523c8c3f5e811b18d1d1 100644 --- a/MAC/APL/StationCU/src/TBBControl/TBBObservation.h +++ b/MAC/APL/StationCU/src/TBBControl/TBBObservation.h @@ -30,7 +30,7 @@ //# Includes #include <Common/LofarTypes.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <Common/lofar_bitset.h> namespace LOFAR { @@ -52,7 +52,7 @@ public: TBBObservation(); ~TBBObservation() { }; - explicit TBBObservation (ACC::APS::ParameterSet* aParSet); + explicit TBBObservation (ParameterSet* aParSet); typedef bitset<256> RCUset_t; diff --git a/MAC/APL/StationCU/src/TBBControl/VHECRTask.cc b/MAC/APL/StationCU/src/TBBControl/VHECRTask.cc index ae032af81a6d6d0fd502f9cc3cf7073ef3ae44ad..69d6957289ada76a38fbd756d16f0922db40021b 100644 --- a/MAC/APL/StationCU/src/TBBControl/VHECRTask.cc +++ b/MAC/APL/StationCU/src/TBBControl/VHECRTask.cc @@ -21,12 +21,11 @@ //# $Id$ #include <lofar_config.h> #include <Common/LofarLogger.h> -// #include <APS/ParameterSet.h> +// #include <Common/ParameterSet.h> #include "VHECRTask.h" namespace LOFAR { - // using namespace ACC::APS; namespace StationCU { // diff --git a/MAC/APL/TestCtlr/configure.in b/MAC/APL/TestCtlr/configure.in index 0cfb0e178cad09e12bbc3502ccb11ff3c3a0dcef..959d32db54b2a9f3c967d4cdb5d32178af7299b6 100644 --- a/MAC/APL/TestCtlr/configure.in +++ b/MAC/APL/TestCtlr/configure.in @@ -56,7 +56,6 @@ lofar_GENERAL lofar_COMPILETOOLS lofar_PVSS(1) lofar_INTERNAL(LCS/Common, Common, , 1, Common/LofarTypes.h,,) -lofar_INTERNAL(LCS/ACC/APS, APS, , 1, APS/ParameterSet.h,,) lofar_INTERNAL(MAC/GCF/TM, GCFTM, , 1, GCF/TM/GCF_Task.h,"gcftm",) lofar_INTERNAL(MAC/MACIO, MACIO, , 1, MACIO/MACServiceInfo.h,,) lofar_INTERNAL(MAC/APL/APLCommon, APLCommon, , 1, APL/APLCommon/APL_Defines.h,"aplcommon",) diff --git a/MAC/APL/TestCtlr/src/ControllerMenu.cc b/MAC/APL/TestCtlr/src/ControllerMenu.cc index d44720f5c0fd5da4fbe86301b7272ad274044ab6..e02a2afef8e48b4fa76fd08404ffdccd669100d0 100644 --- a/MAC/APL/TestCtlr/src/ControllerMenu.cc +++ b/MAC/APL/TestCtlr/src/ControllerMenu.cc @@ -25,7 +25,7 @@ #include <Common/lofar_fstream.h> #include <Common/SystemUtil.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <MACIO/MACServiceInfo.h> #include <APL/APLCommon/APL_Defines.h> #include <APL/APLCommon/ControllerDefines.h> @@ -41,7 +41,6 @@ namespace LOFAR { using namespace APLCommon; using namespace GCF::TM; using namespace Deployment; - using namespace ACC::APS; namespace Test { // diff --git a/MAC/APL/TestCtlr/src/ControllerMenu.h b/MAC/APL/TestCtlr/src/ControllerMenu.h index dab5e9b7072c0b6fe380816045d1374409c58833..f30bedb6f2ad3b4eca936ee270f2f9cea40c38c6 100644 --- a/MAC/APL/TestCtlr/src/ControllerMenu.h +++ b/MAC/APL/TestCtlr/src/ControllerMenu.h @@ -42,7 +42,7 @@ #include <Common/LofarLogger.h> //# ACC Includes -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> // forward declaration diff --git a/MAC/APL/TestCtlr/src/TestController.cc b/MAC/APL/TestCtlr/src/TestController.cc index ac4f04321bb318336bf4fd5be8c022679ce6230f..b970de08fc3dbdcbdbc307e4aa14b9449e2a12a1 100644 --- a/MAC/APL/TestCtlr/src/TestController.cc +++ b/MAC/APL/TestCtlr/src/TestController.cc @@ -24,7 +24,7 @@ #include <Common/LofarLogger.h> #include <Common/LofarLocators.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <MACIO/MACServiceInfo.h> #include <APL/APLCommon/APL_Defines.h> #include <APL/APLCommon/Controller_Protocol.ph> @@ -37,7 +37,6 @@ using namespace LOFAR::GCF::TM; namespace LOFAR { using namespace APLCommon; - using namespace ACC::APS; namespace Test { // diff --git a/MAC/GCF/LogSys/KVLogSys/src/GCF_KeyValueLogger.cc b/MAC/GCF/LogSys/KVLogSys/src/GCF_KeyValueLogger.cc index 7b93845b9ee7885d34d5264b39c76c960c2afa13..e0f2564dd23c51db0928c83cdf6fa5dea97d6d1e 100644 --- a/MAC/GCF/LogSys/KVLogSys/src/GCF_KeyValueLogger.cc +++ b/MAC/GCF/LogSys/KVLogSys/src/GCF_KeyValueLogger.cc @@ -24,15 +24,13 @@ #include <GCF/GCF_ServiceInfo.h> #include <GCF/LogSys/GCF_KeyValueLogger.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <KVL_Protocol.ph> #include <KVLDefines.h> #include <sys/time.h> #include <time.h> namespace LOFAR { - using ACC::APS::ParameterSet; - using ACC::APS::globalParameterSet; namespace GCF { using namespace TM; diff --git a/MAC/GCF/LogSys/KVLogSys/src/KVLUtils.cc b/MAC/GCF/LogSys/KVLogSys/src/KVLUtils.cc index 4ac0a4e0884a4c52ac225c1ffe594938cc756b73..d33a592ff834b584e6e4365bd7efbe3e5563521a 100644 --- a/MAC/GCF/LogSys/KVLogSys/src/KVLUtils.cc +++ b/MAC/GCF/LogSys/KVLogSys/src/KVLUtils.cc @@ -23,7 +23,7 @@ #include <lofar_config.h> #include "KVLUtils.h" -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <KVLDefines.h> #include <sys/time.h> #include <time.h> diff --git a/MAC/GCF/LogSys/KVLogSys/src/KeyValueLoggerDaemon.cc b/MAC/GCF/LogSys/KVLogSys/src/KeyValueLoggerDaemon.cc index 09d5fe81a4c7f5399a808f98f1795942d97de802..bb5cc1ed1de4c7087452d38f619efc35668954fb 100644 --- a/MAC/GCF/LogSys/KVLogSys/src/KeyValueLoggerDaemon.cc +++ b/MAC/GCF/LogSys/KVLogSys/src/KeyValueLoggerDaemon.cc @@ -23,7 +23,7 @@ #include <lofar_config.h> #include "KeyValueLoggerDaemon.h" -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <KVLDefines.h> #include <sys/time.h> #include <time.h> diff --git a/MAC/GCF/LogSys/KVLogSys/src/KeyValueLoggerMaster.cc b/MAC/GCF/LogSys/KVLogSys/src/KeyValueLoggerMaster.cc index 1fc5e12c178e87529675b1d9f57c672b4d764ca7..ac2fd2e1e4840a5dcc3e498732d3f1f5581a8d3f 100644 --- a/MAC/GCF/LogSys/KVLogSys/src/KeyValueLoggerMaster.cc +++ b/MAC/GCF/LogSys/KVLogSys/src/KeyValueLoggerMaster.cc @@ -23,7 +23,7 @@ #include <lofar_config.h> #include "KeyValueLoggerMaster.h" -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <KVLDefines.h> #include <sys/time.h> #include <time.h> @@ -37,8 +37,6 @@ namespace LOFAR { using namespace OTDB; - using ACC::APS::ParameterSet; - using ACC::APS::globalParameterSet; namespace GCF { using namespace TM; namespace LogSys { diff --git a/MAC/GCF/LogSys/configure.in b/MAC/GCF/LogSys/configure.in index 73945b885b8f504eb15722060b3f61aa94de3d06..2309a8b48a2aaf7cf72a1cc27f47556decc5be5e 100644 --- a/MAC/GCF/LogSys/configure.in +++ b/MAC/GCF/LogSys/configure.in @@ -43,7 +43,6 @@ lofar_INTERNAL(MAC/GCF/TM, gcftm, , 1, GCF/TM/GCF_Task.h,,) lofar_INTERNAL(MAC/GCF/TM, eventport, , 1, GCF/TM/EventPort.h,,) lofar_INTERNAL(MAC/GCF/PAL, gcfpal, , 1, GCF/PAL/GCF_PVSSInfo.h,,) lofar_INTERNAL(SAS/OTDB, otdb, , 1, OTDB/OTDBconnection.h,,) -lofar_INTERNAL(LCS/ACC/APS, aps, , 1, APS/ParameterSet.h,,) lofar_EXTERNAL(pqxx,2.5.5,pqxx/pqxx, pqxx) lofar_EXTERNAL(pq,,libpq-fe.h,) diff --git a/MAC/GCF/PVSS/src/GSA_SCADAHandler.cc b/MAC/GCF/PVSS/src/GSA_SCADAHandler.cc index 6cb80a3a7af48041731f0d4cc3b11e8e62b44557..201ac6faf832f66d2da24c2e9648b9dc305a2668 100644 --- a/MAC/GCF/PVSS/src/GSA_SCADAHandler.cc +++ b/MAC/GCF/PVSS/src/GSA_SCADAHandler.cc @@ -27,7 +27,7 @@ #include "GSA_SCADAHandler.h" #include <GSA_Resources.h> #include <GCF/TM/GCF_Task.h> -//#include <APS/ParameterSet.h> +//#include <Common/ParameterSet.h> namespace LOFAR { namespace GCF { @@ -48,11 +48,11 @@ GSASCADAHandler* GSASCADAHandler::instance() //#define PARAM_DEFAULT_PVSS_CMDLINE "mac.controller.pvss.cmdline" // string pvssCmdLineParam = PARAM_DEFAULT_PVSS_CMDLINE; // char* appName = strrchr(GCFTask::_argv[0], '/'); -// if (!ACC::APS::globalParameterSet()->isDefined(pvssCmdLineParam)) { +// if (!globalParameterSet()->isDefined(pvssCmdLineParam)) { // pvssCmdLineParam = formatString(PARAM_PVSS_CMDLINE, (appName ? appName + 1 : GCFTask::_argv[0])); // } -// if (ACC::APS::globalParameterSet()->isDefined(pvssCmdLineParam)) { -// cmdline += ACC::APS::globalParameterSet()->getString(pvssCmdLineParam); +// if (globalParameterSet()->isDefined(pvssCmdLineParam)) { +// cmdline += globalParameterSet()->getString(pvssCmdLineParam); // } // The PVSS API 3.0.1 redirects stdout and stderr output automatically to diff --git a/MAC/GCF/TM/configure.in b/MAC/GCF/TM/configure.in index 4b3f75bcac6ffdb4508975ef8c9eb819bf0004f3..7a1a48246c01b43ab5369ca66473e32c95315645 100644 --- a/MAC/GCF/TM/configure.in +++ b/MAC/GCF/TM/configure.in @@ -37,7 +37,6 @@ dnl Check for LOFAR specific things dnl lofar_GENERAL lofar_INTERNAL(LCS/Common, Common, , 1, Common/LofarTypes.h,,) -lofar_INTERNAL(LCS/ACC/APS, APS, , 1, APS/ParameterSet.h,,) lofar_INTERNAL(MAC/MACIO, MACIO, , 1, MACIO/MACServiceInfo.h,,) dnl diff --git a/MAC/GCF/TM/src/GCF_Task.cc b/MAC/GCF/TM/src/GCF_Task.cc index bc8f5b32f83146b22939c7e2a80ef401b8a70caa..dfb89807544d5f05c37262f7077b924f6ccf8419 100644 --- a/MAC/GCF/TM/src/GCF_Task.cc +++ b/MAC/GCF/TM/src/GCF_Task.cc @@ -33,8 +33,7 @@ #include <Common/lofar_fstream.h> #include <Common/LofarLocators.h> -#include <APS/ParameterSet.h> -using LOFAR::ACC::APS::ParameterSet; +#include <Common/ParameterSet.h> using std::ifstream; #include <signal.h> @@ -101,7 +100,7 @@ void GCFTask::init(int argc, char** argv, const string& logfile) } // Read in the ParameterSet of the task (<task>.conf) - ParameterSet* pParamSet = ACC::APS::globalParameterSet(); + ParameterSet* pParamSet = globalParameterSet(); string configFile(aCL.locate(procName + ".conf")); if (!configFile.empty()) { LOG_INFO_STR ("Using parameterfile: " << configFile); diff --git a/MAC/GCF/TM/src/Port/GCF_Port.cc b/MAC/GCF/TM/src/Port/GCF_Port.cc index f90eceaf1aa75c3621228bed718908d366da7465..2043a672a07e52c57991efcc7ad3d02b77173746 100644 --- a/MAC/GCF/TM/src/Port/GCF_Port.cc +++ b/MAC/GCF/TM/src/Port/GCF_Port.cc @@ -23,7 +23,7 @@ #include <lofar_config.h> #include <Common/LofarLogger.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <MACIO/GCF_Event.h> #include <GCF/TM/GCF_Port.h> #include <GCF/TM/GCF_RawPort.h> @@ -36,7 +36,6 @@ #include <GCF/TM/GCF_DevicePort.h> namespace LOFAR { - using namespace ACC::APS; namespace GCF { namespace TM { diff --git a/MAC/GCF/TM/src/Port/GCF_RawPort.cc b/MAC/GCF/TM/src/Port/GCF_RawPort.cc index 9cde2704db529a0c02e4d5b94761297516e63f72..8157592c0c3816f9d32a7ca0032f5640edb16225 100644 --- a/MAC/GCF/TM/src/Port/GCF_RawPort.cc +++ b/MAC/GCF/TM/src/Port/GCF_RawPort.cc @@ -30,10 +30,9 @@ #include <GCF/TM/GCF_Protocols.h> #include <GTM_Defines.h> #include <Timer/GTM_TimerHandler.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> namespace LOFAR { - using namespace ACC::APS; namespace GCF { namespace TM { diff --git a/MAC/GCF/TM/src/PortImpl/GCF_DevicePort.cc b/MAC/GCF/TM/src/PortImpl/GCF_DevicePort.cc index 1f3e0c14da07d45aa84487830fa686f926a8c0a5..dec6fb4964c795e1cc81e2f00bf6ddb9c0f5bdec 100644 --- a/MAC/GCF/TM/src/PortImpl/GCF_DevicePort.cc +++ b/MAC/GCF/TM/src/PortImpl/GCF_DevicePort.cc @@ -28,7 +28,7 @@ #include <GTM_Defines.h> #include <GCF/TM/GCF_Task.h> #include <GCF/TM/GCF_Protocols.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <errno.h> namespace LOFAR @@ -111,7 +111,7 @@ bool GCFDevicePort::open() { // retrieve the device name from the parameter set setDeviceName( - ACC::APS::globalParameterSet()->getString( + globalParameterSet()->getString( formatString( "mac.ns.%s.%s.deviceName", _pTask->getName().c_str(), diff --git a/MAC/GCF/TM/src/PortImpl/GCF_ETHRawPort.cc b/MAC/GCF/TM/src/PortImpl/GCF_ETHRawPort.cc index 08a17055cd2ddb0bfce331c84a494deaef3259eb..13349ada7e24a775f38ed256a44cd2450ea60144 100644 --- a/MAC/GCF/TM/src/PortImpl/GCF_ETHRawPort.cc +++ b/MAC/GCF/TM/src/PortImpl/GCF_ETHRawPort.cc @@ -31,7 +31,7 @@ #include "GTM_ETHSocket.h" #include <GTM_Defines.h> #include <errno.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> namespace LOFAR { @@ -98,7 +98,7 @@ bool GCFETHRawPort::open() PARAM_ETH_IFNAME, getTask()->getName().c_str(), getRealName().c_str()); - _ifname += ACC::APS::globalParameterSet()->getString(ifNameParam); + _ifname += globalParameterSet()->getString(ifNameParam); } catch (...) { @@ -115,7 +115,7 @@ bool GCFETHRawPort::open() PARAM_ETH_MACADDR, getTask()->getName().c_str(), getRealName().c_str()); - _destMacStr += ACC::APS::globalParameterSet()->getString(destMacParam); + _destMacStr += globalParameterSet()->getString(destMacParam); } catch (...) { @@ -132,7 +132,7 @@ bool GCFETHRawPort::open() PARAM_ETH_ETHERTYPE, getTask()->getName().c_str(), getRealName().c_str()); - _ethertype += ACC::APS::globalParameterSet()->getInt32(ethertypeParam); + _ethertype += globalParameterSet()->getInt32(ethertypeParam); } catch (...) { diff --git a/MAC/GCF/TM/src/PortImpl/GCF_TCPPort.cc b/MAC/GCF/TM/src/PortImpl/GCF_TCPPort.cc index 14ca9c3bc4cda0ffc34b17c63d6e2594104f3406..1c25d3d71063e0d05e1fedd5cd0c0915005459f4 100644 --- a/MAC/GCF/TM/src/PortImpl/GCF_TCPPort.cc +++ b/MAC/GCF/TM/src/PortImpl/GCF_TCPPort.cc @@ -28,7 +28,7 @@ #include <GCF/TM/GCF_TCPPort.h> #include <GCF/TM/GCF_Task.h> #include <GCF/TM/GCF_Protocols.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include "GTM_TCPServerSocket.h" #include <ServiceBroker/ServiceBrokerTask.h> //#include <ServiceBroker/GSB_Defines.h> @@ -36,7 +36,6 @@ #include <errno.h> namespace LOFAR { - using namespace ACC::APS; namespace GCF { using namespace SB; namespace TM { @@ -198,8 +197,8 @@ bool GCFTCPPort::open() // portnumber overruled by user? try mac.ns.<taskname>.<realname>.port string portNumParam = formatString(PARAM_TCP_PORTNR, getTask()->getName().c_str(), getRealName().c_str()); - if (ACC::APS::globalParameterSet()->isDefined(portNumParam)) { - _portNumber = ACC::APS::globalParameterSet()->getInt32(portNumParam); + if (globalParameterSet()->isDefined(portNumParam)) { + _portNumber = globalParameterSet()->getInt32(portNumParam); } if (_portNumber > 0) { // portnumber hard set by user. serviceRegistered(SB_NO_ERROR, _portNumber); // 'hard' open port diff --git a/MAC/GCF/TM/src/ServiceBroker/GTM_SBTCPPort.cc b/MAC/GCF/TM/src/ServiceBroker/GTM_SBTCPPort.cc index 724d69d550aac59e7d97431739d3d13f409f0a2f..cc414f1ef903ef2ab13e37b60fdbe46f92d6eda8 100644 --- a/MAC/GCF/TM/src/ServiceBroker/GTM_SBTCPPort.cc +++ b/MAC/GCF/TM/src/ServiceBroker/GTM_SBTCPPort.cc @@ -28,7 +28,7 @@ //#include "GSB_Defines.h" #include <MACIO/MACServiceInfo.h> #include <PortImpl/GTM_TCPServerSocket.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> namespace LOFAR { namespace GCF { diff --git a/MAC/GCF/_PAL/PI/src/GPI_Controller.cc b/MAC/GCF/_PAL/PI/src/GPI_Controller.cc index 948735d04f9bb37027441f93b5ba712946476c36..ffe0c6c5c37d159e28782861c0e517db353ad721 100644 --- a/MAC/GCF/_PAL/PI/src/GPI_Controller.cc +++ b/MAC/GCF/_PAL/PI/src/GPI_Controller.cc @@ -26,7 +26,7 @@ #include "GPI_CEPServer.h" #include "GPI_RTCServer.h" #include <GCF/Protocols/PI_Protocol.ph> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> namespace LOFAR { @@ -44,7 +44,7 @@ GPIController::GPIController() : // initialize the port provider _rtcClientPortProvider.init(*this, "rtc-provider", GCFPortInterface::MSPP, PI_PROTOCOL); _cepClientPortProvider.init(*this, "cep-provider", GCFPortInterface::MSPP, PI_PROTOCOL); - ACC::APS::globalParameterSet()->adoptFile("PropertyAgent.conf"); + globalParameterSet()->adoptFile("PropertyAgent.conf"); } GPIController::~GPIController() diff --git a/MAC/GCF/_PAL/PML/src/GPM_Controller.cc b/MAC/GCF/_PAL/PML/src/GPM_Controller.cc index 6cb4482cdcfd722f28741310949bb9986e3a3769..d40ee4bf2d391e08b0f99a8afb881674578c3409 100644 --- a/MAC/GCF/_PAL/PML/src/GPM_Controller.cc +++ b/MAC/GCF/_PAL/PML/src/GPM_Controller.cc @@ -28,7 +28,7 @@ #include <GCF/PAL/GCF_MyPropertySet.h> #include <GCF/PAL/GCF_SysConnGuard.h> #include <GCF/Utils.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <GCF/PAL/GCF_PVSSInfo.h> #include <GCF/GCF_ServiceInfo.h> @@ -69,7 +69,7 @@ GPMController::GPMController() : // read in the configuration files. // ConfigLocator aCL; // LOG_DEBUG ("Adopting config file: PropertyAgent.conf"); -// ACC::APS::globalParameterSet()->adoptFile(aCL.locate("PropertyAgent.conf")); +// globalParameterSet()->adoptFile(aCL.locate("PropertyAgent.conf")); // Start task that monitor (dis)connecting systems. _pSysConnGuard->registerTask(*this); diff --git a/MAC/GCF/_PAL/SAL/src/GSA_SCADAHandler.cc b/MAC/GCF/_PAL/SAL/src/GSA_SCADAHandler.cc index 08c79c76e3f7b3e28ff5bc86c74d55620ce58fa9..97fe9598cb695212da75af7b9b0c51feda7ad0ef 100644 --- a/MAC/GCF/_PAL/SAL/src/GSA_SCADAHandler.cc +++ b/MAC/GCF/_PAL/SAL/src/GSA_SCADAHandler.cc @@ -30,7 +30,7 @@ #include "GSA_SCADAHandler.h" #include <GSA_Resources.h> #include <GCF/TM/GCF_Task.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> namespace LOFAR { namespace GCF { @@ -48,11 +48,11 @@ GSASCADAHandler* GSASCADAHandler::instance() cmdline += "-currentproj "; string pvssCmdLineParam = PARAM_DEFAULT_PVSS_CMDLINE; char* appName = strrchr(GCFTask::_argv[0], '/'); - if (!ACC::APS::globalParameterSet()->isDefined(pvssCmdLineParam)) { + if (!globalParameterSet()->isDefined(pvssCmdLineParam)) { pvssCmdLineParam = formatString(PARAM_PVSS_CMDLINE, (appName ? appName + 1 : GCFTask::_argv[0])); } - if (ACC::APS::globalParameterSet()->isDefined(pvssCmdLineParam)) { - cmdline += ACC::APS::globalParameterSet()->getString(pvssCmdLineParam); + if (globalParameterSet()->isDefined(pvssCmdLineParam)) { + cmdline += globalParameterSet()->getString(pvssCmdLineParam); } // The PVSS API 3.0.1 redirects stdout and stderr output automatically to // a file created by the API diff --git a/MAC/GCF/_PAL/configure.in b/MAC/GCF/_PAL/configure.in index 3d96757e87a73a68ad5de38babff5a1d06cd5388..a6c4598d5ecce96df9c70ce99bc0b976d6d11091 100644 --- a/MAC/GCF/_PAL/configure.in +++ b/MAC/GCF/_PAL/configure.in @@ -39,7 +39,6 @@ lofar_GENERAL lofar_PVSS(1) lofar_INTERNAL(LCS/Common, common, , 1, Common/LofarTypes.h,,) lofar_INTERNAL(LCS/Transport, transport, , 1, Transport/DataHolder.h,,) -lofar_INTERNAL(LCS/ACC/APS, APS, ,1, APS/ParameterSet.h,,) lofar_INTERNAL(MAC/GCF/GCFCommon, gcfcommon, , 1, GCF/GCF_Defines.h,,) lofar_INTERNAL(MAC/GCF/TM, gcftm, , 1, GCF/TM/GCF_Task.h,,) lofar_INTERNAL(MAC/GCF/Protocols, gcfpirtcprot, , 1, GCF/Protocols/PI_Protocol.ph,,) diff --git a/MAC/GCF/_PALlight/CEP-PMLlight/src/PIClient.cc b/MAC/GCF/_PALlight/CEP-PMLlight/src/PIClient.cc index fd8287357c22cfca27da2168d8cc56766ab01634..9cd37b75925607e6f80595eefa16d94da75fbe07 100644 --- a/MAC/GCF/_PALlight/CEP-PMLlight/src/PIClient.cc +++ b/MAC/GCF/_PALlight/CEP-PMLlight/src/PIClient.cc @@ -25,7 +25,7 @@ #include <PIClient.h> #include <GCF/PALlight/CEPPropertySet.h> #include <GCF/Utils.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <Transport/TH_Socket.h> #include <Blob/BlobOStream.h> #include <Blob/BlobIStream.h> @@ -114,11 +114,11 @@ void PIClient::run() try { LOG_DEBUG("Setup connection"); - ACC::APS::globalParameterSet()->adoptFile("PropertyInterface.conf"); + globalParameterSet()->adoptFile("PropertyInterface.conf"); _dhPIClient.init(); - TH_Socket* pTH = new TH_Socket(ACC::APS::globalParameterSet()->getString(PARAM_PI_HOST), - ACC::APS::globalParameterSet()->getString(PARAM_PI_PORT), + TH_Socket* pTH = new TH_Socket(globalParameterSet()->getString(PARAM_PI_HOST), + globalParameterSet()->getString(PARAM_PI_PORT), false); LOG_DEBUG("Try to connect"); pTH->init(); diff --git a/MAC/GCF/_PALlight/PMLlight/src/GPM_RTController.cc b/MAC/GCF/_PALlight/PMLlight/src/GPM_RTController.cc index 8012456fce56cdab30b9a7211e8d22a845189a74..c7552263aad5e3388e2ef9ce8a22d010a577da5a 100644 --- a/MAC/GCF/_PALlight/PMLlight/src/GPM_RTController.cc +++ b/MAC/GCF/_PALlight/PMLlight/src/GPM_RTController.cc @@ -26,7 +26,7 @@ #include <GCF/PALlight/GCF_RTMyPropertySet.h> #include <stdio.h> #include <GCF/Utils.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> namespace LOFAR { @@ -49,8 +49,8 @@ GPMRTController::GPMRTController() : // initialize the port _propertyInterface.init(*this, "client", GCFPortInterface::SAP, PI_PROTOCOL); - ACC::APS::globalParameterSet()->adoptFile("gcf-pmllight.conf"); - ACC::APS::globalParameterSet()->adoptFile("PropertyInterface.conf"); + globalParameterSet()->adoptFile("gcf-pmllight.conf"); + globalParameterSet()->adoptFile("PropertyInterface.conf"); } GPMRTController* GPMRTController::instance(bool temporary) diff --git a/RTCP/CNProc/test/transpose.cc b/RTCP/CNProc/test/transpose.cc index 30fbf51437c2481be7fbc97a86553080d632a757..77270373a8f10a599bec3ada21535ccaee1785c4 100644 --- a/RTCP/CNProc/test/transpose.cc +++ b/RTCP/CNProc/test/transpose.cc @@ -21,7 +21,7 @@ #include <lofar_config.h> #if defined HAVE_MPI -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <Common/lofar_complex.h> #include <Common/Timer.h> #include <PLC/ACCmain.h> @@ -53,7 +53,7 @@ class DH_RSP : public DataHolder public: typedef i4complex SampleType; - DH_RSP(const string &name, const ACC::APS::ParameterSet &ps); + DH_RSP(const string &name, const ParameterSet &ps); DataHolder *clone() const; virtual void init(); @@ -65,7 +65,7 @@ class DH_RSP : public DataHolder }; -DH_RSP::DH_RSP(const string &name, const ACC::APS::ParameterSet &ps) +DH_RSP::DH_RSP(const string &name, const ParameterSet &ps) : DataHolder(name, "DH_RSP") { @@ -218,7 +218,7 @@ class WH_Transpose : public WorkHolder public: typedef i4complex SampleType; - WH_Transpose(const string &name, const ACC::APS::ParameterSet &ps, unsigned rank, MPI_Comm comm); + WH_Transpose(const string &name, const ParameterSet &ps, unsigned rank, MPI_Comm comm); virtual void preprocess(); virtual void process(); @@ -230,7 +230,7 @@ class WH_Transpose : public WorkHolder void allToAll(); - const ACC::APS::ParameterSet &itsParamSet; + const ParameterSet &itsParamSet; unsigned itsCoreNumber, itsPsetNumber, itsPsetIndex; unsigned itsNrStations, itsNrCorrelatorPsets, itsNrPsets; unsigned itsPhase; @@ -242,7 +242,7 @@ class WH_Transpose : public WorkHolder }; -WH_Transpose::WH_Transpose(const string &name, const ACC::APS::ParameterSet &ps, unsigned rank, MPI_Comm communicator) +WH_Transpose::WH_Transpose(const string &name, const ParameterSet &ps, unsigned rank, MPI_Comm communicator) : WorkHolder(0, 0, name, string("WH_Transpose")), itsParamSet(ps), diff --git a/RTCP/IONProc/configure.in b/RTCP/IONProc/configure.in index b69d4033552d60921f2fcdc46fe20ea9f3f47204..954dad5bd8c780b3b8d71c5ff4ddae0ce4ef6d2f 100644 --- a/RTCP/IONProc/configure.in +++ b/RTCP/IONProc/configure.in @@ -57,7 +57,6 @@ lofar_INTERNAL(LCS/Common,Common,,1,Common/LofarTypedefs.h,,) lofar_INTERNAL(LCS/AMC/AMCBase,AMCBase,,1,AMCBase/Converter.h) lofar_INTERNAL(LCS/AMC/AMCImpl,AMCImpl,,1,AMCImpl/ConverterImpl.h) lofar_INTERNAL(LCS/Stream,Stream,,1,Stream/Stream.h,,) -lofar_INTERNAL(LCS/ACC/APS,APS,,1,APS/ParameterSet.h,,) lofar_INTERNAL(LCS/ACC/PLC,PLC,,1,PLC/ACCmain.h,,) lofar_INTERNAL(RTCP/Interface,Interface,,1,Interface/Config.h,,) lofar_INTERNAL(RTCP/FCNP,FCNP,,0,FCNP/fcnp_ion.h,fcnp_ion) diff --git a/RTCP/IONProc/src/ION_main.cc b/RTCP/IONProc/src/ION_main.cc index 85927f28a881975f15a2c24d4e8e45c1ab71e114..3a716cc7515ed123118758dcaf8dc87797b3088a 100644 --- a/RTCP/IONProc/src/ION_main.cc +++ b/RTCP/IONProc/src/ION_main.cc @@ -410,7 +410,7 @@ void *master_thread(void *) pthread_t input_thread_id, output_thread_id; std::clog << "trying to use " << global_argv[1] << " as ParameterSet" << std::endl; - ACC::APS::ParameterSet parameterSet(global_argv[1]); + ParameterSet parameterSet(global_argv[1]); Parset parset(¶meterSet); parset.adoptFile("OLAP.parset"); @@ -534,7 +534,7 @@ static void tryToGetPersonality() nrPsets = 1; try { - ACC::APS::ParameterSet personality("/proc/personality.sh"); + ParameterSet personality("/proc/personality.sh"); #if defined HAVE_ZOID // compiler bug: exceptions cause crashes try { diff --git a/RTCP/IONProc/src/WH_DelayCompensation.cc b/RTCP/IONProc/src/WH_DelayCompensation.cc index 1262ca1a591054f0e1beb85d3a56cbdf5633614a..c00e22b0b6f0dd12216d245fa42a393f088329d7 100644 --- a/RTCP/IONProc/src/WH_DelayCompensation.cc +++ b/RTCP/IONProc/src/WH_DelayCompensation.cc @@ -39,7 +39,6 @@ namespace LOFAR { using namespace AMC; - using ACC::APS::ParameterSet; namespace RTCP { diff --git a/RTCP/Interface/configure.in b/RTCP/Interface/configure.in index 17591f262ae2e990c0f602bda9791e5bc80b7edc..90f30b80be1cb97f6797632fbb7d9abb26e3ba43 100644 --- a/RTCP/Interface/configure.in +++ b/RTCP/Interface/configure.in @@ -56,7 +56,6 @@ lofar_MPI lofar_INTERNAL(LCS/Common,Common,,1,Common/LofarTypedefs.h,,) dnl lofar_INTERNAL(LCS/Transport,Transport,,1,Transport/DataHolder.h,,) lofar_INTERNAL(LCS/Stream,Stream,,1,Stream/Stream.h,,) -lofar_INTERNAL(LCS/ACC/APS,APS,,0,APS/ParameterSet.h,,) lofar_INTERNAL(LCS/ApplCommon,ApplCommon,,1,ApplCommon/Observation.h,,) dnl lofar_INTERNAL(CEP/tinyCEP,tinyCEP,,0,tinyCEP/TinyDataManager.h,,) lofar_EXTERNAL(boost,1,boost/date_time/date.hpp,"") diff --git a/RTCP/Interface/include/Interface/Parset.h b/RTCP/Interface/include/Interface/Parset.h index 2c9eb03be2dcc4cd83f0a465f7b27abf7df34f73..a9c877fd8f38496988863e2b5c12ddffcea43ee8 100644 --- a/RTCP/Interface/include/Interface/Parset.h +++ b/RTCP/Interface/include/Interface/Parset.h @@ -23,15 +23,13 @@ #ifndef LOFAR_INTERFACE_PARSET_H #define LOFAR_INTERFACE_PARSET_H -#if defined HAVE_APS - // \file // class/struct that holds the Parset information //# Never #include <config.h> or #include <lofar_config.h> in a header file! //# Includes -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <Common/StreamUtil.h> #include <Common/lofar_datetime.h> #include <Common/LofarLogger.h> @@ -53,11 +51,11 @@ namespace RTCP { // The Parset class is a public struct that can be used as base-class // for holding Parset related information. // It can be instantiated with a parset containing Parset information. -class Parset: public ACC::APS::ParameterSet +class Parset: public ParameterSet { public: Parset(); - Parset(ACC::APS::ParameterSet *aParSet); + Parset(ParameterSet *aParSet); ~Parset(); void check() const; @@ -388,5 +386,4 @@ inline bool Parset::realTime() const } // namespace RTCP } // namespace LOFAR -#endif // defined HAVE_APS #endif diff --git a/RTCP/Interface/src/Parset.cc b/RTCP/Interface/src/Parset.cc index ed184f4cfa9c63257bb517386839d185440a66e3..367273a89082f645c3409464b21ec299abc2f762 100644 --- a/RTCP/Interface/src/Parset.cc +++ b/RTCP/Interface/src/Parset.cc @@ -23,8 +23,6 @@ //# Always #include <lofar_config.h> first! #include <lofar_config.h> -#if defined HAVE_APS - //# Includes #include <Common/LofarLogger.h> #include <Common/lofar_datetime.h> @@ -54,9 +52,9 @@ Parset::Parset() } -Parset::Parset(ACC::APS::ParameterSet *aParSet) +Parset::Parset(ParameterSet *aParSet) : - ACC::APS::ParameterSet(*aParSet), + ParameterSet(*aParSet), itsObservation(aParSet) { check(); @@ -347,5 +345,3 @@ int Parset::findIndex(uint32 pset, const vector<uint32> &psets) } // namespace RTCP } // namespace LOFAR - -#endif // defined HAVE_APS diff --git a/RTCP/Storage/configure.in b/RTCP/Storage/configure.in index 73146d168ffdd80d05ce8be03c0612b32fc641bd..d2aec9b21be965a0d7e773efeb1b56c178e24bb4 100644 --- a/RTCP/Storage/configure.in +++ b/RTCP/Storage/configure.in @@ -58,7 +58,6 @@ lofar_AIPSPP(0,"-lms -lmeasures -ltables -lscimath -lscimath_f -lcasa") lofar_INTERNAL(LCS/Common,Common,,1,Common/LofarTypedefs.h,,) dnl lofar_INTERNAL(LCS/Transport,Transport,,1,Transport/DataHolder.h,,) lofar_INTERNAL(LCS/AMC/AMCBase,AMCBase,,1,AMCBase/Epoch.h,,) -lofar_INTERNAL(LCS/ACC/APS,APS,,1,APS/ParameterSet.h,,) dnl lofar_INTERNAL(CEP/tinyCEP,tinyCEP,,1,tinyCEP/TinyDataManager.h,,) dnl lofar_INTERNAL(CEP/CEPFrame,CEPFrame,,1,CEPFrame/DataManager.h,,) lofar_INTERNAL(RTCP/Interface,Interface,,1,Interface/Parset.h,,) diff --git a/RTCP/Storage/src/Storage_main.cc b/RTCP/Storage/src/Storage_main.cc index 12240314b2525cb883124c393b3a9904b236a945..ec063f65f8c35f2c1f59060e6412b258f250ebad 100644 --- a/RTCP/Storage/src/Storage_main.cc +++ b/RTCP/Storage/src/Storage_main.cc @@ -50,7 +50,7 @@ static void child(int argc, char *argv[], int rank) LOG_DEBUG_STR("Initialized logsystem with: " << aCL.locate(logPropFile)); std::clog << "trying to use parset \"" << argv[1] << '"' << std::endl; - ACC::APS::ParameterSet parameterSet(argv[1]); + ParameterSet parameterSet(argv[1]); Parset parset(¶meterSet); parset.adoptFile("OLAP.parset"); diff --git a/RTCP/Storage/src/SubbandWriter.cc b/RTCP/Storage/src/SubbandWriter.cc index 1862c0b391509a88340ba8de88fa781f5dead358..95897da4f2b06e205dfa3004d195e596f7cdec90 100644 --- a/RTCP/Storage/src/SubbandWriter.cc +++ b/RTCP/Storage/src/SubbandWriter.cc @@ -22,7 +22,7 @@ #include <lofar_config.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <Common/LofarLogger.h> #include <Common/lofar_iomanip.h> #include <Storage/SubbandWriter.h> diff --git a/RTCP/Storage/test/AH_TestStorage.cc b/RTCP/Storage/test/AH_TestStorage.cc index 2d369d5b7d0fbbbb4a1aad99d443c5398d68a4a4..b83afd76c284c4ef78b0d2f43dd00719d0e73700 100644 --- a/RTCP/Storage/test/AH_TestStorage.cc +++ b/RTCP/Storage/test/AH_TestStorage.cc @@ -45,7 +45,7 @@ namespace LOFAR LOG_TRACE_FLOW_STR("Start of tAH_Storage::define()"); - ACC::APS::ParameterSet parameterSet("RTCP.parset"); + ParameterSet parameterSet("RTCP.parset"); Parset itsPS(¶meterSet); diff --git a/RTCP/Storage/test/tAH_TestStorage.cc b/RTCP/Storage/test/tAH_TestStorage.cc index fd5f6a12b786956536c3ac653c109b2df3d5e033..bf103bb688220ae8c35db3c6e215902449aaaa0c 100644 --- a/RTCP/Storage/test/tAH_TestStorage.cc +++ b/RTCP/Storage/test/tAH_TestStorage.cc @@ -69,7 +69,7 @@ int main(int argc, char *argv[]) THROW(StorageException, std::string("usage: ") << argv[0] << " parset"); std::clog << "trying to use parset \"" << argv[1] << '"' << std::endl; - ACC::APS::ParameterSet parameterSet(argv[1]); + ParameterSet parameterSet(argv[1]); Parset parset(¶meterSet); parset.adoptFile("OLAP.parset"); diff --git a/SAS/OTB/jOTDB2/configure.in b/SAS/OTB/jOTDB2/configure.in index bbd1c9263eb785875b8122d994841f90d6b6c6a2..42c6a58a7d812daccfcb201eb328a639527b29a1 100644 --- a/SAS/OTB/jOTDB2/configure.in +++ b/SAS/OTB/jOTDB2/configure.in @@ -55,7 +55,6 @@ dnl lofar_BLITZ dnl lofar_MPI lofar_INTERNAL(LCS/Common,Common,,1,Common/LofarTypedefs.h,,) lofar_INTERNAL(SAS/OTDB,OTDB,,1,OTDB/OTDBnode.h,,) -lofar_INTERNAL(LCS/ACC/APS,APS,,1,APS/ParameterSet.h,,) lofar_EXTERNAL(boost,1,boost/date_time/date.hpp, boost_date_time) lofar_EXTERNAL(pq,,libpq-fe.h, pq, /usr/local/pgsql) lofar_EXTERNAL(pqxx,2.5.0,pqxx/pqxx, pqxx) diff --git a/SAS/OTDB/configure.in b/SAS/OTDB/configure.in index 1903c153e412a699c91cd1cf5f3d7be6fe2b252a..20d8e2017718ae10f017fa6fe5acc22df2ba0625 100644 --- a/SAS/OTDB/configure.in +++ b/SAS/OTDB/configure.in @@ -52,7 +52,6 @@ dnl Check for LOFAR specific things dnl lofar_GENERAL lofar_INTERNAL(LCS/Common,Common,,1,Common/LofarTypes.h,,) -lofar_INTERNAL(LCS/ACC/APS,APS,,1,APS/ParameterSet.h,,) lofar_EXTERNAL(boost,1,boost/date_time/date.hpp, boost_date_time) lofar_EXTERNAL(pqxx,2.5.5,pqxx/pqxx, pqxx) lofar_EXTERNAL(pq,,libpq-fe.h, pq, /usr/local/pgsql) diff --git a/SAS/OTDB/include/OTDB/TreeValue.h b/SAS/OTDB/include/OTDB/TreeValue.h index f05d3bf5d6b094a970c6f0adc2fea2d0db212e02..1659b91e56c4861b5539fd7cbfd2d9cf57c8fafa 100644 --- a/SAS/OTDB/include/OTDB/TreeValue.h +++ b/SAS/OTDB/include/OTDB/TreeValue.h @@ -31,9 +31,8 @@ #include <OTDB/OTDBconnection.h> #include <OTDB/OTDBtypes.h> #include <OTDB/OTDBvalue.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> -using namespace LOFAR::ACC::APS; namespace LOFAR { namespace OTDB { @@ -64,7 +63,7 @@ public: // Note: This form will probably be used by SAS and OTB when committing // a list of modified node. bool addKVTlist (vector<OTDBvalue> aValueList); - bool addKVTparamSet (const ACC::APS::ParameterSet& aPS); + bool addKVTparamSet (const ParameterSet& aPS); //# SHM queries // With searchInPeriod a list of all valuechanges in the OTDB tree can diff --git a/SAS/OTDB/test/Makefile.am b/SAS/OTDB/test/Makefile.am index 76e16d2b619a413f3c8a86dec95f44a546a424bf..bafc496452dc287589cff64e1754dd1d30c59583 100644 --- a/SAS/OTDB/test/Makefile.am +++ b/SAS/OTDB/test/Makefile.am @@ -19,7 +19,7 @@ tVTtree_SOURCES = tVTtree.cc tVHtree_SOURCES = tVHtree.cc tVHvalue_SOURCES = tVHvalue.cc -tVHvalue_LDADD = ../src/libotdb.la -lpqxx -laps +tVHvalue_LDADD = ../src/libotdb.la -lpqxx tConnection_SOURCES = tConnection.cc diff --git a/SAS/OTDB/test/tPICvalue.cc b/SAS/OTDB/test/tPICvalue.cc index 8eac16075bcac2b8a13ce9b07d43831a7fbec665..9685003cceca4bd51645dc7860c9e3c5954153e3 100644 --- a/SAS/OTDB/test/tPICvalue.cc +++ b/SAS/OTDB/test/tPICvalue.cc @@ -27,7 +27,7 @@ #include <Common/LofarLogger.h> #include <Common/lofar_fstream.h> #include <Common/lofar_datetime.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <OTDB/TreeMaintenance.h> #include <OTDB/TreeValue.h> #include <OTDB/OTDBtypes.h> diff --git a/SAS/OTDB/test/tVHvalue.cc b/SAS/OTDB/test/tVHvalue.cc index 68468b9ad547998aaad10952925fd3c7c5c4a747..79568c3fb6d598d09aace2eff59774e881587e76 100644 --- a/SAS/OTDB/test/tVHvalue.cc +++ b/SAS/OTDB/test/tVHvalue.cc @@ -27,7 +27,7 @@ #include <Common/LofarLogger.h> #include <Common/lofar_fstream.h> #include <Common/lofar_datetime.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include <OTDB/TreeMaintenance.h> #include <OTDB/TreeValue.h> #include <OTDB/OTDBtypes.h> diff --git a/USG/VHECR/src/VHECRTask.cc b/USG/VHECR/src/VHECRTask.cc index f6eb31db0fd6cd49974657fde3a4687cae621c59..e510c02472fcbc1973d78e3ad580d81486e6831a 100644 --- a/USG/VHECR/src/VHECRTask.cc +++ b/USG/VHECR/src/VHECRTask.cc @@ -21,12 +21,11 @@ //# $Id$ #include <lofar_config.h> #include <Common/LofarLogger.h> -#include <APS/ParameterSet.h> +#include <Common/ParameterSet.h> #include "VHECRTask.h" namespace LOFAR { - using namespace ACC::APS; namespace StationCU { //