0030895: Coding Rules - specify std namespace explicitly for std::cout and streams
[occt.git] / src / XSControl / XSControl_WorkSession.cxx
index 0ffc9fd..6cf0545 100644 (file)
@@ -209,16 +209,16 @@ Standard_Boolean  XSControl_WorkSession::PrintTransferStatus(const Standard_Inte
     {
       S<<"  ** Transfer Root n0."<<ne;
     }
-    S<<endl;
+    S<<Message_EndLine;
     ent = FP->FindTransient(finder);
-    S<<" -> Type "<<finder->DynamicType()->Name()<<endl;
+    S<<" -> Type "<<finder->DynamicType()->Name()<<Message_EndLine;
     FP->StartTrace (binder,finder,0,0);  // pb sout/S
     if (!ent.IsNull()) {
       S<<" ** Resultat Transient, type "<<ent->DynamicType()->Name();
       const Handle(Interface_InterfaceModel) &model = Model();
       if (!model.IsNull())
        {  S<<" In output Model, Entity ";  model->Print(ent,S);  }
-      S<<endl;
+      S<<Message_EndLine;
     }
   }
 
@@ -226,8 +226,8 @@ Standard_Boolean  XSControl_WorkSession::PrintTransferStatus(const Standard_Inte
   else {
     if (TP.IsNull()) return Standard_False;
     Handle(Interface_InterfaceModel) model = TP->Model();
-    if (model.IsNull()) cout<<"No Model"<<endl;
-    else if (model != Model()) cout<<"Model different from the session"<<endl;
+    if (model.IsNull()) std::cout<<"No Model"<<std::endl;
+    else if (model != Model()) std::cout<<"Model different from the session"<<std::endl;
     if (num == 0) return Standard_False;
 
     Standard_Integer  ne=0, nr=0, max = TP->NbMapped() ,maxr = TP->NbRoots();
@@ -248,10 +248,10 @@ Standard_Boolean  XSControl_WorkSession::PrintTransferStatus(const Standard_Inte
     {
       S<<"  ** Transfer Root n0."<<ne;
     }
-    S<<endl;
+    S<<Message_EndLine;
     if (!model.IsNull())  {  S<<" In Model, Entity ";  model->Print(ent,S); }
     binder = TP->MapItem (ne);
-    S<<endl;
+    S<<Message_EndLine;
     TP->StartTrace (binder,ent,0,0);
 
   }
@@ -262,11 +262,11 @@ Standard_Boolean  XSControl_WorkSession::PrintTransferStatus(const Standard_Inte
     Standard_Integer i,nbw = ch->NbWarnings(), nbf = ch->NbFails();
     if (nbw > 0) {
       S<<" - Warnings : "<<nbw<<" :\n";
-      for (i = 1; i <= nbw; i ++) S<<ch->CWarning(i)<<endl;
+      for (i = 1; i <= nbw; i ++) S<<ch->CWarning(i)<<Message_EndLine;
     }
     if (nbf > 0) {
       S<<" - Fails : "<<nbf<<" :\n";
-      for (i = 1; i <= nbf; i ++) S<<ch->CFail(i)<<endl;
+      for (i = 1; i <= nbf; i ++) S<<ch->CFail(i)<<Message_EndLine;
     }
   }
   return Standard_True;