25class KernelDbFixture_TestKernelsSmithOffset_Test;
107 KernelDb(
const unsigned int allowedKernelTypes);
108 KernelDb(
const QString &dbName,
const unsigned int allowedKernelTypes);
109 KernelDb(std::istream &dbStream,
const unsigned int allowedKernelTypes);
126 QString
getDemTiffUrl(
const Pvl &lab,
double north,
double south,
double east,
double west);
128 virtual std::string
curlPostRequest(
const std::string url,
const std::string jsonData);
134 void loadSystemDb(
const QString &mission,
const Pvl &lab);
137 static bool matches(
const Pvl &lab, PvlGroup &kernelDbGrp,
138 iTime timeToMatch,
int cameraVersion);
140 friend class ::KernelDbFixture_TestKernelsSmithOffset_Test;
142 void loadKernelDbFiles(PvlGroup &dataDir,
145 void readKernelDbFiles();
153 unsigned int m_allowedKernelTypes;
165 static size_t writeCallback(
void* ptr,
size_t size,
size_t nmemb,
void* userdata){
166 const size_t total = size * nmemb;
167 if (!ptr || !userdata || total == 0)
return 0;
169 auto* response =
static_cast<std::string*
>(userdata);
170 response->append(
static_cast<char*
>(ptr), total);
Kernel instrumentAddendum(Pvl &lab)
This method finds the highest version of all Instrument Addendum kernels (iak) identified by the data...
Definition KernelDb.cpp:299
QString getGlobalDemTiffUrl(const Pvl &lab)
Definition KernelDb.cpp:693
virtual std::string curlPostRequest(const std::string url, const std::string jsonData)
Definition KernelDb.cpp:772
Kernel spacecraftClock(Pvl &lab)
This method finds the highest version of all Spacecraft Clock kernels (sclk) identified by the databa...
Definition KernelDb.cpp:216
Kernel targetAttitudeShape(Pvl &lab)
This method finds the highest version of all Target Attitude Shape kernels (pck) identified by the da...
Definition KernelDb.cpp:154
Kernel instrument(Pvl &lab)
This method finds the last Instrument kernel found that matches the (ik) criteria in the database and...
Definition KernelDb.cpp:258
~KernelDb()
Destructs KernelDb object.
Definition KernelDb.cpp:114
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:837
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
Kernel targetPosition(Pvl &lab)
This method finds the highest version of all Target Position kernels (tspk) identified by the databas...
Definition KernelDb.cpp:175
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:337
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:364
Kernel spacecraftPosition(Pvl &lab)
This method finds the highest version of all Spacecraft Position kernels (spk) identified by the data...
Definition KernelDb.cpp:237
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:279
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:196
QList< FileName > kernelDbFiles()
Accessor method to retrieve the list of kernel database files that were read in when loadSystemDb() i...
Definition KernelDb.cpp:992
Kernel dem(Pvl &lab)
This method finds the highest version of all Digital Terrain Models (DEMs) found that match the crite...
Definition KernelDb.cpp:320
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:133
QString getDemTiffUrl(const Pvl &lab, double north, double south, double east, double west)
Definition KernelDb.cpp:721
KernelDb(const unsigned int allowedKernelTypes)
Constructs a new KernelDb object with a given integer value representing the Kernel::Type enumeration...
Definition KernelDb.cpp:47
This class stores Kernel information, including Type and kernel file names.
Definition Kernel.h:36
Parse and return pieces of a time string.
Definition iTime.h:65
This is free and unencumbered software released into the public domain.
Definition BoxcarCachingAlgorithm.h:13
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16