if(apos < 0 )
{
- ErrorMsg << "WOKOrbix_ExtractServerList::Execute"
+ ErrorMsg() << "WOKOrbix_ExtractServerList::Execute"
<< "Cannot determine idl interface name in " << fullname << ": underscore is missing" << endm;
}
if(declarfile.IsNull())
{
- ErrorMsg << "WOKOrbix_ExtractServerList::Execute"
+ ErrorMsg() << "WOKOrbix_ExtractServerList::Execute"
<< "Could not find IDL unit interface declaration list file : "
<< idlunit << ":" << admtype << ":" << declfilename << endm;
SetFailed();
if(!amap.IsBound(fullname))
{
- ErrorMsg << "WOKOrbix_ExtractServerList::Execute"
+ ErrorMsg() << "WOKOrbix_ExtractServerList::Execute"
<< "IDL unit " << idlunit << " does not declare interface: " << interfacename << endm;
SetFailed();
}
if(servobj.IsNull())
{
- ErrorMsg << "WOKOrbix_ExtractServerList::Execute"
+ ErrorMsg() << "WOKOrbix_ExtractServerList::Execute"
<< "Could not find objfile: " << WOKernel_File::FileLocatorName(idlunit, objtype, filename[j]);
SetFailed();
}
if(myiterator.LoadGroup())
{
- ErrorMsg << "WOKOrbix_IDLCompile::Init"
+ ErrorMsg() << "WOKOrbix_IDLCompile::Init"
<< "Could not load idl compilers definition" << endm;
SetFailed();
return;
if(infile->File()->Nesting()->IsSameString(Unit()->FullName()))
{
- InfoMsg << "WOKOrbix_IDLCompile::Execute" << "-------> " << infile->File()->Name() << endm;
+ InfoMsg() << "WOKOrbix_IDLCompile::Execute" << "-------> " << infile->File()->Name() << endm;
}
else
{
- InfoMsg << "WOKOrbix_IDLCompile::Execute" << "-------> " << infile->File()->UserPathName() << endm;
+ InfoMsg() << "WOKOrbix_IDLCompile::Execute" << "-------> " << infile->File()->UserPathName() << endm;
}
switch(myiterator.Execute(anidlfile))
case WOKBuilder_Success:
{
WOK_TRACE {
- if(VerboseMsg("WOK_ORBIX").IsSet())
+ if(VerboseMsg()("WOK_ORBIX").IsSet())
{
- VerboseMsg << "WOKOrbix_IDLCompile::Execute"
+ VerboseMsg() << "WOKOrbix_IDLCompile::Execute"
<< anidlfile->Path()->Name() << " produces : " << endm;
for(i=1; i<=myiterator.Produces()->Length(); i++)
{
- VerboseMsg << "WOKOrbix_IDLCompile::Execute"
+ VerboseMsg() << "WOKOrbix_IDLCompile::Execute"
<< "\t\t" << myiterator.Produces()->Value(i)->Path()->Name() << endm;
}
}
break;
case WOKBuilder_Failed:
fails->Append(infile);
- ErrorMsg << "WOKOrbix_IDLCompile::Execute" << "Failed : " << infile->File()->Name() << endm;
+ ErrorMsg() << "WOKOrbix_IDLCompile::Execute" << "Failed : " << infile->File()->Name() << endm;
break;
default: break;
}
if(fails->Length())
{
- InfoMsg << "WOKOrbix_IDLCompile::Execute"
+ InfoMsg() << "WOKOrbix_IDLCompile::Execute"
<< "----------------------- IDL Compilation Report -----------------------" << endm;
for(i=1; i<= fails->Length(); i++)
{
- InfoMsg << "WOKOrbix_IDLCompile::Execute"
+ InfoMsg() << "WOKOrbix_IDLCompile::Execute"
<< "Failed : " << fails->Value(i)->File()->UserPathName() << endm;
}
- InfoMsg << "WOKOrbix_IDLCompile::Execute"
+ InfoMsg() << "WOKOrbix_IDLCompile::Execute"
<< "-----------------------------------------------------------------" << endm;
}
astr = EvalToolTemplate(Template()->ToCString());
WOK_TRACE {
- VerboseMsg("WOK_ORBIX") << "WOKOrbix_IDLCompiler::Execute" << "Compilation line : " << endm;
- VerboseMsg("WOK_ORBIX") << "WOKOrbix_IDLCompiler::Execute" << astr << endm;
+ VerboseMsg()("WOK_ORBIX") << "WOKOrbix_IDLCompiler::Execute" << "Compilation line : " << endm;
+ VerboseMsg()("WOK_ORBIX") << "WOKOrbix_IDLCompiler::Execute" << astr << endm;
}
Shell()->ClearOutput();
if(Shell()->Status())
{
- Standard_Boolean ph = ErrorMsg.PrintHeader();
+ Standard_Boolean ph = ErrorMsg().PrintHeader();
- ErrorMsg << "WOKOrbix_IDLCompiler::Execute" << "Errors occured in Shell" << endm;
- ErrorMsg.DontPrintHeader();
+ ErrorMsg() << "WOKOrbix_IDLCompiler::Execute" << "Errors occured in Shell" << endm;
+ ErrorMsg().DontPrintHeader();
for(Standard_Integer i=start; i<= resseq->Length(); i++)
{
- ErrorMsg << "WOKOrbix_IDLCompiler::Execute" << resseq->Value(i) << endm;
+ ErrorMsg() << "WOKOrbix_IDLCompiler::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=start; i<= resseq->Length(); i++)
{
- InfoMsg << "WOKOrbix_IDLCompiler::Execute" << resseq->Value(i) << endm;
+ InfoMsg() << "WOKOrbix_IDLCompiler::Execute" << resseq->Value(i) << endm;
}
- if(ph) InfoMsg.DoPrintHeader();
+ if(ph) InfoMsg().DoPrintHeader();
}
Shell()->ClearOutput();
if(optline.IsNull())
{
- ErrorMsg << "WOKOrbix_IDLCompilerIterator::Init"
+ ErrorMsg() << "WOKOrbix_IDLCompilerIterator::Init"
<< "Could not eval compiler " << acompiler->Name() << " options" << endm;
return;
}
- InfoMsg << "WOKOrbix_IDLCompilerIterator::Init" << optline << endm;
+ InfoMsg() << "WOKOrbix_IDLCompilerIterator::Init" << optline << endm;
}
}
}
if(acompiler.IsNull())
{
- ErrorMsg << "WOKOrbix_IDLCompilerIterator::Execute"
+ ErrorMsg() << "WOKOrbix_IDLCompilerIterator::Execute"
<< "Could not find appropriate Compiler for " << anidlfile->Path()->Name() << endm;
return WOKBuilder_Failed;
}
if(idlfile.IsNull())
{
- ErrorMsg << "WOKOrbix_IDLFill::Execute"
+ ErrorMsg() << "WOKOrbix_IDLFill::Execute"
<< "Invalid input : " << infile->BuilderEntity()->Path()->Name() << endm;
SetFailed();
return;
if(infile->File()->Nesting()->IsSameString(Unit()->FullName()))
{
- InfoMsg << "WOKOrbix_IDLFill::Execute" << "-------> " << infile->File()->Name() << endm;
+ InfoMsg() << "WOKOrbix_IDLFill::Execute" << "-------> " << infile->File()->Name() << endm;
}
else
{
- InfoMsg << "WOKOrbix_IDLFill::Execute" << "-------> " << infile->File()->UserPathName() << endm;
+ InfoMsg() << "WOKOrbix_IDLFill::Execute" << "-------> " << infile->File()->UserPathName() << endm;
}
switch(atrans->Execute(idlfile))
if(srcfile.IsNull())
{
- WarningMsg << "WOKOrbix_IDLSourceExtract::Execute"
+ WarningMsg() << "WOKOrbix_IDLSourceExtract::Execute"
<< "Extraction deducted source file " << filename << " is missing" << endm;
srcfile = new WOKernel_File(filename, Unit(), Unit()->GetFileType(srctype));
srcfile->GetPath();
}
else
{
- ErrorMsg << "WOKOrbix_IDLSourceExtract::Execute"
+ ErrorMsg() << "WOKOrbix_IDLSourceExtract::Execute"
<< "Invalid extension for " << filename << " should be .template" << endm;
SetFailed();
}
if(astr.IsNull())
{
- ErrorMsg << "WOKOrbix_IDLTranslator::Load"
+ ErrorMsg() << "WOKOrbix_IDLTranslator::Load"
<< "Invalid SHARED parameter for tool: " << Name() << endm;
return;
}
if(libpath.IsNull())
{
- ErrorMsg << "WOKOrbix_IDLTranslator::Load"
+ ErrorMsg() << "WOKOrbix_IDLTranslator::Load"
<< "Could not find file : " << Shared() << endm;
return;
}
if(name.IsNull())
{
- ErrorMsg << "WOKOrbix_IDLTranslator::Load" << "Could not eval NAME for IDLTranslator" << endm;
+ ErrorMsg() << "WOKOrbix_IDLTranslator::Load" << "Could not eval NAME for IDLTranslator" << endm;
return;
}
{
if(mytranslator == NULL)
{
- ErrorMsg << "WOKOrbix_IDLTranslator::Translate" << "Null Translator : Cannot Perform" << endm;
+ ErrorMsg() << "WOKOrbix_IDLTranslator::Translate" << "Null Translator : Cannot Perform" << endm;
return WOKBuilder_Failed;
}
if((*mytranslator)(MSchema()->MetaSchema(),afile->Path()->Name(),globlist,inctypes,insttypes,gentypes))
{
- ErrorMsg << "WOKOrbix_IDLTranslator::Translate" << "Errors occured" << endm;
+ ErrorMsg() << "WOKOrbix_IDLTranslator::Translate" << "Errors occured" << endm;
return WOKBuilder_Failed;
}
return WOKBuilder_Success;
if(afile.IsNull())
{
- WarningMsg << "WOKOrbix_ServerSource::Execute"
+ WarningMsg() << "WOKOrbix_ServerSource::Execute"
<< "Missing server main file " << astr << endm;
afile = new WOKernel_File(astr, Unit(), Unit()->GetFileType(asourcetype));
afile->GetPath();