]> OCCT Git - occt-wok.git/commitdiff
OCC20850 umake command do not work on SunOS10
authorcascade <cascade@opencascade.com>
Fri, 13 Feb 2009 18:33:58 +0000 (18:33 +0000)
committercascade <cascade@opencascade.com>
Fri, 13 Feb 2009 18:33:58 +0000 (18:33 +0000)
src/CPPClient/CPPClient.cxx
src/CPPClient/CPPClient_MPV.cxx
src/CPPClient/CPPClient_Package.cxx
src/CPPClient/CPPClient_Transient.cxx

index 4e2afd677fd983eb5a4f9e39cb523c0a973c2945..f64ef5f7f334648be1c8e706ca9800397e898a9c 100755 (executable)
@@ -62,14 +62,14 @@ void CPPClient_Init(const Handle(MS_MetaSchema)& aMeta,
        }
       }
       else {
-       ErrorMsg << "CPPClient" << "Init : Method " << asyncmet->Value(i) << " not found..." << endm;
+       ErrorMsg() << "CPPClient" << "Init : Method " << asyncmet->Value(i) << " not found..." << endm;
        Standard_NoSuchObject::Raise();
       }
     }
     
   }
   else {
-    ErrorMsg << "CPPClient" << "Init : Client " << aName << " not found..." << endm;
+    ErrorMsg() << "CPPClient" << "Init : Client " << aName << " not found..." << endm;
     Standard_NoSuchObject::Raise();
   }
 }
@@ -111,11 +111,11 @@ Handle(EDL_API)&  CPPClient_LoadTemplate(const Handle(TColStd_HSequenceOfHAsciiS
     }
 
     if (api->Execute("CPPClient_Template.edl") != EDL_NORMAL) {
-      ErrorMsg << "CPPClient" << "unable to load : CPPClient_Template.edl" << endm;
+      ErrorMsg() << "CPPClient" << "unable to load : CPPClient_Template.edl" << endm;
       Standard_NoSuchObject::Raise();
     } 
     if (api->Execute("CPPClient_General.edl") != EDL_NORMAL) {
-      ErrorMsg << "CPPClient" << "unable to load : CPPClient_General.edl" << endm;
+      ErrorMsg() << "CPPClient" << "unable to load : CPPClient_General.edl" << endm;
       Standard_NoSuchObject::Raise();
     } 
   }
@@ -265,7 +265,7 @@ void CPPClient_MethodUsedTypes(const Handle(MS_MetaSchema)& aMeta,
        thetype = aMeta->GetType(parname);
       }
       else {
-       ErrorMsg << "CPPClient" << "Type " << parname << " not defined..." << endm;
+       ErrorMsg() << "CPPClient" << "Type " << parname << " not defined..." << endm;
        Standard_NoSuchObject::Raise();
       }
     }
@@ -291,7 +291,7 @@ void CPPClient_MethodUsedTypes(const Handle(MS_MetaSchema)& aMeta,
          thetype = aMeta->GetType(parname);
        }
        else {
-         ErrorMsg << "CPPClient" << "Type " << parname << " not defined..." << endm;
+         ErrorMsg() << "CPPClient" << "Type " << parname << " not defined..." << endm;
          Standard_NoSuchObject::Raise();
        }
       }
@@ -382,7 +382,7 @@ Handle(TCollection_HAsciiString) CPPClient_BuildType(const Handle(MS_MetaSchema)
        aType = aMeta->GetType(parname);
       }
       else {
-       ErrorMsg << "CPPClient" << "Type " << parname << " not defined..." << endm;
+       ErrorMsg() << "CPPClient" << "Type " << parname << " not defined..." << endm;
        Standard_NoSuchObject::Raise();
       }
     }
@@ -414,7 +414,7 @@ Handle(TCollection_HAsciiString) CPPClient_BuildType(const Handle(MS_MetaSchema)
     }
   }
   else {
-    ErrorMsg << "CPPClient" << "Type " << aTypeName << " not defined..." << endm;
+    ErrorMsg() << "CPPClient" << "Type " << aTypeName << " not defined..." << endm;
     Standard_NoSuchObject::Raise();
   }
 
