if(!abench.IsValid())
{
- ErrorMsg << "WOKAPI_BuildProcess::Init"
+ ErrorMsg() << "WOKAPI_BuildProcess::Init"
<< "Invalid workbench for build process init" << endm;
return myinit= Standard_False;
}
{
if(!myinit)
{
- ErrorMsg << "WOKAPI_BuildProcess::Add"
+ ErrorMsg() << "WOKAPI_BuildProcess::Add"
<< "Build process is not initialized" << endm;
return;
}
if(!ancien.IsNull() && nouveau.IsNull())
{
- WarningMsg << "WOKAPI_BuildProcess::Add"
+ WarningMsg() << "WOKAPI_BuildProcess::Add"
<< "Unit " << adevunit.Name() << " contains a " << umakename << " file and no " << stepsname << endm;
}
if(!adevunit.CheckDirs())
{
- WarningMsg << "WOKAPI_BuildProcess::Add"
+ WarningMsg() << "WOKAPI_BuildProcess::Add"
<< "Unit " << adevunit.Name() << " is missing directories : ignored" << endm;
}
else
}
else
{
- ErrorMsg << "WOKAPI_BuildProcess::Add"
+ ErrorMsg() << "WOKAPI_BuildProcess::Add"
<< "Development unit is invalid" << endm;
return;
}
{
if(!myinit)
{
- ErrorMsg << "WOKAPI_BuildProcess::Add"
+ ErrorMsg() << "WOKAPI_BuildProcess::Add"
<< "Build process is not initialized" << endm;
return;
}
if(!myinit)
{
- ErrorMsg << "WOKAPI_BuildProcess::Add"
+ ErrorMsg() << "WOKAPI_BuildProcess::Add"
<< "Build process is not initialized" << endm;
return 0;
}
if(!myinit)
{
- ErrorMsg << "WOKAPI_BuildProcess::Add"
+ ErrorMsg() << "WOKAPI_BuildProcess::Add"
<< "Build process is not initialized" << endm;
return 0;
}
const TColStd_SequenceOfHAsciiString& aseq = agrp->Steps();
if (aseq.IsEmpty()) {
- InfoMsg << "WOKAPI_BuildProcess::SelectOnGroups"
+ InfoMsg() << "WOKAPI_BuildProcess::SelectOnGroups"
<< "group " << groups.Value(j) << " is empty " << endm;
}
for(Standard_Integer i=1; i<=aseq.Length(); i++)
if(!myinit)
{
- ErrorMsg << "WOKAPI_BuildProcess::Add"
+ ErrorMsg() << "WOKAPI_BuildProcess::Add"
<< "Build process is not initialized" << endm;
return 0;
}
if(!myinit)
{
- ErrorMsg << "WOKAPI_BuildProcess::Add"
+ ErrorMsg() << "WOKAPI_BuildProcess::Add"
<< "Build process is not initialized" << endm;
return 0;
}
}
if(!endwasfound)
{
- ErrorMsg << "WOKAPI_BuildProcess::SelectOnSteps"
+ ErrorMsg() << "WOKAPI_BuildProcess::SelectOnSteps"
<< "Specified end step (" << aend << " was not found" << endm;
UnSelectAll();
return 0;
}
else
{
- ErrorMsg << "WOKAPI_BuildProcess::SelectOnSteps"
+ ErrorMsg() << "WOKAPI_BuildProcess::SelectOnSteps"
<< "Unit is invalid" << endm;
return 0;
}
{
if(!myinit)
{
- ErrorMsg << "WOKAPI_BuildProcess::Add"
+ ErrorMsg() << "WOKAPI_BuildProcess::Add"
<< "Build process is not initialized" << endm;
return 0;
}
{
if(!myinit)
{
- ErrorMsg << "WOKAPI_BuildProcess::SelectOnDefines"
+ ErrorMsg() << "WOKAPI_BuildProcess::SelectOnDefines"
<< "Build process is not initialized" << endm;
return 0;
}
if(!(amap.IsEmpty() || axmap.IsEmpty()) && !(types.IsEmpty() || xtypes.IsEmpty()))
{
- ErrorMsg << "WOKAPI_BuildProcess::SelectOnDefines"
+ ErrorMsg() << "WOKAPI_BuildProcess::SelectOnDefines"
<< "Cannot use Units or XUnits in conjunction with UnitTypes or XUnitTypes" << endm;
return 0;
}
if(asession.IsNull()) return;
- InfoMsg.DontPrintHeader();
+ InfoMsg().DontPrintHeader();
- InfoMsg << "WOKAPI_BuildProcess::PrintBanner" << "\n" << endm;
- InfoMsg << "WOKAPI_BuildProcess::PrintBanner"
+ InfoMsg() << "WOKAPI_BuildProcess::PrintBanner" << "\n" << endm;
+ InfoMsg() << "WOKAPI_BuildProcess::PrintBanner"
<< TIRETS << endm;
- InfoMsg << "WOKAPI_BuildProcess::PrintBanner"
+ InfoMsg() << "WOKAPI_BuildProcess::PrintBanner"
<< "Workbench : " << mybench.UserPath() << endm;
- InfoMsg << "WOKAPI_BuildProcess::PrintBanner"
+ InfoMsg() << "WOKAPI_BuildProcess::PrintBanner"
<< "Extraction mode : " << WOKernel_DBMSystem::GetName(asession->DBMSystem()) << endm;
- InfoMsg << "WOKAPI_BuildProcess::PrintBanner"
+ InfoMsg() << "WOKAPI_BuildProcess::PrintBanner"
<< "Station : " << WOKernel_Station::GetName(asession->Station()) << endm;
if(asession->DebugMode())
{
- InfoMsg << "WOKAPI_BuildProcess::PrintBanner"
+ InfoMsg() << "WOKAPI_BuildProcess::PrintBanner"
<< "Compile mode : Debug" << endm;
}
else
{
- InfoMsg << "WOKAPI_BuildProcess::PrintBanner"
+ InfoMsg() << "WOKAPI_BuildProcess::PrintBanner"
<< "Compile mode : Optimized" << endm;
}
- InfoMsg << "WOKAPI_BuildProcess::PrintBanner"
+ InfoMsg() << "WOKAPI_BuildProcess::PrintBanner"
<< "Step number : " << myselect << endm;
- InfoMsg << "WOKAPI_BuildProcess::PrintBanner"
+ InfoMsg() << "WOKAPI_BuildProcess::PrintBanner"
<< TIRETS << endm;
const WOKMake_DataMapOfHAsciiStringOfSequenceOfHAsciiString& units = myprocess->Units();
if(codes.Length())
{
- InfoMsg << "WOKAPI_BuildProcess::PrintBanner"
+ InfoMsg() << "WOKAPI_BuildProcess::PrintBanner"
<< "Unit : " << aunit.Type() << " " << aunit.Name() << endm;
if(codes.Length() > 1)
{
- InfoMsg << "WOKAPI_BuildProcess::PrintBanner"
+ InfoMsg() << "WOKAPI_BuildProcess::PrintBanner"
<< "Steps : " ;
}
else
{
- InfoMsg << "WOKAPI_BuildProcess::PrintBanner"
+ InfoMsg() << "WOKAPI_BuildProcess::PrintBanner"
<< "Step : " ;
}
if(len > WIDTH )
{
- InfoMsg << endm;
- InfoMsg << "WOKAPI_BuildProcess::PrintBanner" << " " ;
+ InfoMsg() << endm;
+ InfoMsg() << "WOKAPI_BuildProcess::PrintBanner" << " " ;
len = DEBUT;
}
- InfoMsg << code << " ";
+ InfoMsg() << code << " ";
}
- InfoMsg << endm;
- InfoMsg << "WOKAPI_BuildProcess::PrintBanner"
+ InfoMsg() << endm;
+ InfoMsg() << "WOKAPI_BuildProcess::PrintBanner"
<< TIRETS << endm;
}
}
anit.Next();
}
- InfoMsg.DoPrintHeader();
+ InfoMsg().DoPrintHeader();
return;
}
if(!anentity.IsValid())
{
- ErrorMsg << argv[0]
+ ErrorMsg() << argv[0]
<< "Could not move to entity : " << apath << endm;
return 1;
}
if(!theent.IsValid())
{
- ErrorMsg << argv[0] << "Could not determine entity to operate on." << endm;
+ ErrorMsg() << argv[0] << "Could not determine entity to operate on." << endm;
return 1;
}
{
if(filename.IsNull())
{
- ErrorMsg << argv[0] << "Missing file name for test environnement settings" << endm;
+ ErrorMsg() << argv[0] << "Missing file name for test environnement settings" << endm;
return 1;
}
if(format.IsNull())
{
- ErrorMsg << argv[0] << "Missing format for test environnement settings" << endm;
+ ErrorMsg() << argv[0] << "Missing format for test environnement settings" << endm;
return 1;
}
if(theent.GetEnvActions(asession, actions))
{
- ErrorMsg << argv[0]
+ ErrorMsg() << argv[0]
<< "Could not obtain informations for test environnement" << endm;
return 1;
}
if(!stream.good())
{
- ErrorMsg << argv[0]
+ ErrorMsg() << argv[0]
<< "Could not open " << filename << " for writing" << endm;
return 1;
}
if(getprof)
{
- InfoMsg << argv[0] << "Profile in : " << asession.GetCWEntity().UserPath() << endm;
- InfoMsg << argv[0] << endm;
- InfoMsg << argv[0] << "Extractor : " << asession.DBMSystem() << endm;
+ InfoMsg() << argv[0] << "Profile in : " << asession.GetCWEntity().UserPath() << endm;
+ InfoMsg() << argv[0] << endm;
+ InfoMsg() << argv[0] << "Extractor : " << asession.DBMSystem() << endm;
if(asession.DebugMode())
{
- InfoMsg << argv[0] << "Compile Mode : Debug" << endm;
+ InfoMsg() << argv[0] << "Compile Mode : Debug" << endm;
}
else
{
- InfoMsg << argv[0] << "Compile Mode : Optimized" << endm;
+ InfoMsg() << argv[0] << "Compile Mode : Optimized" << endm;
}
- InfoMsg << argv[0] << "Station Type : " << asession.Station() << endm;
+ InfoMsg() << argv[0] << "Station Type : " << asession.Station() << endm;
return 0;
}
return 0;
if(!theent.IsValid())
{
- ErrorMsg << argv[0] << "Could not determine entity to operate on." << endm;
+ ErrorMsg() << argv[0] << "Could not determine entity to operate on." << endm;
return 1;
}
if(result.IsNull())
{
- ErrorMsg << argv[0] << "Could not eval " << aoptarg << " in " << theent.UserPath() << endm;
+ ErrorMsg() << argv[0] << "Could not eval " << aoptarg << " in " << theent.UserPath() << endm;
return 1;
}
if(result.IsNull())
{
- ErrorMsg << argv[0] << "No value for " << aoptarg << " in " << theent.UserPath() << endm;
+ ErrorMsg() << argv[0] << "No value for " << aoptarg << " in " << theent.UserPath() << endm;
return 1;
}
if(!theent.IsValid())
{
- ErrorMsg << argv[0] << "Invalid Entity specification" << endm;
+ ErrorMsg() << argv[0] << "Invalid Entity specification" << endm;
return 1;
}
{
if(!theent.IsFileType(aoptarg))
{
- ErrorMsg << argv[0] << aoptarg << " is not a valid type for entity : " << theent.UserPath() << endm;
+ ErrorMsg() << argv[0] << aoptarg << " is not a valid type for entity : " << theent.UserPath() << endm;
return 1;
}
returns.AddStringValue(theent.GetFileTypeDefinition(aoptarg));
{
if(!theent.IsFileType(aoptarg))
{
- ErrorMsg << argv[0] << aoptarg << " is not a valid type for entity : " << theent.UserPath() << endm;
+ ErrorMsg() << argv[0] << aoptarg << " is not a valid type for entity : " << theent.UserPath() << endm;
return 1;
}
if(!theent.IsFileType(type))
{
- ErrorMsg << argv[0] << aoptarg << " is not a valid type for entity : " << theent.UserPath() << endm;
+ ErrorMsg() << argv[0] << aoptarg << " is not a valid type for entity : " << theent.UserPath() << endm;
return 1;
}
{
if(!theent.IsFileType(aoptarg))
{
- ErrorMsg << argv[0] << aoptarg << " is not a valid type for entity : " << theent.UserPath() << endm;
+ ErrorMsg() << argv[0] << aoptarg << " is not a valid type for entity : " << theent.UserPath() << endm;
return 1;
}
if(theent.IsFileTypeFileDependent(aoptarg))
{
- ErrorMsg << argv[0] << aoptarg << " is a FileDependant type for entity : " << theent.UserPath() << endm;
+ ErrorMsg() << argv[0] << aoptarg << " is a FileDependant type for entity : " << theent.UserPath() << endm;
return 1;
}
returns.AddStringValue(theent.GetFilePath(aoptarg));
if(!nesting.IsValid())
{
- ErrorMsg << argv[0] << "Could not obtain nesting of " << theent.UserPath() << endm;
+ ErrorMsg() << argv[0] << "Could not obtain nesting of " << theent.UserPath() << endm;
return 1;
}
if(!theent.IsValid())
{
- ErrorMsg << argv[0] << "Invalid Entity specification" << endm;
+ ErrorMsg() << argv[0] << "Invalid Entity specification" << endm;
return 1;
}
theent.Close();
if(!bench.IsValid())
{
- ErrorMsg << argv[0]
+ ErrorMsg() << argv[0]
<< "Could not determine visibility : Specify workbench in command line or use wokcd" << endm;
return 1;
}
}
else
{
- ErrorMsg << argv[0]
+ ErrorMsg() << argv[0]
<< "Option -V not yet implemented : use Workbench to determine visibility" << endm;
return 1;
}
if(!afact.IsValid())
{
- ErrorMsg << argv[0]
+ ErrorMsg() << argv[0]
<< "Could not determine factory : Specify factory in command line or use wokcd" << endm;
return 1;
}
switch(opts.Option())
{
case 'R':
- ErrorMsg << "WOKAPI_Command::FactoryDestroy" << "-R not yet implemented" << endm;
+ ErrorMsg() << "WOKAPI_Command::FactoryDestroy" << "-R not yet implemented" << endm;
return 1;
default:
break;
if(!afact.IsValid())
{
- ErrorMsg << "WOKAPI_Command::FactoryDestroy"
+ ErrorMsg() << "WOKAPI_Command::FactoryDestroy"
<< "Could not determine factory : Specify factory in command line or use wokcd" << endm;
return 1;
}
if(!aparcel.IsValid())
{
- ErrorMsg << "WOKAPI_Command::WarehouseInfo"
+ ErrorMsg() << "WOKAPI_Command::WarehouseInfo"
<< "Could not determine Warehouse : Specify Warehouse in command line or use wokcd" << endm;
return 1;
}
if(thestep.IsNull())
{
- ErrorMsg << argv[0]
+ ErrorMsg() << argv[0]
<< "No Tiggered Step currently in run" << endm;
- ErrorMsg << argv[0]
+ ErrorMsg() << argv[0]
<< argv[0] << " can only be called during a umake process" << endm;
return 1;
}
if(file.IsNull())
{
- ErrorMsg << argv[0]
+ ErrorMsg() << argv[0]
<< "Cannot locate file (locateable and physical) : " << anid
<< " while processing " << thestep->Unit()->UserPathName() << endm;
return 1;
}
else
{
- WarningMsg << argv[0]
+ WarningMsg() << argv[0]
<< "Ingnoring given path for locateable physical file" << endm;
}
}
if(thestep.IsNull())
{
- ErrorMsg << argv[0]
+ ErrorMsg() << argv[0]
<< "No Tiggered Step currently in run" << endm;
- ErrorMsg << argv[0]
+ ErrorMsg() << argv[0]
<< argv[0] << " can only be called during a umake process" << endm;
return 1;
}
if(infile.IsNull())
{
- ErrorMsg << argv[0]
+ ErrorMsg() << argv[0]
<< anid << " is not an input of step " << thestep->Code() << endm;
return 1;
}
}
else
{
- ErrorMsg << argv[0]
+ ErrorMsg() << argv[0]
<< "Cannot obtain path for ID : " << anid << endm;
return 1;
}
if(thestep.IsNull())
{
- ErrorMsg << argv[0]
+ ErrorMsg() << argv[0]
<< "No Tiggered Step currently in run" << endm;
- ErrorMsg << argv[0]
+ ErrorMsg() << argv[0]
<< argv[0] << " can only be called during a umake process" << endm;
return 1;
}
if(file.IsNull())
{
- ErrorMsg << argv[0]
+ ErrorMsg() << argv[0]
<< "Cannot locate file (locateable and physical) : " << anid
<< " while processing " << thestep->Unit()->UserPathName() << endm;
return 1;
}
else
{
- WarningMsg << argv[0]
+ WarningMsg() << argv[0]
<< "Ingnoring given path for locateable physical file" << endm;
}
}
if(thestep.IsNull())
{
- ErrorMsg << argv[0]
+ ErrorMsg() << argv[0]
<< "No Tiggered Step currently in run" << endm;
- ErrorMsg << argv[0]
+ ErrorMsg() << argv[0]
<< argv[0] << " can only be called during a umake process" << endm;
return 1;
}
if(infile.IsNull())
{
- ErrorMsg << argv[0]
+ ErrorMsg() << argv[0]
<< anid << " is not an Output of step " << thestep->Code() << endm;
return 1;
}
}
else
{
- ErrorMsg << argv[0]
+ ErrorMsg() << argv[0]
<< "Cannot obtain path for ID : " << anid << endm;
return 1;
}
if(thestep.IsNull())
{
- ErrorMsg << argv[0]
+ ErrorMsg() << argv[0]
<< "No Tiggered Step currently in run" << endm;
- ErrorMsg << argv[0]
+ ErrorMsg() << argv[0]
<< argv[0] << " can only be called during a umake process" << endm;
return 1;
}
if(infile.IsNull())
{
- ErrorMsg << argv[0]
+ ErrorMsg() << argv[0]
<< "Input file ID : " << inid << " is not an input of this step" << endm;
return 1;
}
if(outfile.IsNull())
{
- ErrorMsg << argv[0]
+ ErrorMsg() << argv[0]
<< "Output file ID : " << outid << " is not an output of this step" << endm;
return 1;
}
if(typecode != 0 && !typesstr.IsNull())
{
- ErrorMsg << argv[0]
+ ErrorMsg() << argv[0]
<< "Option -T cannot be used in conjunction with type key!" << endm;
return 1;
}
if(aprev.IsValid())
{
typecode = aprev.TypeKey();
- InfoMsg << argv[0]
+ InfoMsg() << argv[0]
<< "No type specified : using type of " << aprev.UserPath() << " : " << aprev.Type() << " (eq : ucreate -" << typecode << ")" << endm;
}
else
{
- InfoMsg << argv[0]
+ InfoMsg() << argv[0]
<< "No type specified : using package (eq : ucreate -p)" << endm;
typecode = 'p';
}
}
if(!found)
{
- ErrorMsg << argv[0]
+ ErrorMsg() << argv[0]
<< "Invalid type specification : " << typesstr << " (see ucreate -P for possibilities)" << endm;
return 1;
}
{
if(typecode == keys->Value(i))
{
- InfoMsg << argv[0]
+ InfoMsg() << argv[0]
<< "Creating " << aseq.Value(i) << " " << aname
<< " in " << abench.UserPath() << endm;
found = Standard_True;
}
if(!found)
{
- ErrorMsg << argv[0]
+ ErrorMsg() << argv[0]
<< "Invalid type key specified : " << typecode << endm;
return 1;
}
if(missingfilter && localfilter)
{
- ErrorMsg << argv[0] << "Mixing -l and -m is nonsense" << endm;
+ ErrorMsg() << argv[0] << "Mixing -l and -m is nonsense" << endm;
return 1;
}
if(missingfilter && existsfilter)
{
- ErrorMsg << argv[0] << "Mixing -e and -m is nonsense" << endm;
+ ErrorMsg() << argv[0] << "Mixing -e and -m is nonsense" << endm;
return 1;
}
if(missingfilter && getpathes)
{
- ErrorMsg << argv[0] << "Mixing -m and -p is nonsense" << endm;
+ ErrorMsg() << argv[0] << "Mixing -m and -p is nonsense" << endm;
return 1;
}
if(!aunit.IsValid())
{
- ErrorMsg << argv[0] << "Could not determine unit : Specify unit in command line or use wokcd" << endm;
+ ErrorMsg() << argv[0] << "Could not determine unit : Specify unit in command line or use wokcd" << endm;
return 1;
}
if(!abench.IsValid())
{
- ErrorMsg << argv[0] << "Could not determine workbench" << endm;
+ ErrorMsg() << argv[0] << "Could not determine workbench" << endm;
return 1;
}
if(!aparcel.IsValid())
{
- ErrorMsg << argv[0] << "Could not determine parcel" << endm;
+ ErrorMsg() << argv[0] << "Could not determine parcel" << endm;
return 1;
}
if(!locator.IsValid())
{
- ErrorMsg << argv[0] << "Could not initialize locator with " << aunit.NestingEntity().UserPath() << endm;
+ ErrorMsg() << argv[0] << "Could not initialize locator with " << aunit.NestingEntity().UserPath() << endm;
return 1;
}
// only
if(hasstart||hasend)
{
- ErrorMsg << "WOKAPI_Unit::Make" << "Only option associated with start, end or until option is illegal" << endm;
+ ErrorMsg() << "WOKAPI_Unit::Make" << "Only option associated with start, end or until option is illegal" << endm;
WOKAPI_UnitMake_Usage(argv[0]);
return 1;
}
case 's':
if(hasonly||hasstart)
{
- ErrorMsg << "WOKAPI_Unit::Make" << "Start option associated with start, only or until option is illegal" << endm;
+ ErrorMsg() << "WOKAPI_Unit::Make" << "Start option associated with start, only or until option is illegal" << endm;
WOKAPI_UnitMake_Usage(argv[0]);
return 1;
}
case 'e':
if(hasonly||hasend)
{
- ErrorMsg << "WOKAPI_Unit::Make" << "End option associated to only or until option is illegal" << endm;
+ ErrorMsg() << "WOKAPI_Unit::Make" << "End option associated to only or until option is illegal" << endm;
WOKAPI_UnitMake_Usage(argv[0]);
return 1;
}
// no targets for the moment
if(curstepcode.IsNull())
{
- WarningMsg << argv[0] << "No step code to associate target " << opts.OptionArgument() << " with : target ignored" << endm;
+ WarningMsg() << argv[0] << "No step code to associate target " << opts.OptionArgument() << " with : target ignored" << endm;
}
else
{
if(!aunit.IsValid())
{
- ErrorMsg << argv[0] << "Could not determine unit : Specify unit in command line or use wokcd" << endm;
+ ErrorMsg() << argv[0] << "Could not determine unit : Specify unit in command line or use wokcd" << endm;
return 1;
}
if(!aprocess.Init(abench))
{
- ErrorMsg << argv[0]
+ ErrorMsg() << argv[0]
<< "Could not initialize BuildProcess" << endm;
return 1;
}
if(!aprocess.SelectedStepsNumber())
{
- InfoMsg << argv[0] << "No step to execute : check command line" << endm;
+ InfoMsg() << argv[0] << "No step to execute : check command line" << endm;
}
else
{
if(!aunit.IsValid())
{
- ErrorMsg << "WOKAPI_Command::UnitDestroy"
+ ErrorMsg() << "WOKAPI_Command::UnitDestroy"
<< "Could not determine unit : Specify unit in command line or use wokcd" << endm;
return 1;
}
if(!aware.IsValid())
{
- ErrorMsg << "WOKAPI_Command::WarehouseInfo"
+ ErrorMsg() << "WOKAPI_Command::WarehouseInfo"
<< "Could not determine Warehouse : Specify Warehouse in command line or use wokcd" << endm;
return 1;
}
switch(opts.Option())
{
case 'R':
- ErrorMsg << "WOKAPI_Command::WarehouseDestroy" << "-R not yet implemented" << endm;
+ ErrorMsg() << "WOKAPI_Command::WarehouseDestroy" << "-R not yet implemented" << endm;
return 1;
default:
break;
if(!aware.IsValid())
{
- ErrorMsg << "WOKAPI_Command::WarehouseDestroy"
+ ErrorMsg() << "WOKAPI_Command::WarehouseDestroy"
<< "Could not determine Warehouse : Specify Warehouse in command line or use wokcd" << endm;
return 1;
}
}
if (parcelname.IsNull()) {
- ErrorMsg << "WOKAPI_Command::WarehouseDeclare"
+ ErrorMsg() << "WOKAPI_Command::WarehouseDeclare"
<< "Parcel name is missing" << endm;
WOKAPI_WarehouseDeclare_Usage(argv[0]);
return 1;
if(!aware.IsValid())
{
- ErrorMsg << "WOKAPI_Command::WarehouseDeclare"
+ ErrorMsg() << "WOKAPI_Command::WarehouseDeclare"
<< "Could not determine Warehouse : Specify Warehouse in command line or use wokcd" << endm;
return 1;
}
WOKAPI_Parcel aparcel(asession,parcelname,Standard_False);
if (aparcel.IsValid()) {
- ErrorMsg << "WOKAPI_Command::WarehouseDeclare"
+ ErrorMsg() << "WOKAPI_Command::WarehouseDeclare"
<< "Parcel " << parcelname << " is already declared in Warehouse " << aware.Name() << endm;
return 1;
}
aware,
opts.Defines(),
getdefault)) {
- ErrorMsg << "WOKAPI_Command::WarehouseDeclare"
+ ErrorMsg() << "WOKAPI_Command::WarehouseDeclare"
<< "Unable to declare parcel " << parcelname << " in Warehouse " << aware.Name() << endm;
return 1;
}
if(!abench.IsValid())
{
- ErrorMsg << argv[0]
+ ErrorMsg() << argv[0]
<< "Could not determine workbench : Specify workbench in command line or use wokcd" << endm;
return 1;
}
WOKAPI_Workbench abench(asession,name);
if (!abench.IsValid()) {
- ErrorMsg << "WOKAPI_Command::WorkbenchMove"
+ ErrorMsg() << "WOKAPI_Command::WorkbenchMove"
<< "Could not determine workbench : Specify workbench in command line or use wokcd" << endm;
return 1;
}
WOKAPI_Workbench afather(asession,father);
if (!abench.IsValid()) {
- ErrorMsg << "WOKAPI_Command::WorkbenchMove"
+ ErrorMsg() << "WOKAPI_Command::WorkbenchMove"
<< "Unable to find father workbench : Try to specify the complete workbench path in command line" << endm;
return 1;
}
switch(opts.Option())
{
case 'R':
- ErrorMsg << "WOKAPI_Command::WorkbenchDestroy" << "-R not yet implemented" << endm;
+ ErrorMsg() << "WOKAPI_Command::WorkbenchDestroy" << "-R not yet implemented" << endm;
return 1;
default:
break;
if(!abench.IsValid())
{
- ErrorMsg << "WOKAPI_Command::WorkbenchDestroy"
+ ErrorMsg() << "WOKAPI_Command::WorkbenchDestroy"
<< "Could not determine workbench : Specify workbench in command line or use wokcd" << endm;
return 1;
}
{
if(debug && optim)
{
- ErrorMsg << "WOKAPI_Command::WorkbenchProcess"
+ ErrorMsg() << "WOKAPI_Command::WorkbenchProcess"
<< "Optimised and debug mode cannot be combined" << endm;
return 1;
}
if(!abench.IsValid())
{
- ErrorMsg << "WOKAPI_Command::WorkbenchProcess"
+ ErrorMsg() << "WOKAPI_Command::WorkbenchProcess"
<< "Could not determine workbench : Specify workbench in command line or use wokcd" << endm;
return 1;
}
if(!aproc.SelectedStepsNumber())
{
- InfoMsg << argv[0] << "No step to execute : check command line" << endm;
+ InfoMsg() << argv[0] << "No step to execute : check command line" << endm;
}
else
{
if(!ashop.IsValid())
{
- ErrorMsg << argv[0]
+ ErrorMsg() << argv[0]
<< "Could not determine workshop : Specify workshop in command line or use wokcd" << endm;
return 1;
}
if(gettree == Standard_True)
{
- ErrorMsg << argv[0] << "Option -t not yet implemented\n";
+ ErrorMsg() << argv[0] << "Option -t not yet implemented\n";
return 1;
}
switch(opts.Option())
{
case 'R':
- ErrorMsg << "WOKAPI_Command::WorkshopDestroy" << "-R not yet implemented" << endm;
+ ErrorMsg() << "WOKAPI_Command::WorkshopDestroy" << "-R not yet implemented" << endm;
return 1;
default:
break;
if(!ashop.IsValid())
{
- ErrorMsg << "WOKAPI_Command::WorkshopDestroy"
+ ErrorMsg() << "WOKAPI_Command::WorkshopDestroy"
<< "Could not determine workshop : Specify workshop in command line or use wokcd" << endm;
return 1;
}
if(anent.IsValid())
{
- ErrorMsg << "WOKAPI_Entity::BuildParameters"
+ ErrorMsg() << "WOKAPI_Entity::BuildParameters"
<< "There is already an entity with name : " << myEntity->UserPathName() << endm;
return result;
}
if(!anesting.IsValid())
{
- ErrorMsg << "WOKAPI_Entity::BuildParameters"
+ ErrorMsg() << "WOKAPI_Entity::BuildParameters"
<< "Invalid Nesting : " << anesting.Entity()->UserPathName() << endm;
return Standard_True;
}
if(anent.IsValid())
{
- ErrorMsg << "WOKAPI_Entity::BuildParameters"
+ ErrorMsg() << "WOKAPI_Entity::BuildParameters"
<< "There is already an entity with name : " << myEntity->UserPathName() << endm;
return Standard_True;
}
if(item.Value().IsNull())
{
- ErrorMsg << "WOKAPI_Entity::Build"
+ ErrorMsg() << "WOKAPI_Entity::Build"
<< "Needed parameter : " << item.Name() << " is not setted" << endm;
failed = Standard_True;
}
Handle(WOKUtils_Path) apathname = new WOKUtils_Path(item.Value());
if (!apathname->FileName()->IsSameString(aname)) {
failed = Standard_True;
- ErrorMsg << "WOKAPI_Entity::Build"
+ ErrorMsg() << "WOKAPI_Entity::Build"
<< "Invalid home directory " << apathname->Name() << " for entity " << Name() << endm;
}
}
}
if (!myEntity->IsValidName()) {
- ErrorMsg << "WOKAPI_Entity::Build"
+ ErrorMsg() << "WOKAPI_Entity::Build"
<< "Invalid name for entity : " << Name() << endm;
failed = Standard_True;
}
if(!IsValid())
{
- ErrorMsg << "WOKAPI_Entity::UpdateEntityList"
+ ErrorMsg() << "WOKAPI_Entity::UpdateEntityList"
<< "Entity " << ausername << " no longer exists" << endm;
return;
}
if(aname->Value(1) != '%')
{
- ErrorMsg << "WOKAPI_Entity::ParameterSet" << "Variable name must begin with %" << endm;
+ ErrorMsg() << "WOKAPI_Entity::ParameterSet" << "Variable name must begin with %" << endm;
return;
}
if(!myEntity->IsOpened()) myEntity->Open();
if(!myEntity->IsOpened()) myEntity->Open();
if(aname->Value(1) != '%')
{
- ErrorMsg << "WOKAPI_Entity::ParameterUnSet" << "Variable name must begin with %" << endm;
+ ErrorMsg() << "WOKAPI_Entity::ParameterUnSet" << "Variable name must begin with %" << endm;
return;
}
{
if(createifmissing)
{
- WarningMsg << "WOKAPI_Entity::CheckDirs"
+ WarningMsg() << "WOKAPI_Entity::CheckDirs"
<< "Creating missing directory " << Kdirseq->Value(i) << " in " << UserPath() << endm;
}
else
{
- WarningMsg << "WOKAPI_Entity::CheckDirs"
+ WarningMsg() << "WOKAPI_Entity::CheckDirs"
<< "Missing directory " << Kdirseq->Value(i) << " in " << UserPath() << endm;
}
}
}
else
{
- ErrorMsg << "WOKAPI_Entity::CheckDirs"
+ ErrorMsg() << "WOKAPI_Entity::CheckDirs"
<< Kdirseq->Value(i) << " exists and is not a directory" << endm;
status = Standard_False;
}
if(!thefact.IsValid())
{
- ErrorMsg << "WOKAPI_Entity::GetEnvActions"
+ ErrorMsg() << "WOKAPI_Entity::GetEnvActions"
<< "Could not determine factory : Nothing done" << endm;
return 1;
}
if(!theshop.IsValid())
{
- ErrorMsg << "WOKAPI_Entity::GetEnvActions"
+ ErrorMsg() << "WOKAPI_Entity::GetEnvActions"
<< "Could not determine workshop : Nothing done" << endm;
return 1;
}
if(!thebench.IsValid())
{
- ErrorMsg << "WOKAPI_Entity::GetEnvActions"
+ ErrorMsg() << "WOKAPI_Entity::GetEnvActions"
<< "Could not determine workbench : Nothing done" << endm;
return 1;
}
if(homedir.IsNull())
{
- ErrorMsg << "WOKAPI_Entity::GetEnvActions"
+ ErrorMsg() << "WOKAPI_Entity::GetEnvActions"
<< "Could not determine HomeDir of parcel : " << parcel.UserPath() << endm;
return 1;
}
if(pathvarname.IsNull())
{
- ErrorMsg << "WOKAPI_Entity::GetEnvActions"
+ ErrorMsg() << "WOKAPI_Entity::GetEnvActions"
<< "Could not eval %ENV_PATH (path environment variable name)" << endm;
return 1;
}
if(PATH.Value().IsEmpty())
{
- WarningMsg << "WOKAPI_Entity::GetEnvActions"
+ WarningMsg() << "WOKAPI_Entity::GetEnvActions"
<< "Environment variable " << pathvarname << " is not setted" << endm;
}
if(ldpathvarname.IsNull())
{
- ErrorMsg << "WOKAPI_Entity::GetEnvActions"
+ ErrorMsg() << "WOKAPI_Entity::GetEnvActions"
<< "Could not eval %ENV_LDPATH (library path environment variable name)" << endm;
return 1;
}
if(LDPATH.Value().IsEmpty())
{
- WarningMsg << "WOKAPI_Entity::GetEnvActions"
+ WarningMsg() << "WOKAPI_Entity::GetEnvActions"
<< "Environment variable " << ldpathvarname << " is not setted" << endm;
}
if(!asession.IsValid())
{
- ErrorMsg << "WOKAPI_Factory::Build"
+ ErrorMsg() << "WOKAPI_Factory::Build"
<< "Invalid session to create factory : " << name << endm;
return Standard_True;
}
if(afact->Workshops()->Length())
{
- ErrorMsg << "WOKAPI_Factory::Destroy"
+ ErrorMsg() << "WOKAPI_Factory::Destroy"
<< "Cannot destroy not empty factory" << endm;
return Standard_True;
}
if (!anesting.IsValid())
{
- ErrorMsg << "WOKAPI_Parcel::BuildParameters"
+ ErrorMsg() << "WOKAPI_Parcel::BuildParameters"
<< "Invalid nesting to create parcel : " << name << endm;
return aseq;
}
Handle(WOKUtils_HSequenceOfParamItem) aseq = aparc->BuildParameters(someparams, usedefaults);
if (valnamedel.IsNull()) {
- ErrorMsg << "WOKAPI_Parcel::Declare"
+ ErrorMsg() << "WOKAPI_Parcel::Declare"
<< "Delivery name not given" << endm;
return Standard_False;
}
if(aunit.IsNull())
{
- ErrorMsg << "WOKAPI_Parcel::Deliveries"
+ ErrorMsg() << "WOKAPI_Parcel::Deliveries"
<< "Invalid name : " << adel << " in parcel " << aparcel->UserPathName() << endm;
return;
}
if(!WOKernel_IsDelivery(aunit))
{
- ErrorMsg << "WOKAPI_Parcel::Deliveries"
+ ErrorMsg() << "WOKAPI_Parcel::Deliveries"
<< "Invalid type for " << adel << " in parcel " << aparcel->UserPathName() << endm;
return;
}
}
else
{
- ErrorMsg << "WOKAPI_Parcel::Units"
+ ErrorMsg() << "WOKAPI_Parcel::Units"
<< "Invalid name : " << adel << " in parcel " << aparcel->UserPathName() << endm;
return;
}
if(aunit.IsNull())
{
- ErrorMsg << "WOKAPI_Parcel::NestedEntities"
+ ErrorMsg() << "WOKAPI_Parcel::NestedEntities"
<< "Invalid name : " << afullseq->Value(i) << " in allcomponents of " << aparcel->UserPathName() << endm;
aseq.Clear();
return Standard_False;
}
else
{
- ErrorMsg << "WOKAPI_Parcel::NestedEntities"
+ ErrorMsg() << "WOKAPI_Parcel::NestedEntities"
<< "Invalid name : " << afullseq->Value(i) << " in allcomponents of " << aparcel->UserPathName() << endm;
aseq.Clear();
return Standard_False;
if(aunit.IsNull())
{
- ErrorMsg << "WOKAPI_Parcel::Units"
+ ErrorMsg() << "WOKAPI_Parcel::Units"
<< "Invalid name : " << afullseq->Value(i) << " in allcomponents of " << aparcel->UserPathName() << endm;
units.Clear();
return;
}
else
{
- ErrorMsg << "WOKAPI_Parcel::Units"
+ ErrorMsg() << "WOKAPI_Parcel::Units"
<< "Invalid name : " << afullseq->Value(i) << " in allcomponents of " << aparcel->UserPathName() << endm;
units.Clear();
return;
if(!mybp.Init(thebench))
{
- ErrorMsg << "WOKAPI_Process::Init"
+ ErrorMsg() << "WOKAPI_Process::Init"
<< "Could not initialize build process" << endm;
return Standard_False;
}
initcomplete = Standard_True;
else
{
- ErrorMsg << "WOKAPI_Process::ExploreInitSection"
+ ErrorMsg() << "WOKAPI_Process::ExploreInitSection"
<< "Section flag " << line << " inside :Init section" << endm;
return -1;
}
error = right;
else
{
- ErrorMsg << "WOKAPI_Process::ExploreInitSection"
+ ErrorMsg() << "WOKAPI_Process::ExploreInitSection"
<< "Unrecognized line in :Init section : " << line << endm;
return -1;
}
}
else
{
- ErrorMsg << "WOKAPI_Process::ExploreInitSection"
+ ErrorMsg() << "WOKAPI_Process::ExploreInitSection"
<< "Malformed line in :Init section: " << line << endm;
return -1;
}
if(!initcomplete)
{
- ErrorMsg << "WOKAPI_Process::ExploreInitSection"
+ ErrorMsg() << "WOKAPI_Process::ExploreInitSection"
<< "Could not find :Init section in file" << endm;
return Standard_False;
}
if(workbench.IsNull())
{
- ErrorMsg << "WOKAPI_Process::ExploreInitSection"
+ ErrorMsg() << "WOKAPI_Process::ExploreInitSection"
<< "Could not find required field Workbench= in :Init section" << endm;
return -1;
}
if(!abench.IsValid())
{
- ErrorMsg << "WOKAPI_Process::ExploreInitSection"
+ ErrorMsg() << "WOKAPI_Process::ExploreInitSection"
<< "Could not find " << workbench << " or this is not a workbench name" << endm;
return -1;
}
}
else
{
- ErrorMsg << "WOKAPI_Process::ExploreInitSection"
+ ErrorMsg() << "WOKAPI_Process::ExploreInitSection"
<< "Invalid mode specification " << mode << " is ignored" << endm;
return -1;
}
{
if(!WOKernel_DBMSystem::IsNameKnown(dbms))
{
- ErrorMsg << "WOKAPI_::SetDBMSystem"
+ ErrorMsg() << "WOKAPI_::SetDBMSystem"
<< dbms << " is not known as a DBMSystem" << endm;
return -1;
}
}
else
{
- ErrorMsg << "WOKAPI_Process::AdvanceToNextValidSection"
+ ErrorMsg() << "WOKAPI_Process::AdvanceToNextValidSection"
<< "Unrecognized conditional (" << token << ") in line: " << line << endm;
return -1;
}
tclcomplete = Standard_True;
else
{
- ErrorMsg << "WOKAPI_Process::ExploreTclSection"
+ ErrorMsg() << "WOKAPI_Process::ExploreTclSection"
<< "Section flag " << line << " inside :Tcl section" << endm;
return -1;
}
buildcomplete = Standard_True;
else
{
- ErrorMsg << "WOKAPI_Process::ExploreBuildSection"
+ ErrorMsg() << "WOKAPI_Process::ExploreBuildSection"
<< "Section flag " << line << " inside :Build section" << endm;
return -1;
}
if(sessionname->IsEmpty() == Standard_True)
{
- ErrorMsg << "WOKAPI_Session::Open" << "Symbol WOK_SESSIONID is not setted" << endm;
+ ErrorMsg() << "WOKAPI_Session::Open" << "Symbol WOK_SESSIONID is not setted" << endm;
return 1;
}
Handle(TCollection_HAsciiString) rootname = new TCollection_HAsciiString(root.Value());
if(rootname->IsEmpty() == Standard_True)
{
- ErrorMsg << "WOKAPI_Session::Open" << "Symbol WOK_ROOTADMDIR is not setted" << endm;
+ ErrorMsg() << "WOKAPI_Session::Open" << "Symbol WOK_ROOTADMDIR is not setted" << endm;
return 1;
}
if(libpathname->IsEmpty() == Standard_True)
{
- ErrorMsg << "WOKAPI_Session::Open" << "Symbol WOK_LIBPATH is not setted" << endm;
+ ErrorMsg() << "WOKAPI_Session::Open" << "Symbol WOK_LIBPATH is not setted" << endm;
return 1;
}
apath = new WOKUtils_Path(sessionname);
if (!apath->CreateDirectory()) {
- ErrorMsg << "WOKAPI_Session::Open" << "Unable to create directory " << sessionname->ToCString() << endm;
+ ErrorMsg() << "WOKAPI_Session::Open" << "Unable to create directory " << sessionname->ToCString() << endm;
return 1;
}
apath = new WOKUtils_Path(apath->Name()->ToCString(), "WOK.edl");
if (!apath->CreateFile()) {
- ErrorMsg << "WOKAPI_Session::Open" << "Unable to create directory " << apath->Name()->ToCString() << endm;
+ ErrorMsg() << "WOKAPI_Session::Open" << "Unable to create directory " << apath->Name()->ToCString() << endm;
return 1;
}
}
else
{
- ErrorMsg << "WOKAPI_Session::Open"
+ ErrorMsg() << "WOKAPI_Session::Open"
<< "Wrong value : " << astr << " for session parameter : " << WOK_DEBUG << " (has to be : True|False" << endm;
}
}
WOK_TRACE {
- VerboseMsg("WOK_API") << "WOKAPI_Session::GeneralFailure"
+ VerboseMsg()("WOK_API") << "WOKAPI_Session::GeneralFailure"
<< "Killing processes" << endm;
}
WOKUtils_ProcessManager::KillAll();
WOK_TRACE {
- VerboseMsg("WOK_API") << "WOKAPI_Session::GeneralFailure"
+ VerboseMsg()("WOK_API") << "WOKAPI_Session::GeneralFailure"
<< "Reopen session" << endm;
}
Close();
Handle(Standard_Failure) E = Standard_Failure::Caught();
Standard_SStream astream;
astream << E << ends;
- ErrorMsg << "WOKAPI_Session::GeneralFailure"
+ ErrorMsg() << "WOKAPI_Session::GeneralFailure"
<< "Exception was raised : " << GetSString(astream) << endm;
- ErrorMsg << "WOKAPI_Session::GeneralFailure"
+ ErrorMsg() << "WOKAPI_Session::GeneralFailure"
<< "Could not recover session after Failure : Session is reinitialized" << endm;
WOKUtils_ProcessManager::UnArm();
FailedInOpen = Standard_False;
}
else {
- ErrorMsg << "WOKAPI_Session::GeneralFailure"
+ ErrorMsg() << "WOKAPI_Session::GeneralFailure"
<< "Session recovering Failed" << endm;
}
}
if(!myparams.Write(mypath, aseq))
{
- ErrorMsg << "WOKAPI_Session::SaveToFile"
+ ErrorMsg() << "WOKAPI_Session::SaveToFile"
<< "Could not save session parameters to file : " << mypath->Name() << endm;
}
}
{
if(fatal)
{
- ErrorMsg << "WOKAPI_Session::GetFactory"
+ ErrorMsg() << "WOKAPI_Session::GetFactory"
<< "Could not find any nesting factory to your current position : " << cwe.Entity()->UserPathName() << endm;
}
return NULLRESULT;
{
if(fatal)
{
- ErrorMsg << "WOKAPI_Session::GetFactory"
+ ErrorMsg() << "WOKAPI_Session::GetFactory"
<< "Entity " << apath << " is not a factory" << endm;
}
return NULLRESULT;
{
if(fatal)
{
- ErrorMsg << "WOKAPI_Session::GetWarehouse"
+ ErrorMsg() << "WOKAPI_Session::GetWarehouse"
<< "Could not find any nesting warehouse to your current position : " << cwe.Entity()->UserPathName() << endm;
}
return NULLRESULT;
{
if(fatal)
{
- ErrorMsg << "WOKAPI_Session::GetWarehouse"
+ ErrorMsg() << "WOKAPI_Session::GetWarehouse"
<< "Entity " << apath << " is not a warehouse" << endm;
}
return NULLRESULT;
{
if(fatal)
{
- ErrorMsg << "WOKAPI_Session::GetParcel"
+ ErrorMsg() << "WOKAPI_Session::GetParcel"
<< "Could not find any parcel from your current position : " << cwe.Entity()->UserPathName() << endm;
}
return NULLRESULT;
{
if(fatal)
{
- ErrorMsg << "WOKAPI_Session::GetParcel"
+ ErrorMsg() << "WOKAPI_Session::GetParcel"
<< "Entity " << apath << " is not a parcel" << endm;
}
return NULLRESULT;
{
if(fatal)
{
- ErrorMsg << "WOKAPI_Session::GetWorkshop"
+ ErrorMsg() << "WOKAPI_Session::GetWorkshop"
<< "Could not find any nesting workshop to your current position : " << cwe.Entity()->UserPathName() << endm;
}
return NULLRESULT;
{
if(fatal)
{
- ErrorMsg << "WOKAPI_Session::GetWorkshop"
+ ErrorMsg() << "WOKAPI_Session::GetWorkshop"
<< "Entity " << apath << " is not a workshop" << endm;
}
return NULLRESULT;
{
if(fatal)
{
- ErrorMsg << "WOKAPI_Session::GetWorkbench"
+ ErrorMsg() << "WOKAPI_Session::GetWorkbench"
<< "Could not find any workbench from your current position : " << cwe.Entity()->UserPathName() << endm;
}
return NULLRESULT;
{
if(fatal)
{
- ErrorMsg << "WOKAPI_Session::GetWorkbench"
+ ErrorMsg() << "WOKAPI_Session::GetWorkbench"
<< "Entity " << apath << " is not a workbench" << endm;
}
return NULLRESULT;
{
if(fatal)
{
- ErrorMsg << "WOKAPI_Session::GetDevUnit"
+ ErrorMsg() << "WOKAPI_Session::GetDevUnit"
<< "Could not find any Dev Unit from your current position : " << cwe.Entity()->UserPathName() << endm;
}
return NULLRESULT;
{
if(fatal)
{
- ErrorMsg << "WOKAPI_Session::GetDevUnit"
+ ErrorMsg() << "WOKAPI_Session::GetDevUnit"
<< "Entity " << apath << " is not a devunit" << endm;
}
return NULLRESULT;
if(!myEntity->IsOpened())
{
- ErrorMsg << "WOKAPI_Session::Factories"
+ ErrorMsg() << "WOKAPI_Session::Factories"
<< "Internal Error : Session is not opened" << endm;
return;
}
if(!WOKernel_Station::IsNameKnown(astation))
{
- ErrorMsg << "WOKAPI_Session::SetStation"
+ ErrorMsg() << "WOKAPI_Session::SetStation"
<< astation << " is not known as a " << endm;
- ErrorMsg << "WOKAPI_Session::SetStation"
+ ErrorMsg() << "WOKAPI_Session::SetStation"
<< "Station is unchanged" << endm;
return Standard_True;
}
if(!WOKernel_DBMSystem::IsNameKnown(adbms))
{
- ErrorMsg << "WOKAPI_Session::SetDBMSystem"
+ ErrorMsg() << "WOKAPI_Session::SetDBMSystem"
<< adbms << " is not known as a DBMSystem" << endm;
- ErrorMsg << "WOKAPI_Session::SetDBMSystem"
+ ErrorMsg() << "WOKAPI_Session::SetDBMSystem"
<< "DBMS is unchanged" << endm;
return Standard_True;
}
if(apath.IsNull())
{
- ErrorMsg << "WOKAPI_Session::OpenPath" << "Invalid NULL input" << endm;
+ ErrorMsg() << "WOKAPI_Session::OpenPath" << "Invalid NULL input" << endm;
return anentity;
}
{
if(!besilent)
{
- ErrorMsg << "WOKAPI_Session::OpenPath" << "You cannot move in " << apath << endm;
+ ErrorMsg() << "WOKAPI_Session::OpenPath" << "You cannot move in " << apath << endm;
}
}
return anentity;
{
if(!besilent)
{
- ErrorMsg << "WOKAPI_Session::OpenPath"
+ ErrorMsg() << "WOKAPI_Session::OpenPath"
<< "No entity is matching path: " << thepath << endm;
}
return Handle(WOKernel_Entity)();
{
if(!besilent)
{
- ErrorMsg << "WOKAPI_Session::OpenPath"
+ ErrorMsg() << "WOKAPI_Session::OpenPath"
<< "No entity is matching path: " << thepath << endm;
}
return Handle(WOKernel_Entity)();
{
if(!besilent)
{
- ErrorMsg << "WOKAPI_Session::OpenPath"
+ ErrorMsg() << "WOKAPI_Session::OpenPath"
<< "No entity is matching your path be more precise in: " << endm;
for(i=1; i<=apartialseq->Length(); i++)
{
anentity = Session()->GetEntity(apartialseq->Value(i));
if(!anentity.IsNull())
{
- ErrorMsg << "WOKAPI_Session::OpenPath" << "\t" << anentity->UserPathName() << endm;
+ ErrorMsg() << "WOKAPI_Session::OpenPath" << "\t" << anentity->UserPathName() << endm;
}
}
}
{
if(!besilent)
{
- ErrorMsg << "WOKAPI_Session::OpenPath"
+ ErrorMsg() << "WOKAPI_Session::OpenPath"
<< "No entity is matching path: " << apath << endm;
}
return Handle(WOKernel_Entity)();
default:
if(!besilent)
{
- ErrorMsg << "WOKAPI_Session::OpenPath" << "Abnormal Mulitple choice in Nesting : " << endm;
+ ErrorMsg() << "WOKAPI_Session::OpenPath" << "Abnormal Mulitple choice in Nesting : " << endm;
for(Standard_Integer i=1; i<=aseq->Length(); i++)
{
- ErrorMsg << "WOKAPI_Session::OpenPath" << "\t\t" << aseq->Value(i) << endm;
+ ErrorMsg() << "WOKAPI_Session::OpenPath" << "\t\t" << aseq->Value(i) << endm;
}
}
return Handle(WOKernel_Entity)();
if(!abench.IsValid())
{
- ErrorMsg << "WOKAPI_Unit::Build"
+ ErrorMsg() << "WOKAPI_Unit::Build"
<< "Invalid nesting (" << nestname << ") to create workbench : " << name << endm;
return aseq;
}
if(!abench.IsValid())
{
- ErrorMsg << "WOKAPI_Unit::Build"
+ ErrorMsg() << "WOKAPI_Unit::Build"
<< "Invalid nesting (" << nestname << ") to create unit : " << name << endm;
return Standard_True;
}
if(Kunit.IsNull())
{
- ErrorMsg << "WOKAPI_Unit::Build"
+ ErrorMsg() << "WOKAPI_Unit::Build"
<< "Could not obtain unit : wrong type code : " << acode << endm;
return Standard_True;
}
if(!afact.IsValid())
{
- ErrorMsg << "WOKAPI_Warehouse::Build"
+ ErrorMsg() << "WOKAPI_Warehouse::Build"
<< "Invalid nesting (" << nestname << ") to create Warehouse : " << name << endm;
return aseq;
}
if(!afact.IsValid())
{
- ErrorMsg << "WOKAPI_Warehouse::Build"
+ ErrorMsg() << "WOKAPI_Warehouse::Build"
<< "Invalid nesting (" << nestname << ") to create Warehouse : " << name << endm;
return Standard_True;
}
if(awarehouse->Parcels()->Length())
{
- ErrorMsg << "WOKAPI_Warehouse::Destroy"
+ ErrorMsg() << "WOKAPI_Warehouse::Destroy"
<< "Cannot destroy not empty warehouse" << endm;
return Standard_True;
}
if(!ashop.IsValid())
{
- ErrorMsg << "WOKAPI_Workbench::BuildParameters"
+ ErrorMsg() << "WOKAPI_Workbench::BuildParameters"
<< "Invalid nesting (" << nestname << ") to create workbench : " << name << endm;
return aseq;
}
if(!WOKernel_Entity::IsValidName(name))
{
- ErrorMsg << "WOKAPI_Workbench::BuildParameters"
+ ErrorMsg() << "WOKAPI_Workbench::BuildParameters"
<< "Invalid name (" << name << ") to create workbench" << endm;
return aseq;
}
if(!father.IsValid())
{
- ErrorMsg << "WOKAPI_Workbench::BuildParameters"
+ ErrorMsg() << "WOKAPI_Workbench::BuildParameters"
<< "Invalid father (" << afather << ") to create workbench : " << name << endm;
return aseq;
}
if(!ashop.IsValid())
{
- ErrorMsg << "WOKAPI_Workbench::Build"
+ ErrorMsg() << "WOKAPI_Workbench::Build"
<< "Invalid nesting (" << nestname << ") to create workbench : " << name << endm;
return Standard_True;
}
if(!WOKernel_Entity::IsValidName(name))
{
- ErrorMsg << "WOKAPI_Workbench::Build"
+ ErrorMsg() << "WOKAPI_Workbench::Build"
<< "Invalid name (" << name << ") to create workbench" << endm;
return Standard_True;
}
if(!father.IsValid())
{
- ErrorMsg << "WOKAPI_Workbench::Build"
+ ErrorMsg() << "WOKAPI_Workbench::Build"
<< "Invalid father (" << afather << ") to create workbench : " << name << endm;
return Standard_True;
}
if(aworkbench->Units()->Length())
{
- ErrorMsg << "WOKAPI_Workbench::Destroy"
+ ErrorMsg() << "WOKAPI_Workbench::Destroy"
<< "Cannot destroy not empty workbench" << endm;
return Standard_True;
}
if(typedescr.IsNull())
{
- ErrorMsg << "WOKAPI_Workbench::UnitsOfType"
+ ErrorMsg() << "WOKAPI_Workbench::UnitsOfType"
<< "Requesting unit type (" << atype << " is not a valid type in " << UserPath() << endm;
return;
}
if (aunit.IsNull())
{
- ErrorMsg << "WOKAPI_Workbench::ImplSuppliers"
+ ErrorMsg() << "WOKAPI_Workbench::ImplSuppliers"
<< "Unit " << aname << " : unit does not exist in workbench visibility" << endm;
return;
}
{
if(!WOKernel_IsExecutable(aunit))
{
- ErrorMsg << "WOKAPI_Workbench::ImplSuppliers"
+ ErrorMsg() << "WOKAPI_Workbench::ImplSuppliers"
<< "Unit " << aname << " is not an executable" << endm;
return;
}
}
else
{
- ErrorMsg << "WOKAPI_Workbench::ImplSuppliers"
+ ErrorMsg() << "WOKAPI_Workbench::ImplSuppliers"
<< "Failed during getting suppliers of " << aunitname << endm;
return;
}
if (aunit.IsNull())
{
- ErrorMsg << "WOKAPI_Workbench::ImplClients"
+ ErrorMsg() << "WOKAPI_Workbench::ImplClients"
<< "Unit " << aunitname << " : unit does not exist in workbench visibility" << endm;
return;
}
}
else
{
- ErrorMsg << "WOKAPI_Workbench::ImplClients"
+ ErrorMsg() << "WOKAPI_Workbench::ImplClients"
<< "Failed during getting clients of " << aunitname << endm;
return;
}
if (aunit.IsNull())
{
- ErrorMsg << "WOKAPI_Workbench::SortUnitList"
+ ErrorMsg() << "WOKAPI_Workbench::SortUnitList"
<< "Unit " << anexecname << " : unit does not exist in workbench visibility" << endm;
return;
}
{
if(!WOKernel_IsExecutable(aunit))
{
- ErrorMsg << "WOKAPI_Workbench::SortUnitList"
+ ErrorMsg() << "WOKAPI_Workbench::SortUnitList"
<< "Unit " << anexecname << " is not an executable" << endm;
return;
}
Handle(TColStd_HSequenceOfHAsciiString) execsuppliers = aunit->ImplementationDep(apart,agraph);
if ( execsuppliers.IsNull() )
{
- ErrorMsg << "WOKAPI_Workbench::SortUnitList"
+ ErrorMsg() << "WOKAPI_Workbench::SortUnitList"
<< "Failed during getting sorted unit list" << endm;
return;
}
if ( unitsuppliers.IsNull() )
{
- ErrorMsg << "WOKAPI_Workbench::SortUnitList"
+ ErrorMsg() << "WOKAPI_Workbench::SortUnitList"
<< "Failed during getting sorted unit list" << endm;
return;
}
if(!afact.IsValid())
{
- ErrorMsg << "WOKAPI_Workshop::Build"
+ ErrorMsg() << "WOKAPI_Workshop::Build"
<< "Invalid nesting (" << nestname << ") to create workshop : " << name << endm;
return aseq;
}
WOKAPI_Warehouse aware = afact.Warehouse();
if(!aware.IsValid())
{
- ErrorMsg << "WOKAPI_Workshop::Build"
+ ErrorMsg() << "WOKAPI_Workshop::Build"
<< "No valid warehouse in factory : " << afact.Name() << endm;
return aseq;
}
if(!afact.IsValid())
{
- ErrorMsg << "WOKAPI_Workshop::Build"
+ ErrorMsg() << "WOKAPI_Workshop::Build"
<< "Invalid nesting (" << nestname << ") to create workshop : " << name << endm;
return Standard_True;
}
if(!aware.IsValid())
{
- ErrorMsg << "WOKAPI_Workshop::Build"
+ ErrorMsg() << "WOKAPI_Workshop::Build"
<< "No valid warehouse in factory : " << afact.Name() << endm;
return Standard_True;
}
if(aworkshop->Workbenches()->Length())
{
- ErrorMsg << "WOKAPI_Workshop::Destroy"
+ ErrorMsg() << "WOKAPI_Workshop::Destroy"
<< "Cannot destroy not empty workshop" << endm;
return Standard_True;
}