PANDORE Version 6 GREYC-IMAGE

psetstatus



Sets the current status value.



Synopsis

psetstatus value

Description

psetstatus sets the current status value. The status value is the value returned after each execution of a Pandore operator. This value is operator dependent and can be of the following types:

The status value can be printed out by operator pstatus.

setstatus is useful to build new operator as pure shell script since it allows to set the result of the operator. For example, the following shell script becomes a Pandore operator that checks if an image exist and sets the status to SUCCESS or FAILURE from the result:

#!/bin/sh
if [ -f $1 ]
then
psetstatus SUCCESS
else
psetstatus FAILURE
fi

Parameters

Result

The value set.

Examples

See also

Information, pstatus

C++ prototype

Not a function.

Version française

Affecte la valeur du statut courant à une valeur donnée.


Author: Régis Clouard