@@ -457,7 +457,7 @@ Handle(TCollection_HAsciiString) CPPClient_BuildParameterList(const Handle(MS_Me
            aType = aMeta->GetType(parname);
          }
          else {
-           ErrorMsg << "CPPClient" << "Type " << parname << " not defined..." << endm;
+           ErrorMsg() << "CPPClient" << "Type " << parname << " not defined..." << endm;
            Standard_NoSuchObject::Raise();
          }
        }
@@ -596,8 +596,8 @@ void CPPClient_BuildAsynchronousMethod(const Handle(MS_MetaSchema)& aMeta,
   theArgList = CPPClient_BuildParameterList(aMeta,m->Params(),forDeclaration);
 
   if (theArgList == CPPClient_ErrorArgument) {
-    WarningMsg << "CPPClient" << "Bad argument type in method (pointer or imported type) " << m->FullName() << endm;
-    WarningMsg << "CPPClient" << "Method : " << m->FullName() << " not exported." << endm;
+    WarningMsg() << "CPPClient" << "Bad argument type in method (pointer or imported type) " << m->FullName() << endm;
+    WarningMsg() << "CPPClient" << "Method : " << m->FullName() << " not exported." << endm;
     api->AddVariable(VMethod,CPPClient_ErrorArgument->ToCString());
     return;
   }
@@ -636,8 +636,8 @@ void CPPClient_BuildAsynchronousMethod(const Handle(MS_MetaSchema)& aMeta,
     Handle(TCollection_HAsciiString) returnT = CPPClient_BuildType(aMeta,retType->TypeName());
 
     if (returnT == CPPClient_ErrorArgument) {
-      WarningMsg << "CPPClient" << "Return type (pointer or imported type) of " << m->FullName() << " not exportable." << endm;
-      WarningMsg << "CPPClient" << "Method : " << m->FullName() << " not exported." << endm;
+      WarningMsg() << "CPPClient" << "Return type (pointer or imported type) of " << m->FullName() << " not exportable." << endm;
+      WarningMsg() << "CPPClient" << "Method : " << m->FullName() << " not exported." << endm;
       api->AddVariable(VMethod,CPPClient_ErrorArgument->ToCString());
       return;
     }
@@ -785,8 +785,8 @@ void CPPClient_BuildMethod(const Handle(MS_MetaSchema)& aMeta,
     theArgList = CPPClient_BuildParameterList(aMeta,m->Params(),forDeclaration);
     
     if (theArgList == CPPClient_ErrorArgument) {
-      WarningMsg << "CPPClient" << "Bad argument type in method (pointer or imported type) " << m->FullName() << endm;
-      WarningMsg << "CPPClient" << "Method : " << m->FullName() << " not exported." << endm;
+      WarningMsg() << "CPPClient" << "Bad argument type in method (pointer or imported type) " << m->FullName() << endm;
+      WarningMsg() << "CPPClient" << "Method : " << m->FullName() << " not exported." << endm;
       api->AddVariable(VMethod,CPPClient_ErrorArgument->ToCString());
       return;
     }
@@ -819,8 +819,8 @@ void CPPClient_BuildMethod(const Handle(MS_MetaSchema)& aMeta,
       Handle(TCollection_HAsciiString) returnT = CPPClient_BuildType(aMeta,retType->TypeName());
       
       if (returnT == CPPClient_ErrorArgument) {
-       WarningMsg << "CPPClient" << "Return type (pointer or imported type) of " << m->FullName() << " not exportable." << endm;
-       WarningMsg << "CPPClient" << "Method : " << m->FullName() << " not exported." << endm;
+       WarningMsg() << "CPPClient" << "Return type (pointer or imported type) of " << m->FullName() << " not exportable." << endm;
+       WarningMsg() << "CPPClient" << "Method : " << m->FullName() << " not exported." << endm;
        api->AddVariable(VMethod,CPPClient_ErrorArgument->ToCString());
        return;
       }
@@ -983,7 +983,7 @@ Handle(TCollection_HAsciiString) CPPClient_BuildAsynchronousReturnCode(const Han
       rtype = aMeta->GetType(parname);
     }
     else {
-      ErrorMsg << "CPPClient" << "Type " << parname << " not defined..." << endm;
+      ErrorMsg() << "CPPClient" << "Type " << parname << " not defined..." << endm;
       Standard_NoSuchObject::Raise();
     }
   }
@@ -1047,7 +1047,7 @@ Handle(TCollection_HAsciiString) CPPClient_BuildReturnCode(const Handle(MS_MetaS
       rtype = aMeta->GetType(parname);
     }
     else {
-      ErrorMsg << "CPPClient" << "Type " << parname << " not defined..." << endm;
+      ErrorMsg() << "CPPClient" << "Type " << parname << " not defined..." << endm;
       Standard_NoSuchObject::Raise();
     }
   }
@@ -1354,7 +1354,7 @@ void CPPClient_TypeExtract(const Handle(MS_MetaSchema)& aMeta,
     srcPackage = aMeta->GetPackage(aName);
   }
   else {
-    ErrorMsg << "CPPClient" << aName->ToCString() << " not defined..." << endm;
+    ErrorMsg() << "CPPClient" << aName->ToCString() << " not defined..." << endm;
     Standard_NoSuchObject::Raise();
   }
   
@@ -1594,14 +1594,14 @@ void CPPClient_Extract(const Handle(MS_MetaSchema)& aMeta,
     else if (strcmp(Mode,"CPPClient_INCOMPLETE") == 0)   {theMode = CPPClient_INCOMPLETE;}
     else if (strcmp(Mode,"CPPClient_SEMICOMPLETE") == 0) {theMode = CPPClient_SEMICOMPLETE;}
     else {
-      ErrorMsg << "CPPClient" << "Unknown extraction mode:" << Mode << endm;
+      ErrorMsg() << "CPPClient" << "Unknown extraction mode:" << Mode << endm;
       Standard_NoSuchObject::Raise();
     }
     
     CPPClient_TypeExtract(aMeta,aTypeName,edlsfullpath,outdir,outfile,theMode);
   }
   else {
-    ErrorMsg << "CPPClient" << "Type " << aTypeName << " not defined..." << endm;
+    ErrorMsg() << "CPPClient" << "Type " << aTypeName << " not defined..." << endm;
     Standard_NoSuchObject::Raise();
   }
 }
index 21b95a67559b32a68a224ff7595e499a3d299684..032435c42dde6d5744c881bd2d1cafb027e01bfe 100755 (executable)
@@ -248,7 +248,7 @@ void CPPClient_MPVClass(const Handle(MS_MetaSchema)& aMeta,
     }
   }
   else {
-    ErrorMsg << "CPPClient" << "CPPClient_TransientClass - the class is NULL..." << endm;
+    ErrorMsg() << "CPPClient" << "CPPClient_TransientClass - the class is NULL..." << endm;
     Standard_NoSuchObject::Raise();
   }
 }
