Changeset 2615 for trunk/MagicSoft/Cosy/cosy.cc
- Timestamp:
- 12/07/03 14:48:11 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/cosy.cc
r2568 r2615 7 7 8 8 #include "MCosy.h" 9 #include "MTime.h" 9 10 #include "MLogManip.h" 10 #include "base/timer.h"11 11 12 12 #include "Camera.h" … … 36 36 gLog << endl; 37 37 38 Timer time;39 time.Now();40 41 38 // 42 // this must move to MGCosy !!!! (or MApplication)39 // this must move to MGCosy !!!! 43 40 // 44 int i=0;45 char name[100];41 MTime time; 42 TString name; 46 43 while (1) 47 44 { 48 sprintf(name, "log/cosy%03d.log", i++); 45 time.Now(); 46 name = Form("log/cosy_%s.log", (const char*)time.GetFileName()); 47 cout << "Test: " << time.GetFileName() << " " << name << endl; 49 48 if (gSystem->AccessPathName(name, kFileExists)) 50 49 break; … … 70 69 // 71 70 clog("- Constructing MCosy."); 72 71 /* 73 72 // 74 73 // check for the right usage of the program … … 88 87 break; 89 88 } 90 91 MCosy *cosy = new MCosy( mode,"/dev/dpm_00", 125, lout);89 */ 90 MCosy *cosy = new MCosy("/dev/dpm_00", 125, lout); 92 91 93 92 clog("- Starting MCosy."); … … 134 133 135 134 cout << "The End." << endl; 136 137 135 }
Note:
See TracChangeset
for help on using the changeset viewer.