mpiMapReloadFile

The C API uses different methods to load, run, and control maps, including mpiMapReloadFile.

MPIRC mpiMapReloadFile (const char  *lpszMapName)

Inputs

lpszMapName
Name of the compiled map file (.mmc).

Outputs

None

Returns

Success status

The following code demonstrates the usage of 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);