|
DP3
|
Envelope class for a table holding parameters. More...
#include <ParmDB.h>
Public Member Functions | |
| ParmDB (const ParmDB &) | |
| Copy contructor has reference semantics. More... | |
| ParmDB (const ParmDBMeta &ptm, bool forceNew=false) | |
| ~ParmDB () | |
| Delete underlying object if no more references to it. More... | |
| void | clearTables () |
| Clear database tables (i.e. remove all rows from all tables). More... | |
| void | deleteDefValues (const std::string &parmNamePattern) |
| Delete the default value records for the given parameters. More... | |
| void | deleteValues (const std::string &parmNamePattern, const Box &domain) |
| Delete the records for the given parameters and domain. More... | |
| void | flush (bool fsync=false) |
| const std::vector< double > & | getDefaultSteps () const |
| Get the default step values for the axes. More... | |
| ParmValueSet | getDefValue (const std::string &parmName, const ParmValue &defaultValue=ParmValue()) const |
| Get the initial value for the given parameter. More... | |
| void | getDefValues (ParmMap &result, const std::string &parmNamePattern) const |
| int | getNameId (const std::string &parmName) |
| std::vector< std::string > | getNames (const std::string &pattern) const |
| Get the names matching the pattern in the table. More... | |
| const ParmDBMeta & | getParmDBMeta () const |
| Get the name and type of the ParmDB. More... | |
| int | getParmDBSeqNr () const |
| Get ParmDB sequence nr. More... | |
| void | getValues (ParmMap &result, const std::string &parmNamePattern, const Box &domain) const |
| void | getValues (std::vector< ParmValueSet > &values, const std::vector< unsigned int > &nameIds, const std::vector< ParmId > &parmIds, const Box &domain) |
| ParmDB & | operator= (const ParmDB &) |
| Assignment has reference semantics. More... | |
| void | putDefValue (const std::string &parmName, const ParmValueSet &value, bool check=true) |
| Put the default value for the given parameter. More... | |
| void | putValues (const std::string &name, int &nameId, ParmValueSet &values) |
| void | setDefaultSteps (const std::vector< double > &steps) |
| Set the default step values. More... | |
| void | lock (bool lockForWrite=true) |
| void | unlock () |
| Box | getRange (const std::string &parmNamePattern="") const |
| Box | getRange (const std::vector< std::string > &parmNames) const |
Static Public Member Functions | |
| static ParmDB | getParmDB (unsigned int index) |
Envelope class for a table holding parameters.
|
explicit |
Create the ParmDB object for the given database type. It gets added to the map of open parmDBs.
| dp3::parmdb::ParmDB::ParmDB | ( | const ParmDB & | ) |
Copy contructor has reference semantics.
|
inline |
Delete underlying object if no more references to it.
|
inline |
Clear database tables (i.e. remove all rows from all tables).
|
inline |
Delete the default value records for the given parameters.
|
inline |
Delete the records for the given parameters and domain.
|
inline |
Flush possible changes to disk.
If fsync=True the file contents are fsync-ed to disk, to ensure that the system buffers are actually written to disk.
|
inline |
Get the default step values for the axes.
|
inline |
Get the initial value for the given parameter.
|
inline |
Get the default value for the given parameters. Only * and ? should be used in the pattern (no [] and {}).
|
inline |
Get the id of a parameter. If not found in the Names table, it returns -1.
|
inline |
Get the names matching the pattern in the table.
|
static |
Get the ParmDB object of the opened database for the given index. An exception is thrown if not found.
|
inline |
Get the name and type of the ParmDB.
|
inline |
Get ParmDB sequence nr.
|
inline |
Get the domain range (freq,time) of the given parameters in the table. This is the minimum and maximum value of these axes for all parameters. An empty name pattern is the same as * (all parms).
|
inline |
|
inline |
Get the parameter values for the given parameters and domain. Only * and ? should be used in the pattern (no [] and {}).
|
inline |
Get the parameter values for the given parameters and domain. The parmids form the indices in the result vector.
|
inline |
Lock and unlock the database tables. The user does not need to lock/unlock, but it can increase performance if many small accesses have to be done.
|
inline |
Put the default value for the given parameter.
|
inline |
Put the values of a parameter. If it is a new value, the new rowid will be stored in the ParmValueSet. If it is a new name, the nameId will be filled in.
|
inline |
Set the default step values.
|
inline |