if(groups.IsNull())
{
- ErrorMsg << "WOKMake_BuildProcess::ComputeSteps"
+ ErrorMsg() << "WOKMake_BuildProcess::ComputeSteps"
<< "Could not eval %WOKSteps_Groups setting build process groups" << endm;
return Standard_True;
}
}
else
{
- ErrorMsg << "WOKMake_BuildProcess::ComputeSteps"
+ ErrorMsg() << "WOKMake_BuildProcess::ComputeSteps"
<< "Could not build step " << step << " for unit " << aunit->Name() << endm;
}
j++;
}
else
{
- WarningMsg << "WOKMake_BuildProcess::ComputeSteps"
+ WarningMsg() << "WOKMake_BuildProcess::ComputeSteps"
<< "Could not eval step group " << group << " (%WOKSteps_" << group << "Group" << ")" << endm;
}
if(result.IsNull())
{
- ErrorMsg << "WOKMake_BuildProcess::GetStepFromID"
+ ErrorMsg() << "WOKMake_BuildProcess::GetStepFromID"
<< "Cannot get step " << acode << " for unit " << aunit->Name() << " (type : " << aunit->Type() << ")" << endm;
return result;
}
}
else
{
- ErrorMsg << "WOKMake_BuildProcess::GetStepFromID"
+ ErrorMsg() << "WOKMake_BuildProcess::GetStepFromID"
<< "Cannot locate dev unit : " << uname << endm;
return result;
}
if(myunits.IsBound(aunit->Name()) && asubcode.IsNull())
{
- WarningMsg << "WOKMake_BuildProcess::GetAndAddStep"
+ WarningMsg() << "WOKMake_BuildProcess::GetAndAddStep"
<< "Cannot get step (" << acode << ") for unit " << aunit->Name() << " (type : " << aunit->Type() << ")" << endm;
// return NULLRESULT;
}
}
else
{
- ErrorMsg << "WOKMake_BuildProcess::GetAndAddStep"
+ ErrorMsg() << "WOKMake_BuildProcess::GetAndAddStep"
<< "Cannot get step " << acode << " for unit " << aunit->Name() << " (type : " << aunit->Type() << ")" << endm;
return NULLRESULT;
}
if(step.IsNull())
{
- ErrorMsg << "WOKMake_BuildProcessIterator::MakeStep"
+ ErrorMsg() << "WOKMake_BuildProcessIterator::MakeStep"
<< "Invalid NULL step in iterator" << endm;
mystatus = WOKMake_Failed;
return mystatus;
if(precstep.IsNull())
{
- ErrorMsg << "WOKMake_BuildProcessIterator::MakeStep"
+ ErrorMsg() << "WOKMake_BuildProcessIterator::MakeStep"
<< "Could not find precedence step : " << precsteps->Value(i) << endm;
mystatus = WOKMake_Failed;
return mystatus;
{
case WOKMake_Failed:
case WOKMake_Incomplete:
- ErrorMsg << "WOKMake_BuildProcessIterator::MakeStep"
+ ErrorMsg() << "WOKMake_BuildProcessIterator::MakeStep"
<< "Step " << step->Code() << " not done : almost " << precsteps->Value(i) << " failed" << endm;
if(myprocessed.Contains(step->Unit()->Name())) myprocessed.Remove(step->Unit()->Name());
step->SetStatus(WOKMake_Failed);
WOKTools_MsgStreamPtr astream = NULL;
Handle(WOKernel_File) logfile;
- WOKTools_Info theinfo = InfoMsg;
+ WOKTools_Info theinfo = InfoMsg();
if(!mylogflag)
{
if(astream->good())
{
- InfoMsg.LogToStream(astream);
- WarningMsg.LogToStream(astream);
- ErrorMsg.LogToStream(astream);
- VerboseMsg.LogToStream(astream);
+ InfoMsg().LogToStream(astream);
+ WarningMsg().LogToStream(astream);
+ ErrorMsg().LogToStream(astream);
+ VerboseMsg().LogToStream(astream);
}
}
if(E->IsKind(STANDARD_TYPE(OSD_Exception_CTRL_BREAK)))
#endif
{
- ErrorMsg << "WOKMake_BuildProcessIterator::MakeStep" << "Process received interupt signal" << endm;
+ ErrorMsg() << "WOKMake_BuildProcessIterator::MakeStep" << "Process received interupt signal" << endm;
WOKUtils_ProcessManager::KillAll();
mygrpidx = myprocess->Groups().Extent()+1;
Standard_SStream astream;
astream << E << ends;
- ErrorMsg << "WOKMake_BuildProcessIterator::MakeStep" << "Exception was raised : " << GetSString(astream) << endm;
+ ErrorMsg() << "WOKMake_BuildProcessIterator::MakeStep" << "Exception was raised : " << GetSString(astream) << endm;
}
}
if(mylogflag && astream)
{
- InfoMsg.EndLogging();
- WarningMsg.EndLogging();
- ErrorMsg.EndLogging();
- VerboseMsg.EndLogging();
+ InfoMsg().EndLogging();
+ WarningMsg().EndLogging();
+ ErrorMsg().EndLogging();
+ VerboseMsg().EndLogging();
astream->close();
delete astream;
}
case WOKMake_Incomplete:
if(myprocessed.Contains(step->Unit()->Name())) myprocessed.Remove(step->Unit()->Name());
theinfo << endm;
- WarningMsg << " is incomplete" << endm;
+ WarningMsg() << " is incomplete" << endm;
if(mylogflag)
- {WarningMsg << "WOKMake_BuildProcessIterator::MakeStep"
+ {WarningMsg() << "WOKMake_BuildProcessIterator::MakeStep"
<< "Consult " << logfile->Path()->Name()->ToCString() << " for details" << endm;}
return WOKMake_Incomplete;
case WOKMake_Failed:
if(myprocessed.Contains(step->Unit()->Name())) myprocessed.Remove(step->Unit()->Name());
theinfo << endm;
- ErrorMsg << "WOKMake_BuildProcessIterator::MakeStep" << "Step " << step->Code() << " failed" << endm;
+ ErrorMsg() << "WOKMake_BuildProcessIterator::MakeStep" << "Step " << step->Code() << " failed" << endm;
if(mylogflag)
- {ErrorMsg << "WOKMake_BuildProcessIterator::MakeStep"
+ {ErrorMsg() << "WOKMake_BuildProcessIterator::MakeStep"
<< "Consult " << logfile->Path()->Name()->ToCString() << " for details" << endm;}
return WOKMake_Failed;
case WOKMake_Unprocessed:
theinfo << endm;
- WarningMsg << "WOKMake_BuildProcessIterator::MakeStep" << "Step " << step->Code() << " is still unprocessed" << endm;
+ WarningMsg() << "WOKMake_BuildProcessIterator::MakeStep" << "Step " << step->Code() << " is still unprocessed" << endm;
if(mylogflag)
- {WarningMsg << "WOKMake_BuildProcessIterator::MakeStep"
+ {WarningMsg() << "WOKMake_BuildProcessIterator::MakeStep"
<< "Consult " << logfile->Path()->Name()->ToCString() << " for details" << endm;}
break;
}
switch(step->Status())
{
case WOKMake_Uptodate:
- InfoMsg << "WOKMake_BuildProcessIterator::MakeStep" << "Step " << step->Code() << " is up to date" << endm;
+ InfoMsg() << "WOKMake_BuildProcessIterator::MakeStep" << "Step " << step->Code() << " is up to date" << endm;
break;
case WOKMake_Success:
if(!myprocessed.Contains(step->Unit()->Name())) myprocessed.Add(step->Unit()->Name());
- InfoMsg << "WOKMake_BuildProcessIterator::MakeStep" << "Step " << step->Code() << " is successfull" << endm;
+ InfoMsg() << "WOKMake_BuildProcessIterator::MakeStep" << "Step " << step->Code() << " is successfull" << endm;
break;
case WOKMake_Processed:
if(!myprocessed.Contains(step->Unit()->Name())) myprocessed.Add(step->Unit()->Name());
- //InfoMsg << "WOKMake_BuildProcessIterator::MakeStep" << "Step " << step->Code() << " is processed" << endm;
+ //InfoMsg() << "WOKMake_BuildProcessIterator::MakeStep" << "Step " << step->Code() << " is processed" << endm;
break;
case WOKMake_Incomplete:
if(myprocessed.Contains(step->Unit()->Name())) myprocessed.Remove(step->Unit()->Name());
- WarningMsg << "WOKMake_BuildProcessIterator::MakeStep" << "Step " << step->Code() << " is incomplete" << endm;
+ WarningMsg() << "WOKMake_BuildProcessIterator::MakeStep" << "Step " << step->Code() << " is incomplete" << endm;
return WOKMake_Incomplete;
case WOKMake_Failed:
if(myprocessed.Contains(step->Unit()->Name())) myprocessed.Remove(step->Unit()->Name());
- ErrorMsg << "WOKMake_BuildProcessIterator::MakeStep" << "Step " << step->Code() << " failed" << endm;
+ ErrorMsg() << "WOKMake_BuildProcessIterator::MakeStep" << "Step " << step->Code() << " failed" << endm;
return WOKMake_Failed;
case WOKMake_Unprocessed:
WOKMake_DataMapIteratorOfDataMapOfHAsciiStringOfSequenceOfHAsciiString anit(myprocess->Units());
- InfoMsg << "WOKMake_BuildProcessIterator::Terminate"
+ InfoMsg() << "WOKMake_BuildProcessIterator::Terminate"
<< "------------------ Process report ------------------" << endm;
while(anit.More())
switch(update)
{
case 0:
- //InfoMsg << "WOKMake_BuildProcessIterator::Terminate"
+ //InfoMsg() << "WOKMake_BuildProcessIterator::Terminate"
// << "Not done " << anit.Key() << endm;
break;
case 1:
{
- InfoMsg << "WOKMake_BuildProcessIterator::Terminate"
+ InfoMsg() << "WOKMake_BuildProcessIterator::Terminate"
<< "Success " << anit.Key() << endm;
for(Standard_Integer i=1; i<=steps.Length(); i++) {
const Handle(WOKMake_Step)& step = myprocess->Find(steps.Value(i));
}
}
else {
- ErrorMsg << "WOKMake_BuildProcessIterator::Terminate"
+ ErrorMsg() << "WOKMake_BuildProcessIterator::Terminate"
<< "Could not obtain step " << steps.Value(i) << endm;
return WOKMake_Failed;
}
case 2:
{
result = WOKMake_Failed;
- InfoMsg << "WOKMake_BuildProcessIterator::Terminate"
+ InfoMsg() << "WOKMake_BuildProcessIterator::Terminate"
<< "Failed " << anit.Key() << " (" << failedlist << ")"<< endm;
}
}
myprocess->ClearUnits();
- InfoMsg << "WOKMake_BuildProcessIterator::Terminate"
+ InfoMsg() << "WOKMake_BuildProcessIterator::Terminate"
<< "----------------------------------------------------" << endm;
WOKUtils_ProcessManager::KillAll();
Handle(WOKernel_File) impldepfile = astep->Unit()->ImplDepFile(theloc,astep->Unit()->Name());
if (impldepfile.IsNull()) {
- ErrorMsg << "WOKMake_BuildProcessIterator::ReorderCurrentGroup" <<
+ ErrorMsg() << "WOKMake_BuildProcessIterator::ReorderCurrentGroup" <<
"Unable to get ImplDep file for unit " << astep->Unit()->Name()->ToCString() << endm;
}
else {
pkgstype,
PACKAGESname);
if (filepack.IsNull()) {
- ErrorMsg << "WOKMake_BuildProcessIterator::ReorderCurrentGroup" <<
+ ErrorMsg() << "WOKMake_BuildProcessIterator::ReorderCurrentGroup" <<
"Unable to get PACKAGES file for unit " << astep->Unit()->Name()->ToCString() << endm;
}
else {
Handle(TColStd_HSequenceOfHAsciiString) orderedtks = new TColStd_HSequenceOfHAsciiString ;
while(algo.More()) {
if(algo.NbVertices() > 1) {
- ErrorMsg << "WOKMake_BuildProcessIterator::ReorderCurrentGroup"
+ ErrorMsg() << "WOKMake_BuildProcessIterator::ReorderCurrentGroup"
<< "Cyclic dependency detected between: ";
for(i=1; i<= algo.NbVertices(); i++) {
- ErrorMsg << algo.Value(i) << " ";
+ ErrorMsg() << algo.Value(i) << " ";
}
- ErrorMsg << endm;
+ ErrorMsg() << endm;
IsCyclic = Standard_True;
}
}
else
{
- ErrorMsg << "WOKMake_DepItem::ReadLine"
+ ErrorMsg() << "WOKMake_DepItem::ReadLine"
<< "Could not read invalid first line" << endm;
anitem.Nullify();
return;
if(!astream)
{
- ErrorMsg << "WOKMake_DepItem::WriteFile" << "Could not open " << apath->Name() << endm;
+ ErrorMsg() << "WOKMake_DepItem::WriteFile" << "Could not open " << apath->Name() << endm;
Standard_ProgramError::Raise("");
}
if(!astream)
{
- ErrorMsg << "WOKMake_StepInput::Dump" << "Could not open " << apath->Name() << endm;
+ ErrorMsg() << "WOKMake_StepInput::Dump" << "Could not open " << apath->Name() << endm;
Standard_ProgramError::Raise("");
}
if(!astream)
{
- ErrorMsg << "WOKMake_StepInput::Dump" << "Could not open " << apath->Name() << endm;
+ ErrorMsg() << "WOKMake_StepInput::Dump" << "Could not open " << apath->Name() << endm;
Standard_ProgramError::Raise("");
}
if(thestep.IsNull())
{
- ErrorMsg << "WOKMake_MetaStep::GetUnderlyingSteps"
+ ErrorMsg() << "WOKMake_MetaStep::GetUnderlyingSteps"
<< "Could not obtain step for code : " << Code() << " in unit " << Unit()->Name() << endm;
SetFailed();
return NULLRESULT;
if(precunit.IsNull())
{
- ErrorMsg << "WOKMake_MetaStep::Execute"
+ ErrorMsg() << "WOKMake_MetaStep::Execute"
<< "Specified unit (" << aunit << ") in input of step " << Code()
<< " of " << Unit()->Name() << " could not be found" << endm;
SetFailed();
if(precstep.IsNull())
{
- ErrorMsg << "WOKMake_MetaStep::GetUnderlyingSteps"
+ ErrorMsg() << "WOKMake_MetaStep::GetUnderlyingSteps"
<< "Could not obtain step for code : " << acode << " in unit " << precunit->Name() << endm;
SetFailed();
return NULLRESULT;
if (thestep->IsToExecute())
{
- InfoMsg << "WOKMake_MetaStep::Execute"
+ InfoMsg() << "WOKMake_MetaStep::Execute"
<< "========> " << thestep->SubCode() << endm;
}
switch(thestep->Status())
{
case WOKMake_Uptodate:
- InfoMsg << "WOKMake_MetaStep::Execute"
+ InfoMsg() << "WOKMake_MetaStep::Execute"
<< "========> " << thestep->SubCode() << " is uptodate" << endm;
break;
case WOKMake_Success:
- InfoMsg << "WOKMake_MetaStep::Execute"
+ InfoMsg() << "WOKMake_MetaStep::Execute"
<< "========> " << thestep->SubCode() << " succeeded" << endm;
break;
case WOKMake_Incomplete:
- WarningMsg << "WOKMake_MetaStep::Execute"
+ WarningMsg() << "WOKMake_MetaStep::Execute"
<< "========> " << thestep->SubCode() << " is incomplete" << endm;
break;
case WOKMake_Failed:
- ErrorMsg << "WOKMake_MetaStep::Execute"
+ ErrorMsg() << "WOKMake_MetaStep::Execute"
<< "========> " << thestep->SubCode() << " failed" << endm;
ok = Standard_False;
break;
case WOKMake_Unprocessed:
- WarningMsg << "WOKMake_MetaStep::Execute"
+ WarningMsg() << "WOKMake_MetaStep::Execute"
<< "========> " << thestep->SubCode() << " is still unprocessed" << endm;
ok=Standard_False;
break;
if(infile.IsNull())
{
- WarningMsg << "WOKMake_MetaStep::Execute"
+ WarningMsg() << "WOKMake_MetaStep::Execute"
<< "Ignoring precedence step dependence on " << precid << " (not in input list)" << endm;
}
else
if(!astream)
{
- ErrorMsg << "WOKMake_StepOutput::Dump" << "Could not open " << apath->Name() << endm;
+ ErrorMsg() << "WOKMake_StepOutput::Dump" << "Could not open " << apath->Name() << endm;
Standard_ProgramError::Raise("");
}
if(!astream)
{
- ErrorMsg << "WOKMake_StepOutput::Dump" << "Could not open " << apath->Name() << endm;
+ ErrorMsg() << "WOKMake_StepOutput::Dump" << "Could not open " << apath->Name() << endm;
Standard_ProgramError::Raise("");
}
Handle(WOKMake_HSequenceOfOutputFile) out = astep->OutputFileList();
WOK_TRACE {
- VerboseMsg("WOK_MAKE") << "WOKMake_Step::GetInputFromStep"
+ VerboseMsg()("WOK_MAKE") << "WOKMake_Step::GetInputFromStep"
<< "Compute Input Flow from step: " << astep->Unit()->Name() << ":" << astep->Code() << endm;
}
if(out.IsNull())
{
- ErrorMsg << "WOKMake_Step::GetInputFromStep"
+ ErrorMsg() << "WOKMake_Step::GetInputFromStep"
<< "Output file list of step (" << astep->Code() << ") is not available" << endm;
- ErrorMsg << "WOKMake_Step::GetInputFromStep"
+ ErrorMsg() << "WOKMake_Step::GetInputFromStep"
<< "Please perform this step before using step : " << Code() << endm;
SetFailed();
return;
if(aunit.IsNull())
{
- WarningMsg << "WOKMake_Step::GetInputFromStep"
+ WarningMsg() << "WOKMake_Step::GetInputFromStep"
<< "Skipping msentity " << name << " : unit "
<< outfile->ID()->Token(":", 1) << " not found" << endm;
}
}
else
{
- WarningMsg << "WOKMake_Step::GetInputFromStep"
+ WarningMsg() << "WOKMake_Step::GetInputFromStep"
<< "Skipping file " << outfile->LastPath()->Name() << " : not found" << endm;
}
}
Handle(TColStd_HSequenceOfHAsciiString) steps = PrecedenceSteps();
WOK_TRACE {
- VerboseMsg("WOK_MAKE") << "WOKMake_Step::GetInputFlow"
+ VerboseMsg()("WOK_MAKE") << "WOKMake_Step::GetInputFlow"
<< "Computing Input Flow" << endm;
}
if(!mydepin.Contains(anitem->IssuedFrom()))
{
- ErrorMsg << "WOKMake_Step::LoadDependencies"
+ ErrorMsg() << "WOKMake_Step::LoadDependencies"
<< "Unknown origin : " << anitem->IssuedFrom() << endm;
- ErrorMsg << "WOKMake_Step::LoadDependencies"
+ ErrorMsg() << "WOKMake_Step::LoadDependencies"
<< "Dependences could not be loaded : will force step" << endm;
mydepmatrix.Nullify();
mydepitems.Clear();
if(!mydepout.Contains(anitem->OutputFile()))
{
- ErrorMsg << "WOKMake_Step::LoadDependencies"
+ ErrorMsg() << "WOKMake_Step::LoadDependencies"
<< "Unknown output : " << anitem->OutputFile() << endm;
- ErrorMsg << "WOKMake_Step::LoadDependencies"
+ ErrorMsg() << "WOKMake_Step::LoadDependencies"
<< "Dependences could not be loaded : will force step" << endm;
mydepmatrix.Nullify();
mydepitems.Clear();
if(mydepmatrix->Value(out_index, in_index))
{
- WarningMsg << "WOKMake_Step::LoadDependencies"
+ WarningMsg() << "WOKMake_Step::LoadDependencies"
<< "Ignoring duplicate line in depfile (" << anitem->OutputFile() << " : " << anitem->IssuedFrom() << ")" << endm;
}
else
case WOKMake_Disappeared:
if(myinflow.Contains(infile->ID()))
{
- ErrorMsg << "WOKMake_Step::OutOfDateEntities"
+ ErrorMsg() << "WOKMake_Step::OutOfDateEntities"
<< "Could not locate input file : " << infile->ID() << endm;
SetFailed();
return result;
case WOKMake_Processed:
break;
case WOKMake_Failed:
- ErrorMsg << "WOKMake_Step::Make" << "Failed during " << amsg << endm;
+ ErrorMsg() << "WOKMake_Step::Make" << "Failed during " << amsg << endm;
return Standard_True;
}
return Standard_False;
if(afile.IsNull())
{
- WarningMsg << "WOKMake_Step::AcquitExecution"
+ WarningMsg() << "WOKMake_Step::AcquitExecution"
<< "Could not find precedence step (" << precstep->UniqueName()
<< ") admin file : " << precstep->OutputFilesFileName() << endm;
}
!strcmp ( aType, "WOKStep_LibLink" )
) {
- InfoMsg << "WOKMake_Step :: Make" << "Generating build file" << endm;
+ InfoMsg() << "WOKMake_Step :: Make" << "Generating build file" << endm;
g_fCompOrLnk = Standard_True;
if(atempl.IsNull())
{
- WarningMsg << "WOKMake_Step::HandleOutputFile"
+ WarningMsg() << "WOKMake_Step::HandleOutputFile"
<< "Could not determine Del action for type : " << afile->File()->TypeName() << endm;
ashell->UnLock();
return Standard_False;
if(! Unit()->Params().IsSet(atempl->ToCString()))
{
- ErrorMsg << "WOKMake_Step::HandleOutputFile"
+ ErrorMsg() << "WOKMake_Step::HandleOutputFile"
<< "Could not eval Del action (" << atempl << ") for type : " << afile->File()->TypeName() << endm;
ashell->UnLock();
return Standard_False;
if(!acmd.IsNull())
{
- InfoMsg << "WOKMake_Step::HandleOutputFile"
+ InfoMsg() << "WOKMake_Step::HandleOutputFile"
<< "Invoking " << atempl << " on " << afile->File()->Path()->Name() << endm;
ashell->Execute(acmd);
if(ashell->Status())
{
Handle(TColStd_HSequenceOfHAsciiString) resseq = ashell->Errors();
- Standard_Boolean ph = ErrorMsg.PrintHeader();
+ Standard_Boolean ph = ErrorMsg().PrintHeader();
- ErrorMsg << "WOKMake_Step::HandleOutputFile" << "Errors occured in Shell" << endm;
- ErrorMsg.DontPrintHeader();
+ ErrorMsg() << "WOKMake_Step::HandleOutputFile" << "Errors occured in Shell" << endm;
+ ErrorMsg().DontPrintHeader();
for(Standard_Integer i=1; i<= resseq->Length(); i++)
{
- ErrorMsg << "WOKMake_Step::HandleOutputFile" << resseq->Value(i) << endm;
+ ErrorMsg() << "WOKMake_Step::HandleOutputFile" << resseq->Value(i) << endm;
}
- if(ph) ErrorMsg.DoPrintHeader();
+ if(ph) ErrorMsg().DoPrintHeader();
}
OutLocator()->ChangeRemove(afile->File());
ashell->ClearOutput();
{
if(afile->File()->Path()->IsSymLink())
{
- WarningMsg << "WOKMake_Step::HandleOutputFile"
+ WarningMsg() << "WOKMake_Step::HandleOutputFile"
<< "Disappeared File (" << afile->File()->UserPathName() << ") does not exists " << endm;
}
}
}
else
{
- WarningMsg << "WOKMake_Step::HandleOutputFile"
+ WarningMsg() << "WOKMake_Step::HandleOutputFile"
<< "File " << afile->File()->UserPathName() << " is not in " << Unit()->UserPathName()
<< " : Disappeared and left untouched" << endm;
return Standard_False;
void WOKMake_StepBuilder::Add() const
{
WOK_TRACE {
- VerboseMsg("WOK_STEP") << "WOKMake_StepBuilder::Add"
+ VerboseMsg()("WOK_STEP") << "WOKMake_StepBuilder::Add"
<< "Adding " << myname << " in cache" << endm;
}
WOKMake_StepBuilder::StepBuilders().Bind(Name(), *this);
if(name.IsNull() || aunit.IsNull() || acode.IsNull())
{
- ErrorMsg << "WOKMake_StepBuilder::BuildStep"
+ ErrorMsg() << "WOKMake_StepBuilder::BuildStep"
<< "Invalid Input to WOKMake_StepBuilder::BuildStep" << endm;
Standard_ProgramError::Raise("Invalid Input to WOKMake_StepBuilder::BuildStep");
}
if(libs.IsNull())
{
- ErrorMsg << "WOKMake_Step::GetStep"
+ ErrorMsg() << "WOKMake_Step::GetStep"
<< "Could not eval parameter %WOKSteps_StepLibs" << endm;
return result;
}
if(knownsteps.IsBound(name))
{
WOK_TRACE {
- VerboseMsg("WOK_STEP") << "WOKMake_StepBuilder::BuildStep"
+ VerboseMsg()("WOK_STEP") << "WOKMake_StepBuilder::BuildStep"
<< "Got " << name << " in cache at pos " << i << endm;
}
return (*knownsteps.Find(name).Builder())(aprocess,aunit,acode,checked,hidden);
if(libpath.IsNull())
{
- ErrorMsg << "WOKMake_Step::GetStep"
+ ErrorMsg() << "WOKMake_Step::GetStep"
<< "Could not eval parameter " << libparam.ToCString() << endm;
return result;
}
if(alibpath.IsNull())
{
- ErrorMsg << "WOKMake_Step::GetStep"
+ ErrorMsg() << "WOKMake_Step::GetStep"
<< "Could not eval find library " << libpath << endm;
return result;
}
if(!ashlib.DlOpen(OSD_RTLD_LAZY))
{
- ErrorMsg << "WOKMake_Step::GetStep"
+ ErrorMsg() << "WOKMake_Step::GetStep"
<< "Could not open " << libpath << " : " << ashlib.DlError() << endm;
return result;
}
if(ptr == NULL)
{
- ErrorMsg << "WOKMake_Step::GetStep"
+ ErrorMsg() << "WOKMake_Step::GetStep"
<< "Could not find " << key << " in " << libpath << endm;
return result;
}
WOKMake_StepBuilder builder(name, ptr);
WOK_TRACE {
- VerboseMsg("WOK_STEP") << "WOKMake_Step::GetStep"
+ VerboseMsg()("WOK_STEP") << "WOKMake_Step::GetStep"
<< "Adding main : " << name->ToCString() << endm;
}
if(ptr == NULL)
{
- WarningMsg << "WOKMake_Step::GetStep"
+ WarningMsg() << "WOKMake_Step::GetStep"
<< "Could not find declared " << otherkey << " in " << libpath << endm;
}
else
WOKMake_StepBuilder builder(astr, ptr);
WOK_TRACE {
- VerboseMsg("WOK_STEP") << "WOKMake_Step::GetStep"
+ VerboseMsg()("WOK_STEP") << "WOKMake_Step::GetStep"
<< "Adding : " << astr->ToCString() << endm;
}
builder.Add();
if(result.IsNull())
{
WOK_TRACE {
- VerboseMsg("WOK_STEP") << "WOKMake_Step::GetStep"
+ VerboseMsg()("WOK_STEP") << "WOKMake_Step::GetStep"
<< key << " is a triggerred step" << endm;
}
if(aunit.IsNull())
{
- ErrorMsg << "WOKMake_StepBuilder::BuildStep"
+ ErrorMsg() << "WOKMake_StepBuilder::BuildStep"
<< "Invalid Null Unit" << endm;
return result;
}
if(acode.IsNull())
{
- ErrorMsg << "WOKMake_StepBuilder::BuildStep"
+ ErrorMsg() << "WOKMake_StepBuilder::BuildStep"
<< "Invalid Null Step code" << endm;
return result;
}
begin++;
break;
default:
- ErrorMsg << "WOKMake_StepDescrExplorer" << "Bad WOKMake Step ctl Character in : " << key << endm;
+ ErrorMsg() << "WOKMake_StepDescrExplorer" << "Bad WOKMake Step ctl Character in : " << key << endm;
Standard_ProgramError::Raise("WOKMake_StepDescrExplorer");
}
}
if(precend == 0)
{
- ErrorMsg << "WOKMake_StepBuilder::GetStep" << "Bad WOKMake Step format : " << key << endm;
+ ErrorMsg() << "WOKMake_StepBuilder::GetStep" << "Bad WOKMake Step format : " << key << endm;
Standard_ProgramError::Raise("WOKMake_StepBuilder::GetStep");
}
if(apath.IsNull())
{
- WarningMsg << "WOKMake_TriggerStep::Init"
+ WarningMsg() << "WOKMake_TriggerStep::Init"
<< "Could not find file associated with trigger step " << Name() << endm;
- WarningMsg << "WOKMake_TriggerStep::Init"
+ WarningMsg() << "WOKMake_TriggerStep::Init"
<< "Nothing done" << endm;
}