1RESTOREALLDIR(3)             MBK LOGICAL FUNCTIONS            RESTOREALLDIR(3)
2
3
4

NAME

6       restorealldir - restore all instances' connectors directions
7

SYNOPSIS

9       #include "mlo.h"
10       int restorealldir(ptfig)
11       lofig_list ∗ptfig;
12

PARAMETER

14       ptfig               Pointer to a lofig_list
15

DESCRIPTION

17       The  restorealldir  function restores the directions of all the connec‐
18       tors of the instances.  Each instance model  logical  view  is  loaded,
19       and  the restoredirvbe function applied.  If a model doesn't have a vbe
20       file on the path, the restorealldir and guessextdir functions are  used
21       on the model.
22       It  is the charge of the user to delete the models loaded in memory for
23       the function purpose.
24

RETURN VALUE

26       restorealldir returns 1 on success, 0 if there is an error while  read‐
27       ing the vbe file.
28

ERROR

30       restorealldir   cannot   give   any   errors,   but  the  function  use
31       restoredirvbe  that  can  give   errors   reading   vbe   files.    see
32       restoredirvbe for details.
33

EXAMPLE

35       #include "mut.h"
36       #include "mlo.h"
37       lofig_list ∗ getgoodlofig(figname, mode)
38       char ∗figname;
39       char mode;
40       {
41       lofig_list ∗ptfig;
42          ptfig = getlofig(figname, mode);
43          restorealldir(ptfig);
44          return ptfig;
45       }
46

SEE ALSO

48       mbk(1),   lofig(3),  locon(3),  getlofig(3),  restoredirvbe(3).   gues‐
49       sextdir(3).
50
51
52
53
54
55
56ASIM/LIP6                       October 1, 1997               RESTOREALLDIR(3)
Impressum