57 using funcarray = std::array<void*, numfunctions>;
80 errc_t tryload(
const std::vector<std::string>& libpaths);
88 bool isLoaded()
const {
return library_ !=
nullptr; }
94 errc_t furnsh(
const char* libpath);
118 errc_t spklef(
const char* libpath,
int* handle);
124 errc_t spkuef(
int handle);
130 errc_t ktotal(
const char * kind,
int* count);
131 int ktotal(
const char * kind){
133 ktotal(kind, &count);
138 void bodc2n(
int code,
142 errc_t bodc2n(
int code, std::string& name);
153 void erract(
const char* operation,
int lenout,
char* action);
159 A_DISABLE_COPY(SpiceApi);
161 void* library_{
nullptr};
163 funcarray functions_{};