break;
case WOKBuilder_Failed:
ashell->UnLock();
- ErrorMsg << "WOKStep_ArchiveLibrary"
+ ErrorMsg() << "WOKStep_ArchiveLibrary"
<< "Failed : " << libpath->Name() << endm;
return Standard_False;
default: break;
Handle(EDL_API) anapi = new EDL_API();
if (anapi->OpenFile("MYFILE",resfileld->Path()->Name()->ToCString()) != EDL_NORMAL) {
- ErrorMsg << "WOKDeliv_DelivBuilExec::Execute"
+ ErrorMsg() << "WOKDeliv_DelivBuilExec::Execute"
<< "Cannot open file " << resfileld->Path()->Name() << endm;
okexec = Standard_False;
}
thedeliv->Open();
Handle(TCollection_HAsciiString) allreq = thedeliv->EvalParameter("AllRequisites",Standard_False);
if (allreq.IsNull()) {
- WarningMsg << "WOKDeliv_DelivBuildExec::VisibleParcels"
+ WarningMsg() << "WOKDeliv_DelivBuildExec::VisibleParcels"
<< "Unable to get dependencies from parcel : << theparcel->Name()->ToCString()" << endm;
- WarningMsg << "WOKDeliv_DelivBuildExec::VisibleParcels"
+ WarningMsg() << "WOKDeliv_DelivBuildExec::VisibleParcels"
<< "Missing parameter AllRequisites" << endm;
}
else {
}
}
else {
- ErrorMsg << "WOKDeliv_DelivBuildExec::VisibleParcels"
+ ErrorMsg() << "WOKDeliv_DelivBuildExec::VisibleParcels"
<< " Unable to get delivery " << deliv
<< " from parcel " << theparcel->Name() << endm;
}
Handle(TCollection_HAsciiString) unitname = SubCode();
Handle(WOKernel_DevUnit) thesourceunit = Locator()->LocateDevUnit(unitname);
if (thesourceunit.IsNull()) {
- ErrorMsg << "WOKDeliv_DelivBuildSource"
+ ErrorMsg() << "WOKDeliv_DelivBuildSource"
<< "Enable to locate unit " << unitname << endm;
SetFailed();
}
case WOKUtils_Unknown:
case WOKUtils_NotSetted:
{
- ErrorMsg << "WOKDeliv_DelivBuildSource::Execute"
+ ErrorMsg() << "WOKDeliv_DelivBuildSource::Execute"
<< "Unable to execute source on unit " << unitname << endm;
SetFailed();
}
case WOKUtils_Succeeded:
{
WOK_TRACE {
- VerboseMsg("WOK_DELIV") << "WOKDeliv_DelivBuildSource::Execute"
+ VerboseMsg()("WOK_DELIV") << "WOKDeliv_DelivBuildSource::Execute"
<< "File " << result << " created." << endm;
}
Handle(WOKUtils_Path) pathres = new WOKUtils_Path(result);
}
break;
case WOKUtils_Failed:
- ErrorMsg << "WOKDeliv_DelivBuildSource::Execute"
+ ErrorMsg() << "WOKDeliv_DelivBuildSource::Execute"
<< "Failed to execute source on unit " << unitname << endm;
SetFailed();
break;
Standard_Boolean okexec = Standard_True;
if (!myList.IsNull()) {
- InfoMsg << "WOKDeliv_DeliveryBase" << "Process UL : " << myList->GetName()->ToCString() << endm;
+ InfoMsg() << "WOKDeliv_DeliveryBase" << "Process UL : " << myList->GetName()->ToCString() << endm;
Handle(TCollection_HAsciiString) thename = myList->GetName();
Handle(WOKernel_Warehouse) theWarehouse;
Handle(WOKernel_Session) theSession = Unit()->Session();
Handle(WOKernel_Parcel) theParcel = GetParcel(Unit(),thename);
if (!theParcel.IsNull()) {
- InfoMsg << "WOKDeliv_DeliveryBase" << "Parcel already created : update" << endm;
+ InfoMsg() << "WOKDeliv_DeliveryBase" << "Parcel already created : update" << endm;
theParcel->Open();
theWarehouse = theSession->GetWarehouse(theParcel->Nesting());
}
Handle(WOKMake_InputFile) infileCOMPONENTS = GetInFileCOMPONENTS();
if (infileCOMPONENTS.IsNull()) {
- ErrorMsg << "WOKDeliv_DeliveryBase::Execute"
+ ErrorMsg() << "WOKDeliv_DeliveryBase::Execute"
<< "Missing File COMPONENTS, Check file FILES" << endm;
SetFailed();
return;
Handle(TCollection_HAsciiString) delivfilename = DELIVERIESFile->Path()->Name();
ofstream delstream(delivfilename->ToCString(), ios::out);
if (!delstream) {
- ErrorMsg << "WOKDeliv_DeliveryBase::Execute" << "Could not open " << delivfilename->ToCString() << endm;
+ ErrorMsg() << "WOKDeliv_DeliveryBase::Execute" << "Could not open " << delivfilename->ToCString() << endm;
SetFailed();
okexec = Standard_False;
}
Handle(TCollection_HAsciiString) namedepulfilename = depulFile->Path()->Name();
ofstream depulstream(namedepulfilename->ToCString(), ios::out);
if (!depulstream) {
- ErrorMsg << "WOKDeliv_DeliveryBase::Execute" << "Could not open " << namedepulfilename->ToCString() << endm;
+ ErrorMsg() << "WOKDeliv_DeliveryBase::Execute" << "Could not open " << namedepulfilename->ToCString() << endm;
SetFailed();
okexec = Standard_False;
}
Handle(TCollection_HAsciiString) namefilename = NAMEFile->Path()->Name();
ofstream namestream(namefilename->ToCString(), ios::out);
if (!namestream) {
- ErrorMsg << "WOKDeliv_DeliveryBase::Execute" << "Could not open " << namefilename->ToCString() << endm;
+ ErrorMsg() << "WOKDeliv_DeliveryBase::Execute" << "Could not open " << namefilename->ToCString() << endm;
SetFailed();
okexec = Standard_False;
}
while (itpck.More()) {
Handle(WOKernel_DevUnit) thesourceunit = Locator()->LocateDevUnit(itpck.Key());
if (thesourceunit.IsNull()) {
- ErrorMsg << "WOKDeliv_DeliveryBase::Execute" << "cannot locate unit : " << itpck.Key()->ToCString() << endm;
+ ErrorMsg() << "WOKDeliv_DeliveryBase::Execute" << "cannot locate unit : " << itpck.Key()->ToCString() << endm;
SetFailed();
okexec = Standard_False;
}
}
}
else {
- ErrorMsg << "WOKDeliv_DeliveryCopy::Execute" << "Cannot find delivery : " << myList->GetName()->ToCString() << endm;
+ ErrorMsg() << "WOKDeliv_DeliveryCopy::Execute" << "Cannot find delivery : " << myList->GetName()->ToCString() << endm;
}
}
if (okexec) {
Handle(WOKernel_DevUnit) thesourceunit = Locator()->LocateDevUnit(itpck.Key());
if (thesourceunit.IsNull()) {
okexec = Standard_False;
- ErrorMsg << "WOKDeliv_DeliveryDATA::Execute" << "Cannot locate unit : " << itpck.Key()->ToCString() << endm;
+ ErrorMsg() << "WOKDeliv_DeliveryDATA::Execute" << "Cannot locate unit : " << itpck.Key()->ToCString() << endm;
}
else {
if (WOKernel_IsFrontal(thesourceunit)) {
Handle(WOKernel_DevUnit) thesourceunit = Locator()->LocateDevUnit(SubCode());
if (thesourceunit.IsNull()) {
okexec = Standard_False;
- ErrorMsg << "WOKDeliv_DeliveryDATA::Execute"
+ ErrorMsg() << "WOKDeliv_DeliveryDATA::Execute"
<< "Cannot locate unit : " << SubCode() << endm;
}
else {
Handle(EDL_API) anapi = new EDL_API();
anapi->AddVariable("%MYVAR",reseval->ToCString());
if (anapi->OpenFile("MYFILE",filescript->Path()->Name()->ToCString()) != EDL_NORMAL) {
- ErrorMsg << "WOKDeliv_DeliveryDATA::Execute"
+ ErrorMsg() << "WOKDeliv_DeliveryDATA::Execute"
<< "Cannot open file " << filescript->Path()->Name() << endm;
okexec = Standard_False;
}
anapi->AddVariable("%MYVAR",reseval->ToCString());
if (anapi->OpenFile("MYFILECCL",filescript->Path()->Name()->ToCString()) != EDL_NORMAL) {
- ErrorMsg << "WOKDeliv_DeliveryDATA::Execute"
+ ErrorMsg() << "WOKDeliv_DeliveryDATA::Execute"
<< "Cannot open file " << filescript->Path()->Name() << endm;
okexec = Standard_False;
}
anapi->AddVariable("%MYVAR",bineval->ToCString());
if (anapi->OpenFile("MYFILEBIN",filescript->Path()->Name()->ToCString()) != EDL_NORMAL) {
- ErrorMsg << "WOKDeliv_DeliveryDATA::Execute"
+ ErrorMsg() << "WOKDeliv_DeliveryDATA::Execute"
<< "Cannot open file " << filescript->Path()->Name() << endm;
okexec = Standard_False;
}
}
Handle(WOKMake_HSequenceOfOutputFile) thefiles = thestep->OutputFileList();
if (thefiles.IsNull()) {
- ErrorMsg << "WOKDeliv_DeliveryDATA::Execute"
+ ErrorMsg() << "WOKDeliv_DeliveryDATA::Execute"
<< "Step " << namestep << " not done for unit " << thesourceunit->Name() << endm;
okexec = Standard_False;
}
Handle(WOKernel_DevUnit) thesourceunit = Locator()->LocateDevUnit(itpck.Key());
if (thesourceunit.IsNull()) {
okexec = Standard_False;
- ErrorMsg << "WOKDeliv_DeliveryLIB::Execute" << "Cannot locate unit : " << itpck.Key()->ToCString() << endm;
+ ErrorMsg() << "WOKDeliv_DeliveryLIB::Execute" << "Cannot locate unit : " << itpck.Key()->ToCString() << endm;
}
else {
if (IsAvailable(thesourceunit)) {
Handle(WOKernel_DevUnit) thesourceunit = Locator()->LocateDevUnit(nameunit);
if (thesourceunit.IsNull()) {
- ErrorMsg << "WOKDeliv_DeliveryExecList::Execute"
+ ErrorMsg() << "WOKDeliv_DeliveryExecList::Execute"
<< "Cannot locate DevUnit : " << nameunit << endm;
return Standard_False;
}
thesourceunit->Open();
Handle(TCollection_HAsciiString) name = SubCode()->Token("_",2);
WOK_TRACE {
- VerboseMsg("WOK_DELIV") << "WOKDeliv_DeliveryExecList"
+ VerboseMsg()("WOK_DELIV") << "WOKDeliv_DeliveryExecList"
<< "Treating : " << nameunit << " exec : " << name << endm;
}
}
if (thestep.IsNull()) {
- ErrorMsg << "WOKDeliv_DeliveryExecList::TreatDynamic"
+ ErrorMsg() << "WOKDeliv_DeliveryExecList::TreatDynamic"
<< "Enable to find linking step for unit : " << nameunit;
if (!name.IsNull()) {
- ErrorMsg << " for executable : " << name;
+ ErrorMsg() << " for executable : " << name;
}
- ErrorMsg << endm;
+ ErrorMsg() << endm;
return Standard_False;
}
Handle(TCollection_HAsciiString) nameunit = SubCode()->Token("_",1);
Handle(WOKernel_DevUnit) thesourceunit = Locator()->LocateDevUnit(nameunit);
if (thesourceunit.IsNull()) {
- ErrorMsg << "WOKDeliv_DeliveryExecList::Execute"
+ ErrorMsg() << "WOKDeliv_DeliveryExecList::Execute"
<< "Cannot locate DevUnit : " << nameunit << endm;
return Standard_False;
}
namedat,
Handle(TCollection_HAsciiString) ());
if (thestep.IsNull()) {
- ErrorMsg << "WOKDeliv_DeliveryExecList::Execute"
+ ErrorMsg() << "WOKDeliv_DeliveryExecList::Execute"
<< "Step " << namedat << " not done for unit " << nameunit << endm;
return Standard_False;
}
Handle(WOKMake_HSequenceOfOutputFile) thefiles = thestep->OutputFileList();
if (thefiles.IsNull()) {
- ErrorMsg << "WOKDeliv_DeliveryExecList::Execute"
+ ErrorMsg() << "WOKDeliv_DeliveryExecList::Execute"
<< "Step " << namedat << " unprocessed for unit " << nameunit << endm;
return Standard_False;
}
namell,
Handle(TCollection_HAsciiString) ());
if (thestep.IsNull()) {
- ErrorMsg << "WOKDeliv_DeliveryExecList::Execute"
+ ErrorMsg() << "WOKDeliv_DeliveryExecList::Execute"
<< "Step " << namell << " not done for unit " << nameunit << endm;
return Standard_False;
}
thefiles = thestep->OutputFileList();
if (thefiles.IsNull()) {
- ErrorMsg << "WOKDeliv_DeliveryExecList::Execute"
+ ErrorMsg() << "WOKDeliv_DeliveryExecList::Execute"
<< "Step " << namell << " unprocessed for unit " << nameunit << endm;
return Standard_False;
}
namesexec,
Handle(TCollection_HAsciiString) ());
if (themstep.IsNull()) {
- ErrorMsg << "WOKDeliv_DeliveryExecList::Execute"
+ ErrorMsg() << "WOKDeliv_DeliveryExecList::Execute"
<< "Cannot find linking step for DevUnit : " << thesourceunit->Name() << endm;
return Standard_False;
}
namesexec,
Handle(TCollection_HAsciiString) ());
if (theexecstep.IsNull()) {
- ErrorMsg << "WOKDeliv_DeliveryExecList::Execute"
+ ErrorMsg() << "WOKDeliv_DeliveryExecList::Execute"
<< "Cannot find linking step for DevUnit : " << thesourceunit->Name() << endm;
return Standard_False;
}
}
}
else {
- ErrorMsg << "WOKDeliv_DeliveryFiles::Execute" << "Cannot find delivery : " << myList->GetName()->ToCString() << endm;
+ ErrorMsg() << "WOKDeliv_DeliveryFiles::Execute" << "Cannot find delivery : " << myList->GetName()->ToCString() << endm;
}
}
if (okexec) {
while (itget.More()) {
Handle(WOKernel_File) thefile = Locator()->Locate(itget.Key());
if (thefile.IsNull()) {
- ErrorMsg << "WOKDeliv_DeliveryGET::Execute"
+ ErrorMsg() << "WOKDeliv_DeliveryGET::Execute"
<< "cannot locate file " << itget.Key() << endm;
okexec = Standard_False;
}
if (first <= 1) {
Handle(TCollection_HAsciiString) filenameFILES = thesourceunit->Params().Eval("%FILENAME_FILES");
if (strcmp(filenameFILES->ToCString(),astr->ToCString())) {
- ErrorMsg << "WOKDeliv_DeliveryGET::Execute"
+ ErrorMsg() << "WOKDeliv_DeliveryGET::Execute"
<< "No type specified for file " << astr << " in unit " << thesourceunit->Name() << endm;
okexec = Standard_False;
}
Handle(WOKernel_File) thefile = Locator()->Locate(thesourceunit->Name(),type,name);
if (thefile.IsNull()) {
- ErrorMsg << "WOKDeliv_DeliveryGET::Execute"
+ ErrorMsg() << "WOKDeliv_DeliveryGET::Execute"
<< "cannot locate file " << name << endm;
okexec = Standard_False;
}
}
}
else {
- ErrorMsg << "WOKDeliv_DeliveryGET::Execute" << "cannot find file FILES in resource unit " << thesourceunit->Name() << endm;
+ ErrorMsg() << "WOKDeliv_DeliveryGET::Execute" << "cannot find file FILES in resource unit " << thesourceunit->Name() << endm;
okexec = Standard_False;
}
}
Handle(WOKernel_DevUnit) thesourceunit = Locator()->LocateDevUnit(itpck.Key());
if (thesourceunit.IsNull()) {
okexec = Standard_False;
- ErrorMsg << "WOKDeliv_DeliveryLIB::Execute" << "Cannot locate unit : " << itpck.Key()->ToCString() << endm;
+ ErrorMsg() << "WOKDeliv_DeliveryLIB::Execute" << "Cannot locate unit : " << itpck.Key()->ToCString() << endm;
}
else {
if (IsAvailable(thesourceunit)) {
Handle(WOKernel_DevUnit) thesourceunit = Locator()->LocateDevUnit(SubCode());
if (thesourceunit.IsNull()) {
okexec = Standard_False;
- ErrorMsg << "WOKDeliv_DeliveryLIB::Execute" << "Cannot locate unit : " << SubCode() << endm;
+ ErrorMsg() << "WOKDeliv_DeliveryLIB::Execute" << "Cannot locate unit : " << SubCode() << endm;
}
else {
// Find file ImplDep
PACKAGESname);
if (filepack.IsNull()) {
okexec = Standard_False;
- ErrorMsg << "WOKDeliv_DeliveryLIB::Execute"
+ ErrorMsg() << "WOKDeliv_DeliveryLIB::Execute"
<< "Cannot locate file PACKAGES for Toolkit " << thesourceunit->Name()
<< endm;
}
}
}
else {
- ErrorMsg << "WOKDeliv_DeliveryCDL::Execute" << "Cannot find delivery : " << myList->GetName()->ToCString() << endm;
+ ErrorMsg() << "WOKDeliv_DeliveryCDL::Execute" << "Cannot find delivery : " << myList->GetName()->ToCString() << endm;
}
}
else {
Handle(WOKMake_HSequenceOfOutputFile) thefiles = thestep->OutputFileList();
if (thefiles.IsNull()) {
- ErrorMsg << "WOKDeliv_DeliveryLIB::Execute"
+ ErrorMsg() << "WOKDeliv_DeliveryLIB::Execute"
<< "Step " << thestep->Code() << " unprocessed for unit "
<< thestep->Unit()->Name() << endm;
}
for (Standard_Integer i=1; i<= thefiles->Length(); i++) {
Handle(WOKernel_File) theinfile = thefiles->Value(i)->File();
if (theinfile.IsNull()) {
- ErrorMsg << "WOKDeliv_DeliveryLIB::Execute"
+ ErrorMsg() << "WOKDeliv_DeliveryLIB::Execute"
<< "Null file for output file : " << thefiles->Value(i)->ID() << endm;
}
else {
PACKAGESname);
if (filepack.IsNull()) {
okexec = Standard_False;
- ErrorMsg << "WOKDeliv_DeliveryListShared::Execute"
+ ErrorMsg() << "WOKDeliv_DeliveryListShared::Execute"
<< "Cannot locate file PACKAGES for Toolkit " << thesourceunit->Name()
<< endm;
}
WOKDeliv_Delivery_CloseFile();
}
else {
- ErrorMsg << "WOKDeliv_DeliveryMetaStep::Parse" << "Error getting file COMPONENTS" << endm;
+ ErrorMsg() << "WOKDeliv_DeliveryMetaStep::Parse" << "Error getting file COMPONENTS" << endm;
SetFailed();
}
}
else {
- ErrorMsg << "WOKDeliv_DeliveryMetaStep::Parse" << "Error locating file COMPONENTS" << endm;
+ ErrorMsg() << "WOKDeliv_DeliveryMetaStep::Parse" << "Error locating file COMPONENTS" << endm;
SetFailed();
}
return dlist;
Handle(WOKernel_DevUnit) thesourceunit = Locator()->LocateDevUnit(itpck.Key());
if (thesourceunit.IsNull()) {
okexec = Standard_False;
- ErrorMsg << "WOKDeliv_DeliveryOBJSSchema::Execute" << "Cannot locate unit : " << itpck.Key()->ToCString() << endm;
+ ErrorMsg() << "WOKDeliv_DeliveryOBJSSchema::Execute" << "Cannot locate unit : " << itpck.Key()->ToCString() << endm;
SetFailed();
}
else {
if (!thestep.IsNull()) {
Handle(WOKMake_HSequenceOfOutputFile) thefiles = thestep->OutputFileList();
if (thefiles.IsNull()) {
- ErrorMsg << "WOKDeliv_DeliveryOBJSSchema::Execute"
+ ErrorMsg() << "WOKDeliv_DeliveryOBJSSchema::Execute"
<< "Step " << namestep << " not done for unit " << thesourceunit->Name() << endm;
okexec = Standard_False;
}
}
}
else {
- ErrorMsg << "WOKDeliv_DeliveryOBJSSchema::Execute" << "Cannot find delivery : " << myList->GetName()->ToCString() << endm;
+ ErrorMsg() << "WOKDeliv_DeliveryOBJSSchema::Execute" << "Cannot find delivery : " << myList->GetName()->ToCString() << endm;
okexec = Standard_False;
}
}
Handle(WOKernel_DevUnit) thesourceunit = Locator()->LocateDevUnit(itpck.Key());
if (thesourceunit.IsNull()) {
okexec = Standard_False;
- ErrorMsg << "WOKDeliv_DeliverySOURCE::Execute" << "Cannot locate unit : " << itpck.Key()->ToCString() << endm;
+ ErrorMsg() << "WOKDeliv_DeliverySOURCE::Execute" << "Cannot locate unit : " << itpck.Key()->ToCString() << endm;
}
else {
thesourceunit->Open();
Handle(WOKernel_DevUnit) thesourceunit = Locator()->LocateDevUnit(SubCode());
if (thesourceunit.IsNull()) {
okexec = Standard_False;
- ErrorMsg << "WOKDeliv_DeliverySOURCE::Execute" << "Cannot locate unit : " << SubCode() << endm;
+ ErrorMsg() << "WOKDeliv_DeliverySOURCE::Execute" << "Cannot locate unit : " << SubCode() << endm;
}
else {
Handle(WOKMake_InputFile) infileCOMPONENTS = GetInFileCOMPONENTS();
atype,
aname);
if (afile.IsNull()) {
- ErrorMsg << "WOKDeliv_DeliverySOURCE::Execute"
+ ErrorMsg() << "WOKDeliv_DeliverySOURCE::Execute"
<< "Enable to locate source file " << astr << endm;
okexec = Standard_False;
}
Handle(WOKernel_DevUnit) thesourceunit = Locator()->LocateDevUnit(itpck.Key());
if (thesourceunit.IsNull()) {
okexec = Standard_False;
- ErrorMsg << "WOKDeliv_DeliverySTUBClient::Execute" << "Cannot locate unit : " << itpck.Key()->ToCString() << endm;
+ ErrorMsg() << "WOKDeliv_DeliverySTUBClient::Execute" << "Cannot locate unit : " << itpck.Key()->ToCString() << endm;
}
else {
if (WOKernel_IsClient(thesourceunit)) {
Handle(WOKernel_DevUnit) thesourceunit = Locator()->LocateDevUnit(SubCode());
if (thesourceunit.IsNull()) {
okexec = Standard_False;
- ErrorMsg << "WOKDeliv_DeliveryClient::Execute" << "Cannot locate unit : " << SubCode() << endm;
+ ErrorMsg() << "WOKDeliv_DeliveryClient::Execute" << "Cannot locate unit : " << SubCode() << endm;
}
else {
Handle(WOKBuilder_Entity) bidon;
if (!thestep.IsNull()) {
Handle(WOKMake_HSequenceOfOutputFile) thefiles = thestep->OutputFileList();
if (thefiles.IsNull()) {
- ErrorMsg << "WOKDeliv_DeliverySTUBClient::Execute"
+ ErrorMsg() << "WOKDeliv_DeliverySTUBClient::Execute"
<< "Step " << namestep << " not done for unit " << thesourceunit->Name() << endm;
okexec = Standard_False;
}
}
}
else {
- ErrorMsg << "WOKDeliv_DeliverySTUBClient::Execute" << "Cannot find delivery : " << myList->GetName()->ToCString() << endm;
+ ErrorMsg() << "WOKDeliv_DeliverySTUBClient::Execute" << "Cannot find delivery : " << myList->GetName()->ToCString() << endm;
okexec = Standard_False;
}
}
if (!thestep.IsNull()) {
Handle(WOKMake_HSequenceOfOutputFile) thefiles = thestep->OutputFileList();
if (thefiles.IsNull()) {
- ErrorMsg << "WOKDeliv_DeliveryShared::Execute"
+ ErrorMsg() << "WOKDeliv_DeliveryShared::Execute"
<< "Step " << thestep->Code() << " unprocessed for unit "
<< thesourceunit->Name() << endm;
}
WOKDeliv_Delivery_CloseFile();
}
else {
- ErrorMsg << "WOKDeliv_DeliveryStep::Parse" << "Error getting file COMPONENTS" << endm;
+ ErrorMsg() << "WOKDeliv_DeliveryStep::Parse" << "Error getting file COMPONENTS" << endm;
SetFailed();
}
}
else {
- ErrorMsg << "WOKDeliv_DeliveryStep::Parse" << "Error locating file COMPONENTS" << endm;
+ ErrorMsg() << "WOKDeliv_DeliveryStep::Parse" << "Error locating file COMPONENTS" << endm;
SetFailed();
}
return dlist;
tocopy = !fromP->IsSameFile(toP);
if (!tocopy && !silent) {
WOK_TRACE {
- VerboseMsg("WOK_DELIV") << "WOKDeliv_DeliveryStep::CopyAFile"
+ VerboseMsg()("WOK_DELIV") << "WOKDeliv_DeliveryStep::CopyAFile"
<< "Identical file : " << fromP->Name() << " not copied." << endm;
}
}
ashell->Execute(thecomm);
if (ashell->Status() == 0) {
if (!silent) {
- InfoMsg << "WOKDeliv_DeliveryStep::CopyAFile"
+ InfoMsg() << "WOKDeliv_DeliveryStep::CopyAFile"
<< fromP->Name() << " copied to " << toP->Name() << endm;
}
ashell->ClearOutput();
return Standard_True;
}
- ErrorMsg << "WOKDeliv_DeliveryStep::CopyAFile"
+ ErrorMsg() << "WOKDeliv_DeliveryStep::CopyAFile"
<< "Error occured in shell while copying " << fromP->Name() << " to " << toP->Name() << endm;
Handle(TColStd_HSequenceOfHAsciiString) aseq = ashell->Errors();
for(Standard_Integer i=1; i<= aseq->Length(); i++) {
- ErrorMsg << "WOKDeliv_DeliveryStep::CopyAFile"
+ ErrorMsg() << "WOKDeliv_DeliveryStep::CopyAFile"
<< aseq->Value(i) << endm;
}
ashell->ClearOutput();
Handle(WOKernel_Locator) theloc = DefineLocator();
Handle(WOKernel_DevUnit) theunit = theloc->LocateDevUnit(aname);
if (theunit.IsNull()) {
- ErrorMsg << "WOKDeliv_DeliveryStep::GetFullParcelName" << "cannot locate delivery " << aname->ToCString() << endm;
+ ErrorMsg() << "WOKDeliv_DeliveryStep::GetFullParcelName" << "cannot locate delivery " << aname->ToCString() << endm;
return 0;
}
Handle(WOKernel_UnitNesting) theNesting = Unit()->Session()->GetUnitNesting(theunit->Nesting());
}
}
else {
- ErrorMsg << "WOKDeliv_DeliveryStep::DefineLocator" << "Error while parsing file COMPONENTS for unit " << theunit->Name()->ToCString() << endm;
+ ErrorMsg() << "WOKDeliv_DeliveryStep::DefineLocator" << "Error while parsing file COMPONENTS for unit " << theunit->Name()->ToCString() << endm;
}
}
}
Handle(WOKUtils_Path) oldpath = afile->LastPath();
if (oldpath.IsNull()) return Standard_False;
oldpath->RemoveFile();
- InfoMsg << "WOKDeliv_DeliveryStep"
+ InfoMsg() << "WOKDeliv_DeliveryStep"
<< "Remove file " << oldpath->Name() << endm;
return Standard_True;
if(atempl.IsNull())
{
- WarningMsg << "WOKDeliv_DeliveryStep::HandleOutputFile"
+ WarningMsg() << "WOKDeliv_DeliveryStep::HandleOutputFile"
<< "Could not determine Del action for type : " << afile->File()->TypeName() << endm;
ashell->UnLock();
return Standard_False;
if(! Unit()->Params().IsSet(atempl->ToCString()))
{
- ErrorMsg << "WOKDeliv_DeliveryStep::HandleOutputFile"
+ ErrorMsg() << "WOKDeliv_DeliveryStep::HandleOutputFile"
<< "Could not eval Del action (" << atempl << ") for type : " << afile->File()->TypeName() << endm;
ashell->UnLock();
return Standard_False;
if(!acmd.IsNull())
{
- InfoMsg << "WOKDeliv_DeliveryStep::HandleOutputFile"
+ InfoMsg() << "WOKDeliv_DeliveryStep::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 << "WOKDeliv_DeliveryStep::HandleOutputFile" << "Errors occured in Shell" << endm;
- ErrorMsg.DontPrintHeader();
+ ErrorMsg() << "WOKDeliv_DeliveryStep::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 << "WOKDeliv_DeliveryStep::HandleOutputFile"
+ WarningMsg() << "WOKDeliv_DeliveryStep::HandleOutputFile"
<< "Disappeared File (" << afile->File()->UserPathName() << ") does not exists " << endm;
}
}
Handle(WOKernel_DevUnit) thesourceunit = Locator()->LocateDevUnit(itpck.Key());
if (thesourceunit.IsNull()) {
okexec = Standard_False;
- ErrorMsg << "WOKDeliv_DeliveryStepList::Execute" << "Cannot locate unit : " << itpck.Key()->ToCString() << endm;
+ ErrorMsg() << "WOKDeliv_DeliveryStepList::Execute" << "Cannot locate unit : " << itpck.Key()->ToCString() << endm;
SetFailed();
}
else {
thestep->Make();
Handle(WOKMake_HSequenceOfOutputFile) thefiles = thestep->OutputFileList();
if (thefiles.IsNull()) {
- ErrorMsg << "WOKDeliv_DeliveryStepList::Execute"
+ ErrorMsg() << "WOKDeliv_DeliveryStepList::Execute"
<< "Step " << namestep << " not done for unit " << thesourceunit->Name() << endm;
okexec = Standard_False;
}
}
}
else {
- ErrorMsg << "WOKDeliv_DeliveryStepList::Execute" << "Cannot find delivery : " << myList->GetName()->ToCString() << endm;
+ ErrorMsg() << "WOKDeliv_DeliveryStepList::Execute" << "Cannot find delivery : " << myList->GetName()->ToCString() << endm;
}
}
if (okexec) {
Handle(TCollection_HAsciiString) thes = new TCollection_HAsciiString(s);
getunit->AssignCat(thes);
if (!thelist->ChangeMap().Add(getunit)) {
- WarningMsg << "WOKDeliv_ParseDelivery" << " Get "
+ WarningMsg() << "WOKDeliv_ParseDelivery" << " Get "
<< getunit->ToCString() << " already sent" << endm;
}
}
if (goandtreat) {
Handle(TCollection_HAsciiString) thes = new TCollection_HAsciiString(s);
if (!thelist->ChangeRequireMap().Add(thes)) {
- WarningMsg << "WOKDeliv_ParseDelivery" << " Requires "
+ WarningMsg() << "WOKDeliv_ParseDelivery" << " Requires "
<< s << " already sent" << endm;
}
}
}
if (doit) {
if (!thelist->ChangeMap().Add(curunit)) {
- WarningMsg << "WOKDeliv_ParseDelivery" << " Unit "
+ WarningMsg() << "WOKDeliv_ParseDelivery" << " Unit "
<< curunit->ToCString() << " already sent" << endm;
}
}
int DELIVERYerror(char* msg)
{
if (msg == NULL) {
- ErrorMsg << "ParseCOMPONENTS" << "COMPONENTS, line " << DELIVERYlineno << " : syntax error..." << endm;
+ ErrorMsg() << "ParseCOMPONENTS" << "COMPONENTS, line " << DELIVERYlineno << " : syntax error..." << endm;
}
else {
- ErrorMsg << "ParseCOMPONENTS" << "COMPONENTS, line " << DELIVERYlineno << " : " << msg << endm;
+ ErrorMsg() << "ParseCOMPONENTS" << "COMPONENTS, line " << DELIVERYlineno << " : " << msg << endm;
}
ErrorEncoutered = 1;
return 1;
void WOKDeliv_DeliveryList_Dump(const Handle(WOKDeliv_DeliveryList)& alist)
{
- InfoMsg << "Dump of DeliveryList" << endm;
- InfoMsg << "Name" << endm;
- InfoMsg << alist->GetName()->ToCString() << endm;
- InfoMsg << "Requires" << endm;
+ InfoMsg() << "Dump of DeliveryList" << endm;
+ InfoMsg() << "Name" << endm;
+ InfoMsg() << alist->GetName()->ToCString() << endm;
+ InfoMsg() << "Requires" << endm;
WOKTools_MapIteratorOfMapOfHAsciiString it1(alist->GetRequireMap());
while (it1.More()) {
- InfoMsg << it1.Key()->ToCString() << endm;
+ InfoMsg() << it1.Key()->ToCString() << endm;
it1.Next();
}
- InfoMsg << "Content" << endm;
+ InfoMsg() << "Content" << endm;
WOKTools_MapIteratorOfMapOfHAsciiString it2(alist->GetMap());
while (it2.More()) {
- InfoMsg << it2.Key()->ToCString() << endm;
+ InfoMsg() << it2.Key()->ToCString() << endm;
it2.Next();
}
}