6 #ifndef LOFAR_PARMDB_PARMFACADELOCAL_H
7 #define LOFAR_PARMDB_PARMFACADELOCAL_H
12 #include <casacore/casa/Containers/Record.h>
13 #include <casacore/casa/Arrays/Vector.h>
54 const std::string& parmNamePattern)
const override;
58 std::vector<std::string>
getNames(
const std::string& parmNamePattern,
59 bool includeDefaults)
const override;
64 const std::string& parmNamePattern)
const override;
68 const std::string& parmNamePattern)
const override;
79 casacore::Record
getValues(
const std::string& parmNamePattern,
double freqv1,
80 double freqv2,
double freqStep,
double timev1,
81 double timev2,
double timeStep,
bool asStartEnd,
82 bool includeDefaults)
override;
87 casacore::Record
getValues(
const std::string& parmNamePattern,
88 const std::vector<double>& freqv1,
89 const std::vector<double>& freqv2,
90 const std::vector<double>& timev1,
91 const std::vector<double>& timev2,
bool asStartEnd,
92 bool includeDefaults)
override;
101 double freqv1,
double freqv2,
double timev1,
102 double timev2,
bool asStartEnd)
override;
105 casacore::Record
getCoeff(
const std::string& parmNamePattern,
double freqv1,
106 double freqv2,
double timev1,
double timev2,
107 bool asStartEnd)
override;
119 void lock(
bool lockForWrite)
override;
134 double freqv2,
double timev1,
double timev2,
135 bool asStartEnd)
override;
139 casacore::Record doGetValues(
const std::string& parmNamePattern,
140 const Grid& predictGrid,
bool includeDefaults);
147 casacore::Record getFunkletCoeff(
const ParmValueSet& pvset);
150 void addDefValue(
const std::string& parmName,
const casacore::Record& value,
154 void addValue(
const std::string& parmName,
const casacore::Record& value);
157 Grid record2Grid(
const casacore::Record& rec)
const;
160 Axis::ShPtr makeAxis(
const casacore::Vector<double>& centers,
161 const casacore::Vector<double>& widths,
162 unsigned int n)
const;
165 int getType(
const std::string& str)
const;
Base class for a table holding parameters.
std::shared_ptr< Axis > ShPtr
Define a shared_ptr for this class.
Definition: Axis.h:32
Class representing a 2-dim box.
Definition: Box.h:36
The envelope class for a 2-D grid with regular or irregular axes. -.
Definition: Grid.h:83
Envelope class for a table holding parameters.
Definition: ParmDB.h:159
Data access the a local parameter database.
Definition: ParmFacadeLocal.h:41
void deleteValues(const std::string &parmNamePattern, double freqv1, double freqv2, double timev1, double timev2, bool asStartEnd) override
Delete the records for the given parameters and domain.
~ParmFacadeLocal() override
The destructor disconnects.
void setDefaultSteps(const std::vector< double > &) override
Set the default step values.
casacore::Record getDefValues(const std::string &parmNamePattern) const override
Get the default values of parameters matching the pattern.
std::vector< std::string > getDefNames(const std::string &parmNamePattern) const override
ParmFacadeLocal(const std::string &tableName, bool create=false)
Make a connection to a new or existing ParmTable.
void lock(bool lockForWrite) override
std::vector< std::string > getNames(const std::string &parmNamePattern, bool includeDefaults) const override
void addDefValues(const casacore::Record &, bool check) override
Add one or more default values.
casacore::Record getValues(const std::string &parmNamePattern, double freqv1, double freqv2, double freqStep, double timev1, double timev2, double timeStep, bool asStartEnd, bool includeDefaults) override
void flush(bool fsync) override
Flush the possible changes to disk.
std::vector< double > getDefaultSteps() const override
Get the default step values for the axes.
std::vector< double > getRange(const std::string &parmNamePattern) const override
void addValues(const casacore::Record &rec) override
Add the values for the given parameter names and domain.
void deleteDefValues(const std::string &parmNamePattern) override
Delete the default value records for the given parameters.
casacore::Record getCoeff(const std::string &parmNamePattern, double freqv1, double freqv2, double timev1, double timev2, bool asStartEnd) override
Get coefficients, errors, and domains they belong to.
casacore::Record getValuesGrid(const std::string &parmNamePattern, double freqv1, double freqv2, double timev1, double timev2, bool asStartEnd) override
casacore::Record getValues(const std::string &parmNamePattern, const std::vector< double > &freqv1, const std::vector< double > &freqv2, const std::vector< double > &timev1, const std::vector< double > &timev2, bool asStartEnd, bool includeDefaults) override
void clearTables() override
Clear the tables, thus remove all parameter values and default values.
Data access the parameter database.
Definition: ParmFacadeRep.h:38
A class holding information of multiple domains of a parameter. ParmValueSet holds the information of...
Definition: ParmValue.h:146
This file has generic helper routines for testing steps.
Definition: AntennaConfig.h:53