DP3
Public Member Functions | List of all members
dp3::parmdb::ParmDBBlob Class Reference

Dummy class to hold parameters in a Blob. More...

#include <ParmDBBlob.h>

Inheritance diagram for dp3::parmdb::ParmDBBlob:
dp3::parmdb::ParmDBRep

Public Member Functions

 ParmDBBlob (const std::string &tableName, bool forceNew=false)
 
 ~ParmDBBlob () override
 
void clearTables () override
 
void deleteDefValues (const std::string &parmNamePattern) override
 
void deleteValues (const std::string &parmNamePattern, const Box &domain) override
 
void fillDefMap (ParmMap &defMap) override
 Fill the map with default values. More...
 
void flush (bool fsync) override
 
void getDefValues (ParmMap &result, const std::string &parmNamePattern) override
 
int getNameId (const std::string &parmName) override
 
std::vector< std::string > getNames (const std::string &pattern) override
 
void getValues (std::vector< ParmValueSet > &values, const std::vector< unsigned int > &nameIds, const std::vector< ParmId > &parmIds, const Box &domain) override
 
void putDefValue (const std::string &name, const ParmValueSet &value, bool check=true) override
 
void putValues (const std::string &parmName, int &nameId, ParmValueSet &values) override
 
void setDefaultSteps (const std::vector< double > &) override
 
void lock (bool lockForWrite) override
 
void unlock () override
 
Box getRange (const std::string &parmNamePattern) const override
 
Box getRange (const std::vector< std::string > &parmNames) const override
 
- Public Member Functions inherited from dp3::parmdb::ParmDBRep
 ParmDBRep ()
 
virtual ~ParmDBRep ()
 
void clearDefFilled ()
 
const std::vector< double > & getDefaultSteps () const
 Get the default step values for the axes. More...
 
ParmValueSet getDefValue (const std::string &parmName, const ParmValue &defaultValue)
 
virtual void getValuesPattern (ParmMap &result, const std::string &parmNamePattern, const Box &domain)
 
void link ()
 Link to the DBRep by incrementing the count. More...
 
int unlink ()
 Unlink by decrementing the count. More...
 
void setParmDBMeta (const ParmDBMeta &ptm)
 
const ParmDBMetagetParmDBMeta () const
 
void setParmDBSeqNr (int seqnr)
 
int getParmDBSeqNr () const
 

Additional Inherited Members

- Protected Member Functions inherited from dp3::parmdb::ParmDBRep
void setDefStep (unsigned int i, double value)
 Set the i-th default step value (i<2) in order x,y. More...
 

Detailed Description

Dummy class to hold parameters in a Blob.

This class is only meant to ensure that Blobs can be used for SOurceDB. It throws an exception as soon as it is really used.

Constructor & Destructor Documentation

◆ ParmDBBlob()

dp3::parmdb::ParmDBBlob::ParmDBBlob ( const std::string &  tableName,
bool  forceNew = false 
)
explicit

◆ ~ParmDBBlob()

dp3::parmdb::ParmDBBlob::~ParmDBBlob ( )
override

Member Function Documentation

◆ clearTables()

void dp3::parmdb::ParmDBBlob::clearTables ( )
overridevirtual

Clear database or table. It does not do anything.

Implements dp3::parmdb::ParmDBRep.

◆ deleteDefValues()

void dp3::parmdb::ParmDBBlob::deleteDefValues ( const std::string &  parmNamePattern)
overridevirtual

Delete the default value records for the given parameters. It throws a "not implemented" exception.

Implements dp3::parmdb::ParmDBRep.

◆ deleteValues()

void dp3::parmdb::ParmDBBlob::deleteValues ( const std::string &  parmNamePattern,
const Box domain 
)
overridevirtual

Delete the value records for the given parameters and domain. It throws a "not implemented" exception.

Implements dp3::parmdb::ParmDBRep.

◆ fillDefMap()

void dp3::parmdb::ParmDBBlob::fillDefMap ( ParmMap defMap)
overridevirtual

Fill the map with default values.

Implements dp3::parmdb::ParmDBRep.

◆ flush()

void dp3::parmdb::ParmDBBlob::flush ( bool  fsync)
overridevirtual

Flush possible changes to disk. It does not do anything.

Reimplemented from dp3::parmdb::ParmDBRep.

◆ getDefValues()

void dp3::parmdb::ParmDBBlob::getDefValues ( ParmMap result,
const std::string &  parmNamePattern 
)
overridevirtual

Get the default value for the given parameters. It throws a "not implemented" exception.

Implements dp3::parmdb::ParmDBRep.

◆ getNameId()

int dp3::parmdb::ParmDBBlob::getNameId ( const std::string &  parmName)
overridevirtual

Get the id of a parameter. It throws a "not implemented" exception.

Implements dp3::parmdb::ParmDBRep.

◆ getNames()

std::vector<std::string> dp3::parmdb::ParmDBBlob::getNames ( const std::string &  pattern)
overridevirtual

Get the names of all parms matching the given (filename like) pattern. It throws a "not implemented" exception.

Implements dp3::parmdb::ParmDBRep.

◆ getRange() [1/2]

Box dp3::parmdb::ParmDBBlob::getRange ( const std::string &  parmNamePattern) const
overridevirtual

Get the domain range (time,freq) of the given parameters in the table. They throw a "not implemented" exception.

Implements dp3::parmdb::ParmDBRep.

◆ getRange() [2/2]

Box dp3::parmdb::ParmDBBlob::getRange ( const std::vector< std::string > &  parmNames) const
overridevirtual

◆ getValues()

void dp3::parmdb::ParmDBBlob::getValues ( std::vector< ParmValueSet > &  values,
const std::vector< unsigned int > &  nameIds,
const std::vector< ParmId > &  parmIds,
const Box domain 
)
overridevirtual

Get the parameter values for the given parameters and domain. It throws a "not implemented" exception.

Implements dp3::parmdb::ParmDBRep.

◆ lock()

void dp3::parmdb::ParmDBBlob::lock ( bool  lockForWrite)
overridevirtual

Writelock and unlock the table. They do not do anything.

Reimplemented from dp3::parmdb::ParmDBRep.

◆ putDefValue()

void dp3::parmdb::ParmDBBlob::putDefValue ( const std::string &  name,
const ParmValueSet value,
bool  check = true 
)
overridevirtual

Put the default value. It throws a "not implemented" exception.

Implements dp3::parmdb::ParmDBRep.

◆ putValues()

void dp3::parmdb::ParmDBBlob::putValues ( const std::string &  parmName,
int &  nameId,
ParmValueSet values 
)
overridevirtual

Put the values for the given parameter name and id. It throws a "not implemented" exception.

Implements dp3::parmdb::ParmDBRep.

◆ setDefaultSteps()

void dp3::parmdb::ParmDBBlob::setDefaultSteps ( const std::vector< double > &  )
overridevirtual

Set the default step values. It throws a "not implemented" exception.

Implements dp3::parmdb::ParmDBRep.

◆ unlock()

void dp3::parmdb::ParmDBBlob::unlock ( )
overridevirtual

Reimplemented from dp3::parmdb::ParmDBRep.


The documentation for this class was generated from the following file: