61 using funcarray = std::array<void*, numfunctions>;
71 explicit SpiceAPI(
bool shouldLoadDynamicLib);
84 errc_t tryload(
const std::vector<std::string>& libpaths);
92 bool isLoaded()
const {
return library_ !=
nullptr; }
98 errc_t furnsh(
const char* file);
122 errc_t spklef(
const char* filename,
int* handle);
128 errc_t spkuef(
int handle);
134 errc_t ktotal(
const char * kind,
int* count);
135 int ktotal(
const char * kind){
137 ktotal(kind, &count);
142 void bodc2n(
int code,
146 errc_t bodc2n(
int code, std::string& name);
157 void erract(
const char* operation,
int lenout,
char* action);
163 A_DISABLE_COPY(SpiceAPI);
165 void* library_{
nullptr};
167 funcarray functions_{};