Changeset 9302 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 02/07/09 20:40:28 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MContinue.cc
r9178 r9302 52 52 53 53 #include "MF.h" 54 #include "MString.h" 54 55 #include "MParList.h" 55 56 #include "MTaskList.h" … … 105 106 { 106 107 fName = name ? name : "MContinue"; 107 fTitle = title ? title : "Task returning kCONTINUE ";108 fTitle = title ? title : "Task returning kCONTINUE (or any other return code)"; 108 109 109 110 SetFilter(f); … … 155 156 156 157 if ((TString)GetFilter()->GetName()==fName) 157 GetFilter()->SetName( Form("MF:%s", fName.Data()));158 GetFilter()->SetName(MString::Format("MF:%s", fName.Data())); 158 159 159 160 if (!fTaskList->AddToListBefore(GetFilter(), this)) -
trunk/MagicSoft/Mars/mbase/MFilter.cc
r8907 r9302 77 77 #include "MLogManip.h" 78 78 79 #include "MString.h" 80 79 81 ClassImp(MFilter); 80 82 … … 97 99 TString MFilter::GetRule() const 98 100 { 99 return Form("(%s)", ClassName()); //"<GetRule n/a for " + fName + ">";101 return MString::Format("(%s)", ClassName()); //"<GetRule n/a for " + fName + ">"; 100 102 } 101 103 -
trunk/MagicSoft/Mars/mbase/MLog.cc
r8965 r9302 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MLog.cc,v 1.6 1 2008-06-16 14:58:27 tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MLog.cc,v 1.62 2009-02-07 20:40:07 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 114 114 #include "MArgs.h" 115 115 #include "MTime.h" 116 #include "MString.h" 116 117 #include "MParContainer.h" 117 118 … … 572 573 TString f1 = arg.GetStringAndRemove("--log=", ""); 573 574 if (f1.IsNull() && arg.HasOnlyAndRemove("--log")) 574 f1 = Form("%s.log", arg.GetName());575 f1 = MString::Format("%s.log", arg.GetName()); 575 576 if (!f1.IsNull()) 576 577 { … … 581 582 TString f2 = arg.GetStringAndRemove("--html=", ""); 582 583 if (f2.IsNull() && arg.HasOnlyAndRemove("--html")) 583 f2 = Form("%s.html", arg.GetName());584 f2 = MString::Format("%s.html", arg.GetName()); 584 585 if (!f2.IsNull()) 585 586 { -
trunk/MagicSoft/Mars/mbase/MMath.cc
r9253 r9302 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MMath.cc,v 1.4 6 2009-01-24 10:57:46tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MMath.cc,v 1.47 2009-02-07 20:33:22 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 876 876 } 877 877 878 const char *fmt = MString::Format("%%.%de", i);879 880 v = MString::Format(fmt , v).Atof();878 const TString fmt = MString::Format("%%.%de", i); 879 880 v = MString::Format(fmt.Data(), v).Atof(); 881 881 e = error.Atof(); 882 882 } -
trunk/MagicSoft/Mars/mbase/MParContainer.cc
r9268 r9302 1103 1103 for (int i=1; i<9; i++) 1104 1104 { 1105 const TString form = Form(id.Data(), i);1106 const TString res = Form(form.Data(), num);1105 const TString form = MString::Format(id.Data(), i); 1106 const TString res = MString::Format(form.Data(), num); 1107 1107 1108 1108 const TString str = GetEnvValue2(env, prefix, res, ""); -
trunk/MagicSoft/Mars/mbase/MParEmulated.cc
r9079 r9302 50 50 #include "MLogManip.h" 51 51 52 #include "MString.h" 53 52 54 ClassImp(MParEmulated); 53 55 … … 158 160 name.Prepend("Get"); 159 161 160 TMethodCall *call = new TMethodCall(MParEmulated::Class(), name, proxy? Form("%p,%d", proxy, offset):Form("%d", offset));162 TMethodCall *call = new TMethodCall(MParEmulated::Class(), name, proxy?MString::Format("%p,%d", proxy, offset):MString::Format("%d", offset)); 161 163 fgListMethodCall.Add(call); 162 164 return call; -
trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc
r9292 r9302 485 485 486 486 // Add copyright notice 487 l = new TGLabel(f, Form("(c) MARS Software Development, 2000-%d", TDatime().GetYear()));487 l = new TGLabel(f, MString::Format("(c) MARS Software Development, 2000-%d", TDatime().GetYear())); 488 488 fList->Add(l); 489 489 f->AddFrame(l, layb); … … 2580 2580 Int_t MStatusDisplay::InitWriteDisplay(Int_t num, TString &name, const TString &ext) 2581 2581 { 2582 SetStatusLine1( Form("Writing %s file...",ext.Data()));2582 SetStatusLine1(MString::Format("Writing %s file...",ext.Data())); 2583 2583 SetStatusLine2("Please be patient!"); 2584 2584 -
trunk/MagicSoft/Mars/mbase/MTime.cc
r9210 r9302 84 84 85 85 #include "MAstro.h" 86 #include "MString.h" 86 87 87 88 ClassImp(MTime); … … 708 709 GetTime(h, m, s, ms); 709 710 710 return TString(Form("%02d.%02d.%04d %02d:%02d:%02d.%03d", d, mon, y, h, m, s, ms));711 return MString::Format("%02d.%02d.%04d %02d:%02d:%02d.%03d", d, mon, y, h, m, s, ms); 711 712 } 712 713 … … 883 884 884 885 *fLog << all << GetDescriptor() << ": "; 885 *fLog << GetString() << Form(" (+%dns)", fNanoSec) << endl;886 *fLog << GetString() << MString::Format(" (+%dns)", fNanoSec) << endl; 886 887 } 887 888
Note:
See TracChangeset
for help on using the changeset viewer.