Changeset 463 in Sophya for trunk/SophyaPI/PIext/piacmd.cc
- Timestamp:
- Oct 12, 1999, 6:26:18 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/piacmd.cc
r449 r463 14 14 #include "nobjmgr.h" 15 15 #include "piafitting.h" 16 #include "pawexecut.h" 16 17 17 18 #include PISTDWDG_H … … 311 312 basexec = new PIABaseExecutor(this, omg, app); 312 313 fitexec = new PIAFitter(this, app); 314 pawexec = new PAWExecutor(this, app); 313 315 AddInterpreter(this); 314 316 curcmdi = this; … … 331 333 delete basexec; 332 334 delete fitexec; 335 delete pawexec; 333 336 } 334 337 … … 901 904 } 902 905 903 906 /* --Methode-- */ 907 void PIACmd::HelptoLaTex(string const & fname) 908 { 909 FILE *fip; 910 if ((fip = fopen(fname.c_str(), "w")) == NULL) { 911 cout << "PIACmd::HelptoLaTex_Error: fopen( " << fname << endl; 912 return; 913 } 914 915 fputs("% ----- Liste des groupes de Help ----- \n",fip); 916 fputs("List of {\\bf piapp} on-line Help groups: \n", fip); 917 fputs("\\begin{itemize} \n",fip); 918 CmdHGroup::iterator it; 919 for(it = cmdhgrp.begin(); it != cmdhgrp.end(); it++) 920 fprintf(fip,"\\item {\\bf %s } \n", (*it).first.c_str()); 921 922 fputs("\\end{itemize} \n",fip); 923 924 fputs("% ----- Liste des commandes dans chaque groupe ----- \n",fip); 925 fputs("\\newpage \n",fip); 926 CmdExmap::iterator ite; 927 int gid; 928 for(it = cmdhgrp.begin(); it != cmdhgrp.end(); it++) { 929 gid = (*it).second; 930 if (gid == 0) continue; 931 fprintf(fip,"\\subsection{%s} \n", (*it).first.c_str()); 932 for(ite = helpexmap.begin(); ite != helpexmap.end(); ite++) { 933 if ((*ite).second.group != gid) continue; 934 fprintf(fip,"{ \\Large $ \\star \\star \\star $ } Help item {\\bf \\Large %s } \n", 935 (*ite).first.c_str()); 936 fputs("\\begin{verbatim} \n",fip); 937 fprintf(fip,"%s\n", (*ite).second.us.c_str()); 938 fputs("\\end{verbatim} \n",fip); 939 } 940 for(ite = cmdexmap.begin(); ite != cmdexmap.end(); ite++) { 941 if ((*ite).second.group != gid) continue; 942 fprintf(fip,"{ \\Large $ \\star \\star \\star $ } Command {\\bf \\Large %s } \n", 943 (*ite).first.c_str()); 944 fputs("\\begin{verbatim} \n",fip); 945 fprintf(fip,"%s\n", (*ite).second.us.c_str()); 946 fputs("\\end{verbatim} \n",fip); 947 } 948 } 949 950 fclose(fip); 951 return; 952 } 953 954 955
Note:
See TracChangeset
for help on using the changeset viewer.