}
// calcul de la librairie
- InfoMsg << "WOKStep_ArchiveLibrary::Execute" << "Creating : lib" << ar->TargetName() << ".a" << endm;
+ InfoMsg() << "WOKStep_ArchiveLibrary::Execute" << "Creating : lib" << ar->TargetName() << ".a" << endm;
switch(ar->Execute())
{
}
}
}
- InfoMsg << "WOKStep_ArchiveLibrary::Execute"
+ InfoMsg() << "WOKStep_ArchiveLibrary::Execute"
<< "Succeeded : lib" << ar->TargetName() << ".a" << endm;
SetSucceeded();
break;
case WOKBuilder_Failed:
- ErrorMsg << "WOKStep_ArchiveLibrary"
+ ErrorMsg() << "WOKStep_ArchiveLibrary"
<< "Failed : lib" << ar->TargetName() << ".a" << endm;
SetFailed();
break;
}
else
{
- WarningMsg << "WOKStep_MSFill::Execute" << "No file " << astr << " in " << aunitname << endm;
+ WarningMsg() << "WOKStep_MSFill::Execute" << "No file " << astr << " in " << aunitname << endm;
SetIncomplete();
}
}
}
if (stop) {
- ErrorMsg << "WOKStep_MSFill::Execute"
+ ErrorMsg() << "WOKStep_MSFill::Execute"
<< "Unit and cdl file definition type mismatch for unit " << Unit()->Name() << endm;
}
}
if(anent.IsNull())
{
- ErrorMsg << "WOKStep_ClientExtract::OutOfDateEntities"
+ ErrorMsg() << "WOKStep_ClientExtract::OutOfDateEntities"
<< infile->ID() << " is not a MS Entity" << endm;
SetFailed();
return result;
case WOKBuilder_Success:
{
WOK_TRACE {
- if(VerboseMsg("WOK_EXTRACT").IsSet())
+ if(VerboseMsg()("WOK_EXTRACT").IsSet())
{
- VerboseMsg << "WOKStep_Extract::Execute"
+ VerboseMsg() << "WOKStep_Extract::Execute"
<< entity->Name() << " produces : " << endm;
for(i=1; i<=anit.Produces()->Length(); i++)
{
- VerboseMsg << "WOKStep_Extract::Execute"
+ VerboseMsg() << "WOKStep_Extract::Execute"
<< "\t\t" << anit.Produces()->Value(i)->Path()->Name() << endm;
}
}
out->SetProduction();
if(!istemplate) AddExecDepItem(tobuild->Value(j), out, Standard_True);
- InfoMsg << "WOKStep_Extract::Execute" << "File : " << outfile->Path()->Name() << " is modified" << endm;
+ InfoMsg() << "WOKStep_Extract::Execute" << "File : " << outfile->Path()->Name() << " is modified" << endm;
break;
case WOKBuilder_Unbuilt:
WOK_TRACE {
- VerboseMsg("WOK_EXTRACT") << "WOKStep_Extract::Execute"
+ VerboseMsg()("WOK_EXTRACT") << "WOKStep_Extract::Execute"
<< "File : " << outfile->Path()->Name() << " is unchanged" << endm;
}
break;
case WOKBuilder_Failed:
SetFailed();
- ErrorMsg << "WOKStep_Extract::Execute" << "Failed : " << outfile->Name() << endm;
+ ErrorMsg() << "WOKStep_Extract::Execute" << "Failed : " << outfile->Name() << endm;
break;
}
}
}
break;
case WOKBuilder_Failed:
- ErrorMsg << "WOKStep_Extract::Execute" << "Failed : " << entity->Name() << endm;
+ ErrorMsg() << "WOKStep_Extract::Execute" << "Failed : " << entity->Name() << endm;
break;
default: break;
}
if(myiterator.LoadGroup())
{
- ErrorMsg << "WOKStep_CodeGenerate::Init"
+ ErrorMsg() << "WOKStep_CodeGenerate::Init"
<< "Could not load code generators definition" << endm;
SetFailed();
return;
if(infile->File()->Nesting()->IsSameString(Unit()->FullName()))
{
- InfoMsg << "WOKStep_CodeGenerate::Execute" << "-------> " << infile->File()->Name() << endm;
+ InfoMsg() << "WOKStep_CodeGenerate::Execute" << "-------> " << infile->File()->Name() << endm;
}
else
{
- InfoMsg << "WOKStep_CodeGenerate::Execute" << "-------> " << infile->File()->UserPathName() << endm;
+ InfoMsg() << "WOKStep_CodeGenerate::Execute" << "-------> " << infile->File()->UserPathName() << endm;
}
switch(myiterator.Execute(codegen))
{
case WOKBuilder_Success:
WOK_TRACE {
- if(VerboseMsg("WOK_CODEGEN").IsSet())
+ if(VerboseMsg()("WOK_CODEGEN").IsSet())
{
- VerboseMsg << "WOKStep_CodeGenerate::Execute"
+ VerboseMsg() << "WOKStep_CodeGenerate::Execute"
<< codegen->Path()->Name() << " produces : " << endm;
for(i=1; i<=myiterator.Produces()->Length(); i++)
{
- VerboseMsg << "WOKStep_CodeGenerate::Execute"
+ VerboseMsg() << "WOKStep_CodeGenerate::Execute"
<< "\t\t" << myiterator.Produces()->Value(i)->Path()->Name() << endm;
}
}
if(aoutfile.IsNull())
{
- ErrorMsg << "WOKStep_CodeGenerate::Execute"
+ ErrorMsg() << "WOKStep_CodeGenerate::Execute"
<< "Unrecognized file : " << outent->Path()->Name() << endm;
}
else
break;
case WOKBuilder_Failed:
fails->Append(infile);
- ErrorMsg << "WOKStep_CodeGenerate::Execute" << "Failed : " << infile->File()->Name() << endm;
+ ErrorMsg() << "WOKStep_CodeGenerate::Execute" << "Failed : " << infile->File()->Name() << endm;
break;
default: break;
}
if(fails->Length())
{
- InfoMsg << "WOKStep_CodeGenerate::Execute"
+ InfoMsg() << "WOKStep_CodeGenerate::Execute"
<< "----------------------- Compilation Report -----------------------" << endm;
for(i=1; i<= fails->Length(); i++)
{
- InfoMsg << "WOKStep_CodeGenerate::Execute"
+ InfoMsg() << "WOKStep_CodeGenerate::Execute"
<< "Failed : " << fails->Value(i)->File()->UserPathName() << endm;
}
- InfoMsg << "WOKStep_CodeGenerate::Execute"
+ InfoMsg() << "WOKStep_CodeGenerate::Execute"
<< "-----------------------------------------------------------------" << endm;
}
if(myiterator.LoadGroup())
{
- ErrorMsg << "WOKStep_Compile::Init"
+ ErrorMsg() << "WOKStep_Compile::Init"
<< "Could not load compilers definition" << endm;
SetFailed();
return;
//<--- EUG4YAN
if(infile->File()->Nesting()->IsSameString(Unit()->FullName()))
{
- InfoMsg << "WOKStep_Compile::Execute" << "-------> " << infile->File()->Name() << endm;
+ InfoMsg() << "WOKStep_Compile::Execute" << "-------> " << infile->File()->Name() << endm;
}
else
{
- InfoMsg << "WOKStep_Compile::Execute" << "-------> " << infile->File()->UserPathName() << endm;
+ InfoMsg() << "WOKStep_Compile::Execute" << "-------> " << infile->File()->UserPathName() << endm;
}
switch(myiterator.Execute(compilable))
{
case WOKBuilder_Success:
WOK_TRACE {
- if(VerboseMsg("WOK_COMPILE").IsSet())
+ if(VerboseMsg()("WOK_COMPILE").IsSet())
{
- VerboseMsg << "WOKStep_Compile::Execute"
+ VerboseMsg() << "WOKStep_Compile::Execute"
<< compilable->Path()->Name() << " produces : " << endm;
if (!myiterator.Produces().IsNull()) {
for(i=1; i<=myiterator.Produces()->Length(); i++)
{
- VerboseMsg << "WOKStep_Compile::Execute"
+ VerboseMsg() << "WOKStep_Compile::Execute"
<< "\t\t" << myiterator.Produces()->Value(i)->Path()->Name() << endm;
}
}
break;
case WOKBuilder_Failed:
fails->Append(infile);
- ErrorMsg << "WOKStep_Compile::Execute" << "Failed : " << infile->File()->Name() << endm;
+ ErrorMsg() << "WOKStep_Compile::Execute" << "Failed : " << infile->File()->Name() << endm;
break;
default: break;
}
if(fails->Length())
{
- InfoMsg << "WOKStep_Compile::Execute"
+ InfoMsg() << "WOKStep_Compile::Execute"
<< "----------------------- Compilation Report -----------------------" << endm;
for(i=1; i<= fails->Length(); i++)
{
- InfoMsg << "WOKStep_Compile::Execute"
+ InfoMsg() << "WOKStep_Compile::Execute"
<< "Failed : " << fails->Value(i)->File()->UserPathName() << endm;
}
- InfoMsg << "WOKStep_Compile::Execute"
+ InfoMsg() << "WOKStep_Compile::Execute"
<< "-----------------------------------------------------------------" << endm;
}
p.SystemName ( s );
- ErrorMsg << "WOKStep_Compile :: Execute"
+ ErrorMsg() << "WOKStep_Compile :: Execute"
<< "could not create '" << new TCollection_HAsciiString ( s )
<< "'" << endm;
if(PACKAGES.IsNull())
{
- ErrorMsg << "WOKStep_ComputeLinkList::Execute"
+ ErrorMsg() << "WOKStep_ComputeLinkList::Execute"
<< "Could not find PACKAGES file for toolkit : " << Unit()->Name() << endm;
SetFailed();
return;
if(udsoftk.IsNull())
{
- ErrorMsg << "WOKStep_ComputeLinkList::Execute"
+ ErrorMsg() << "WOKStep_ComputeLinkList::Execute"
<< "Could not read file " << PACKAGES->Path()->Name() << endm;
SetFailed();
return;
if(aunit.IsNull())
{
- ErrorMsg << "WOKStep_ComputeLinkList::Execute"
+ ErrorMsg() << "WOKStep_ComputeLinkList::Execute"
<< "Unknown unit (" << udsoftk->Value(j) << ") listed in PACKAGES of : " << Unit()->Name() << endm;
SetFailed();
return;
if(unit.IsNull())
{
- ErrorMsg << "WOKStep_ComputeExecList::Execute"
+ ErrorMsg() << "WOKStep_ComputeExecList::Execute"
<< "Cannot find the uses library unit " << aunit << endm;
SetFailed();
return;
thelist->Append(list->Value(j));
}
else {
- ErrorMsg << "WOKStep_ComputeExecList::Execute"
+ ErrorMsg() << "WOKStep_ComputeExecList::Execute"
<< "Cannot find the Input ImplDep file" << endm;
SetFailed();
return;
if(alib.IsNull())
{
- ErrorMsg << "WOKStep_Link::ComputeLibraryList"
+ ErrorMsg() << "WOKStep_Link::ComputeLibraryList"
<< "Could not find library in unit : " << aunit->UserPathName() << endm;
SetFailed();
}
else {
- WarningMsg << "_get_unit_library"
+ WarningMsg() << "_get_unit_library"
<< "Unknown nesting for " << unit->UserPathName() << endm;
return retVal;
if ( !lnkfile -> Path () -> CreateFile () )
- ErrorMsg << "WOKStep_Link::ExecuteLink"
+ ErrorMsg() << "WOKStep_Link::ExecuteLink"
<< "Unable to create link file '"
<< lnkfile -> Path () -> Name () -> ToCString ()
<< "'" << endm;
//---> EUG4YAN
if ( !g_fCompOrLnk )
//<--- EUG4YAN
- InfoMsg << "WOKStep_DynamicLibrary::Execute"
+ InfoMsg() << "WOKStep_DynamicLibrary::Execute"
<< "Creating : " << libname << endm;
switch(ldshr->Execute())
outitem = new WOKernel_File(outent->Path()->FileName(), Unit(), libtype);
break;
default:
- ErrorMsg << "WOKStep_DynamicLibrary::Execute"
+ ErrorMsg() << "WOKStep_DynamicLibrary::Execute"
<< "Unrecognized production : " << outent->Path()->FileName() << endm;
SetFailed();
return;
}
}
}
- InfoMsg << "WOKStep_DynamicLibrary::Execute"
+ InfoMsg() << "WOKStep_DynamicLibrary::Execute"
<< "Succeeded : " << libname << endm;
SetSucceeded();
//---> EUG4YAN
//<--- EUG4YAN
break;
case WOKBuilder_Failed:
- ErrorMsg << "WOKStep_DynamicLibrary::Execute"
+ ErrorMsg() << "WOKStep_DynamicLibrary::Execute"
<< "Failed : " << libname << endm;
SetFailed();
break;
if(afile.IsNull())
{
- ErrorMsg << "WOKStep_EngDatFiles::Execute"
+ ErrorMsg() << "WOKStep_EngDatFiles::Execute"
<< "Unable to locate file : " << astr << " in " << aunit->Name() << endm;
SetFailed();
}
}
else
{
- ErrorMsg << "WOKStep_EngDatFiles::Execute"
+ ErrorMsg() << "WOKStep_EngDatFiles::Execute"
<< "Could not locate interface : " << amsent->Name() << endm;
SetFailed();
}
afile = new WOKernel_File(astr, Unit(), Unit()->GetFileType(engdattype));
afile->GetPath();
- InfoMsg << "WOKStep_EngDatFiles::Execute"
+ InfoMsg() << "WOKStep_EngDatFiles::Execute"
<< "Copy of : " << adatfile->Path()->Name() << " to " << afile->Path()->Name() << endm;
switch(acmd->Copy(adatfile->Path(), afile->Path()))
break;
case WOKBuilder_Failed:
case WOKBuilder_Unbuilt:
- ErrorMsg << "WOKStep_EngDatFiles::Execute"
+ ErrorMsg() << "WOKStep_EngDatFiles::Execute"
<< "Copy Failed" << endm;
SetFailed();
break;
if(!astream.good())
{
- ErrorMsg << "WOKStep_EngLDFile::Execute"
+ ErrorMsg() << "WOKStep_EngLDFile::Execute"
<< "Could not open " << ldfile->Path()->Name()->ToCString() << " for writing" << endm;
SetFailed();
return;
if(objfile.IsNull())
{
- ErrorMsg << "WOKStep_EngLinkList::Execute"
+ ErrorMsg() << "WOKStep_EngLinkList::Execute"
<< "Could not locate object file for interface : " << aunit->Name() << endm;
SetFailed();
}
}
else
{
- ErrorMsg << "WOKStep_EngLinkList::Execute"
+ ErrorMsg() << "WOKStep_EngLinkList::Execute"
<< "Could not locate interface : " << amsent->Name() << endm;
SetFailed();
}
if(inengine.IsNull())
{
- ErrorMsg << "WOKStep_EngLinkList::Execute"
+ ErrorMsg() << "WOKStep_EngLinkList::Execute"
<< "Could determine current engine in InputList" << endm;
SetFailed();
}
case WOKBuilder_Success:
{
WOK_TRACE {
- if(VerboseMsg("WOK_EXTRACT").IsSet())
+ if(VerboseMsg()("WOK_EXTRACT").IsSet())
{
- VerboseMsg << "WOKStep_Extract::Execute"
+ VerboseMsg() << "WOKStep_Extract::Execute"
<< entity->Name() << " produces : " << endm;
for(i=1; i<=anit.Produces()->Length(); i++)
{
- VerboseMsg << "WOKStep_Extract::Execute"
+ VerboseMsg() << "WOKStep_Extract::Execute"
<< "\t\t" << anit.Produces()->Value(i)->Path()->Name() << endm;
}
}
out->SetProduction();
if(!istemplate) AddExecDepItem(tobuild->Value(j), out, Standard_True);
- InfoMsg << "WOKStep_Extract::Execute" << "File : " << outfile->Path()->Name() << " is modified" << endm;
+ InfoMsg() << "WOKStep_Extract::Execute" << "File : " << outfile->Path()->Name() << " is modified" << endm;
break;
case WOKBuilder_Unbuilt:
WOK_TRACE {
- VerboseMsg("WOK_EXTRACT") << "WOKStep_Extract::Execute"
+ VerboseMsg()("WOK_EXTRACT") << "WOKStep_Extract::Execute"
<< "File : " << outfile->Path()->Name() << " is unchanged" << endm;
}
Extractor()->MSchema()->ChangeAddAction(anid, Handle(WOKBuilder_Specification)());
Extractor()->MSchema()->ChangeActionToFailed(anid);
SetFailed();
- ErrorMsg << "WOKStep_Extract::Execute" << "Failed : " << outfile->Name() << endm;
+ ErrorMsg() << "WOKStep_Extract::Execute" << "Failed : " << outfile->Name() << endm;
break;
}
}
case WOKBuilder_Failed:
Extractor()->MSchema()->ChangeActionToFailed(anid);
- ErrorMsg << "WOKStep_Extract::Execute" << "Failed : " << entity->Name() << endm;
+ ErrorMsg() << "WOKStep_Extract::Execute" << "Failed : " << entity->Name() << endm;
break;
default: break;
}
astep->SetTargets(Targets());
astep->SetOptions(Options());
- InfoMsg << "WOKStep_ExtractExecList::Execute"
+ InfoMsg() << "WOKStep_ExtractExecList::Execute"
<< "Extracting Executable list for part : " << part << endm;
switch(astep->Make())
{
case WOKMake_Uptodate:
- InfoMsg << "WOKMake_MetaStep::Execute"
+ InfoMsg() << "WOKMake_MetaStep::Execute"
<< "========> " << astep->SubCode() << " is uptodate" << endm;
break;
case WOKMake_Success:
- InfoMsg << "WOKMake_MetaStep::Execute"
+ InfoMsg() << "WOKMake_MetaStep::Execute"
<< "========> " << astep->SubCode() << " succeeded" << endm;
break;
case WOKMake_Incomplete:
- WarningMsg << "WOKMake_MetaStep::Execute"
+ WarningMsg() << "WOKMake_MetaStep::Execute"
<< "========> " << astep->SubCode() << " is incomplete" << endm;
break;
case WOKMake_Failed:
- ErrorMsg << "WOKMake_MetaStep::Execute"
+ ErrorMsg() << "WOKMake_MetaStep::Execute"
<< "========> " << astep->SubCode() << " failed" << endm;
ok = Standard_False;
break;
case WOKMake_Unprocessed:
- WarningMsg << "WOKMake_MetaStep::Execute"
+ WarningMsg() << "WOKMake_MetaStep::Execute"
<< "========> " << astep->SubCode() << " is still unprocessed" << endm;
ok=Standard_False;
break;
}
else
{
- WarningMsg << "WOKStep_ExtractExecList::Execute"
+ WarningMsg() << "WOKStep_ExtractExecList::Execute"
<< "Missing file : " << files->Value(j) << " in unit : " << Unit()->Name() << endm;
missings = Standard_True;
}
if(unit.IsNull())
{
- WarningMsg << "WOKStep_ExtractExecList::Execute"
+ WarningMsg() << "WOKStep_ExtractExecList::Execute"
<< "Wrong (or not found) libray uses : " << libs->Value(j) << endm;
missings = Standard_True;
}
if(anent.IsNull())
{
- ErrorMsg << "WOKStep_HeaderExtract::OutOfDateEntities"
+ ErrorMsg() << "WOKStep_HeaderExtract::OutOfDateEntities"
<< infile->ID() << " is not a MS Entity" << endm;
SetFailed();
return result;
{
if(!myinflow.Contains(internlib->LocatorName()))
{
- WarningMsg << "WOKStep_ImplementationDep::Execute"
+ WarningMsg() << "WOKStep_ImplementationDep::Execute"
<< "Ignoring unlisted (in FILES) located " << INTERNLIB << " file " << endm;
}
else
{
- InfoMsg << "WOKStep_ImplementationDep::Execute"
+ InfoMsg() << "WOKStep_ImplementationDep::Execute"
<< "Using " << INTERNLIB << " file for implementation dependance" << endm;
InternFile = myinflow.FindFromKey(internlib->LocatorName());
if(myinflow.Contains(internlocname))
{
- ErrorMsg << "WOKStep_ImplementationDep::Execute"
+ ErrorMsg() << "WOKStep_ImplementationDep::Execute"
<< "Could not locate listed (in FILES) " << INTERNLIB
<< " in unit : " << Unit()->Name() << endm;
SetFailed();
}
else
{
- ErrorMsg << "WOKStep_ImplementationDep::Execute"
+ ErrorMsg() << "WOKStep_ImplementationDep::Execute"
<< "Could not find any input to get Implementation dependencies" << endm;
SetFailed();
return;
if ( fSrc.Failed () ) {
- ErrorMsg << "WOKStep_Include :: Execute"
+ ErrorMsg() << "WOKStep_Include :: Execute"
<< "failed to copy '" << infile -> File () -> Path () -> Name ()
<< "' to '" << pubincfile -> Path () -> Name ()
<< "'" << endm;
} else {
- InfoMsg << "WOKStep_Include :: Execute"
+ InfoMsg() << "WOKStep_Include :: Execute"
<< "Copied : '" << infile->File()->Path()->Name()
<< "' to '" << pubincfile->Path()->Name()
<< "'" << endm;
} else {
if ( !(infile -> File () -> Path () -> Exists () )) {
- InfoMsg << "WOKStep_Include :: Execute"
+ InfoMsg() << "WOKStep_Include :: Execute"
<< "failed to copy '" << infile -> File () -> Path () -> Name ()
<< "' to '" << pubincfile -> Path () -> Name ()
<< "'" << endm;
if(anent.IsNull())
{
- ErrorMsg << "WOKStep_JiniExtract::OutOfDateEntities"
+ ErrorMsg() << "WOKStep_JiniExtract::OutOfDateEntities"
<< infile->ID() << " is not a MS Entity" << endm;
SetFailed();
return result;
case WOKBuilder_Success: {
#ifdef WOK_VERBOSE
- if ( VerboseMsg ( "WOK_EXTRACT" ).IsSet () ) {
+ if ( VerboseMsg() ( "WOK_EXTRACT" ).IsSet () ) {
- VerboseMsg ( "WOK_EXTRACT" ) << "WOKStep_Extract::Execute"
+ VerboseMsg() ( "WOK_EXTRACT" ) << "WOKStep_Extract::Execute"
<< entity -> Name ()
<< " produces : "
<< endm;
for ( i = 1; i <= anit.Produces () -> Length (); ++i )
- VerboseMsg ( "WOK_EXTRACT" ) << "WOKStep_Extract::Execute"
+ VerboseMsg() ( "WOK_EXTRACT" ) << "WOKStep_Extract::Execute"
<< "\t\t"
<< anit.Produces () -> Value ( i ) -> Path () -> Name ()
<< endm;
if ( !istemplate ) AddExecDepItem ( buildSeq -> Value ( j ), out, Standard_True );
- InfoMsg << "WOKStep_Extract::Execute"
+ InfoMsg() << "WOKStep_Extract::Execute"
<< "File : "
<< outfile -> Path () -> Name ()
<< " is modified"
case WOKBuilder_Unbuilt:
#ifdef WOK_VERBOSE
- VerboseMsg ( "WOK_EXTRACT" ) << "WOKStep_Extract::Execute"
+ VerboseMsg() ( "WOK_EXTRACT" ) << "WOKStep_Extract::Execute"
<< "File : "
<< outfile -> Path () -> Name ()
<< " is unchanged"
SetFailed ();
- ErrorMsg << "WOKStep_Extract::Execute"
+ ErrorMsg() << "WOKStep_Extract::Execute"
<< "Failed : "
<< outfile -> Name ()
<< endm;
case WOKBuilder_Failed:
- ErrorMsg << "WOKStep_Extract::Execute"
+ ErrorMsg() << "WOKStep_Extract::Execute"
<< "Failed : "
<< entity -> Name ()
<< endm;
} // end if
- InfoMsg << "WOKStep_Extract::Execute" << "Generating ClassFile.cfg" << endm;
+ InfoMsg() << "WOKStep_Extract::Execute" << "Generating ClassFile.cfg" << endm;
#ifdef WNT
Handle( TCollection_HAsciiString ) NL = new TCollection_HAsciiString ( "\r\n" );
#else
case WOKBuilder_Success:
{
Handle(WOKBuilder_ArchiveLibrary) anent = new WOKBuilder_ArchiveLibrary(liba->Path());
- InfoMsg << "WOKStep_TKLibUnCompress::Execute"
+ InfoMsg() << "WOKStep_TKLibUnCompress::Execute"
<< "Uncompress : " << infile->File()->UserPathName() << endm;
anext->SetArchive(anent);
}
else
{
- ErrorMsg << "WOKStep_LibExtract::Execute"
+ ErrorMsg() << "WOKStep_LibExtract::Execute"
<< "Unrecognized input file : " << infile->ID() << endm;
SetFailed();
return;
if(!failed)
{
- InfoMsg << "WOKStep_LibExtract::Execute"
+ InfoMsg() << "WOKStep_LibExtract::Execute"
<< "Extracting : " << infile->File()->UserPathName() << endm;
switch(anext->Execute())
}
else
{
- WarningMsg << "WOKStep_LibExtract::Execute"
+ WarningMsg() << "WOKStep_LibExtract::Execute"
<< "Ignoring non object result : " << anent->Path()->Name() << endm;
failed = Standard_True;
}
switch(astep->Make())
{
case WOKMake_Uptodate:
- InfoMsg << "WOKStep_LibLimit::Execute"
+ InfoMsg() << "WOKStep_LibLimit::Execute"
<< "========> " << astep->SubCode() << " is uptodate" << endm;
break;
case WOKMake_Success:
- InfoMsg << "WOKStep_LibLimit::Execute"
+ InfoMsg() << "WOKStep_LibLimit::Execute"
<< "========> " << astep->SubCode() << " succeeded" << endm;
break;
case WOKMake_Incomplete:
- WarningMsg << "WOKStep_LibLimit::Execute"
+ WarningMsg() << "WOKStep_LibLimit::Execute"
<< "========> " << astep->SubCode() << " is incomplete" << endm;
break;
case WOKMake_Failed:
- ErrorMsg << "WOKStep_LibLimit::Execute"
+ ErrorMsg() << "WOKStep_LibLimit::Execute"
<< "========> " << astep->SubCode() << " failed" << endm;
ok = Standard_False;
break;
case WOKMake_Unprocessed:
- WarningMsg << "WOKStep_LibLimit::Execute"
+ WarningMsg() << "WOKStep_LibLimit::Execute"
<< "========> " << astep->SubCode() << " is still unprocessed" << endm;
ok=Standard_False;
break;
}
else
{
- InfoMsg << "WOKStep_LibLimit::Execute"
+ InfoMsg() << "WOKStep_LibLimit::Execute"
<< "No limitation required" << endm;
for( i=1; i<=execlist->Length(); i++)
{
liba->GetPath();
- InfoMsg << "WOKStep_LibUnCompress::Execute"
+ InfoMsg() << "WOKStep_LibUnCompress::Execute"
<< "Uncompress : " << infile->File()->UserPathName() << endm;
switch(acmd->UnCompressTo(infile->File()->Path(), liba->Path()))
}
else
{
- WarningMsg << "WOKStep_LinkList::GetUnitLibrary"
+ WarningMsg() << "WOKStep_LinkList::GetUnitLibrary"
<< "Unknown Nesting for " << aunit->UserPathName() << endm;
}
}
if(alib.IsNull())
{
- ErrorMsg << "WOKStep_Link::ComputeLibraryList"
+ ErrorMsg() << "WOKStep_Link::ComputeLibraryList"
<< "Could not find library in unit : " << aunit->UserPathName() << endm;
SetFailed();
}
{
if(!amapcalc.Contains(anit.Key()))
{
- WarningMsg << "WOKStep_Link::ComputeLibrarySearchList"
+ WarningMsg() << "WOKStep_Link::ComputeLibrarySearchList"
<< "Library directory " << anit.Key()->Name() << " referenced in link is not in visibility" << endm;
}
anit.Next();
lnkfile->GetPath();
if(lnkfile->Path()->Exists()) lnkfile->Path()->RemoveFile();
if (!lnkfile->Path()->CreateFile()) {
- ErrorMsg << "WOKStep_Link::ExecuteLink"
+ ErrorMsg() << "WOKStep_Link::ExecuteLink"
<< "Unable to create link file " << lnkfile->Path()->Name()->ToCString() << endm;
}
Handle(WOKUtils_Shell) ashell = Shell();
}
break;
case WOKBuilder_Failed:
- ErrorMsg << "WOKStep_Link::ExecuteLink" << "Failed : " << mytarget << endm;
+ ErrorMsg() << "WOKStep_Link::ExecuteLink" << "Failed : " << mytarget << endm;
SetFailed();
break;
default: break;
}
else
{
- WarningMsg << "WOKStep_LinkList::GetUnitLibrary"
+ WarningMsg() << "WOKStep_LinkList::GetUnitLibrary"
<< "Unknown Nesting for " << aunit->UserPathName() << endm;
}
}
Standard_Boolean mustExist = aunit->SearchInFileList(Locator(),libname);
if (mustExist)
{
- ErrorMsg << "WOKStep_LinkList::GetUnitLibrary"
+ ErrorMsg() << "WOKStep_LinkList::GetUnitLibrary"
<< "No library (" << libname << ") found for unit " << aunit->Name() << endm;
SetFailed();
}
else {
#ifdef DEB
- WarningMsg << "WOKStep_LinkList::GetUnitLibrary"
+ WarningMsg() << "WOKStep_LinkList::GetUnitLibrary"
<< "No library (" << libname << ") in unit " << aunit->Name() << endm;
#endif
}
}
else
{
- WarningMsg << "WOKStep_LinkList::GetUnitLibrary"
+ WarningMsg() << "WOKStep_LinkList::GetUnitLibrary"
<< "Unit " << aunit->UserPathName() << " is not known to have a library" << endm;
}
if(codes.IsNull())
{
- WarningMsg << "WOKStep_LinkList::GetUnitContributionCodes"
+ WarningMsg() << "WOKStep_LinkList::GetUnitContributionCodes"
<< "Could not eval parameter " << paramname << " in unit " << aunit->UserPathName() << endm;
}
return codes;
if(codes.IsNull())
{
- WarningMsg << "WOKStep_LinkList::GetUnitContribution"
+ WarningMsg() << "WOKStep_LinkList::GetUnitContribution"
<< "Could not eval contribution of unit : " << aunit->UserPathName() << " in link of " << Unit()->UserPathName() << endm;
}
else
if(!step.IsNull())
{
- InfoMsg << "WOKStep_LinkList::GetUnitContribution"
+ InfoMsg() << "WOKStep_LinkList::GetUnitContribution"
<< "Processing step " << step->UniqueName() << endm;
//---> EUG4JR
//<--- EUG4JR
if(outfiles.IsNull())
{
- ErrorMsg << "WOKStep_LinkList::GetUnitContribution"
+ ErrorMsg() << "WOKStep_LinkList::GetUnitContribution"
<< "Could not obtain output list of step : " << code << " in unit " << aunit->UserPathName() << endm;
failed = Standard_True;
}
}
else
{
- WarningMsg << "WOKStep_ComputeLinkList"
+ WarningMsg() << "WOKStep_ComputeLinkList"
<< "Ignoring invalid step code " << code << " in unit " << aunit->UserPathName() << endm;
}
k++;
if(gefile.IsNull())
{
- ErrorMsg << "WOKStep_MSFill::Execute" << "Missing file : " << ams->AssociatedFile(Unit()->Name()) << endm;
+ ErrorMsg() << "WOKStep_MSFill::Execute" << "Missing file : " << ams->AssociatedFile(Unit()->Name()) << endm;
SetFailed();
return;
}
case WOKBuilder_Success:
break;
case WOKBuilder_Failed:
- ErrorMsg << "WOKStep_MSFill::Execute"
+ ErrorMsg() << "WOKStep_MSFill::Execute"
<< "Errors occured while executing " << anaction->Entity()->Name() << endm;
anit.Reset();
stop = Standard_True;
}
else
{
- ErrorMsg << "WOKStep_MSFill::Execute"
+ ErrorMsg() << "WOKStep_MSFill::Execute"
<< "No file " << astr << " in " << aunitname << endm;
stop = Standard_True;
}
if(!ams->MetaSchema()->Check(Unit()->Name()))
{
- ErrorMsg << "WOKStep_MSFill::Execute"
+ ErrorMsg() << "WOKStep_MSFill::Execute"
<< "Check of " << Unit()->Name() << " has failed" << endm;
stop = Standard_True;
}
else
{
- InfoMsg << "WOKStep_MSFill::Execute"
+ InfoMsg() << "WOKStep_MSFill::Execute"
<< "Check of " << Unit()->Name() << " succeeded" << endm;
}
}
if(infile.IsNull())
{
- WarningMsg << "WOKStep_MSFill::Execute" << origin->LocatorName() << " is not an input of this step" << endm;
- WarningMsg << "WOKStep_MSFill::Execute" << "Perhaps performing step (src) is needed" << endm;
+ WarningMsg() << "WOKStep_MSFill::Execute" << origin->LocatorName() << " is not an input of this step" << endm;
+ WarningMsg() << "WOKStep_MSFill::Execute" << "Perhaps performing step (src) is needed" << endm;
}
else
{
}
else
{
- ErrorMsg << "WOKStep_MSFill::Execute"
+ ErrorMsg() << "WOKStep_MSFill::Execute"
<< "Unit : " << aunit->Name() << " should be an interface and is not" << endm;
stop = Standard_True;
}
}
else
{
- ErrorMsg << "WOKStep_MSFill::Execute"
+ ErrorMsg() << "WOKStep_MSFill::Execute"
<< "Unit : " << ints->Value(i) << " could not be located" << endm;
stop = Standard_True;
}
}
else
{
- ErrorMsg << "WOKStep_MSFill::Execute"
+ ErrorMsg() << "WOKStep_MSFill::Execute"
<< "Unit : " << aunit->Name() << " should be an interface and is not" << endm;
stop = Standard_True;
}
}
else
{
- ErrorMsg << "WOKStep_MSFill::Execute"
+ ErrorMsg() << "WOKStep_MSFill::Execute"
<< "Unit : EngineInterface could not be located" << endm;
stop = Standard_True;
}
if(rejectlist->Search(basename) != -1)
{
WOK_TRACE {
- VerboseMsg("WOK_IDEP") << "WOKStep_ProcessStep::GetUnitName"
+ VerboseMsg()("WOK_IDEP") << "WOKStep_ProcessStep::GetUnitName"
<< "Rejected include : " << aincpath << endm;
}
return unitname;
if(aoutfile.IsNull() && extens != WOKUtils_MFile)
{
- ErrorMsg << "WOKStep_ProcessStep::Execute"
+ ErrorMsg() << "WOKStep_ProcessStep::Execute"
<< "Unrecognized file : " << outent->Path()->Name() << endm;
}
if(!aoutfile.IsNull())
Handle(TCollection_HAsciiString) filenameFILES = Unit()->Params().Eval("%FILENAME_FILES");
if (strcmp(filenameFILES->ToCString(),astr->ToCString()))
{
- ErrorMsg << "WOKStep_ResourceSource::ReadFILES"
+ ErrorMsg() << "WOKStep_ResourceSource::ReadFILES"
<< "No type specified for file " << astr << endm;
SetFailed();
}
{
if(theType->IsStationDependent() || theType->IsDBMSDependent())
{
- WarningMsg << "WOKStep_ResourceSource::ReadFILES"
+ WarningMsg() << "WOKStep_ResourceSource::ReadFILES"
<< "Station or DBMS Dependent type " << type << " : ignoring file " << name << endm;
}
else
if(afile.IsNull() == Standard_True)
{
- ErrorMsg << "WOKStep_ResourceSource::ReadFILES"
+ ErrorMsg() << "WOKStep_ResourceSource::ReadFILES"
<< "File " << astr->ToCString() << " could not be found" << endm;
SetFailed();
}
}
else
{
- ErrorMsg << "WOKStep_ResourceSource::ReadFILES"
+ ErrorMsg() << "WOKStep_ResourceSource::ReadFILES"
<< "Type unknown : " << type << " for file : " << name << endm;
SetFailed();
}
if(afile.IsNull() == Standard_True)
{
- ErrorMsg << "WOKStep_Source::ReadFILES"
+ ErrorMsg() << "WOKStep_Source::ReadFILES"
<< "File " << astr->ToCString() << " could not be found" << endm;
SetFailed();
return;
if(msent.IsNull())
{
SetFailed();
- ErrorMsg << "WOKStep_SourceExtract::Execute"
+ ErrorMsg() << "WOKStep_SourceExtract::Execute"
<< buildfile->BuilderEntity()->Path()->Name() << " is not a MS Type" << endm;
}
else
if(afile.IsNull())
{
- WarningMsg << "WOKStep_SourceExtract::Execute"
+ WarningMsg() << "WOKStep_SourceExtract::Execute"
<< "Missing CDL deducted source file : " << aseq->Value(j) << endm;
afile = new WOKernel_File(aseq->Value(j), Unit(), Unit()->GetFileType("source"));
afile->GetPath();
if(astr.IsNull())
{
- ErrorMsg << "WOKStep_TKList::HandleInputFile"
+ ErrorMsg() << "WOKStep_TKList::HandleInputFile"
<< "Could not eval parameter %FILENAME_PACKAGES" << endm;
SetFailed();
return Standard_False;
if(codes.IsNull())
{
- WarningMsg << "WOKStep_WNTK::GetUnitContributionCodes"
+ WarningMsg() << "WOKStep_WNTK::GetUnitContributionCodes"
<< "Could not eval parameter " << paramname << " in unit " << aunit->UserPathName() << endm;
}
return codes;
return;
#else
- ErrorMsg << "WOKStep_TKList::AddParcelUnitContribution "
+ ErrorMsg() << "WOKStep_TKList::AddParcelUnitContribution "
<< "Cannot add unit " << unit << " from parcel on Windows NT: feature not available" << endm;
SetFailed();
return;
{
if(execlist->Length() > 1)
{
- ErrorMsg << "WOKStep_TKList::Execute" << "Too many input files in step" << endm;
+ ErrorMsg() << "WOKStep_TKList::Execute" << "Too many input files in step" << endm;
SetFailed();
return;
}
if(unit.IsNull())
{
- ErrorMsg << "WOKStep_TKList::Execute"
+ ErrorMsg() << "WOKStep_TKList::Execute"
<< "Could not locate unit " << astr << " listed in file PACKAGES" << endm;
SetFailed();
return;
}
else
{
- WarningMsg << "WOKStep_TKReplace::Execute"
+ WarningMsg() << "WOKStep_TKReplace::Execute"
<< "Unreadable TOOLKITS file not taken into account" << endm;
}
}
if(PACKAGES.IsNull())
{
if (IsAuthorized(atk)) {
- WarningMsg << "WOKStep_TKReplace::Execute"
+ WarningMsg() << "WOKStep_TKReplace::Execute"
<< "Could not find PACKAGES file for toolkit : " << atk << endm;
- WarningMsg << "WOKStep_TKReplace::Execute"
+ WarningMsg() << "WOKStep_TKReplace::Execute"
<< "Toolkit " << atk << "is ignored" << endm;
}
}
if(udsoftk.IsNull())
{
- ErrorMsg << "WOKStep_TKReplace::Execute"
+ ErrorMsg() << "WOKStep_TKReplace::Execute"
<< "Could not read file " << PACKAGES->Path()->Name() << endm;
SetFailed();
return;
if(udidx == 0)
{
- ErrorMsg << "WOKStep_TKReplace::Execute"
+ ErrorMsg() << "WOKStep_TKReplace::Execute"
<< "Unknown unit (" << udsoftk->Value(j) << ") listed in packages of : " << atk << endm;
SetFailed();
return;
{
if(!result.IsNull())
{
- WarningMsg << "WOKStep_TKReplace::GetTKForUnit"
+ WarningMsg() << "WOKStep_TKReplace::GetTKForUnit"
<< "More than one toolkit contains " << aunit << " using " << result << " ignoring " << mytks(i) << endm;
#if 0
- WarningMsg << "WOKStep_TKReplace::GetTKForUnit"
+ WarningMsg() << "WOKStep_TKReplace::GetTKForUnit"
<< "You can specify the toolkit used using a TOOLKITS file" << endm;
#endif
}
{
if(myorig.Contains(current))
{
- WarningMsg << "WOKStep_TKReplace::SubstituteInput"
+ WarningMsg() << "WOKStep_TKReplace::SubstituteInput"
<< implied << " (implied by " << curtk << " defining " << current << ")"
<< " implies addition of " << outfile->ID() << endm;
}
Handle(TColStd_HSequenceOfHAsciiString) thevisib = theunitwb->Visibility();
for (Standard_Integer i=2; i<= thevisib->Length(); i++) {
if (!strcmp(thevisib->Value(i)->ToCString(), thetknest->FullName()->ToCString())) {
- WarningMsg << "WOKStep_TKReplace::SubstituteInput"
+ WarningMsg() << "WOKStep_TKReplace::SubstituteInput"
<< "Toolkit " << TKUnit->Name() << " in " << thetknest->Name()
<< " hides unit " << TheUnit->Name() << " in " << theunitwb->Name() << endm;
}
if(filePACKAGES.IsNull())
{
- ErrorMsg << "WOKStep_WNTK::HandleInputFile"
+ ErrorMsg() << "WOKStep_WNTK::HandleInputFile"
<< "Could not eval parameter '%FILENAME_PACKAGES'" << endm;
SetFailed();
return Standard_False;
{
if( anExecList->Length() > 1 )
{
- ErrorMsg << "WOKStep_WNTK::Execute"
+ ErrorMsg() << "WOKStep_WNTK::Execute"
<< "Too many input files in step" << endm;
SetFailed();
return;
if(stubIn.IsNull())
{
- ErrorMsg << "WOKStep_WNTK::Execute"
+ ErrorMsg() << "WOKStep_WNTK::Execute"
<< "Could not eval parameter " << stubIn << endm;
SetFailed();
return;
if(stubOut.IsNull())
{
- ErrorMsg << "WOKStep_WNTK::Execute"
+ ErrorMsg() << "WOKStep_WNTK::Execute"
<< "Could not eval parameter " << stubOut << endm;
SetFailed();
return;
if(!os)
{
- ErrorMsg << "WOKStep_WNTK::Execute"
+ ErrorMsg() << "WOKStep_WNTK::Execute"
<< "Could not create stub file" << endm;
SetFailed();
return;
if( unit.IsNull() )
{
- ErrorMsg << "WOKStep_WNTK::Execute"
+ ErrorMsg() << "WOKStep_WNTK::Execute"
<< "Could not locate unit " << aStr << " listed in PACKAGES file" << endm;
SetFailed();
return;
if( !(WOKernel_IsPackage(unit) || WOKernel_IsNocdlpack(unit) || WOKernel_IsDelivery(unit) || WOKernel_IsClient(unit) || WOKernel_IsSchema ( unit )))
{
- ErrorMsg << "WOKStep_WNTK::Execute"
+ ErrorMsg() << "WOKStep_WNTK::Execute"
<< "Unit " << aStr << " of type " << unit->Type()
<< " can not be listed in PACKAGES file" << endm;
SetFailed();
if( !os.good() )
{
- ErrorMsg << "WOKStep_WNTK::Execute"
+ ErrorMsg() << "WOKStep_WNTK::Execute"
<< "Could not create stub file" << endm;
SetFailed();
return;
if( cmd.IsNull() )
{
- ErrorMsg << "WOKStep_WNTK::Execute"
+ ErrorMsg() << "WOKStep_WNTK::Execute"
<< "Could not eval template STUBS_COMPILE" << endm;
SetFailed();
return;
if(sh->Status())
{
- ErrorMsg << "WOKStep_WNTK::Execute"
+ ErrorMsg() << "WOKStep_WNTK::Execute"
<< "Could not compile stub file" << endm;
SetFailed();
return;
if(numRes != numProd)
- WarningMsg << "WOKStep_WNTLibrary :: Execute"
+ WarningMsg() << "WOKStep_WNTLibrary :: Execute"
<< tool -> Produces () -> Value ( 1 ) -> Path () -> FileName ()
<< " does not contain exported symbols" << endm;
if(external.IsNull())
{
- WarningMsg << "WOKStep_WNTLink::ComputeExternals"
+ WarningMsg() << "WOKStep_WNTLink::ComputeExternals"
<< "Skipped external " << infile->ID()->Token(":", 3) << "; could not eval : " << astr << endm;
}
else
if(libType.IsNull())
{
- WarningMsg << "WOKStep_WNTLink::Execute"
+ WarningMsg() << "WOKStep_WNTLink::Execute"
<< "Unknown link : library is produced" << endm;
libType = Unit()->GetFileType("library");
}
//---> EUG4YAN
if ( !g_fCompOrLnk )
//<--- EUG4YAN
- InfoMsg << "WOKStep_WNTLink::Execute"
+ InfoMsg() << "WOKStep_WNTLink::Execute"
<< "------------" << endm << "" << endm;
#else
- ErrorMsg << "WOKStep_WNTLink::Execute"
+ ErrorMsg() << "WOKStep_WNTLink::Execute"
<< "Step WOKStep_WNTLink is available only on WNT platforms." << endm;
SetFailed();
#endif // WNT