File failed to load: https://isis.astrogeology.usgs.gov/6.0.0/Object/assets/jax/output/NativeMML/config.js
Isis 3 Programmer Reference
KernelDb.h
1 #ifndef KernelDb_h
2 #define KernelDb_h
3 
10 /* SPDX-License-Identifier: CC0-1.0 */
11 
12 
13 #include <iostream>
14 #include <queue>
15 
16 #include <QList>
17 #include <QString>
18 #include <QStringList>
19 
20 #include "iTime.h"//???
21 #include "Kernel.h"
22 #include "Pvl.h"
23 
24 namespace Isis {
25  class FileName;
26  class iTime;
100  class KernelDb {
101 
102  public:
103  // constructor
104  KernelDb(const unsigned int allowedKernelTypes);
105  KernelDb(const QString &dbName, const unsigned int allowedKernelTypes);
106  KernelDb(std::istream &dbStream, const unsigned int allowedKernelTypes);
107 
108  // destructor
109  ~KernelDb();
110 
111  // Members for getting kernels
112  Kernel leapSecond(Pvl &lab);
114  Kernel targetPosition(Pvl &lab);
116  Kernel spacecraftClock(Pvl &lab);
118  Kernel instrument(Pvl &lab);
119  Kernel frame(Pvl &lab);
121  Kernel dem(Pvl &lab);
122 
123  Kernel findLast(const QString &entry, Pvl &lab);
124  QList< std::priority_queue<Kernel> > findAll(const QString &entry,
125  Pvl &lab);
126 
127  void loadSystemDb(const QString &mission, const Pvl &lab);
129 
130  static bool matches(const Pvl &lab, PvlGroup &kernelDbGrp,
131  iTime timeToMatch, int cameraVersion);
132  private:
133  void loadKernelDbFiles(PvlGroup &dataDir,
134  QString directory,
135  const Pvl &lab);
136  void readKernelDbFiles();
137 
138  QStringList files(PvlGroup &grp);
139  QString m_filename;
144  unsigned int m_allowedKernelTypes;
155  };
156 };
157 
158 #endif
Isis::KernelDb::targetAttitudeShape
Kernel targetAttitudeShape(Pvl &lab)
This method finds the highest version of all Target Attitude Shape kernels (pck) identified by the da...
Definition: KernelDb.cpp:155
Isis::KernelDb::KernelDb
KernelDb(const unsigned int allowedKernelTypes)
Constructs a new KernelDb object with a given integer value representing the Kernel::Type enumeration...
Definition: KernelDb.cpp:48
Isis::KernelDb::files
QStringList files(PvlGroup &grp)
This method retrieves the values of all of the "File" keywords in the given PvlGroup.
Definition: KernelDb.cpp:874
QList
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
Isis::iTime
Parse and return pieces of a time string.
Definition: iTime.h:65
Isis::KernelDb::instrument
Kernel instrument(Pvl &lab)
This method finds the last Instrument kernel found that matches the (ik) criteria in the database and...
Definition: KernelDb.cpp:259
Isis::Pvl
Container for cube-like labels.
Definition: Pvl.h:119
Isis::KernelDb::targetPosition
Kernel targetPosition(Pvl &lab)
This method finds the highest version of all Target Position kernels (tspk) identified by the databas...
Definition: KernelDb.cpp:176
Isis::KernelDb::~KernelDb
~KernelDb()
Destructs KernelDb object.
Definition: KernelDb.cpp:115
Isis::KernelDb::loadSystemDb
void loadSystemDb(const QString &mission, const Pvl &lab)
Loads the appropriate kernel database files with the defined BASE and MISSION info for each type of k...
Definition: KernelDb.cpp:706
QStringList
Isis::KernelDb::dem
Kernel dem(Pvl &lab)
This method finds the highest version of all Digital Terrain Models (DEMs) found that match the crite...
Definition: KernelDb.cpp:321
Isis::KernelDb::m_kernelDbFiles
QList< FileName > m_kernelDbFiles
List of the kernel database file names that were read in when the loadSystemDb() method is called.
Definition: KernelDb.h:141
Isis::KernelDb::m_kernelData
Pvl m_kernelData
Pvl containing the information in the kernel database(s) that is read in from the constructor and whe...
Definition: KernelDb.h:152
Isis::PvlGroup
Contains multiple PvlContainers.
Definition: PvlGroup.h:41
Isis::KernelDb::instrumentAddendum
Kernel instrumentAddendum(Pvl &lab)
This method finds the highest version of all Instrument Addendum kernels (iak) identified by the data...
Definition: KernelDb.cpp:300
Isis::KernelDb::spacecraftClock
Kernel spacecraftClock(Pvl &lab)
This method finds the highest version of all Spacecraft Clock kernels (sclk) identified by the databa...
Definition: KernelDb.cpp:217
Isis::KernelDb
KernelDb class.
Definition: KernelDb.h:100
Isis::KernelDb::kernelDbFiles
QList< FileName > kernelDbFiles()
Accessor method to retrieve the list of kernel database files that were read in when loadSystemDb() i...
Definition: KernelDb.cpp:860
Isis::KernelDb::m_filename
QString m_filename
The name of the kernel database file.
Definition: KernelDb.h:139
Isis::KernelDb::readKernelDbFiles
void readKernelDbFiles()
This method is called by loadSystemDb() to read kernel database file list compiled by loadKernelDbFil...
Definition: KernelDb.cpp:839
Isis::KernelDb::matches
static bool matches(const Pvl &lab, PvlGroup &kernelDbGrp, iTime timeToMatch, int cameraVersion)
This static method determines whether the given cube label matches the given criteria.
Definition: KernelDb.cpp:570
Isis::KernelDb::findLast
Kernel findLast(const QString &entry, Pvl &lab)
Finds the highest priority Kernel object for the given entry based on the allowed Kernel types.
Definition: KernelDb.cpp:338
Isis::KernelDb::findAll
QList< std::priority_queue< Kernel > > findAll(const QString &entry, Pvl &lab)
Finds all of the Kernel objects for the given entry value based on the allowed Kernel types.
Definition: KernelDb.cpp:365
Isis::Kernel
This class stores Kernel information, including Type and kernel file names.
Definition: Kernel.h:36
Isis::KernelDb::frame
Kernel frame(Pvl &lab)
This method finds the highest version of all Frame kernels (fk) identified by the database and the al...
Definition: KernelDb.cpp:280
Isis::KernelDb::spacecraftPosition
Kernel spacecraftPosition(Pvl &lab)
This method finds the highest version of all Spacecraft Position kernels (spk) identified by the data...
Definition: KernelDb.cpp:238
Isis::KernelDb::loadKernelDbFiles
void loadKernelDbFiles(PvlGroup &dataDir, QString directory, const Pvl &lab)
This method is called by loadSystemDb() to create a list of all appropriate kernel database files to ...
Definition: KernelDb.cpp:778
Isis::KernelDb::spacecraftPointing
QList< std::priority_queue< Kernel > > spacecraftPointing(Pvl &lab)
This method finds a list of the highest versions of all Spacecraft Pointing kernels (ck) identified b...
Definition: KernelDb.cpp:197
Isis::KernelDb::leapSecond
Kernel leapSecond(Pvl &lab)
This method finds the top priority of all Leap Second kernels (lsk) identified by the database and th...
Definition: KernelDb.cpp:134
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::KernelDb::m_allowedKernelTypes
unsigned int m_allowedKernelTypes
This integer value represents which Kernel::Types are allowed.
Definition: KernelDb.h:144

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the USGS Astrogeology Discussion Board
To report a bug, or suggest a feature go to: ISIS Github
File Modified: 07/13/2023 15:16:46