Changeset 8998 for trunk/MagicSoft/Cosy
- Timestamp:
- 07/13/08 13:16:03 (16 years ago)
- Location:
- trunk/MagicSoft/Cosy
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/Changelog
r8982 r8998 1 1 -*-*- END -*-*- 2 3 2008/07/13 Thomas Bretz 4 5 * caos/Led.cc, caos/Ring.cc, gui/MGCosy.cc, tcpip/MCeCoCom.cc, 6 tcpip/MDriveCom.cc: 7 - replaced usage of MString::Print by MString::Format 8 9 2 10 3 11 2008/06/19 Thomas Bretz -
trunk/MagicSoft/Cosy/caos/Led.cc
r4892 r8998 20 20 void Led::Print(Option_t *o) const 21 21 { 22 MString str;23 22 cout << "Led: "; 24 cout << "x=" << str.Print("%5.1f", fX) << "+-" << fDx << ", ";25 cout << "y=" << str.Print("%5.1f", fY) << "+-" << fDy << ", ";26 cout << "phi=" << str.Print("%6.1f", fPhi) << "+-" << fDphi << ", ";23 cout << "x=" << MString::Format("%5.1f", fX) << "+-" << fDx << ", "; 24 cout << "y=" << MString::Format("%5.1f", fY) << "+-" << fDy << ", "; 25 cout << "phi=" << MString::Format("%6.1f", fPhi) << "+-" << fDphi << ", "; 27 26 cout << "mag=" << fMag << endl; 28 27 } -
trunk/MagicSoft/Cosy/caos/Ring.cc
r7296 r8998 138 138 void Ring::Print(Option_t *o) const 139 139 { 140 MString str;141 140 cout << "Ring: "; 142 cout << "x=" << str.Print("%5.1f", fX) << "+-" << Form("%.1f", fDx) << ", ";143 cout << "y=" << str.Print("%5.1f", fY) << "+-" << Form("%.1f", fDy) << ", ";144 cout << "r=" << str.Print("%5.1f", fR) << "+-" << Form("%.1f", fDr) << ", ";141 cout << "x=" << MString::Format("%5.1f", fX) << "+-" << MString::Format("%.1f", fDx) << ", "; 142 cout << "y=" << MString::Format("%5.1f", fY) << "+-" << MString::Format("%.1f", fDy) << ", "; 143 cout << "r=" << MString::Format("%5.1f", fR) << "+-" << MString::Format("%.1f", fDr) << ", "; 145 144 cout << "phi=" << fPhi << "+-" << fDphi << endl; 146 145 } -
trunk/MagicSoft/Cosy/gui/MGCosy.cc
r8865 r8998 1031 1031 if (oldmjd != (ULong_t)(1000000*mjd)) 1032 1032 { 1033 MString str; 1034 str.Print("%12.6f", mjd); 1035 fMjd->SetText(new TGString(str)); 1033 fMjd->SetText(new TGString(MString::Format("%12.6f", mjd))); 1036 1034 oldmjd = (ULong_t)(1000000*mjd); 1037 1035 } -
trunk/MagicSoft/Cosy/tcpip/MCeCoCom.cc
r8840 r8998 132 132 fT.GetTime(h2, m2, s2, ms2); 133 133 134 MString msg;135 msg.Print("%s "134 const TString msg = 135 MString::Format("%s " 136 136 "%02d %04d %02d %02d %02d %02d %02d %03d " 137 137 "%02d %04d %02d %02d %02d %02d %02d %03d " … … 161 161 return ""; 162 162 163 MString str; 164 return str.Print("Temp: %.1f'C Hum: %.1f%% Wind: %.1fkm/h", 165 fTemperature, fHumidity, fWindSpeed); 163 return MString::Format("Temp: %.1f'C Hum: %.1f%% Wind: %.1fkm/h", 164 fTemperature, fHumidity, fWindSpeed); 166 165 } 167 166 -
trunk/MagicSoft/Cosy/tcpip/MDriveCom.cc
r8869 r8998 238 238 MAstro::Deg2Dms(deg, sgn, d, m, s); 239 239 240 MString txt; 241 str += txt.Print("%c %03d %02d %03d ", sgn, d, m, s); 240 str += MString::Format("%c %03d %02d %03d ", sgn, d, m, s); 242 241 } 243 242 … … 266 265 SetStatus(4); 267 266 268 MString txt;269 270 267 TString str; 271 268 Print(str, rd.Ra()); // Ra 272 269 Print(str, rd.Dec()); // Dec 273 270 Print(str, 0); // HA 274 str += txt.Print("%12.6f ", t.GetMjd()); // mjd271 str += MString::Format("%12.6f ", t.GetMjd()); // mjd 275 272 Print(str, so.Zd()); 276 273 Print(str, so.Az()); 277 274 Print(str, is.Zd()); 278 275 Print(str, is.Az()); 279 str += txt.Print("%08.3f ", er.Zd());280 str += txt.Print("%08.3f ", er.Az());276 str += MString::Format("%08.3f ", er.Zd()); 277 str += MString::Format("%08.3f ", er.Az()); 281 278 str += armed ? "1 " : "0 "; 282 279 … … 305 302 SetStatus(4); 306 303 307 MString txt;308 309 304 TString str; 310 str += txt.Print("%05.3f ", miss.Zd()); //[arcmin]311 str += txt.Print("%05.3f ", miss.Az()); //[arcmin]305 str += MString::Format("%05.3f ", miss.Zd()); //[arcmin] 306 str += MString::Format("%05.3f ", miss.Az()); //[arcmin] 312 307 Print(str, nompos.Zd()); //[deg] 313 308 Print(str, nompos.Az()); //[deg] 314 str += txt.Print("%05.1f ", center.GetX()); //number315 str += txt.Print("%05.1f ", center.GetY()); //number316 str += txt.Print("%04d ", n); //number of correleated stars317 str += txt.Print("%03.1f ", bright);318 str += txt.Print("%12.6f ", t.GetMjd()); // mjd319 str += txt.Print("%.1f ", x);320 str += txt.Print("%.1f ", y);321 str += txt.Print("%04d ", num); //number of detected stars309 str += MString::Format("%05.1f ", center.GetX()); //number 310 str += MString::Format("%05.1f ", center.GetY()); //number 311 str += MString::Format("%04d ", n); //number of correleated stars 312 str += MString::Format("%03.1f ", bright); 313 str += MString::Format("%12.6f ", t.GetMjd()); // mjd 314 str += MString::Format("%.1f ", x); 315 str += MString::Format("%.1f ", y); 316 str += MString::Format("%04d ", num); //number of detected stars 322 317 323 318 return SendRep("STARG-REPORT", str, kTRUE);
Note:
See TracChangeset
for help on using the changeset viewer.