|
| | SourceDB (const ParmDBMeta &ptm, bool mustExist, bool forceNew) |
| |
| | SourceDB (const SourceDB &) |
| | Copy contructor has reference semantics. More...
|
| |
| | ~SourceDB () override |
| | Delete underlying object if no more references to it. More...
|
| |
| unsigned int | addPatch (const std::string &patchName, int catType, double apparentBrightness, double ra, double dec, bool check) override |
| |
| void | addSource (const SourceInfo &sourceInfo, const std::string &patchName, int catType, double apparentBrightness, const ParmMap &defaultParameters, double ra, double dec, bool check) override |
| | Add a source which forms a patch in itself (with the same name). More...
|
| |
| bool | atEnd () |
| | Tell if we are the end of the file. More...
|
| |
| void | checkDuplicates () const |
| |
| void | clearTables () |
| | Clear database tables (i.e. remove all rows from all tables). More...
|
| |
| void | deleteSources (const std::string &sourceNamePattern) |
| | Delete the sources records matching the given (filename like) pattern. More...
|
| |
| std::vector< std::string > | findDuplicatePatches () const |
| | Find non-unique patch names. More...
|
| |
| std::vector< std::string > | findDuplicateSources () const |
| | Find non-unique source names. More...
|
| |
| void | getNextSource (SourceData &src) |
| |
| ParmDB & | getParmDB () |
| | Get the associated ParmDB. More...
|
| |
| const ParmDBMeta & | getParmDBMeta () const |
| | Get the name and type of the SourceDB. More...
|
| |
| std::vector< std::string > | getPatches (int category=-1, const std::string &pattern=std::string(), double minBrightness=-1, double maxBrightness=-1) const |
| |
| std::vector< PatchInfo > | getPatchInfo (int category=-1, const std::string &pattern=std::string(), double minBrightness=-1, double maxBrightness=-1) const |
| | Get the info of all patches (name, ra, dec). More...
|
| |
| std::vector< SourceData > | getPatchSourceData (const std::string &patchName) const |
| | Get all data of the sources belonging to the given patch. More...
|
| |
| std::vector< SourceInfo > | getPatchSources (const std::string &patchName) const |
| | Get the info of the sources belonging to the given patch. More...
|
| |
| SourceInfo | getSource (const std::string &sourceName) const |
| | Get the source info of the given source. More...
|
| |
| std::vector< SourceInfo > | getSources (const std::string &sourceNamePattern) const |
| | Get the info of all sources matching the given (filename like) pattern. More...
|
| |
| SourceDB & | operator= (const SourceDB &) |
| | Assignment has reference semantics. More...
|
| |
| bool | patchExists (const std::string &patchName) const |
| | Test if the patch already exists. More...
|
| |
| void | rewind () |
| | Reset to the beginning of the file. More...
|
| |
| bool | sourceExists (const std::string &sourceName) const |
| | Test if the source already exists. More...
|
| |
| void | updatePatch (unsigned int patchId, double apparentBrightness, double ra, double dec) override |
| | Update the ra/dec and apparent brightness of a patch. More...
|
| |
|
| void | lock (bool lockForWrite=true) |
| |
| void | unlock () |
| |
|
| void | addSource (const SourceInfo &sourceInfo, const std::string &patchName, const ParmMap &defaultParameters, double ra, double dec, bool check) override |
| |
| void | addSource (const SourceData &source, bool check=true) |
| |
| virtual | ~SourceDBBase ()=default |
| |
| virtual void | updatePatch (unsigned patch_id, double apparent_brightness, double ra, double dec)=0 |
| |
Envelope class for a table holding source parameters.