Changeset 2945 in Sophya for trunk/SophyaPI/ProgPI/piapp.cc
- Timestamp:
- Apr 26, 2006, 5:53:18 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/ProgPI/piapp.cc
r2810 r2945 7 7 #include "pistdimgapp.h" 8 8 #include "piacmd.h" 9 #include "piacmdrdr.h" 9 10 #include "piversion.h" 10 11 #include "piaversion.h" … … 48 49 \verbatim 49 50 csh> spiapp -h 50 SophyaInitiator::SophyaInitiator() BaseTools Init 51 PIOPersist::Initialize() Starting Sophya Persistence management service 52 SOPHYA Version 1.9 Revision 0 (V_Mai2005) -- Jun 9 2005 22:01:01 53 gcc 3.3-fast 20030304 (Apple Computer, Inc. build 1614) 51 PIOPersist::Initialize() Starting Sophya Persistence management service 52 SOPHYA Version 2.0 Revision 0 (V_Mai2006) -- Apr 26 2006 17:17:22 cxx 54 53 55 54 piapp: Interactive data analysis and visualisation program 56 55 Usage: piapp [-nored] [-nosig] [-nosigfpe] [-nosigsegv] [-hidezswin] 57 [- tmpdir TmpDirectory] [-help2tex] [-exec file [args]]58 -nored : NoRedirect StdOut/StdErr56 [-small] [-tmpdir TmpDirectory] [-help2tex] [-exec file [args]] 57 -nored : Don't redirect stdout/stderr to piapp console 59 58 -nosig : Don't catch SigFPE, SigSEGV 60 59 -nosigfpe -nosigsegv: Don t catch SigFPE / SigSEGV 60 -small : Create small size main piapp window 61 61 -hidezswin : Hide Zoom/Stat/ColMap window 62 62 -tmpdir TmpDirectory: defines TMDIR for temporary files 63 63 -help2tex: Create a LaTeX help file (piahelp.tex) 64 64 -exec file [args] : Execute command file 65 65 66 66 \endverbatim 67 67 … … 77 77 cout << "\n piapp: Interactive data analysis and visualisation program \n" 78 78 << " Usage: piapp [-nored] [-nosig] [-nosigfpe] [-nosigsegv] [-hidezswin] \n" 79 << " [- tmpdir TmpDirectory] [-help2tex] [-exec file [args]] \n"80 << " -nored : NoRedirect StdOut/StdErr\n"79 << " [-small] [-tmpdir TmpDirectory] [-help2tex] [-exec file [args]] \n" 80 << " -nored : Don't redirect stdout/stderr to piapp console\n" 81 81 << " -nosig : Don't catch SigFPE, SigSEGV \n" 82 82 << " -nosigfpe -nosigsegv: Don t catch SigFPE / SigSEGV \n" 83 << " -small : Create small size main piapp window \n" 83 84 << " -hidezswin : Hide Zoom/Stat/ColMap window \n" 84 85 << " -tmpdir TmpDirectory: defines TMDIR for temporary files \n" … … 95 96 { 96 97 int ofa; 97 bool fgfpe, fgsegv, fgred, fghidezsw, fgexec ;98 bool fgfpe, fgsegv, fgred, fghidezsw, fgexec, fgsmall; 98 99 99 100 SkyTInitiator skyinit; … … 109 110 fgexec = false; 110 111 bool fgtmp = false; 112 fgsmall = false; 111 113 string tmpdir; 112 114 string exfc; … … 119 121 else if (strcmp(arg[ka],"-nosigfpe") == 0) fgfpe=false; 120 122 else if (strcmp(arg[ka],"-nosigsegv") == 0) fgsegv=false; 123 else if (strcmp(arg[ka],"-small") == 0) fgsmall=true; 121 124 else if (strcmp(arg[ka],"-hidezswin") == 0) fghidezsw=true; 122 125 else if (strcmp(arg[ka],"-help2tex") == 0) { fgtexh=true; fgred=false; } … … 176 179 // cout << " DBG-TMPDIR= " << getenv("TMPDIR") << endl; 177 180 178 PIStdImgApp * app = new PIStdImgApp( narg, arg);181 PIStdImgApp * app = new PIStdImgApp(fgsmall, narg, arg); 179 182 // cout << " DBG-2 " << app->ObjMgr()->GetTmpDir() << endl; 180 183 cout << " NamedObjMgr::SetTmpDir()+XNTuple::SetSwapPath() " << tmpdir << endl; … … 213 216 exit(0); 214 217 } 218 219 // Creation du lecteur de commande sur terminal (avec GNU readline) 220 PIACmdReader cmdrdr(app); 221 cmdrdr.start(); 215 222 216 223 int rc = 0; … … 277 284 278 285 app->RedirectStdOutErr(false); 286 cmdrdr.cancel(); 287 279 288 // On de-charge le module sopiamodule et fitsbtadapter 280 289 sopiamodule_end();
Note:
See TracChangeset
for help on using the changeset viewer.