index b7e3e0def8200cee2354c80df3532c4eb961db17..95fd3536ad388d444319866dd4b88e924c4a221c 100755 (executable)
@@ -198,7 +198,7 @@ void CPPClient_Package(const Handle(MS_MetaSchema)& aMeta,
     CPPClient_PackageDerivated(aMeta,api,aPackage,outfile,incp,Supplement);
   }
   else {
-    ErrorMsg << "CPPClient" << "CPPClient_Package - the package is NULL..." << endm;
+    ErrorMsg() << "CPPClient" << "CPPClient_Package - the package is NULL..." << endm;
     Standard_NoSuchObject::Raise();
   }
 }
index b6b388821d257b79dad5b34df1e69554e8b90a73..ec1d01e3d900cddbb4cd36d93668c6a60abe77fa 100755 (executable)
@@ -291,7 +291,7 @@ void CPPClient_TransientClass(const Handle(MS_MetaSchema)& aMeta,
     CPPClient_TransientDerivated(aMeta,api,aClass,outfile,incp,Supplement,MustBeComplete);
   }
   else {
-    ErrorMsg << "CPPClient" << "CPPClient_TransientClass - the class is NULL..." << endm;
+    ErrorMsg() << "CPPClient" << "CPPClient_TransientClass - the class is NULL..." << endm;
     Standard_NoSuchObject::Raise();
   }
 }