63 using funcarray = std::array<void*, numfunctions>;
73 explicit SpiceAPI(
bool shouldLoadDynamicLib);
86 errc_t tryload(
const std::vector<std::string>& libpaths);
94 bool isLoaded()
const {
return library_ !=
nullptr; }
100 errc_t furnsh(
const char* file);
138 errc_t spklef(
const char* filename,
int* handle);
144 errc_t spkuef(
int handle);
150 errc_t ktotal(
const char * kind,
int* count);
151 int ktotal(
const char * kind){
153 ktotal(kind, &count);
158 void bodc2n(
int code,
162 errc_t bodc2n(
int code, std::string& name);
173 void erract(
const char* operation,
int lenout,
char* action);
186 void makeSpicePath(StringView path, std::string& spicePath);
188 A_DISABLE_COPY(SpiceAPI);
190 void* library_{
nullptr};
191 std::vector<uint32_t> spk_handles_{};
192 funcarray functions_{};
errc_t spkssb(CelestialBody *targ, const TimePoint &et, Axes *ref, CartState &starg)
计算天体相对于太阳系质心的位置速度( S/P Kernel, solar system barycenter)
定义 SpiceZpr.cpp:1459