13#include "IException.h"
16#include "PvlToPvlTranslationManager.h"
19 bool NaifStatus::initialized =
false;
30 SpiceChar returnAct[32] =
"RETURN";
31 SpiceChar printAct[32] =
"NONE";
32 erract_c(
"SET",
sizeof(returnAct), returnAct);
33 errprt_c(
"SET",
sizeof(printAct), printAct);
39 if(!failed_c())
return;
55 const int SHORT_DESC_LEN = 26;
56 SpiceChar naifShort[SHORT_DESC_LEN];
57 getmsg_c(
"SHORT", SHORT_DESC_LEN, naifShort);
63 const int LONG_DESC_LEN = 1841;
64 SpiceChar naifLong[LONG_DESC_LEN];
65 getmsg_c(
"LONG", LONG_DESC_LEN, naifLong);
71 PvlGroup errorDescription(
"ErrorDescription");
72 errorDescription.addKeyword(
PvlKeyword(
"ShortMessage", naifShort));
73 errorDescription.addKeyword(
PvlKeyword(
"LongMessage", naifLong));
79 errMsg = trans.Translate(
"ShortMessage");
82 errMsg =
"An unknown NAIF error has been encountered.";
86 errMsg +=
" " + trans.Translate(
"LongMessage");
96 errMsg +=
" The short explanation ";
97 errMsg +=
"provided by NAIF is [" + QString(naifShort) +
"]. ";
98 errMsg +=
"The Naif error is [" + QString(naifLong) +
"]";
@ Unknown
A type of error that cannot be classified as any of the other error types.
static void CheckErrors(bool resetNaif=true)
This method looks for any naif errors that might have occurred.
Contains multiple PvlContainers.
Container for cube-like labels.
A single keyword-value pair.
void addGroup(const Isis::PvlGroup &group)
Add a group to the object.
Allows applications to translate simple text files.
This is free and unencumbered software released into the public domain.