mpiMapReloadFile

L’API C utilise différentes méthodes pour charger, exécuter et contrôler les mappes, y compris mpiMapReloadFile.

MPIRC mpiMapReloadFile (const char  *lpszMapName)

Entrées

lpszMapName
Nom du fichier de mappe compilée (.mmc)

Sorties

Aucun

Renvoie

Statut de réussite

Le code suivant illustre l'utilisation de mpiMapReloadFile :
HMPIMAP hMap1;
HMPIMAP hMap2;
mpiMapLoadFile (&hMap1, "fred.mmc");
mpiMapLoadFile (&hMap2, "fred.mmc");
mpiMapRun (&hMap1);
mpiMapRun (&hMap2);
/* Now the program detects that the map file fred.mmc has changed */
mpiMapReloadFile ("fred.mmc");
/* hMap1 will pick up the updates and run with the ‘new’ map */
mpiMapRefresh (hMap1);
mpiMapRun (&hMap1);
/* HMAP2 did not refresh will run with the ‘old’ map */
mpiMapRun (&hMap2);