added spice frame info functions to spice manager (#1427)

* Added spice frame info functions to spice manager
This commit is contained in:
Micah Acinapura
2020-12-08 10:19:07 -05:00
committed by GitHub
parent d7f266cb01
commit e2da387473
3 changed files with 265 additions and 0 deletions
+33
View File
@@ -226,6 +226,18 @@ public:
*/
bool hasSpkCoverage(const std::string& target, double et) const;
/**
* Returns a list of loaded SPK coverage intervals for \p target
*
* \param target The body to be examined. The target has to name a valid SPICE object
* with respect to the kernels that have been loaded
* \return \c list of SPK kernels for \p target , \c empty list if none loaded.
*
* \throw SpiceException If \p target does not name a valid SPICE object
* \pre \p target must not be empty.
*/
std::vector<std::pair<double, double>> spkCoverage(const std::string& target) const;
/**
* Returns whether a given \p frame has a CK kernel covering it at the designated
* \p et ephemeris time.
@@ -242,6 +254,27 @@ public:
*/
bool hasCkCoverage(const std::string& frame, double et) const;
/**
* Returns a list of loaded CK coverage intervals for \p target
*
* \param target The body to be examined. The target has to name a valid SPICE object
* with respect to the kernels that have been loaded
* \return \c list of CK kernels for \p target , \c empty list if none loaded.
*
* \throw SpiceException If \p target does not name a valid SPICE object
* \pre \p target must not be empty.
*/
std::vector<std::pair<double, double>> ckCoverage(const std::string& target) const;
/**
* Returns a list of loaded spice frames,
*
* \param builtInFrames Boolean representing if builtIn or LoadedFrames should be used
* \return \c list of Spice frames with ID(int) and Name(string).
*
*/
std::vector<std::pair<int, std::string>> spiceBodies(bool builtInFrames) const;
/**
* Determines whether values exist for some \p item for any body, identified by its
* \p naifId, in the kernel pool by passing it to the \c bodfnd_c function.