Ejemplo n.º 1
0
static void Report( const char *name ){
   astError( AST__GRFER, "%s: The graphics facilities implement by %s "
             "(introduced at AST V3.2) are needed but are unavailable.",
             name, name );
   astError( AST__GRFER, "Re-link using a suitable option such as '-pgplot' "
             "with the ast_link script, or add an implementation of this "
             "function to your 'grf' module." );
}
Ejemplo n.º 2
0
int main(){
   double a[2] = {0.0,0.0};

/* Initialise the flag that indicates if the error handler has been
   called. */
   flag = 0;

/* Register the error handler. */
   astSetPutErr( myPutErr );

/* Generate an error by making a ShiftMap with a negative number of axes.
   The error handler will set the flag to a special value. */
   AstShiftMap *map = astShiftMap( -1, a, " " );

/* Clear the error status. */
   astClearStatus;

/* Clear the error reporter so that the default error reporter is used. */
   astSetPutErr( NULL );

/* Report an error if the flag was not set to the correct value. */
   if( flag != ERRVAL ) {
      astError( AST__INTER, "Error reporting function has not been "
                "called." );
   }

   if( astOK ) {
      printf(" All Error tests passed\n");
   } else {
      printf("Error tests failed\n");
   }

}
Ejemplo n.º 3
0
Archivo: grf3d.c Proyecto: Starlink/ast
static void Report( const char *name ){
   astError( AST__GRFER, "%s: No graphics facilities are available.", name );
   astError( AST__GRFER, "Re-link using an option such as '-pgplot' with "
             "the ast_link script." );
}
Ejemplo n.º 4
0
void GoAstView::error(QProcess::ProcessError code)
{
    QByteArray data = processErrorName(code);
    emit astError(data);
}
Ejemplo n.º 5
0
void GoAstView::readStderr()
{
    QByteArray data = astProcess.readAllStandardError();
    emit astError(data);
}