Ignore:
Timestamp:
02/07/09 20:40:28 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MContinue.cc

    r9178 r9302  
    5252
    5353#include "MF.h"
     54#include "MString.h"
    5455#include "MParList.h"
    5556#include "MTaskList.h"
     
    105106{
    106107    fName  = name  ? name  : "MContinue";
    107     fTitle = title ? title : "Task returning kCONTINUE";
     108    fTitle = title ? title : "Task returning kCONTINUE (or any other return code)";
    108109
    109110    SetFilter(f);
     
    155156
    156157    if ((TString)GetFilter()->GetName()==fName)
    157         GetFilter()->SetName(Form("MF:%s", fName.Data()));
     158        GetFilter()->SetName(MString::Format("MF:%s", fName.Data()));
    158159
    159160    if (!fTaskList->AddToListBefore(GetFilter(), this))
  • trunk/MagicSoft/Mars/mbase/MFilter.cc

    r8907 r9302  
    7777#include "MLogManip.h"
    7878
     79#include "MString.h"
     80
    7981ClassImp(MFilter);
    8082
     
    9799TString MFilter::GetRule() const
    98100{
    99     return Form("(%s)", ClassName()); //"<GetRule n/a for " + fName + ">";
     101    return MString::Format("(%s)", ClassName()); //"<GetRule n/a for " + fName + ">";
    100102}
    101103
  • trunk/MagicSoft/Mars/mbase/MLog.cc

    r8965 r9302  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MLog.cc,v 1.61 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 $
    33! --------------------------------------------------------------------------
    44!
     
    114114#include "MArgs.h"
    115115#include "MTime.h"
     116#include "MString.h"
    116117#include "MParContainer.h"
    117118
     
    572573    TString f1 = arg.GetStringAndRemove("--log=", "");
    573574    if (f1.IsNull() && arg.HasOnlyAndRemove("--log"))
    574         f1 = Form("%s.log", arg.GetName());
     575        f1 = MString::Format("%s.log", arg.GetName());
    575576    if (!f1.IsNull())
    576577    {
     
    581582    TString f2 = arg.GetStringAndRemove("--html=", "");
    582583    if (f2.IsNull() && arg.HasOnlyAndRemove("--html"))
    583         f2 = Form("%s.html", arg.GetName());
     584        f2 = MString::Format("%s.html", arg.GetName());
    584585    if (!f2.IsNull())
    585586    {
  • trunk/MagicSoft/Mars/mbase/MMath.cc

    r9253 r9302  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MMath.cc,v 1.46 2009-01-24 10:57:46 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MMath.cc,v 1.47 2009-02-07 20:33:22 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    876876    }
    877877
    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();
    881881    e = error.Atof();
    882882}
  • trunk/MagicSoft/Mars/mbase/MParContainer.cc

    r9268 r9302  
    11031103    for (int i=1; i<9; i++)
    11041104    {
    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);
    11071107
    11081108        const TString str  = GetEnvValue2(env, prefix, res, "");
  • trunk/MagicSoft/Mars/mbase/MParEmulated.cc

    r9079 r9302  
    5050#include "MLogManip.h"
    5151
     52#include "MString.h"
     53
    5254ClassImp(MParEmulated);
    5355
     
    158160    name.Prepend("Get");
    159161
    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));
    161163    fgListMethodCall.Add(call);
    162164    return call;
  • trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc

    r9292 r9302  
    485485
    486486    // 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()));
    488488    fList->Add(l);
    489489    f->AddFrame(l, layb);
     
    25802580Int_t MStatusDisplay::InitWriteDisplay(Int_t num, TString &name, const TString &ext)
    25812581{
    2582     SetStatusLine1(Form("Writing %s file...",ext.Data()));
     2582    SetStatusLine1(MString::Format("Writing %s file...",ext.Data()));
    25832583    SetStatusLine2("Please be patient!");
    25842584
  • trunk/MagicSoft/Mars/mbase/MTime.cc

    r9210 r9302  
    8484
    8585#include "MAstro.h"
     86#include "MString.h"
    8687
    8788ClassImp(MTime);
     
    708709    GetTime(h, m, s, ms);
    709710
    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);
    711712}
    712713
     
    883884
    884885    *fLog << all << GetDescriptor() << ": ";
    885     *fLog << GetString() << Form(" (+%dns)", fNanoSec) << endl;
     886    *fLog << GetString() << MString::Format(" (+%dns)", fNanoSec) << endl;
    886887}
    887888
Note: See TracChangeset for help on using the changeset viewer.