astr = Params().Eval("OBJS_OSSG_CmdLine", Standard_True);
WOK_TRACE {
- VerboseMsg("WOK_OBJS") << "WOKOBJS_OSSG::Execute" << "OSSG line : " << endm;
- VerboseMsg("WOK_OBJS") << "WOKOBJS_OSSG::Execute" << astr << endm;
+ VerboseMsg()("WOK_OBJS") << "WOKOBJS_OSSG::Execute" << "OSSG line : " << endm;
+ VerboseMsg()("WOK_OBJS") << "WOKOBJS_OSSG::Execute" << astr << endm;
}
Shell()->Execute(astr);
if(Shell()->Status())
{
- Standard_Boolean ph = ErrorMsg.PrintHeader();
+ Standard_Boolean ph = ErrorMsg().PrintHeader();
- ErrorMsg << "WOKOBJS_OSSG::Execute" << "Errors occured in Shell" << endm;
- ErrorMsg.DontPrintHeader();
+ ErrorMsg() << "WOKOBJS_OSSG::Execute" << "Errors occured in Shell" << endm;
+ ErrorMsg().DontPrintHeader();
for(Standard_Integer i=1; i<= resseq->Length(); i++)
{
- ErrorMsg << "WOKOBJS_OSSG::Execute" << resseq->Value(i) << endm;
+ ErrorMsg() << "WOKOBJS_OSSG::Execute" << resseq->Value(i) << endm;
}
- if(ph) ErrorMsg.DoPrintHeader();
+ if(ph) ErrorMsg().DoPrintHeader();
return WOKBuilder_Failed;
}
else
{
- Standard_Boolean ph = InfoMsg.PrintHeader();
- InfoMsg.DontPrintHeader();
+ Standard_Boolean ph = InfoMsg().PrintHeader();
+ InfoMsg().DontPrintHeader();
for(Standard_Integer i=1; i<= resseq->Length(); i++)
{
- InfoMsg << "WOKOBJS_OSSG::Execute" << resseq->Value(i) << endm;
+ InfoMsg() << "WOKOBJS_OSSG::Execute" << resseq->Value(i) << endm;
}
- if(ph) InfoMsg.DoPrintHeader();
+ if(ph) InfoMsg().DoPrintHeader();
}
Shell()->ClearOutput();
// Verification du profile DB
if( Unit()->Session()->DBMSystem() != WOKernel_OBJS )
{
- ErrorMsg << "WOKOBJS_SchGen::Execute"
+ ErrorMsg() << "WOKOBJS_SchGen::Execute"
<< "Wrong profile for this step : Only OBJS is valid" << endm;
SetFailed();
return;
ossg->SetSchFile(new WOKBuilder_Compilable(infile->File()->Path()));
- InfoMsg << "WOKOBJS_DDLFile"
+ InfoMsg() << "WOKOBJS_DDLFile"
<< "Extracting " << Unit()->Name() << endm;
switch(ossg->Execute())
case WOKBuilder_Success:
{
WOK_TRACE {
- if(VerboseMsg("WOK_OBJS").IsSet())
+ if(VerboseMsg()("WOK_OBJS").IsSet())
{
Standard_Integer i;
- VerboseMsg << "WOKOBJS_SchGen::Execute"
+ VerboseMsg() << "WOKOBJS_SchGen::Execute"
<< infile->File()->Name() << " produces : " << endm;
for(i=1; i<=ossg->Produces()->Length(); i++)
{
- VerboseMsg << "WOKOBJS_SchGen::Execute"
+ VerboseMsg() << "WOKOBJS_SchGen::Execute"
<< "\t\t" << ossg->Produces()->Value(i)->Path()->Name() << endm;
}
}
outfile = new WOKernel_File(anent->Path()->FileName(), Unit(), libraryfile);
break;
default:
- ErrorMsg << "WOKOBJS_SchGen::Execute"
+ ErrorMsg() << "WOKOBJS_SchGen::Execute"
<< "Unrecognized output file : " << anent->Path()->FileName() << endm;
break;
}
out->SetProduction();
AddExecDepItem(execlist->Value(i), out, Standard_True);
- InfoMsg << "WOKOBJS_SchGen::Execute" << "File : " << outfile->Path()->Name() << " is modified" << endm;
+ InfoMsg() << "WOKOBJS_SchGen::Execute" << "File : " << outfile->Path()->Name() << " is modified" << endm;
}
break;
case WOKBuilder_Unbuilt:
WOK_TRACE {
- VerboseMsg("WOK_OBJS") << "WOKMake_Extract::Execute"
+ VerboseMsg()("WOK_OBJS") << "WOKMake_Extract::Execute"
<< "File : " << outfile->Path()->Name() << " is unchanged" << endm;
}
{
break;
case WOKBuilder_Failed:
SetFailed();
- ErrorMsg << "WOKOBJS_SchGen::Execute" << "Failed : " << outfile->Name() << endm;
+ ErrorMsg() << "WOKOBJS_SchGen::Execute" << "Failed : " << outfile->Name() << endm;
break;
}
}
}
break;
case WOKBuilder_Failed:
- ErrorMsg << "WOKOBJS_SchGen::Execute" << "Failed : " << Unit()->Name() << endm;
+ ErrorMsg() << "WOKOBJS_SchGen::Execute" << "Failed : " << Unit()->Name() << endm;
SetFailed();
break;
default: break;