Fonction Scilab
eng - fr


write_inf_lib - retourne le texte des librairies pour le script de construction de la boîte à outils

Librairie

Séquence d'appel

txt = write_inf_lib(u,path,tt,flag)

Paramètres

Description

Add here a paragraph of the function description. Other paragraph can be added

Add here a paragraph of the function description

Exemple

Add here scilab instructions and comments

Contenu du fichier


//write_inf_lib
//Entrée : u file descriptor
//         path chemin de la libraire dans MODNUM (ex: macros/util/)
//         tt nom de la librairie (ex:mod_num_util)
//         flag drapeau pour affichage d'un header dans loader.sce
//              (0 : pas de header; 1 : header)
//sortie : txt : Information utile de chargement
//               ex : mod_num_scicos_utils=lib(MODNUM+'/macros/scicos_util/');
function txt=write_inf_lib(u,path,tt,flag)
 if size(path,'*')==size(tt,'*') then
   if MSDOS then
    path=pathconvert(path,%f,%t,'w')+'\';
   else
    path=path+'/';
   end
   for i=1:size(path,'*') 
    if flag then
      tt_loader=['//Load '+tt(i)+' library' 
                 tt(i)+'=lib(MODNUM+'''+path(i)+''');';'';
                ]
      txt(i)=tt_loader(2);
    else
     tt_loader=tt(i)+'=lib(MODNUM+'''+path(i)+''');'
     txt(i)=tt_loader;
    end
    fprintf(u,"%s\n",tt_loader);
   end
 else
  //Affiche un message d'erreur
  printf("path and tt must have the same size");
  abort
 end
endfunction

Fonction(s) utilisée(s)

Add here the used function name and references

Auteurs

enter here the author name Add here the author references