Changeset 7528 for trunk/MagicSoft/Mars/datacenter/macros/fillstar.C
- Timestamp:
- 02/25/06 18:31:03 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/macros/fillstar.C
r7460 r7528 52 52 // file called sql.rc and the resource file is found. 53 53 // 54 // Returns 0 in case of failure and 1 in case of success. 54 // Returns 2 in case of failure, 1 in case of success and 0 if the connection 55 // to the database is not working. 55 56 // 56 57 ///////////////////////////////////////////////////////////////////////////// … … 113 114 { 114 115 cout << "ERROR - Could not find file " << fname << endl; 115 return 0;116 return 2; 116 117 } 117 118 … … 121 122 { 122 123 cout << "ERROR - Reading of MStatusDisplay failed." << endl; 123 return 0;124 return 2; 124 125 } 125 126 … … 128 129 { 129 130 cout << "WARNING - Reading of MHHillas failed." << endl; 130 return 0;131 return 2; 131 132 } 132 133 … … 135 136 { 136 137 cout << "WARNING - Reading of MHMuon failed." << endl; 137 return 0;138 return 2; 138 139 } 139 140 … … 165 166 { 166 167 cout << "WARNING - Reading of Islands failed." << endl; 167 return 0;168 return 2; 168 169 } 169 170 … … 176 177 { 177 178 cout << "WARNING - Reading of EffOnTheta failed." << endl; 178 return 0;179 return 2; 179 180 } 180 181 … … 189 190 { 190 191 cout << "WARNING - Reading of ProjDeltaT failed." << endl; 191 return 0;192 return 2; 192 193 } 193 194 … … 199 200 { 200 201 cout << "WARNING - Reading of Humidity failed." << endl; 201 return 0;202 return 2; 202 203 } 203 204 … … 210 211 { 211 212 cout << "WARNING - Could get sequence# from filename: " << fname << endl; 212 return 0;213 return 2; 213 214 } 214 215 … … 268 269 269 270 if (dummy) 270 return 0;271 return 1; 271 272 272 273 TSQLResult *res = serv.Query(query); … … 274 275 { 275 276 cout << "ERROR - Query failed: " << query << endl; 276 return 0;277 return 2; 277 278 } 278 279
Note:
See TracChangeset
for help on using the changeset viewer.