Changeset 7256 for trunk/MagicSoft/Mars/datacenter/macros
- Timestamp:
- 08/03/05 20:45:43 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/macros/getdolist.C
r7235 r7256 118 118 return 0; 119 119 120 TString filename(Form("%s/ToDo-%s-%s.txt", listpath.Data(), table.Data(), column.Data())); 121 ofstream fout(filename, ios::app); 122 if (!fout) 120 121 TString filename; 122 TSQLRow *row=0; 123 124 if ((table=="SequenceProcessStatus" && column=="fCallisto") || 125 (table=="SequenceProcessStatus" && column=="fStar") || 126 (table=="DataSetProcessStatus" && column=="fGanymed")) 123 127 { 124 cout << "ERROR - Cannot open file " << filename << endl; 125 return 0; 128 while ((row = res->Next())) 129 { 130 filename=Form("%s/ToDo-%s-%s-%s.txt", listpath.Data(), table.Data(), column.Data(), (*row)[0]); 131 ofstream fout(filename, ios::app); 132 if (!fout) 133 { 134 cout << "ERROR - Cannot open file " << filename << endl; 135 return 0; 136 } 137 fout << (*row)[0] << endl; 138 } 126 139 } 140 else 141 { 142 filename=Form("%s/ToDo-%s-%s.txt", listpath.Data(), table.Data(), column.Data()); 143 ofstream fout(filename, ios::app); 144 if (!fout) 145 { 146 cout << "ERROR - Cannot open file " << filename << endl; 147 return 0; 148 } 127 149 128 TSQLRow *row=0;129 while ((row = res->Next()))130 fout << (*row)[0] << endl;150 while ((row = res->Next())) 151 fout << (*row)[0] << endl; 152 } 131 153 132 154 delete res;
Note:
See TracChangeset
for help on using the changeset viewer.