/*************************************************************************************************************************************/
/* */
/* P E R I O D I S A T I O N D ' U N A L B U M : */
/* */
/* */
/* Author of '$xci/periodise.11$K' : */
/* */
/* Jean-Francois COLONNA (LACTAMME, 20150603153416). */
/* */
/*************************************************************************************************************************************/
/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/* */
/* I N T E R F A C E ' listG ' : */
/* */
/* */
/* :Debut_listG: */
/* :Fin_listG: */
/* */
/*************************************************************************************************************************************/
/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/* */
/* D I R E C T I V E S S P E C I F I Q U E S D E C O M P I L A T I O N : */
/* */
/*************************************************************************************************************************************/
/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/* */
/* F I C H I E R S D ' I N C L U D E S : */
/* */
/*************************************************************************************************************************************/
#include INCLUDES_BASE
#include image_image_IMAGESF_EXT
#include image_image_DI_ALBUM_EXT
/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/* */
/* P A R A M E T R E S : */
/* */
/*************************************************************************************************************************************/
#include xci/sequence.01.I"
/* ATTENTION, on definit ainsi le symbole 'DERNIERE_IMAGE' qui ne sert a rien ici, puisque */
/* c'est en effet 'Zmax' qui joue ce role... */
#define INVERSER_L_AXE_OZ \
FAUX \
/* Indique s'il faut inverser l'ordre de parcours de l'ensemble des images. On a : */ \
/* */ \
/* FAUX : l'image d'arriere-plan est la premiere de la liste, */ \
/* VRAI : l'image d'arriere-plan est la derniere de la liste. */ \
/* */
#define INCOMPLET_AXE_OZ \
FAUX \
/* Indique s'il peut manquer des images... */
#define INCOMPLET_AXE_OZ_VALEUR_STANDARD \
NOIR
#define INCOMPLET_AXE_OZ_VALEUR_NON_STANDARD \
FLOT__NOIR
/* Donne la valeur des images manquantes... */
/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/* */
/* M A C R O S U T I L E S : */
/* */
/*************************************************************************************************************************************/
/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/* */
/* P E R I O D I S A T I O N D ' U N A L B U M : */
/* */
/*************************************************************************************************************************************/
BCommande(nombre_d_arguments,arguments)
/*-----------------------------------------------------------------------------------------------------------------------------------*/
Bblock
DEFV(CHAR,INIC(POINTERc(nom_albumR),NOM_PIPE));
DEFV(CHAR,INIC(POINTERc(nom_albumA),NOM_PIPE));
DEFV(CHAR,INIC(POINTERc(nom_postfixe),NOM_UNDEF_VIDE));
/* Nom d'un eventuel postfixe a placer derriere <nom_albumA><numero> (par exemple '$ROUGE'). */
DEFV(Int,INIT(premiere_image,PREMIERE_IMAGE));
/* Numero de la premiere image, */
DEFV(Int,INIT(pas_des_images,PAS_DES_IMAGES));
/* Pas de passage d'un numero d'image a une autre. */
DEFV(Int,INIT(nombre_de_chiffres,NOMBRE_DE_CHIFFRES));
/* Nombre de chiffres codant le numero des images de la serie... */
DEFV(Logical,INIT(inverser_l_axe_OZ,INVERSER_L_AXE_OZ));
/* Indique s'il faut inverser l'ordre de parcours de l'ensemble des images. On a : */
/* */
/* FAUX : l'image d'arriere-plan est la premiere de la liste, */
/* VRAI : l'image d'arriere-plan est la derniere de la liste. */
/* */
DEFV(Logical,INIT(incomplet_axe_OZ,INCOMPLET_AXE_OZ));
/* Indique s'il peut manquer des images... */
DEFV(genere_p,INIT(incomplet_axe_OZ_valeur_standard,INCOMPLET_AXE_OZ_VALEUR_STANDARD));
DEFV(genere_Float,INIT(incomplet_axe_OZ_valeur_non_standard,INCOMPLET_AXE_OZ_VALEUR_NON_STANDARD));
/* Donne la valeur des images manquantes... */
/*..............................................................................................................................*/
EGAL(valider_les_axes_OX_OY_OZ,FAUX);
GET_ARGUMENTSi(nombre_d_arguments
,BLOC(GET_ARGUMENT_C("imageA=""A=",nom_albumA);
GET_ARGUMENT_C("imageR=""R=",nom_albumR);
GET_ARGUMENT_C("postfixe=",nom_postfixe);
GET_ARGUMENT_I("premiere=",premiere_image);
GET_ARGUMENTS2_I("pas=",pas_des_images,pasZ);
GET_ARGUMENT_I("chiffres=",nombre_de_chiffres);
GET_ARGUMENT_L("inverser_Z=""inv_Z=",inverser_l_axe_OZ);
GET_ARGUMENT_L("incomplet_Z=""inc_Z=",incomplet_axe_OZ);
GET_ARGUMENT_P("valeur_standard_incomplet_Z=""vsinc_Z=",incomplet_axe_OZ_valeur_standard);
GET_ARGUMENT_F("valeur_non_standard_incomplet_Z=""vnsinc_Z=",incomplet_axe_OZ_valeur_non_standard);
GET_ARGUMENT_L("standard=",les_images_sont_standards);
)
);
Test(EST_VRAI(les_images_sont_standards))
Bblock
BDEFV(album,album_d_imagesA);
BDEFV(album,album_d_imagesR);
/* Definition des albums d'images Argument et Resultat... */
CALS(dAnoir(album_d_imagesR));
/* Initialisation de l'image Resultat. */
CALi(idAload_album(album_d_imagesA
,nom_albumA
,nom_postfixe
,premiere_image
,pas_des_images
,nombre_de_chiffres
,FAUX
,UNDEF
,inverser_l_axe_OZ
,incomplet_axe_OZ
,incomplet_axe_OZ_valeur_standard
)
);
/* Chargement de l'album Argument... */
Test(PAS_D_ERREUR(CODE_ERREUR))
Bblock
CALS(Aperiodisation(album_d_imagesR,album_d_imagesA));
/* Periodisation de l'album d'images Argument... */
CALi(dAupdate_album(nom_albumR
,nom_postfixe
,premiere_image
,pas_des_images
,album_d_imagesR
,nombre_de_chiffres
,FAUX
)
);
Eblock
ATes
Bblock
Eblock
ETes
EDEFV(album,album_d_imagesR);
EDEFV(album,album_d_imagesA);
/* Definition des albums d'images Argument et Resultat... */
Eblock
ATes
Bblock
BDEFV(albumF,album_d_imagesA);
BDEFV(albumF,album_d_imagesR);
/* Definition des albums d'images Argument et Resultat... */
CALS(dAFinitialisation(album_d_imagesR,FZERO));
/* Initialisation de l'album Resultat. */
CALi(idAloadF_album(album_d_imagesA
,nom_albumA
,nom_postfixe
,premiere_image
,pas_des_images
,nombre_de_chiffres
,FAUX
,UNDEF
,inverser_l_axe_OZ
,incomplet_axe_OZ
,incomplet_axe_OZ_valeur_non_standard
)
);
/* Chargement de l'album Argument... */
Test(PAS_D_ERREUR(CODE_ERREUR))
Bblock
CALS(AFperiodisation(album_d_imagesR,album_d_imagesA));
/* Periodisation de l'album d'images Argument... */
CALi(dAupdateF_album(nom_albumR
,nom_postfixe
,premiere_image
,pas_des_images
,album_d_imagesR
,nombre_de_chiffres
,FAUX
)
);
Eblock
ATes
Bblock
Eblock
ETes
EDEFV(albumF,album_d_imagesR);
EDEFV(albumF,album_d_imagesA);
/* Definition des albums d'images Argument et Resultat... */
Eblock
ETes
RETU_Commande;
Eblock
ECommande