0031501: Foundation Classes, Message_Printer - remove theToPutEndl argument -- prepar...
[occt.git] / src / IFSelect / IFSelect_Functions.cxx
index 183b634..7066c80 100644 (file)
@@ -111,11 +111,11 @@ static IFSelect_ReturnStatus funstatus
 {
 //        ****    Version & cie     ****
   //#58 rln
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  sout<<"Processor Version : "<<XSTEP_PROCESSOR_VERSION<<Message_EndLine;
-  sout<<"OL Version        : "<<XSTEP_SYSTEM_VERSION<<Message_EndLine;
-  sout<<"Configuration     : "<<XSTEP_Config<<Message_EndLine;
-  sout<<"UL Names          : "<<XSTEP_ULNames<<Message_EndLine;
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  sout<<"Processor Version : "<<XSTEP_PROCESSOR_VERSION<<std::endl;
+  sout<<"OL Version        : "<<XSTEP_SYSTEM_VERSION<<std::endl;
+  sout<<"Configuration     : "<<XSTEP_Config<<std::endl;
+  sout<<"UL Names          : "<<XSTEP_ULNames<<std::endl;
   return IFSelect_RetVoid;
 }
 
@@ -125,9 +125,9 @@ static IFSelect_ReturnStatus fun1
   Handle(IFSelect_WorkSession) WS = pilot->Session();
 //        ****    ToggleHandler     ****
   Standard_Boolean hand = !WS->ErrorHandle();
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (hand) sout << " --  Mode Catch Error now Active"   <<Message_EndLine;
-  else      sout << " --  Mode Catch Error now Inactive" <<Message_EndLine;
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (hand) sout << " --  Mode Catch Error now Active"   <<std::endl;
+  else      sout << " --  Mode Catch Error now Inactive" <<std::endl;
   WS->SetErrorHandle(hand);
   return IFSelect_RetDone;
 }
@@ -139,21 +139,21 @@ static IFSelect_ReturnStatus fun3
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    XRead / Load         ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Read/Load : give file name !"<<Message_EndLine; return IFSelect_RetError; }
-  if (WS->Protocol().IsNull()) { sout<<"Protocol not defined"<<Message_EndLine; return IFSelect_RetError; }
-  if (WS->WorkLibrary().IsNull()) { sout<<"WorkLibrary not defined"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Read/Load : give file name !"<<std::endl; return IFSelect_RetError; }
+  if (WS->Protocol().IsNull()) { sout<<"Protocol not defined"<<std::endl; return IFSelect_RetError; }
+  if (WS->WorkLibrary().IsNull()) { sout<<"WorkLibrary not defined"<<std::endl; return IFSelect_RetError; }
 
   IFSelect_ReturnStatus status = WS->ReadFile (arg1);
 // status : 0 OK, 1 erreur lecture, 2 Fail(try/catch),
 //          -1 fichier non trouve, -2 lecture faite mais resultat vide
   switch (status) {
-    case IFSelect_RetVoid  : sout<<"file:"<<arg1<<" gives empty result"<<Message_EndLine; break;
-    case IFSelect_RetError : sout<<"file:"<<arg1<<" could not be opened"<<Message_EndLine; break;
-    case IFSelect_RetDone  : sout<<"file:"<<arg1<<" read"<<Message_EndLine; break;
-    case IFSelect_RetFail  : sout<<"file:"<<arg1<<" : error while reading"<<Message_EndLine; break;
-    case IFSelect_RetStop  : sout<<"file:"<<arg1<<" : EXCEPTION while reading"<<Message_EndLine; break;
-    default : sout<<"file:"<<arg1<<" could not be read"<<Message_EndLine; break;
+    case IFSelect_RetVoid  : sout<<"file:"<<arg1<<" gives empty result"<<std::endl; break;
+    case IFSelect_RetError : sout<<"file:"<<arg1<<" could not be opened"<<std::endl; break;
+    case IFSelect_RetDone  : sout<<"file:"<<arg1<<" read"<<std::endl; break;
+    case IFSelect_RetFail  : sout<<"file:"<<arg1<<" : error while reading"<<std::endl; break;
+    case IFSelect_RetStop  : sout<<"file:"<<arg1<<" : EXCEPTION while reading"<<std::endl; break;
+    default : sout<<"file:"<<arg1<<" could not be read"<<std::endl; break;
   }
   if (status != IFSelect_RetDone) return status;
 //      sout<<" - clearing list of already written files"<<std::endl;
@@ -168,8 +168,8 @@ static IFSelect_ReturnStatus fun4
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Write All         ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Write All : give file name !"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Write All : give file name !"<<std::endl; return IFSelect_RetError; }
   return WS->SendAll (arg1);
 }
 
@@ -181,12 +181,12 @@ static IFSelect_ReturnStatus fun5
   const Standard_CString arg1 = pilot->Arg(1);
 //  const Standard_CString arg2 = pilot->Arg(2);
 //        ****    Write Selected         ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<"Write Selected : give file name + givelist !"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 3) { sout<<"Write Selected : give file name + givelist !"<<std::endl; return IFSelect_RetError; }
   Handle(TColStd_HSequenceOfTransient) result =
     IFSelect_Functions::GiveList (WS,pilot->CommandPart( 2));
-  if (result.IsNull()) { sout<<"No entity selected"<<Message_EndLine; return IFSelect_RetError; }
-  else sout<<"Nb Entities selected : "<<result->Length()<<Message_EndLine;
+  if (result.IsNull()) { sout<<"No entity selected"<<std::endl; return IFSelect_RetError; }
+  else sout<<"Nb Entities selected : "<<result->Length()<<std::endl;
   Handle(IFSelect_SelectPointed) sp = new IFSelect_SelectPointed;
   sp->SetList (result);
   return WS->SendSelected (arg1,sp);
@@ -199,20 +199,20 @@ static IFSelect_ReturnStatus fun6
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Write Entite(s)         ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<"Write Entitie(s) : give file name + n0s entitie(s)!"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 3) { sout<<"Write Entitie(s) : give file name + n0s entitie(s)!"<<std::endl; return IFSelect_RetError; }
   int ko = 0;
   Handle(IFSelect_SelectPointed) sp = new IFSelect_SelectPointed;
   for (Standard_Integer ia = 2; ia < argc ; ia ++) {
     Standard_Integer id = pilot->Number(pilot->Arg(ia));
     if (id > 0) {
       Handle(Standard_Transient) item = WS->StartingEntity(id);
-      if (sp->Add(item)) sout<<"Added:no."<<id<<Message_EndLine;
-      else { sout<<" Fail Add n0."<<id<<Message_EndLine; ko ++; }
+      if (sp->Add(item)) sout<<"Added:no."<<id<<std::endl;
+      else { sout<<" Fail Add n0."<<id<<std::endl; ko ++; }
     }
-    else { sout<<"Not an entity number:"<<pilot->Arg(ia)<<Message_EndLine; ko ++; }
+    else { sout<<"Not an entity number:"<<pilot->Arg(ia)<<std::endl; ko ++; }
   }
-  if (ko > 0) { sout<<ko<<" bad arguments, abandon"<<Message_EndLine; return IFSelect_RetError; }
+  if (ko > 0) { sout<<ko<<" bad arguments, abandon"<<std::endl; return IFSelect_RetError; }
   return WS->SendSelected (arg1,sp);
 }
 
@@ -223,15 +223,15 @@ static IFSelect_ReturnStatus fun7
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Entity Label       ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Give entity number"<<Message_EndLine; return IFSelect_RetError; }
-  if (!WS->HasModel()) { sout<<"No loaded model, abandon"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Give entity number"<<std::endl; return IFSelect_RetError; }
+  if (!WS->HasModel()) { sout<<"No loaded model, abandon"<<std::endl; return IFSelect_RetError; }
   Standard_Integer nument = WS->NumberFromLabel (arg1);
   if (nument <= 0 || nument > WS->NbStartingEntities())
-    { sout<<"Not a suitable number: "<<arg1<<Message_EndLine;  return IFSelect_RetError; }
+    { sout<<"Not a suitable number: "<<arg1<<std::endl;  return IFSelect_RetError; }
   sout<<"N0."<<nument<<" ->Label in Model : ";
-  WS->Model()->PrintLabel(WS->StartingEntity(nument),sout);  
-  sout<<Message_EndLine;
+  WS->Model()->PrintLabel(WS->StartingEntity(nument), sout);
+  sout<<std::endl;
   return IFSelect_RetVoid;
 }
 
@@ -242,22 +242,24 @@ static IFSelect_ReturnStatus fun8
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Entity Number      ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Give label to search"<<Message_EndLine; return IFSelect_RetError; }
-  if (!WS->HasModel()) { sout<<"No loaded model, abandon"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Give label to search"<<std::endl; return IFSelect_RetError; }
+  if (!WS->HasModel()) { sout<<"No loaded model, abandon"<<std::endl; return IFSelect_RetError; }
   const Handle(Interface_InterfaceModel) &model = WS->Model();
   Standard_Integer i, cnt = 0;
   Standard_Boolean exact = Standard_False;
-  sout<<" **  Search Entity Number for Label : "<<arg1<<Message_EndLine;
+  sout<<" **  Search Entity Number for Label : "<<arg1<<std::endl;
   for (i = model->NextNumberForLabel (arg1, 0, exact)  ; i != 0;
        i = model->NextNumberForLabel (arg1, i, exact)) {
     cnt ++;
-    sout<<" **  Found n0/id:"; model->Print (model->Value(i),sout); sout<<Message_EndLine;
+    sout<<" **  Found n0/id:"; 
+    model->Print (model->Value(i), sout);
+    sout<<std::endl;
   }
   
-  if (cnt == 0) sout<<" **  No Match"<<Message_EndLine;
-  else if (cnt == 1) sout<<" **  1 Match"<<Message_EndLine;
-  else sout<<cnt<<" Matches"<<Message_EndLine;
+  if (cnt == 0) sout<<" **  No Match"<<std::endl;
+  else if (cnt == 1) sout<<" **  1 Match"<<std::endl;
+  else sout<<cnt<<" Matches"<<std::endl;
   return IFSelect_RetVoid;
 }
 
@@ -283,12 +285,12 @@ static IFSelect_ReturnStatus funcount
   Standard_Boolean listmode = (arg0[0] == 'l');
 //        ****    List Counter         ****
 
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 2) {
-    sout<<"Designer signature ou compteur, + facultatif selection + facultatif entite"<<Message_EndLine;
-    sout<<" signature/compteur seul -> tout le modele"<<Message_EndLine
-      <<  " sign/compteur + selection -> cette selection, evaluation normale"<<Message_EndLine
-       <<" sign/compteur + sel + num -> cette selection evaluee sur entite n0 num"<<Message_EndLine;
+    sout<<"Designer signature ou compteur, + facultatif selection + facultatif entite"<<std::endl;
+    sout<<" signature/compteur seul -> tout le modele"<<std::endl
+      <<  " sign/compteur + selection -> cette selection, evaluation normale"<<std::endl
+       <<" sign/compteur + sel + num -> cette selection evaluee sur entite n0 num"<<std::endl;
     return IFSelect_RetError;
   }
   DeclareAndCast(IFSelect_SignCounter,counter,WS->NamedItem(arg1));
@@ -322,7 +324,7 @@ static IFSelect_ReturnStatus funcount
       for (i = 1; i < onflag; i ++) {
        sel = WS->GiveSelection(pilot->Arg(i));
        if (!suite->AddInput(sel)) {
-         sout<<"Incorrect definition for applied selection"<<Message_EndLine;
+         sout<<"Incorrect definition for applied selection"<<std::endl;
          return IFSelect_RetError;
        }
       }
@@ -335,7 +337,7 @@ static IFSelect_ReturnStatus funcount
   }
 
   if (counter.IsNull()) {
-    sout<<"Neither Counter nor Signature : "<<arg1<<Message_EndLine;
+    sout<<"Neither Counter nor Signature : "<<arg1<<std::endl;
     return IFSelect_RetError;
   }
 
@@ -354,27 +356,27 @@ static IFSelect_ReturnStatus funsigntype
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Sign Type              ****
   Handle(IFSelect_Signature) signtype = WS->SignType();
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (signtype.IsNull()) sout<<"signtype actually undefined"<<Message_EndLine;
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (signtype.IsNull()) sout<<"signtype actually undefined"<<std::endl;
   else {
     Handle(TCollection_HAsciiString) str = WS->Name (signtype);
     Standard_Integer id = WS->ItemIdent (signtype);
-    sout<<signtype->Label()<<Message_EndLine;
+    sout<<signtype->Label()<<std::endl;
     if (str.IsNull()) {
-      if (id > 0) sout<<"signtype : item n0 "<<id<<Message_EndLine;
+      if (id > 0) sout<<"signtype : item n0 "<<id<<std::endl;
     } else {
-      sout<<"signtype : also named as "<<str->ToCString()<<Message_EndLine;
+      sout<<"signtype : also named as "<<str->ToCString()<<std::endl;
     }
   }
-  if (argc < 2) sout<<"signtype newitem  to change, signtype . to clear"<<Message_EndLine;
+  if (argc < 2) sout<<"signtype newitem  to change, signtype . to clear"<<std::endl;
   else {
     if (arg1[0] == '.' && arg1[1] == '\0') {
       signtype.Nullify();
-      sout<<"signtype now cleared"<<Message_EndLine;
+      sout<<"signtype now cleared"<<std::endl;
     } else {
       signtype = GetCasted(IFSelect_Signature,WS->NamedItem(arg1));
-      if (signtype.IsNull()) { sout<<"Not a Signature : "<<arg1<<Message_EndLine; return IFSelect_RetError; }
-      else sout<<"signtype now set to "<<arg1<<Message_EndLine;
+      if (signtype.IsNull()) { sout<<"Not a Signature : "<<arg1<<std::endl; return IFSelect_RetError; }
+      else sout<<"signtype now set to "<<arg1<<std::endl;
     }
     WS->SetSignType(signtype);
     return IFSelect_RetDone;
@@ -389,23 +391,23 @@ static IFSelect_ReturnStatus funsigncase
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Sign Case              ****
   Handle(IFSelect_Signature) signcase = GetCasted(IFSelect_Signature,WS->NamedItem(arg1));
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (signcase.IsNull()) sout<<"Not a Signature : "<<arg1<<Message_EndLine;
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (signcase.IsNull()) sout<<"Not a Signature : "<<arg1<<std::endl;
   else {
     Standard_Boolean hasmin,hasmax;  Standard_Integer valmin,valmax;
     if (signcase->IsIntCase(hasmin,valmin,hasmax,valmax)) {
       sout<<"Signature "<<arg1<<" : Integer Case";
       if (hasmin) sout<<" - Mini:"<<valmin;
       if (hasmax) sout<<" - Maxi:"<<valmax;
-      sout<<Message_EndLine;
+      sout<<std::endl;
     }
     Handle(TColStd_HSequenceOfAsciiString) caselist = signcase->CaseList();
-    if (caselist.IsNull()) sout<<"Signature "<<arg1<<" : no predefined case, see command  count "<<arg1<<Message_EndLine;
+    if (caselist.IsNull()) sout<<"Signature "<<arg1<<" : no predefined case, see command  count "<<arg1<<std::endl;
     else {
       Standard_Integer i, nb = caselist->Length();
-      sout<<"Signature "<<arg1<<" : "<<nb<<" basic cases :"<<Message_EndLine;
+      sout<<"Signature "<<arg1<<" : "<<nb<<" basic cases :"<<std::endl;
       for (i = 1; i <= nb; i ++) sout<<"  "<<caselist->Value(i);
-      sout<<Message_EndLine;
+      sout<<std::endl;
     }
   }
   return IFSelect_RetVoid;
@@ -420,20 +422,20 @@ static IFSelect_ReturnStatus fun10
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Entity Status          ****
   Standard_Integer i,nb;
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 2) {
     nb = Interface_Category::NbCategories();
     sout<<" Categories defined :"<<nb<<" i.e. :\n";
     for (i = 0; i <= nb; i ++)
       sout<<"Cat."<<i<<"  : "<<Interface_Category::Name(i)<<"\n";
-    sout<<" On a given entity : give its number"<<Message_EndLine;
+    sout<<" On a given entity : give its number"<<std::endl;
     return IFSelect_RetVoid;
   }
   Standard_Integer num = pilot->Number(arg1);
   if (num <= 0 || num > WS->NbStartingEntities())
-    { sout<<"Not a suitable entity number : "<<arg1<<Message_EndLine; return IFSelect_RetError; }
+    { sout<<"Not a suitable entity number : "<<arg1<<std::endl; return IFSelect_RetError; }
   Handle(Standard_Transient) ent = WS->StartingEntity(num);
-  WS->PrintEntityStatus(ent,sout);
+  WS->PrintEntityStatus (ent, sout);
   return IFSelect_RetVoid;
 }
 
@@ -447,7 +449,7 @@ static IFSelect_ReturnStatus fun11
   Standard_Integer niv = 0;
 //  char arg10 = arg1[0];
 //  if (argc < 2) arg10 = '?';
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   switch (arg1[0]) {
     case '?' :
      sout<<"? for this help, else give a listing mode (first letter suffices) :\n"
@@ -459,7 +461,7 @@ static IFSelect_ReturnStatus fun11
        <<" check      CheckList (complete) per message (counting)\n"
        <<" totalcheck CheckList (complete) per message (listing n0 ents)\n"
        <<" FAILS      CheckList (fails)    per message (listing complete)\n"
-       <<" TOTALCHECK CheckList (complete) per message (listing complete)"<<Message_EndLine;
+       <<" TOTALCHECK CheckList (complete) per message (listing complete)"<<std::endl;
      return IFSelect_RetVoid;
     case 'g' : niv = 0; break;
     case 'r' : niv = 1; break;
@@ -471,7 +473,7 @@ static IFSelect_ReturnStatus fun11
     case 'T' : niv = 7; break;
     case 'f' : niv = 8; break;
     case 'F' : niv =10; break;
-    default  : sout<<"Unknown Mode .  data tout court pour help"<<Message_EndLine; return IFSelect_RetError;
+    default  : sout<<"Unknown Mode .  data tout court pour help"<<std::endl; return IFSelect_RetError;
   }
   WS->TraceDumpModel(niv);
   return IFSelect_RetVoid;
@@ -485,14 +487,14 @@ static IFSelect_ReturnStatus fundumpent
   Handle(IFSelect_WorkLibrary) WL = WS->WorkLibrary();
   Standard_Integer levdef=0,levmax=10,level;
   WL->DumpLevels (levdef,levmax);
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 2 || (argc == 2 && levmax < 0)) {
     sout<<"Give n0 or id of entity";
-    if (levmax < 0) sout<<"  and dump level"<<Message_EndLine;
-    else sout<<"  + optinal, dump level in [0 - "<<levmax<<"] , default = "<<levdef<<Message_EndLine;
+    if (levmax < 0) sout<<"  and dump level"<<std::endl;
+    else sout<<"  + optinal, dump level in [0 - "<<levmax<<"] , default = "<<levdef<<std::endl;
     for (level = 0; level <= levmax; level ++) {
       Standard_CString help = WL->DumpHelp (level);
-      if (help[0] != '\0') sout<<level<<" : "<<help<<Message_EndLine;
+      if (help[0] != '\0') sout<<level<<" : "<<help<<std::endl;
     }
     return IFSelect_RetError;
   }
@@ -505,10 +507,10 @@ static IFSelect_ReturnStatus fundumpent
   if (argc > 2) level = atoi(arg2);
   Handle(Standard_Transient) ent = WS->StartingEntity(num);
   if ( ent.IsNull() ) {
-    sout << "No entity with given id " << arg1 << " (" << num << ") is found in the current model" << Message_EndLine;
+    sout << "No entity with given id " << arg1 << " (" << num << ") is found in the current model" << std::endl;
   }
   else {
-    sout << "  --   DUMP  Entity n0 " << num << "  level " << level << Message_EndLine;
+    sout << "  --   DUMP  Entity n0 " << num << "  level " << level << std::endl;
     WL->DumpEntity (WS->Model(),WS->Protocol(),ent,sout,level);
 
     Interface_CheckIterator chl = WS->CheckOne (ent);
@@ -526,14 +528,14 @@ static IFSelect_ReturnStatus funsign
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<" Give signature name + n0 or id of entity"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 3) { sout<<" Give signature name + n0 or id of entity"<<std::endl; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_Signature,sign,WS->NamedItem(arg1));
-  if (sign.IsNull()) { sout<<"Not a signature : "<<arg1<<Message_EndLine; return IFSelect_RetError; }
+  if (sign.IsNull()) { sout<<"Not a signature : "<<arg1<<std::endl; return IFSelect_RetError; }
   Standard_Integer num = pilot->Number(arg2);
   Handle(Standard_Transient) ent = WS->StartingEntity (num);
   if (num == 0) return IFSelect_RetError;
-  sout<<"Entity n0 "<<num<<" : "<<WS->SignValue(sign,ent)<<Message_EndLine;
+  sout<<"Entity n0 "<<num<<" : "<<WS->SignValue(sign,ent)<<std::endl;
   return IFSelect_RetVoid;
 }
 
@@ -544,15 +546,15 @@ static IFSelect_ReturnStatus funqp
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<" Give 2 numeros or labels : dad son"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 3) { sout<<" Give 2 numeros or labels : dad son"<<std::endl; return IFSelect_RetError; }
   Standard_Integer n1 = WS->NumberFromLabel(arg1);
   Standard_Integer n2 = WS->NumberFromLabel(arg2);
-  sout<<"QueryParent for dad:"<<arg1<<":"<<n1<<" and son:"<<arg2<<":"<<n2<<Message_EndLine;
+  sout<<"QueryParent for dad:"<<arg1<<":"<<n1<<" and son:"<<arg2<<":"<<n2<<std::endl;
   Standard_Integer qp = WS->QueryParent(WS->StartingEntity(n1),WS->StartingEntity(n2));
-  if (qp < 0) sout<<arg1<<" is not super-entity of "<<arg2<<Message_EndLine;
-  else if (qp == 0) sout<<arg1<<" is same as "<<arg2<<Message_EndLine;
-  else sout<<arg1<<" is super-entity of "<<arg2<<" , max level found="<<qp<<Message_EndLine;
+  if (qp < 0) sout<<arg1<<" is not super-entity of "<<arg2<<std::endl;
+  else if (qp == 0) sout<<arg1<<" is same as "<<arg2<<std::endl;
+  else sout<<arg1<<" is super-entity of "<<arg2<<" , max level found="<<qp<<std::endl;
 //  sout<<" Trouve "<<qp<<std::endl;
   return IFSelect_RetVoid;
 }
@@ -581,8 +583,8 @@ static IFSelect_ReturnStatus fun14
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    NewInt            ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 1) { sout<<"Donner la valeur entiere pour IntParam"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 1) { sout<<"Donner la valeur entiere pour IntParam"<<std::endl; return IFSelect_RetError; }
   Handle(IFSelect_IntParam) intpar = new IFSelect_IntParam;
   if (argc >= 1)       intpar->SetValue(atoi(arg1));
   return pilot->RecordItem (intpar);
@@ -596,9 +598,9 @@ static IFSelect_ReturnStatus fun15
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    SetInt            ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 3)
-    { sout<<"Donner 2 arguments : nom Parametre et Valeur"<<Message_EndLine; return IFSelect_RetError; }
+    { sout<<"Donner 2 arguments : nom Parametre et Valeur"<<std::endl; return IFSelect_RetError; }
   Standard_Integer val = atoi(arg2);
   DeclareAndCast(IFSelect_IntParam,par,WS->NamedItem(arg1));
   if (!WS->SetIntValue(par,val)) return IFSelect_RetFail;
@@ -612,8 +614,8 @@ static IFSelect_ReturnStatus fun16
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    NewText           ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 1) { sout<<"Donner la valeur texte pour TextParam"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 1) { sout<<"Donner la valeur texte pour TextParam"<<std::endl; return IFSelect_RetError; }
   Handle(TCollection_HAsciiString) textpar = new TCollection_HAsciiString();
   if (argc >= 1) textpar->AssignCat(arg1);
   return pilot->RecordItem (textpar);
@@ -627,9 +629,9 @@ static IFSelect_ReturnStatus fun17
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    SetText           ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 3)
-    { sout<<"Donner 2 arguments : nom Parametre et Valeur"<<Message_EndLine; return IFSelect_RetError; }
+    { sout<<"Donner 2 arguments : nom Parametre et Valeur"<<std::endl; return IFSelect_RetError; }
   DeclareAndCast(TCollection_HAsciiString,par,WS->NamedItem(arg1));
   if (!WS->SetTextValue(par,arg2)) return IFSelect_RetFail;
   return IFSelect_RetDone;
@@ -642,8 +644,8 @@ static IFSelect_ReturnStatus fun19
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    DumpSel           ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Give 1 argument : Selection Name"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Give 1 argument : Selection Name"<<std::endl; return IFSelect_RetError; }
   WS->DumpSelection (GetCasted(IFSelect_Selection,WS->NamedItem(arg1)));
   return IFSelect_RetVoid;
 }
@@ -659,8 +661,8 @@ static IFSelect_ReturnStatus fun20
 //        ****    MakeList          ****
   char mode = pilot->Arg(0)[0];  // givelist/makelist
   if (mode == 'g') mode = pilot->Arg(0)[4];  // l list  s short  p pointed
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Give Entity ID, or Selection Name [+ optional other selection or entity]"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Give Entity ID, or Selection Name [+ optional other selection or entity]"<<std::endl; return IFSelect_RetError; }
 
 //    MakeList : sur Pointed existante ou a creer
   Handle(IFSelect_SelectPointed) pnt;
@@ -669,10 +671,10 @@ static IFSelect_ReturnStatus fun20
     Handle(Standard_Transient) item = WS->NamedItem (arg1);
     pnt = GetCasted(IFSelect_SelectPointed,item);
     if (!pnt.IsNull()) {
-      sout<<arg1<<":Already existing Selection for List, cleared then filled"<<Message_EndLine;
+      sout<<arg1<<":Already existing Selection for List, cleared then filled"<<std::endl;
       pnt->Clear();
     } else if (!item.IsNull()) {
-      sout<<arg1<<":Already existing Item not for a List, command ignored"<<Message_EndLine;
+      sout<<arg1<<":Already existing Item not for a List, command ignored"<<std::endl;
       return IFSelect_RetFail;
     } else {
       pnt = new IFSelect_SelectPointed;
@@ -685,19 +687,19 @@ static IFSelect_ReturnStatus fun20
   if (result.IsNull()) return IFSelect_RetError;
   Interface_EntityIterator iter (result);
   sout<<pilot->CommandPart( (mode == 'm' ? 2 : 1) )<<" : ";
-  if      (mode == 'l')   WS->ListEntities (iter,0);
-  else if (mode == 's' || mode == 'm') WS->ListEntities (iter,2);
+  if      (mode == 'l')   WS->ListEntities (iter, 0, sout);
+  else if (mode == 's' || mode == 'm') WS->ListEntities (iter, 2, sout);
   else if (mode == 'p') {
     sout<<iter.NbEntities()<<" Entities : ";
     for (iter.Start(); iter.More(); iter.Next())
       sout<<" +"<<WS->StartingNumber (iter.Value());
-    sout<<Message_EndLine;
+    sout<<std::endl;
   }
 
   if (!pnt.IsNull()) {
     pnt->SetList (result);
-    sout<<"List set to a SelectPointed : "<<pilot->Arg(1)<<Message_EndLine;
-    sout<<"Later editable by command setlist"<<Message_EndLine;
+    sout<<"List set to a SelectPointed : "<<pilot->Arg(1)<<std::endl;
+    sout<<"Later editable by command setlist"<<std::endl;
   }
 
   return IFSelect_RetVoid;
@@ -709,13 +711,13 @@ static IFSelect_ReturnStatus fun20c
   Handle(IFSelect_WorkSession) WS = pilot->Session();
   Standard_Integer argc = pilot->NbWords();
 //        ****    GiveCount         ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Give Entity ID, or Selection Name [+ optional other selection or entity]"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Give Entity ID, or Selection Name [+ optional other selection or entity]"<<std::endl; return IFSelect_RetError; }
 //  WS->EvaluateSelection(GetCasted(IFSelect_Selection,WS->NamedItem(arg1)));
   Handle(TColStd_HSequenceOfTransient) result =
     IFSelect_Functions::GiveList (WS,pilot->CommandPart(1));
   if (result.IsNull()) return IFSelect_RetError;
-  sout<<pilot->CommandPart(1)<<" : List of "<<result->Length()<<" Entities"<<Message_EndLine;
+  sout<<pilot->CommandPart(1)<<" : List of "<<result->Length()<<" Entities"<<std::endl;
   return IFSelect_RetVoid;
 }
 
@@ -725,15 +727,15 @@ static IFSelect_ReturnStatus funselsuite
   Handle(IFSelect_WorkSession) WS = pilot->Session();
   Standard_Integer argc = pilot->NbWords();
 //        ****    SelSuite         ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Give Entity ID, or Selection Name [+ optional other selection or entity]"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Give Entity ID, or Selection Name [+ optional other selection or entity]"<<std::endl; return IFSelect_RetError; }
 //  WS->EvaluateSelection(GetCasted(IFSelect_Selection,WS->NamedItem(arg1)));
   Handle(IFSelect_SelectSuite) selsuite = new IFSelect_SelectSuite;
 
   for (Standard_Integer i = 1; i < argc; i ++) {
     Handle(IFSelect_Selection) sel = WS->GiveSelection(pilot->Arg(i));
     if (!selsuite->AddInput(sel)) {
-      sout<<pilot->Arg(i-1)<<" : not a SelectDeduct, no more can be added. Abandon"<<Message_EndLine;
+      sout<<pilot->Arg(i-1)<<" : not a SelectDeduct, no more can be added. Abandon"<<std::endl;
       return IFSelect_RetError;
     }
   }
@@ -767,11 +769,11 @@ static IFSelect_ReturnStatus fun22
     if (arg1[0] == '?') mode = -1;
   }
   else mode = 0;
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (mode <= 0) {
     if (mode < 0) sout<<"Give a suitable mode";
     sout<<"  Available Modes :\n"
-      <<" a : all data    g : graph+check  c : check  p : selectpointed"<<Message_EndLine;
+      <<" a : all data    g : graph+check  c : check  p : selectpointed"<<std::endl;
     return (mode < 0 ? IFSelect_RetError : IFSelect_RetVoid);
   }
   WS->ClearData (mode);
@@ -784,9 +786,9 @@ static IFSelect_ReturnStatus fun24
   Handle(IFSelect_WorkSession) WS = pilot->Session();
   Standard_Integer argc = pilot->NbWords();
 //        ****    Item Label         ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   TCollection_AsciiString label;
-  if (argc < 2) { sout<<" Give  label to search"<<Message_EndLine;  return IFSelect_RetError;  }
+  if (argc < 2) { sout<<" Give  label to search"<<std::endl;  return IFSelect_RetError;  }
   for (int i = 1; i < argc; i ++) {
     label.AssignCat(pilot->Arg(i));
     if (i < argc-1) label.AssignCat(" ");
@@ -794,14 +796,14 @@ static IFSelect_ReturnStatus fun24
   for (int mode = 0; mode <= 2; mode ++) {
     int nbitems = 0;  int id;
     sout<<"Searching label : "<<label<<". in mode ";
-    if (mode == 0) sout <<" exact" << Message_EndLine;
-    if (mode == 1) sout <<" same head" << Message_EndLine;
-    if (mode == 2) sout <<" search if present" << Message_EndLine;
+    if (mode == 0) sout <<" exact" << std::endl;
+    if (mode == 1) sout <<" same head" << std::endl;
+    if (mode == 2) sout <<" search if present" << std::endl;
     for (id = WS->NextIdentForLabel(label.ToCString(), 0,mode)  ; id != 0;
         id = WS->NextIdentForLabel(label.ToCString(),id,mode)) {
       sout<<" "<<id;  nbitems ++;
     }
-    sout<<" -- giving " << nbitems << " found" << Message_EndLine;
+    sout<<" -- giving " << nbitems << " found" << std::endl;
   }
   return IFSelect_RetVoid;
 }
@@ -813,8 +815,8 @@ static IFSelect_ReturnStatus fun25
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Save (Dump)       ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner nom du Fichier"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Donner nom du Fichier"<<std::endl; return IFSelect_RetError; }
   IFSelect_SessionFile dumper(WS,arg1);
   if (!dumper.IsDone()) return IFSelect_RetFail;
   return IFSelect_RetDone;
@@ -827,13 +829,13 @@ static IFSelect_ReturnStatus fun26
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Restore (Dump)    ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner nom du Fichier"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Donner nom du Fichier"<<std::endl; return IFSelect_RetError; }
   IFSelect_SessionFile dumper(WS);
   Standard_Integer readstat = dumper.Read(arg1);
   if      (readstat == 0) return IFSelect_RetDone;
-  else if (readstat >  0) sout << "-- Erreur Lecture Fichier "<<arg1<<Message_EndLine;
-  else                    sout << "-- Pas pu ouvrir Fichier "<<arg1<<Message_EndLine;
+  else if (readstat >  0) sout << "-- Erreur Lecture Fichier "<<arg1<<std::endl;
+  else                    sout << "-- Pas pu ouvrir Fichier "<<arg1<<std::endl;
   return IFSelect_RetDone;
 }
 
@@ -845,33 +847,33 @@ static IFSelect_ReturnStatus fun27
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    Param(Value)         ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 2) {
     Handle(TColStd_HSequenceOfHAsciiString) li = Interface_Static::Items();
     Standard_Integer i,nb = li->Length();
-    sout<<" List of parameters : "<<nb<<" items : "<<Message_EndLine;
+    sout<<" List of parameters : "<<nb<<" items : "<<std::endl;
     for (i = 1; i <= nb; i ++) {
-      sout<<li->Value(i);
-      sout<<" : "<<Interface_Static::CVal(li->Value(i)->ToCString())<<Message_EndLine;
+      sout<<li->Value(i)->String();
+      sout<<" : "<<Interface_Static::CVal(li->Value(i)->ToCString())<<std::endl;
     }
     return IFSelect_RetVoid;
   } else if (atoi(arg1) > 0) {
     Standard_Integer use = atoi (arg1);
     WS->TraceStatics (use);
   } else {
-    if (argc > 2) sout<<"     FORMER STATUS of Static Parameter "<<arg1<<Message_EndLine;
-    else          sout<<"     ACTUAL STATUS of Static Parameter "<<arg1<<Message_EndLine;
-    if (!Interface_Static::IsPresent(arg1)) { sout<<" Parameter "<<arg1<<" undefined"<<Message_EndLine; return IFSelect_RetError; }
-    if (!Interface_Static::IsSet(arg1)) sout<<" Parameter "<<arg1<<" not valued"<<Message_EndLine;
-    else if (argc == 2) Interface_Static::Static (arg1) -> Print(sout);
-    else sout<<" Value : "<<Interface_Static::CVal(arg1)<<Message_EndLine;
-
-    if (argc == 2) sout<<"To modify, param name_param new_val"<<Message_EndLine;
+    if (argc > 2) sout<<"     FORMER STATUS of Static Parameter "<<arg1<<std::endl;
+    else          sout<<"     ACTUAL STATUS of Static Parameter "<<arg1<<std::endl;
+    if (!Interface_Static::IsPresent(arg1)) { sout<<" Parameter "<<arg1<<" undefined"<<std::endl; return IFSelect_RetError; }
+    if (!Interface_Static::IsSet(arg1)) sout<<" Parameter "<<arg1<<" not valued"<<std::endl;
+    else if (argc == 2) Interface_Static::Static (arg1) -> Print (sout);
+    else sout<<" Value : "<<Interface_Static::CVal(arg1)<<std::endl;
+
+    if (argc == 2) sout<<"To modify, param name_param new_val"<<std::endl;
     else {
       sout<<" New demanded value : "<<arg2;
       if (Interface_Static::SetCVal (arg1,arg2))
-       {  sout<<"   OK"<<Message_EndLine;  return IFSelect_RetDone;  }
-      else  {  sout <<" , refused"<<Message_EndLine;  return IFSelect_RetError;  }
+       {  sout<<"   OK"<<std::endl;  return IFSelect_RetDone;  }
+      else  {  sout <<" , refused"<<std::endl;  return IFSelect_RetError;  }
     }
   }
   return IFSelect_RetVoid;
@@ -883,13 +885,13 @@ static IFSelect_ReturnStatus fun29
   Handle(IFSelect_WorkSession) WS = pilot->Session();
 //        ****    SentFiles         ****
   Handle(TColStd_HSequenceOfHAsciiString) list = WS->SentFiles();
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (list.IsNull())
-    { sout<<"List of Sent Files not enabled"<<Message_EndLine; return IFSelect_RetVoid; }
+    { sout<<"List of Sent Files not enabled"<<std::endl; return IFSelect_RetVoid; }
   Standard_Integer i, nb = list->Length();
-  sout<<"  Sent Files : "<<nb<<" : "<<Message_EndLine;
+  sout<<"  Sent Files : "<<nb<<" : "<<std::endl;
   for (i = 1; i <= nb; i ++)
-    sout<<list->Value(i)->ToCString()<<Message_EndLine
+    sout<<list->Value(i)->ToCString()<<std::endl
   return IFSelect_RetVoid;
 }
 
@@ -900,11 +902,11 @@ static IFSelect_ReturnStatus fun30
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    FilePrefix        ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 2) {
-    if (WS->FilePrefix().IsNull()) sout<<"Pas de prefixe defini"<<Message_EndLine;
-    else sout<<"Prefixe : "<<WS->FilePrefix()->ToCString()<<Message_EndLine;
-    sout<<"Pour changer :  filepref newprefix"<<Message_EndLine;
+    if (WS->FilePrefix().IsNull()) sout<<"Pas de prefixe defini"<<std::endl;
+    else sout<<"Prefixe : "<<WS->FilePrefix()->ToCString()<<std::endl;
+    sout<<"Pour changer :  filepref newprefix"<<std::endl;
     return IFSelect_RetVoid;
   }
   WS->SetFilePrefix(arg1);
@@ -918,11 +920,11 @@ static IFSelect_ReturnStatus fun31
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    FileExtension     ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 2) {
-    if (WS->FileExtension().IsNull()) sout<<"Pas d extension definie"<<Message_EndLine;
-    else sout<<"Extension : "<<WS->FileExtension()->ToCString()<<Message_EndLine;
-    sout<<"Pour changer :  fileext newext"<<Message_EndLine;
+    if (WS->FileExtension().IsNull()) sout<<"Pas d extension definie"<<std::endl;
+    else sout<<"Extension : "<<WS->FileExtension()->ToCString()<<std::endl;
+    sout<<"Pour changer :  fileext newext"<<std::endl;
     return IFSelect_RetVoid;
   }
   WS->SetFileExtension(arg1);
@@ -937,13 +939,13 @@ static IFSelect_ReturnStatus fun32
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    FileRoot          ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner Dispatch et nom de Root"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Donner Dispatch et nom de Root"<<std::endl; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_Dispatch,disp,WS->NamedItem(arg1));
   if (argc < 3) {
-    if (WS->FileRoot(disp).IsNull()) sout<<"Pas de racine definie pour "<<arg1<<Message_EndLine;
-    else sout<<"Racine pour "<<arg1<<" : "<<WS->FileRoot(disp)->ToCString()<<Message_EndLine;
-    sout<<"Pour changer :  fileroot nomdisp newroot"<<Message_EndLine;
+    if (WS->FileRoot(disp).IsNull()) sout<<"Pas de racine definie pour "<<arg1<<std::endl;
+    else sout<<"Racine pour "<<arg1<<" : "<<WS->FileRoot(disp)->ToCString()<<std::endl;
+    sout<<"Pour changer :  fileroot nomdisp newroot"<<std::endl;
     return IFSelect_RetVoid;
   }
   if (!WS->SetFileRoot(disp,arg2)) return IFSelect_RetFail;
@@ -957,11 +959,11 @@ static IFSelect_ReturnStatus fun33
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Default File Root     ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 2) {
-    if (WS->DefaultFileRoot().IsNull()) sout<<"Pas de racine par defaut definie"<<Message_EndLine;
-    else sout<<"Racine par defaut : "<<WS->DefaultFileRoot()->ToCString()<<Message_EndLine;
-    sout<<"Pour changer :  filedef newdef"<<Message_EndLine;
+    if (WS->DefaultFileRoot().IsNull()) sout<<"Pas de racine par defaut definie"<<std::endl;
+    else sout<<"Racine par defaut : "<<WS->DefaultFileRoot()->ToCString()<<std::endl;
+    sout<<"Pour changer :  filedef newdef"<<std::endl;
     return IFSelect_RetVoid;
   }
   WS->SetDefaultFileRoot(arg1);
@@ -973,20 +975,20 @@ static IFSelect_ReturnStatus fun34
 {
   Handle(IFSelect_WorkSession) WS = pilot->Session();
 //        ****    EvalFile          ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (!WS->HasModel()) 
-    {  sout<<"Pas de Modele charge, abandon"<<Message_EndLine;  return IFSelect_RetFail; }
+    {  sout<<"Pas de Modele charge, abandon"<<std::endl;  return IFSelect_RetFail; }
 
-  sout<<"Evaluation avec Memorisation des resultats"<<Message_EndLine;
+  sout<<"Evaluation avec Memorisation des resultats"<<std::endl;
   WS->EvaluateFile();
   Standard_Integer nbf = WS->NbFiles();
   for (Standard_Integer i = 1; i <= nbf; i ++) {
     Handle(Interface_InterfaceModel) mod = WS->FileModel(i);
     if (mod.IsNull())
-      {  sout<<"Modele "<<i<<" Model non genere ..."<<Message_EndLine; continue;  }
+      {  sout<<"Modele "<<i<<" Model non genere ..."<<std::endl; continue;  }
     TCollection_AsciiString name = WS->FileName(i);
     sout<<"Fichier n0 "<<i<<" Nb Entites : "<<mod->NbEntities()<<"  Nom: ";
-    sout<<name<<Message_EndLine;
+    sout<<name<<std::endl;
   }
   return IFSelect_RetDone;
 }
@@ -1005,15 +1007,15 @@ static IFSelect_ReturnStatus fun36
   Handle(IFSelect_WorkSession) WS = pilot->Session();
   Standard_Integer argc = pilot->NbWords();
 //        ****    Split              ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   IFSelect_ReturnStatus stat = IFSelect_RetVoid;
-  if (argc < 2) sout<<"Split : derniere liste de dispatches definie"<<Message_EndLine;
+  if (argc < 2) sout<<"Split : derniere liste de dispatches definie"<<std::endl;
   else {
     WS->ClearShareOut(Standard_True);
     for (Standard_Integer i = 1; i < argc; i ++) {
       DeclareAndCast(IFSelect_Dispatch,disp,WS->NamedItem(pilot->Arg(i)));
       if (disp.IsNull()) {
-       sout<<"Pas un dispatch:"<<pilot->Arg(i)<<", Splitt abandonne"<<Message_EndLine;
+       sout<<"Pas un dispatch:"<<pilot->Arg(i)<<", Splitt abandonne"<<std::endl;
        stat = IFSelect_RetError;
       }
       else WS->SetActive(disp,Standard_True);
@@ -1039,9 +1041,9 @@ static IFSelect_ReturnStatus fun37
   else if (mode == 'c') numod = IFSelect_RemainCompute;
   else if (mode == 'f') numod = IFSelect_RemainForget;
   else {
-    Handle(Message_Messenger) sout = Message::DefaultMessenger();
+    Message_Messenger::StreamBuffer sout = Message::SendInfo();
     if (argc<2) sout<<"Donner un Mode - ";
-    sout<<"Modes possibles : l  list, c compute, u undo, f forget"<<Message_EndLine;
+    sout<<"Modes possibles : l  list, c compute, u undo, f forget"<<std::endl;
     if (mode == '?') return IFSelect_RetDone;   else return IFSelect_RetError;
   }
   if (!WS->SetRemaining(numod)) return IFSelect_RetVoid;
@@ -1056,18 +1058,18 @@ static IFSelect_ReturnStatus fun38
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    SetModelContent    ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<"Donner nom selection et mode (k=keep,r=remove)"<<Message_EndLine;  return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 3) { sout<<"Donner nom selection et mode (k=keep,r=remove)"<<std::endl;  return IFSelect_RetError; }
   Standard_Boolean keepmode;
   DeclareAndCast(IFSelect_Selection,sel,WS->NamedItem(arg1));
   if (sel.IsNull())
-    { sout<<"Pas de Selection de Nom : "<<arg1<<Message_EndLine; return IFSelect_RetError; }
+    { sout<<"Pas de Selection de Nom : "<<arg1<<std::endl; return IFSelect_RetError; }
   if      (arg2[0] == 'k') {  sout<<" -- SetContent keep ..."; keepmode = Standard_True; }
   else if (arg2[0] == 'r') {  sout<<" -- SetContent remove ..."; keepmode = Standard_False; }
-  else { sout<<"Donner nom selection et mode (k=keep,r=remove)"<<Message_EndLine;  return IFSelect_RetError; }
+  else { sout<<"Donner nom selection et mode (k=keep,r=remove)"<<std::endl;  return IFSelect_RetError; }
   
-  if (WS->SetModelContent(sel,keepmode)) sout<<" Done"<<Message_EndLine;
-  else sout<<" Result empty, ignored"<<Message_EndLine;
+  if (WS->SetModelContent(sel,keepmode)) sout<<" Done"<<std::endl;
+  else sout<<" Result empty, ignored"<<std::endl;
   return IFSelect_RetDone;
 }
 
@@ -1087,30 +1089,30 @@ static IFSelect_ReturnStatus fun41
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Modifier           ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner Nom du Modifier"<<Message_EndLine;  return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Donner Nom du Modifier"<<std::endl;  return IFSelect_RetError; }
   DeclareAndCast(IFSelect_GeneralModifier,modif,WS->NamedItem(arg1));
   if (modif.IsNull())
-    { sout<<"Pas de Modifier de Nom : "<<arg1<<Message_EndLine; return IFSelect_RetVoid; }
+    { sout<<"Pas de Modifier de Nom : "<<arg1<<std::endl; return IFSelect_RetVoid; }
   Handle(IFSelect_IntParam) low,up;
 
   Handle(IFSelect_Dispatch) disp = modif->Dispatch();
-  sout<<"Modifier : "<<arg1<<" Label : "<<modif->Label()<<Message_EndLine;
+  sout<<"Modifier : "<<arg1<<" Label : "<<modif->Label()<<std::endl;
   Standard_Integer rank = WS->ModifierRank(modif);
   if (modif->IsKind(STANDARD_TYPE(IFSelect_Modifier)))
     sout<< "Model Modifier n0." << rank;
   else sout<< "File Modifier n0." << rank;
-  if (disp.IsNull()) sout<<"  Applique a tous les Dispatchs" << Message_EndLine;
+  if (disp.IsNull()) sout<<"  Applique a tous les Dispatchs" << std::endl;
   else {
     sout << "  Dispatch : "<<disp->Label();
     if (WS->HasName(disp)) sout << " - Nom:"<<WS->Name(disp)->ToCString();
-    sout<<Message_EndLine;
+    sout<<std::endl;
   }
 
   Handle(IFSelect_Selection) sel = modif->Selection();
   if (!sel.IsNull()) sout<<"  Selection : "<< sel->Label();
   if (WS->HasName(sel)) sout<<" - Nom:"<< WS->Name(sel)->ToCString();
-  sout<<Message_EndLine;
+  sout<<std::endl;
   return IFSelect_RetVoid;
 }
 
@@ -1122,17 +1124,17 @@ static IFSelect_ReturnStatus fun42
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    ModifSel           ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 2) { sout<<"Donner Nom Modifier; + Nom Selection optionnel\n"
-                     <<"Selection pour Mettre une Selection, sinon Annule"<<Message_EndLine; return IFSelect_RetError; }
+                     <<"Selection pour Mettre une Selection, sinon Annule"<<std::endl; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_GeneralModifier,modif,WS->NamedItem(arg1));
   if (modif.IsNull())
-    { sout<<"Pas un nom de Modifier : "<<arg1<<Message_EndLine; return IFSelect_RetError;  }
+    { sout<<"Pas un nom de Modifier : "<<arg1<<std::endl; return IFSelect_RetError;  }
   Handle(IFSelect_Selection) sel;
   if (arg2[0] != '\0') {
     sel = GetCasted(IFSelect_Selection,WS->NamedItem(arg2));
     if (sel.IsNull())
-      { sout<<"Pas un nom de Selection : "<<arg2<<Message_EndLine;  return IFSelect_RetError;  }
+      { sout<<"Pas un nom de Selection : "<<arg2<<std::endl;  return IFSelect_RetError;  }
   }
   if (!WS->SetItemSelection(modif,sel)) return IFSelect_RetFail;
   return IFSelect_RetDone;
@@ -1146,19 +1148,19 @@ static IFSelect_ReturnStatus fun43
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    SetAppliedModifier           ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 2) { sout<<"Donner Nom Modifier; + Nom Dispatch ou Transformer optionnel :\n"
                      <<" - rien : tous Dispatches\n - Dispatch : ce Dispatch seul\n"
-                     <<" - Transformer : pas un Dispatch mais un Transformer"<<Message_EndLine;
+                     <<" - Transformer : pas un Dispatch mais un Transformer"<<std::endl;
                  return IFSelect_RetError;  }
   DeclareAndCast(IFSelect_GeneralModifier,modif,WS->NamedItem(arg1));
   if (modif.IsNull())
-    { sout<<"Pas un nom de Modifier : "<<arg1<<Message_EndLine;  return IFSelect_RetError;  }
+    { sout<<"Pas un nom de Modifier : "<<arg1<<std::endl;  return IFSelect_RetError;  }
   Handle(Standard_Transient) item;
   if (arg2[0] != '\0') {
     item = WS->NamedItem(arg2);
     if (item.IsNull())
-      { sout<<"Pas un nom connu : "<<arg2<<Message_EndLine;  return IFSelect_RetError;  }
+      { sout<<"Pas un nom connu : "<<arg2<<std::endl;  return IFSelect_RetError;  }
   }
   else item = WS->ShareOut();
   if (!WS->SetAppliedModifier(modif,item)) return IFSelect_RetFail;
@@ -1172,11 +1174,11 @@ static IFSelect_ReturnStatus fun44
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    ResetApplied (modifier)    ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Designer un modifier"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Designer un modifier"<<std::endl; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_GeneralModifier,modif,WS->NamedItem(arg1));
   if (modif.IsNull())
-    { sout<<"Pas un nom de Modifier : "<<arg1<<Message_EndLine;  return IFSelect_RetError;  }
+    { sout<<"Pas un nom de Modifier : "<<arg1<<std::endl;  return IFSelect_RetError;  }
   if (!WS->ResetAppliedModifier(modif)) return IFSelect_RetFail;
   return IFSelect_RetDone;
 }
@@ -1190,15 +1192,15 @@ static IFSelect_ReturnStatus fun45
   const Standard_CString arg2 = pilot->Arg(2);
   const Standard_CString arg3 = pilot->Arg(3);
 //        ****    ModifMove         ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 4) { sout<<"modifmove MF rang1 rang2, M pour Model F pour File"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 4) { sout<<"modifmove MF rang1 rang2, M pour Model F pour File"<<std::endl; return IFSelect_RetError; }
   Standard_Boolean formodel;
   if      (arg1[0] == 'm' || arg1[0] == 'M') formodel = Standard_True;
   else if (arg1[0] == 'f' || arg1[0] == 'F') formodel = Standard_False;
-  else { sout<<"preciser M pour Model, F pour File"<<Message_EndLine; return IFSelect_RetError; }
+  else { sout<<"preciser M pour Model, F pour File"<<std::endl; return IFSelect_RetError; }
   Standard_Integer before = atoi(arg2);
   Standard_Integer after  = atoi(arg3);
-  if (before == 0 || after == 0) { sout<<"Donner 2 Entiers Positifs"<<Message_EndLine; return IFSelect_RetError; }
+  if (before == 0 || after == 0) { sout<<"Donner 2 Entiers Positifs"<<std::endl; return IFSelect_RetError; }
   if (!WS->ChangeModifierRank(formodel,before,after)) return IFSelect_RetFail;
   return IFSelect_RetDone;
 }
@@ -1211,14 +1213,14 @@ static IFSelect_ReturnStatus fun51
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    DispSel           ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<"Donner Noms Dispatch et Selection Finale"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 3) { sout<<"Donner Noms Dispatch et Selection Finale"<<std::endl; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_Dispatch,disp,WS->NamedItem(arg1));
   if (disp.IsNull())
-    { sout<<"Pas un nom de Dispatch : "<<arg1<<Message_EndLine;  return IFSelect_RetError;  }
+    { sout<<"Pas un nom de Dispatch : "<<arg1<<std::endl;  return IFSelect_RetError;  }
   DeclareAndCast(IFSelect_Selection,sel,WS->NamedItem(arg2));
   if (sel.IsNull())
-    { sout<<"Pas un nom de Selection : "<<arg2<<Message_EndLine;  return IFSelect_RetError;  }
+    { sout<<"Pas un nom de Selection : "<<arg2<<std::endl;  return IFSelect_RetError;  }
   if (!WS->SetItemSelection(disp,sel)) return IFSelect_RetFail;
   return IFSelect_RetDone;
 }
@@ -1248,11 +1250,11 @@ static IFSelect_ReturnStatus fun_dispcount
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    DispCount         ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner Nom IntParam pour Count"<<Message_EndLine;  return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Donner Nom IntParam pour Count"<<std::endl;  return IFSelect_RetError; }
   DeclareAndCast(IFSelect_IntParam,par,WS->NamedItem(arg1));
   if (par.IsNull())
-    { sout<<"Pas un nom de IntParam : "<<arg1<<Message_EndLine;  return IFSelect_RetError;  }
+    { sout<<"Pas un nom de IntParam : "<<arg1<<std::endl;  return IFSelect_RetError;  }
   Handle(IFSelect_DispPerCount) disp = new IFSelect_DispPerCount;
   disp->SetCount (par);
   return pilot->RecordItem(disp);
@@ -1265,11 +1267,11 @@ static IFSelect_ReturnStatus fun_dispfiles
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    DispFiles         ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner Nom IntParam pour NbFiles"<<Message_EndLine;  return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Donner Nom IntParam pour NbFiles"<<std::endl;  return IFSelect_RetError; }
   DeclareAndCast(IFSelect_IntParam,par,WS->NamedItem(arg1));
   if (par.IsNull())
-    { sout<<"Pas un nom de IntParam : "<<arg1<<Message_EndLine;  return IFSelect_RetError;  }
+    { sout<<"Pas un nom de IntParam : "<<arg1<<std::endl;  return IFSelect_RetError;  }
   Handle(IFSelect_DispPerFiles) disp = new IFSelect_DispPerFiles;
   disp->SetCount (par);
   return pilot->RecordItem(disp);
@@ -1283,11 +1285,11 @@ static IFSelect_ReturnStatus fun_dispsign
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    DispFiles         ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner Nom Signature"<<Message_EndLine;  return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Donner Nom Signature"<<std::endl;  return IFSelect_RetError; }
   DeclareAndCast(IFSelect_Signature,sig,WS->NamedItem(arg1));
   if (sig.IsNull())
-    { sout<<"Pas un nom de Signature : "<<arg1<<Message_EndLine;  return IFSelect_RetError;  }
+    { sout<<"Pas un nom de Signature : "<<arg1<<std::endl;  return IFSelect_RetError;  }
   Handle(IFSelect_DispPerSignature) disp = new IFSelect_DispPerSignature;
   disp->SetSignCounter (new IFSelect_SignCounter(sig));
   return pilot->RecordItem(disp);
@@ -1301,19 +1303,19 @@ static IFSelect_ReturnStatus fun56
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Dispatch           ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner Nom du Dispatch"<<Message_EndLine;  return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Donner Nom du Dispatch"<<std::endl;  return IFSelect_RetError; }
   DeclareAndCast(IFSelect_Dispatch,disp,WS->NamedItem(arg1));
-  if (disp.IsNull()) { sout<<"Pas un dispatch : "<<arg1<<Message_EndLine; return IFSelect_RetError;  }
+  if (disp.IsNull()) { sout<<"Pas un dispatch : "<<arg1<<std::endl; return IFSelect_RetError;  }
   Standard_Integer num = WS->DispatchRank(disp);
   sout<<"Dispatch de Nom : "<<arg1<<" , en ShareOut, Numero "<<num<<" : ";
   Handle(IFSelect_Selection) sel = WS->ItemSelection(disp);
   Handle(TCollection_HAsciiString) selname = WS->Name(sel);
-  if (sel.IsNull())  sout<<"Pas de Selection Finale"<<Message_EndLine;
-  else if (selname.IsNull()) sout<<"Selection Finale : #"<<WS->ItemIdent(sel)<<Message_EndLine;
-  else sout<<"Selection Finale : "<<selname->ToCString()<<Message_EndLine;
+  if (sel.IsNull())  sout<<"Pas de Selection Finale"<<std::endl;
+  else if (selname.IsNull()) sout<<"Selection Finale : #"<<WS->ItemIdent(sel)<<std::endl;
+  else sout<<"Selection Finale : "<<selname->ToCString()<<std::endl;
   if (disp->HasRootName()) sout<<"-- Racine nom de fichier : "
-    <<disp->RootName()->ToCString()<<Message_EndLine;
+    <<disp->RootName()->ToCString()<<std::endl;
   return IFSelect_RetVoid;
 }
 
@@ -1324,8 +1326,8 @@ static IFSelect_ReturnStatus fun57
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Remove           ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Give Name to Remove !"<<Message_EndLine;  return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Give Name to Remove !"<<std::endl;  return IFSelect_RetError; }
   if (!WS->RemoveNamedItem(arg1)) return IFSelect_RetFail;
   return IFSelect_RetDone;
 }
@@ -1337,20 +1339,20 @@ static IFSelect_ReturnStatus fun58
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    EvalDisp          ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 3) { sout<<"evaldisp mode disp [disp ...] :  Mode + Name(s) of Dispatch(es). Mode:\n"
-                   <<"  0 brief  1 +forgotten ents  2 +duplicata  3 1+2"<<Message_EndLine
-                   <<"See also : evaladisp  writedisp  xsplit"<<Message_EndLine;
+                   <<"  0 brief  1 +forgotten ents  2 +duplicata  3 1+2"<<std::endl
+                   <<"See also : evaladisp  writedisp  xsplit"<<std::endl;
                  return IFSelect_RetVoid;  }
   Standard_Boolean OK = Standard_True;
   Standard_Integer i , mode = atoi(arg1);  sout<<" Mode "<<mode<<"\n";
   for (i = 2; i < argc; i ++) {
     DeclareAndCast(IFSelect_Dispatch,disp,WS->NamedItem(pilot->Arg(i)));
     if (disp.IsNull())
-      { sout<<"Not a dispatch:"<<pilot->Arg(i)<<Message_EndLine; OK = Standard_False; }
+      { sout<<"Not a dispatch:"<<pilot->Arg(i)<<std::endl; OK = Standard_False; }
   }
   if (!OK) {
-    sout<<"Some of the parameters are not correct"<<Message_EndLine;
+    sout<<"Some of the parameters are not correct"<<std::endl;
     return IFSelect_RetError;
   }
 
@@ -1372,17 +1374,17 @@ static IFSelect_ReturnStatus fun_evaladisp
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    EvalADisp [GiveList]         ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 3) { sout<<"evaladisp mode(=0-1-2-3) disp [givelist] :  Mode + Dispatch [+ GiveList]\n  If GiveList not given, computed from Selection of the Dispatch. Mode:\n"
-                   <<"  0 brief  1 +forgotten ents  2 +duplicata  3 1+2"<<Message_EndLine
-                   <<"See also : writedisp"<<Message_EndLine;
+                   <<"  0 brief  1 +forgotten ents  2 +duplicata  3 1+2"<<std::endl
+                   <<"See also : writedisp"<<std::endl;
                  return IFSelect_RetVoid;  }
-  if (arg1[1] != '\0') { sout<<"first parameter : mode, must be a number between 0 and 3"<<Message_EndLine; return IFSelect_RetError; }
+  if (arg1[1] != '\0') { sout<<"first parameter : mode, must be a number between 0 and 3"<<std::endl; return IFSelect_RetError; }
   Standard_Integer mode = atoi(arg1);  sout<<" Mode "<<mode<<"\n";
 //  DeclareAndCast(IFSelect_Dispatch,disp,WS->NamedItem(pilot->Arg(2)));
   Handle(IFSelect_Dispatch) disp = IFSelect_Functions::GiveDispatch (WS,pilot->Arg(2),Standard_True);
   if (disp.IsNull())
-    { sout<<"Not a dispatch:"<<pilot->Arg(2)<<Message_EndLine; return IFSelect_RetError; }
+    { sout<<"Not a dispatch:"<<pilot->Arg(2)<<std::endl; return IFSelect_RetError; }
   Handle(IFSelect_Selection) selsav = disp->FinalSelection();
   Handle(IFSelect_Selection) sel;
   if (argc > 3) {
@@ -1394,9 +1396,9 @@ static IFSelect_ReturnStatus fun_evaladisp
   }
 
   if (sel.IsNull() && selsav.IsNull())
-    { sout<<"No Selection nor GiveList defined"<<Message_EndLine; return IFSelect_RetError; }
+    { sout<<"No Selection nor GiveList defined"<<std::endl; return IFSelect_RetError; }
   if (sel.IsNull() && !selsav.IsNull()) {
-    if (argc > 3) sout<<"GiveList is empty, hence computed from the Selection of the Dispatch"<<Message_EndLine;
+    if (argc > 3) sout<<"GiveList is empty, hence computed from the Selection of the Dispatch"<<std::endl;
     sel = selsav;
   }
   disp->SetFinalSelection(sel);
@@ -1415,23 +1417,23 @@ static IFSelect_ReturnStatus fun_writedisp
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    EvalADisp [GiveList]         ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 3) { sout<<"writedisp filename disp [givelist] :  FileName + Dispatch [+ GiveList]\n  If GiveList not given, computed from Selection of the Dispatch.\n"
                    <<"FileName : rootname.ext will gives rootname_1.ext etc...\n"
                    <<"  path/rootname.ext gives  path/rootname_1.ext etc...\n"
-                   <<"See also : evaladisp"<<Message_EndLine;
+                   <<"See also : evaladisp"<<std::endl;
                  return IFSelect_RetVoid;  }
   TCollection_AsciiString prefix,rootname,suffix;
   SplitFileName (arg1,prefix,rootname,suffix);
   if (rootname.Length() == 0 || suffix.Length() == 0) {
-    sout<<"Empty Root Name or Extension"<<Message_EndLine;
+    sout<<"Empty Root Name or Extension"<<std::endl;
     return IFSelect_RetError;
   }
 
 //  DeclareAndCast(IFSelect_Dispatch,disp,WS->NamedItem(pilot->Arg(2)));
   Handle(IFSelect_Dispatch) disp = IFSelect_Functions::GiveDispatch (WS,pilot->Arg(2),Standard_True);
   if (disp.IsNull())
-    { sout<<"Not a dispatch:"<<pilot->Arg(2)<<Message_EndLine; return IFSelect_RetError; }
+    { sout<<"Not a dispatch:"<<pilot->Arg(2)<<std::endl; return IFSelect_RetError; }
   Handle(IFSelect_Selection) selsav = disp->FinalSelection();
   Handle(IFSelect_Selection) sel;
   if (argc > 3) {
@@ -1443,9 +1445,9 @@ static IFSelect_ReturnStatus fun_writedisp
   }
 
   if (sel.IsNull() && selsav.IsNull())
-    { sout<<"No Selection nor GiveList defined"<<Message_EndLine; return IFSelect_RetError; }
+    { sout<<"No Selection nor GiveList defined"<<std::endl; return IFSelect_RetError; }
   if (sel.IsNull() && !selsav.IsNull()) {
-    if (argc > 3) sout<<"GiveList is empty, hence computed from the Selection of the Dispatch"<<Message_EndLine;
+    if (argc > 3) sout<<"GiveList is empty, hence computed from the Selection of the Dispatch"<<std::endl;
     sel = selsav;
   }
 
@@ -1472,9 +1474,9 @@ static IFSelect_ReturnStatus fun59
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    EvalComplete      ****
   Standard_Integer mode = 0;
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 2) sout << " -- mode par defaut 0\n";
-  else { mode = atoi(arg1); sout << " -- mode : " << mode << Message_EndLine;  }
+  else { mode = atoi(arg1); sout << " -- mode : " << mode << std::endl;  }
   WS->EvaluateComplete(mode);  return IFSelect_RetVoid;
 }
 
@@ -1486,7 +1488,8 @@ static IFSelect_ReturnStatus fun60
   Interface_CheckIterator chlist = WS->LastRunCheckList();
   Handle(IFSelect_CheckCounter) counter = new IFSelect_CheckCounter(0);
   counter->Analyse(chlist,WS->Model(),Standard_False);
-  counter->PrintCount (Message::DefaultMessenger());
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  counter->PrintCount (sout);
   return IFSelect_RetVoid;
 }
 
@@ -1497,24 +1500,24 @@ static IFSelect_ReturnStatus fun61
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    RunTransformer    ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner Nom de Transformer"<<Message_EndLine; return IFSelect_RetError;  }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Donner Nom de Transformer"<<std::endl; return IFSelect_RetError;  }
   DeclareAndCast(IFSelect_Transformer,tsf,WS->NamedItem(arg1));
   Standard_Integer effect = WS->RunTransformer(tsf);
   switch (effect) {
-    case -4 : sout<<"Edition sur place, nouveau Protocole, erreur recalcul graphe"<<Message_EndLine; break;
-    case -3 : sout<<"Erreur, Transformation ignoree"<<Message_EndLine; break;
-    case -2 : sout<<"Erreur sur edition sur place, risque de corruption (verifier)"<<Message_EndLine; break;
-    case -1 : sout<<"Erreur sur edition locale, risque de corruption (verifier)"<<Message_EndLine; break;
+    case -4 : sout<<"Edition sur place, nouveau Protocole, erreur recalcul graphe"<<std::endl; break;
+    case -3 : sout<<"Erreur, Transformation ignoree"<<std::endl; break;
+    case -2 : sout<<"Erreur sur edition sur place, risque de corruption (verifier)"<<std::endl; break;
+    case -1 : sout<<"Erreur sur edition locale, risque de corruption (verifier)"<<std::endl; break;
     case  0 :
-      if   (tsf.IsNull()) sout<<"Erreur, pas un Transformer: "<<arg1<<Message_EndLine;
-      else sout<<"Execution non faite"<<Message_EndLine;
+      if   (tsf.IsNull()) sout<<"Erreur, pas un Transformer: "<<arg1<<std::endl;
+      else sout<<"Execution non faite"<<std::endl;
              break;
-    case  1 : sout<<"Transformation locale (graphe non touche)"<<Message_EndLine; break;
-    case  2 : sout<<"Edition sur place (graphe recalcule)"<<Message_EndLine;  break;
-    case  3 : sout<<"Modele reconstruit"<<Message_EndLine; break;
-    case  4 : sout<<"Edition sur place, nouveau Protocole"<<Message_EndLine;  break;
-    case  5 : sout<<"Nouveau Modele avec nouveau Protocole"<<Message_EndLine; break;
+    case  1 : sout<<"Transformation locale (graphe non touche)"<<std::endl; break;
+    case  2 : sout<<"Edition sur place (graphe recalcule)"<<std::endl;  break;
+    case  3 : sout<<"Modele reconstruit"<<std::endl; break;
+    case  4 : sout<<"Edition sur place, nouveau Protocole"<<std::endl;  break;
+    case  5 : sout<<"Nouveau Modele avec nouveau Protocole"<<std::endl; break;
     default : break;
   }
   return ((effect > 0) ? IFSelect_RetDone : IFSelect_RetFail);
@@ -1554,9 +1557,9 @@ static IFSelect_ReturnStatus fun6465
     pilot->Perform();
     modif = GetCasted(IFSelect_Modifier,pilot->RecordedItem());
   }
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (modif.IsNull())
-    { sout<<"Pas un nom de Modifier : "<<arg1<<Message_EndLine;  return IFSelect_RetError;  }
+    { sout<<"Pas un nom de Modifier : "<<arg1<<std::endl;  return IFSelect_RetError;  }
 
   Handle(TColStd_HSequenceOfTransient) list;
   Handle(IFSelect_SelectPointed) sp;
@@ -1570,19 +1573,19 @@ static IFSelect_ReturnStatus fun6465
   effect = WS->RunModifierSelected (modif,sp,runcopy);
 //      sout<<"Modifier applique sur TransformStandard #"<<WS->ItemIdent(tsf)<<std::endl;
   switch (effect) {
-    case -4 : sout<<"Edition sur place, nouveau Protocole, erreur recalcul graphe"<<Message_EndLine; break;
-    case -3 : sout<<"Erreur, Transformation ignoree"<<Message_EndLine; break;
-    case -2 : sout<<"Erreur sur edition sur place, risque de corruption (verifier)"<<Message_EndLine; break;
-    case -1 : sout<<"Erreur sur edition locale, risque de corruption (verifier)"<<Message_EndLine; break;
+    case -4 : sout<<"Edition sur place, nouveau Protocole, erreur recalcul graphe"<<std::endl; break;
+    case -3 : sout<<"Erreur, Transformation ignoree"<<std::endl; break;
+    case -2 : sout<<"Erreur sur edition sur place, risque de corruption (verifier)"<<std::endl; break;
+    case -1 : sout<<"Erreur sur edition locale, risque de corruption (verifier)"<<std::endl; break;
     case  0 :
-      if   (modif.IsNull()) sout<<"Erreur, pas un Modifier: "<<arg1<<Message_EndLine;
-      else sout<<"Execution non faite"<<Message_EndLine;
+      if   (modif.IsNull()) sout<<"Erreur, pas un Modifier: "<<arg1<<std::endl;
+      else sout<<"Execution non faite"<<std::endl;
              break;
-    case  1 : sout<<"Transformation locale (graphe non touche)"<<Message_EndLine; break;
-    case  2 : sout<<"Edition sur place (graphe recalcule)"<<Message_EndLine;  break;
-    case  3 : sout<<"Modele reconstruit"<<Message_EndLine; break;
-    case  4 : sout<<"Edition sur place, nouveau Protocole"<<Message_EndLine;  break;
-    case  5 : sout<<"Nouveau Modele avec nouveau Protocole"<<Message_EndLine; break;
+    case  1 : sout<<"Transformation locale (graphe non touche)"<<std::endl; break;
+    case  2 : sout<<"Edition sur place (graphe recalcule)"<<std::endl;  break;
+    case  3 : sout<<"Modele reconstruit"<<std::endl; break;
+    case  4 : sout<<"Edition sur place, nouveau Protocole"<<std::endl;  break;
+    case  5 : sout<<"Nouveau Modele avec nouveau Protocole"<<std::endl; break;
     default : break;
   }
   return ((effect > 0) ? IFSelect_RetDone : IFSelect_RetFail);
@@ -1595,9 +1598,9 @@ static IFSelect_ReturnStatus fun66
   char opt = ' ';
   Standard_Integer argc = pilot->NbWords();
   if (argc >= 2) opt = pilot->Word(1).Value(1);
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (opt != 'f' && opt != 'l')
-    { sout<<"Donner option : f -> root-first  l -> root-last"<<Message_EndLine; return IFSelect_RetError; }
+    { sout<<"Donner option : f -> root-first  l -> root-last"<<std::endl; return IFSelect_RetError; }
   return pilot->RecordItem(new IFSelect_ModifReorder(opt == 'l'));
 }
 
@@ -1608,13 +1611,13 @@ static IFSelect_ReturnStatus fun70
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    SelToggle         ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner Nom de Selection"<<Message_EndLine; return IFSelect_RetError;  }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Donner Nom de Selection"<<std::endl; return IFSelect_RetError;  }
   DeclareAndCast(IFSelect_Selection,sel,WS->NamedItem(arg1));
   if (!WS->ToggleSelectExtract(sel))
-    { sout<<"Pas une SelectExtract : "<<arg1<<Message_EndLine; return IFSelect_RetFail;  }
-  if (WS->IsReversedSelectExtract(sel)) sout<<arg1<<" a present Reversed"<<Message_EndLine;
-  else sout<<arg1<<" a present Directe"<<Message_EndLine;
+    { sout<<"Pas une SelectExtract : "<<arg1<<std::endl; return IFSelect_RetFail;  }
+  if (WS->IsReversedSelectExtract(sel)) sout<<arg1<<" a present Reversed"<<std::endl;
+  else sout<<arg1<<" a present Directe"<<std::endl;
   return IFSelect_RetDone;
 }
 
@@ -1626,14 +1629,14 @@ static IFSelect_ReturnStatus fun71
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    SelInput          ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<"Donner Noms Selections cible et input"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 3) { sout<<"Donner Noms Selections cible et input"<<std::endl; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_Selection,sel,WS->NamedItem(arg1));
   DeclareAndCast(IFSelect_Selection,sou,WS->NamedItem(arg2));
   if (sel.IsNull() || sou.IsNull())
-    {  sout<<"Incorrect : "<<arg1<<","<<arg2<<Message_EndLine;  return IFSelect_RetError;  }
+    {  sout<<"Incorrect : "<<arg1<<","<<arg2<<std::endl;  return IFSelect_RetError;  }
   if (!WS->SetInputSelection(sel,sou)) { 
-    sout<<"Nom incorrect ou Selection "<<arg1<<" ni Extract ni Deduct"<<Message_EndLine;
+    sout<<"Nom incorrect ou Selection "<<arg1<<" ni Extract ni Deduct"<<std::endl;
     return IFSelect_RetFail;
   }
   return IFSelect_RetDone;
@@ -1655,13 +1658,13 @@ static IFSelect_ReturnStatus fun73
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    SelRange          ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc >= 2 && arg1[0] == '?') argc = 1;
   if (argc < 2) {
     sout<<"Donner la description du SelectRange"
       <<"    Formes admises :\n <n1> <n2>  : Range de <n1> a <n2>\n"
       <<" <n1> tout seul : Range n0 <n1>\n  from <n1>  : Range From <n1>\n"
-      <<"  until <n2> : Range Until <n2>"<<Message_EndLine;
+      <<"  until <n2> : Range Until <n2>"<<std::endl;
     return IFSelect_RetVoid;
   }
 
@@ -1669,13 +1672,13 @@ static IFSelect_ReturnStatus fun73
   Handle(IFSelect_SelectRange) sel;
 //                                         Range From
   if (pilot->Word(1).IsEqual("from")) {
-    if (argc < 3) { sout<<"Forme admise : from <i>"<<Message_EndLine; return IFSelect_RetError; }
+    if (argc < 3) { sout<<"Forme admise : from <i>"<<std::endl; return IFSelect_RetError; }
     low = GetCasted(IFSelect_IntParam,WS->NamedItem(arg2));
     sel = new IFSelect_SelectRange;
     sel->SetFrom (low);
 //                                         Range Until
   } else if (pilot->Word(1).IsEqual("until")) {
-    if (argc < 3) { sout<<"Forme admise : until <i>"<<Message_EndLine; return IFSelect_RetError; }
+    if (argc < 3) { sout<<"Forme admise : until <i>"<<std::endl; return IFSelect_RetError; }
     up  = GetCasted(IFSelect_IntParam,WS->NamedItem(arg2));
     sel = new IFSelect_SelectRange;
     sel->SetUntil (up);
@@ -1720,16 +1723,16 @@ static IFSelect_ReturnStatus fun76
 //        ****    SelDiff           ****
   Handle(IFSelect_Selection) sel = new IFSelect_SelectDiff;
   if (sel.IsNull()) return IFSelect_RetFail;
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) sout<<"Diff sans input : ne pas oublier de les definir (ctlmain, ctlsec)!"<<Message_EndLine;
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 3) sout<<"Diff sans input : ne pas oublier de les definir (ctlmain, ctlsec)!"<<std::endl;
   DeclareAndCast(IFSelect_Selection,selmain,WS->NamedItem(arg1));
   DeclareAndCast(IFSelect_Selection,selsec ,WS->NamedItem(arg2));
   if (argc >= 2)
     if (!WS->SetControl(sel,selmain,Standard_True))
-      sout<<"Echec ControlMain:"<<arg1<<" , a refaire (ctlmain)"<<Message_EndLine;
+      sout<<"Echec ControlMain:"<<arg1<<" , a refaire (ctlmain)"<<std::endl;
   if (argc >= 3)
     if (!WS->SetControl(sel,selsec,Standard_False))
-      sout<<"Echec ControlSecond:"<<arg2<<" , a refaire (ctlsec)"<<Message_EndLine;
+      sout<<"Echec ControlSecond:"<<arg2<<" , a refaire (ctlsec)"<<std::endl;
   return pilot->RecordItem (sel);
 }
 
@@ -1741,12 +1744,12 @@ static IFSelect_ReturnStatus fun77
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    SelControlMain       ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<"Donner Noms de Control et MainInput"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 3) { sout<<"Donner Noms de Control et MainInput"<<std::endl; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_Selection,sel,WS->NamedItem(arg1));
   DeclareAndCast(IFSelect_Selection,selmain,WS->NamedItem(arg2));
   if (WS->SetControl(sel,selmain,Standard_True)) return IFSelect_RetDone;
-  sout<<"Nom incorrect ou Selection "<<arg1<<" pas de type Control"<<Message_EndLine;
+  sout<<"Nom incorrect ou Selection "<<arg1<<" pas de type Control"<<std::endl;
   return IFSelect_RetFail;
 }
 
@@ -1758,12 +1761,12 @@ static IFSelect_ReturnStatus fun78
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    SelControlSecond       ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<"Donner Noms de Control et SecondInput"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 3) { sout<<"Donner Noms de Control et SecondInput"<<std::endl; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_Selection,sel,WS->NamedItem(arg1));
   DeclareAndCast(IFSelect_Selection,seldif,WS->NamedItem(arg2));
   if (WS->SetControl(sel,seldif,Standard_False))  return IFSelect_RetDone;
-  sout<<"Nom incorrect ou Selection "<<arg1<<" pas de type Control"<<Message_EndLine;
+  sout<<"Nom incorrect ou Selection "<<arg1<<" pas de type Control"<<std::endl;
   return IFSelect_RetFail;
 }
 
@@ -1783,12 +1786,12 @@ static IFSelect_ReturnStatus fun80
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    SelCombAdd        ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<"Donner n0 Combine et une Input"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 3) { sout<<"Donner n0 Combine et une Input"<<std::endl; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_Selection,sel,WS->NamedItem(arg1));
   DeclareAndCast(IFSelect_Selection,seladd,WS->NamedItem(arg2));
   if (WS->CombineAdd(sel,seladd)) return IFSelect_RetDone;
-  sout<<"Nom incorrect ou Selection "<<arg1<<" pas Combine"<<Message_EndLine;
+  sout<<"Nom incorrect ou Selection "<<arg1<<" pas Combine"<<std::endl;
   return IFSelect_RetFail;
 }
 
@@ -1800,12 +1803,12 @@ static IFSelect_ReturnStatus fun81
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    SelCombRem        ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<"Donner n0 Combine et RANG a supprimer"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 3) { sout<<"Donner n0 Combine et RANG a supprimer"<<std::endl; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_Selection,sel,WS->NamedItem(arg1));
   DeclareAndCast(IFSelect_Selection,inp,WS->NamedItem(arg2));
   if (WS->CombineRemove(sel,inp)) return IFSelect_RetDone;
-  sout<<"Nom incorrect ou Selection "<<arg1<<" ni Union ni Intersection"<<Message_EndLine;
+  sout<<"Nom incorrect ou Selection "<<arg1<<" ni Union ni Intersection"<<std::endl;
   return IFSelect_RetFail;
 }
 
@@ -1816,8 +1819,8 @@ static IFSelect_ReturnStatus fun82
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    SelEntNumber      ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner Nom IntParam pour n0 Entite"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Donner Nom IntParam pour n0 Entite"<<std::endl; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_IntParam,par,WS->NamedItem(arg1));
   Handle(IFSelect_SelectEntityNumber) sel = new IFSelect_SelectEntityNumber;
   sel->SetNumber(par);
@@ -1846,8 +1849,8 @@ static IFSelect_ReturnStatus fun85
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    SelTextType Exact ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner le TYPE a selectionner"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Donner le TYPE a selectionner"<<std::endl; return IFSelect_RetError; }
   return pilot->RecordItem (new IFSelect_SelectSignature
                            (new IFSelect_SignType,arg1,Standard_True));
 }
@@ -1879,8 +1882,8 @@ static IFSelect_ReturnStatus fun89
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    SelTextType Contain **
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner le TYPE a selectionner"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Donner le TYPE a selectionner"<<std::endl; return IFSelect_RetError; }
   return pilot->RecordItem (new IFSelect_SelectSignature
                            (new IFSelect_SignType,arg1,Standard_False));
 }
@@ -1894,8 +1897,8 @@ static IFSelect_ReturnStatus fun90
     Handle(TColStd_HSequenceOfTransient) list = IFSelect_Functions::GiveList
     (pilot->Session(),pilot->CommandPart(1));
     if (list.IsNull()) return IFSelect_RetFail;
-    Handle(Message_Messenger) sout = Message::DefaultMessenger();
-    sout<<"SelectPointed : "<<list->Length()<<" entities"<<Message_EndLine;
+    Message_Messenger::StreamBuffer sout = Message::SendInfo();
+    sout<<"SelectPointed : "<<list->Length()<<" entities"<<std::endl;
     sp->AddList (list);
   }
   return pilot->RecordItem (sp);
@@ -1908,26 +1911,26 @@ static IFSelect_ReturnStatus fun91
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    SetPointed (edit) / SetList (edit)    ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 2) {
     sout<<"Donner NOM SelectPointed + Option(s) :\n"
         <<" aucune : liste des entites pointees\n"
-       <<" 0: Clear  +nn ajout entite nn  -nn enleve nn  /nn toggle nn"<<Message_EndLine;
+       <<" 0: Clear  +nn ajout entite nn  -nn enleve nn  /nn toggle nn"<<std::endl;
        return IFSelect_RetError;
   }
   DeclareAndCast(IFSelect_SelectPointed,sp,WS->NamedItem(arg1));
-  if (sp.IsNull()) { sout<<"Pas une SelectPointed:"<<arg1<<Message_EndLine; return IFSelect_RetError; }
+  if (sp.IsNull()) { sout<<"Pas une SelectPointed:"<<arg1<<std::endl; return IFSelect_RetError; }
   const Handle(Interface_InterfaceModel) &model = WS->Model();  // pour Print
   if (argc == 2) {    // listage simple
     Standard_Integer nb = sp->NbItems();
-    sout<<" SelectPointed : "<<arg1<<" : "<<nb<<" Items :"<<Message_EndLine;
+    sout<<" SelectPointed : "<<arg1<<" : "<<nb<<" Items :"<<std::endl;
     for (Standard_Integer i = 1; i <= nb; i ++) {
       Handle(Standard_Transient) pointed = sp->Item(i);
       Standard_Integer id = WS->StartingNumber(pointed);
       if (id == 0) sout <<" (inconnu)";
-      else  {  sout<<"  "; model->Print(pointed,sout);  }
+      else  {  sout <<"  "; model->Print (pointed, sout);  }
     }
-    if (nb > 0) sout<<Message_EndLine;
+    if (nb > 0) sout<<std::endl;
     return IFSelect_RetDone;
   }
 
@@ -1935,25 +1938,28 @@ static IFSelect_ReturnStatus fun91
     const TCollection_AsciiString argi = pilot->Word(ia);
     Standard_Integer id = pilot->Number(&(argi.ToCString())[1]);
     if (id == 0) {
-      if (!argi.IsEqual("0")) sout<<"Incorrect,ignore:"<<argi<<Message_EndLine;
-      else {  sout<<"Clear SelectPointed"<<Message_EndLine; sp->Clear(); }
+      if (!argi.IsEqual("0")) sout<<"Incorrect,ignore:"<<argi<<std::endl;
+      else {  sout<<"Clear SelectPointed"<<std::endl; sp->Clear(); }
     } else if (argi.Value(1) == '-') {
       Handle(Standard_Transient) item = WS->StartingEntity(id);
       if (sp->Remove(item)) sout<<"Removed:no."<<id;
       else sout<<" Echec Remove "<<id;
-      sout<<": "; model->Print(item,sout);  sout<<Message_EndLine;
+      sout<<": " << std::endl; 
+      model->Print (item, sout);
     } else if (argi.Value(1) == '/') {
       Handle(Standard_Transient) item = WS->StartingEntity(id);
       if (sp->Remove(item)) sout<<"Toggled:n0."<<id;
       else sout<<" Echec Toggle "<<id;
-      sout<<": "; model->Print(item,sout);  sout<<Message_EndLine;
+      sout<<": " << std::endl; 
+      model->Print (item, sout);
     } else if (argi.Value(1) == '+') {
       Handle(Standard_Transient) item = WS->StartingEntity(id);
       if (sp->Add(item)) sout<<"Added:no."<<id;
       else sout<<" Echec Add "<<id;
-      sout<<": "; model->Print(item,sout);  sout<<Message_EndLine;
+      sout<<": " << std::endl; 
+      model->Print (item, sout);
     } else {
-      sout<<"Ignore:"<<argi<<" , donner n0 PRECEDE de + ou - ou /"<<Message_EndLine;
+      sout<<"Ignore:"<<argi<<" , donner n0 PRECEDE de + ou - ou /"<<std::endl;
     }
   }
   return IFSelect_RetDone;
@@ -1976,8 +1982,8 @@ static IFSelect_ReturnStatus fun93
   const Standard_CString arg2 = pilot->Arg(2);
   Handle(IFSelect_WorkSession) WS = pilot->Session();
 //        ****    SelSignature        ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<"Give name of Signature or Counter, text + option exact(D) else contains"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 3) { sout<<"Give name of Signature or Counter, text + option exact(D) else contains"<<std::endl; return IFSelect_RetError; }
   Standard_Boolean exact = Standard_True;
   if (argc > 3) { if (pilot->Arg(3)[0] == 'c') exact = Standard_False; }
 
@@ -1987,7 +1993,7 @@ static IFSelect_ReturnStatus fun93
 
   if (!sign.IsNull())     sel = new IFSelect_SelectSignature (sign,arg2,exact);
   else if (!cnt.IsNull()) sel = new IFSelect_SelectSignature (cnt,arg2,exact);
-  else { sout<<arg1<<":neither Signature nor Counter"<<Message_EndLine; return IFSelect_RetError; }
+  else { sout<<arg1<<":neither Signature nor Counter"<<std::endl; return IFSelect_RetError; }
 
   return pilot->RecordItem(sel);
 }
@@ -1999,10 +2005,10 @@ static IFSelect_ReturnStatus fun94
   const Standard_CString arg1 = pilot->Arg(1);
   Handle(IFSelect_WorkSession) WS = pilot->Session();
 //        ****    SignCounter        ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner nom signature"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Donner nom signature"<<std::endl; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_Signature,sign,WS->NamedItem(arg1));
-  if (sign.IsNull()) { sout<<arg1<<":pas une signature"<<Message_EndLine; return IFSelect_RetError; }
+  if (sign.IsNull()) { sout<<arg1<<":pas une signature"<<std::endl; return IFSelect_RetError; }
   Handle(IFSelect_SignCounter) cnt = new IFSelect_SignCounter (sign,Standard_True,Standard_True);
   return pilot->RecordItem(cnt);
 }
@@ -2014,10 +2020,10 @@ static IFSelect_ReturnStatus funbselected
   const Standard_CString arg1 = pilot->Arg(1);
   Handle(IFSelect_WorkSession) WS = pilot->Session();
 //        ****    NbSelected = GraphCounter        ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner nom selection (deduction) a appliquer"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Donner nom selection (deduction) a appliquer"<<std::endl; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_SelectDeduct,applied,WS->GiveSelection(arg1));
-  if (applied.IsNull()) { sout<<arg1<<":pas une SelectDeduct"<<Message_EndLine; return IFSelect_RetError; }
+  if (applied.IsNull()) { sout<<arg1<<":pas une SelectDeduct"<<std::endl; return IFSelect_RetError; }
   Handle(IFSelect_GraphCounter) cnt = new IFSelect_GraphCounter (Standard_True,Standard_True);
   cnt->SetApplied (applied);
   return pilot->RecordItem(cnt);
@@ -2031,8 +2037,8 @@ static IFSelect_ReturnStatus fun_editlist
   (const Handle(IFSelect_SessionPilot)& pilot)
 {
   Standard_Integer argc = pilot->NbWords();
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Give the name of an EditForm or an Editor"<<Message_EndLine;
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Give the name of an EditForm or an Editor"<<std::endl;
                  return IFSelect_RetError;  }
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
@@ -2043,7 +2049,7 @@ static IFSelect_ReturnStatus fun_editlist
   DeclareAndCast(IFSelect_EditForm,edf,WS->NamedItem(arg1));
   Handle(IFSelect_Editor) edt;
   if (!edf.IsNull()) {
-    sout<<"Print EditForm "<<arg1<<Message_EndLine;
+    sout<<"Print EditForm "<<arg1<<std::endl;
     edt = edf->Editor();
     if (argc < 3) {
 
@@ -2052,14 +2058,14 @@ static IFSelect_ReturnStatus fun_editlist
       if (edt.IsNull()) edt = GetCasted(IFSelect_Editor,WS->NamedItem(arg1));
       if (edt.IsNull()) return IFSelect_RetVoid;
 
-      sout<<"Editor, Label : "<<edt->Label()<<Message_EndLine;
-      sout<<Message_EndLine<<" --  Names (short - complete) + Labels of Values"<<Message_EndLine;
+      sout<<"Editor, Label : "<<edt->Label()<<std::endl;
+      sout<<std::endl<<" --  Names (short - complete) + Labels of Values"<<std::endl;
       edt->PrintNames(sout);
-      sout<<Message_EndLine<<" --  Definitions  --"<<Message_EndLine;
+      sout<<std::endl<<" --  Definitions  --"<<std::endl;
       edt->PrintDefs (sout);
       if (!edf.IsNull()) {
        edf->PrintDefs(sout);
-       sout<<Message_EndLine<<"To display values, add an option : o original  f final  m modified"<<Message_EndLine;
+       sout<<std::endl<<"To display values, add an option : o original  f final  m modified"<<std::endl;
       }
 
       return IFSelect_RetVoid;
@@ -2081,18 +2087,18 @@ static IFSelect_ReturnStatus fun_editvalue
   (const Handle(IFSelect_SessionPilot)& pilot)
 {
   Standard_Integer argc = pilot->NbWords();
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<"Give the name of an EditForm + name of Value [+ newvalue or . to nullify]"<<Message_EndLine;
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 3) { sout<<"Give the name of an EditForm + name of Value [+ newvalue or . to nullify]"<<std::endl;
                  return IFSelect_RetError;  }
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
   Handle(IFSelect_WorkSession) WS = pilot->Session();
   DeclareAndCast(IFSelect_EditForm,edf,WS->NamedItem(arg1));
   if (edf.IsNull())
-    {  sout<<"Not an EditForm : "<<arg1<<Message_EndLine; return IFSelect_RetError;  }
+    {  sout<<"Not an EditForm : "<<arg1<<std::endl; return IFSelect_RetError;  }
   Standard_Integer num = edf->NameNumber (arg2);
-  if (num == 0) sout<<"Unknown Value Name : "<<arg2<<Message_EndLine;
-  if (num <  0) sout<<"Not Extracted Value Name : "<<arg2<<Message_EndLine;
+  if (num == 0) sout<<"Unknown Value Name : "<<arg2<<std::endl;
+  if (num <  0) sout<<"Not Extracted Value Name : "<<arg2<<std::endl;
   if (num <= 0) return IFSelect_RetError;
 
   Standard_Boolean islist = edf->Editor()->IsList(num);
@@ -2103,19 +2109,19 @@ static IFSelect_ReturnStatus fun_editvalue
 
   if (islist) {
     listr = edf->EditedList(num);
-    if (listr.IsNull()) sout<<"(NULL LIST)"<<Message_EndLine;
+    if (listr.IsNull()) sout<<"(NULL LIST)"<<std::endl;
     else {
       Standard_Integer ilist,nblist = listr->Length();
-      sout<<"(List : "<<nblist<<" Items)"<<Message_EndLine;
+      sout<<"(List : "<<nblist<<" Items)"<<std::endl;
       for (ilist = 1; ilist <= nblist; ilist ++) {
        str = listr->Value(ilist);
-       sout<<"  ["<<ilist<<"]  "<< (str.IsNull() ? "(NULL)" : str->ToCString())<<Message_EndLine;
+       sout<<"  ["<<ilist<<"]  "<< (str.IsNull() ? "(NULL)" : str->ToCString())<<std::endl;
       }
     }
-    if (argc < 4) sout<<"To Edit, options by editval edit-form value-name ?"<<Message_EndLine;
+    if (argc < 4) sout<<"To Edit, options by editval edit-form value-name ?"<<std::endl;
   } else {
     str = edf->EditedValue (num);
-    sout<<(str.IsNull() ? "(NULL)" : str->ToCString())<<Message_EndLine;
+    sout<<(str.IsNull() ? "(NULL)" : str->ToCString())<<std::endl;
   }
   if (argc < 4) return IFSelect_RetVoid;
 
@@ -2126,10 +2132,10 @@ static IFSelect_ReturnStatus fun_editvalue
   const Standard_CString argval = pilot->Arg(numarg);
   if (islist) {
     if (argval[0] == '?') {
-      sout<<"To Edit, options"<<Message_EndLine<<" + val : add value at end (blanks allowed)"
-       <<Message_EndLine<<" +nn text : insert val before item nn"<<Message_EndLine
-       <<" nn text : replace item nn with a new value"<<Message_EndLine
-       <<" -nn : remove item nn"<<Message_EndLine<<" . : clear the list"<<Message_EndLine;
+      sout<<"To Edit, options"<<std::endl<<" + val : add value at end (blanks allowed)"
+       <<std::endl<<" +nn text : insert val before item nn"<<std::endl
+       <<" nn text : replace item nn with a new value"<<std::endl
+       <<" -nn : remove item nn"<<std::endl<<" . : clear the list"<<std::endl;
       return IFSelect_RetVoid;
     }
     Standard_Boolean stated = Standard_False;
@@ -2151,15 +2157,15 @@ static IFSelect_ReturnStatus fun_editvalue
        (new TCollection_HAsciiString(pilot->CommandPart(numarg+1)),numset);
     }
     if (stated) stated = edf->ModifyList (num,listed,Standard_True);
-    if (stated) sout<<"List Edition done"<<Message_EndLine;
-    else sout<<"List Edition not done, option"<<argval<<Message_EndLine;
+    if (stated) sout<<"List Edition done"<<std::endl;
+    else sout<<"List Edition not done, option"<<argval<<std::endl;
   } else {
     if (argval[0] == '.' && argval[1] == '\0') str.Nullify();
     else str = new TCollection_HAsciiString (pilot->CommandPart(numarg));
     if (edf->Modify (num,str,Standard_True)) {
-      sout<<"Now set to "<<(str.IsNull() ? "(NULL)" : str->ToCString())<<Message_EndLine;
+      sout<<"Now set to "<<(str.IsNull() ? "(NULL)" : str->ToCString())<<std::endl;
     } else {
-      sout<<"Modify not done"<<Message_EndLine;  return IFSelect_RetFail;
+      sout<<"Modify not done"<<std::endl;  return IFSelect_RetFail;
     }
   }
   return IFSelect_RetDone;
@@ -2169,25 +2175,25 @@ static IFSelect_ReturnStatus fun_editclear
   (const Handle(IFSelect_SessionPilot)& pilot)
 {
   Standard_Integer argc = pilot->NbWords();
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Give the name of an EditForm [+ name of Value  else all]"<<Message_EndLine;
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Give the name of an EditForm [+ name of Value  else all]"<<std::endl;
                  return IFSelect_RetError;  }
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
   Handle(IFSelect_WorkSession) WS = pilot->Session();
   DeclareAndCast(IFSelect_EditForm,edf,WS->NamedItem(arg1));
   if (edf.IsNull())
-    {  sout<<"Not an EditForm : "<<arg1<<Message_EndLine; return IFSelect_RetError;  }
-  if (argc < 3) { edf->ClearEdit(); sout<<"All Modifications Cleared"<<Message_EndLine; }
+    {  sout<<"Not an EditForm : "<<arg1<<std::endl; return IFSelect_RetError;  }
+  if (argc < 3) { edf->ClearEdit(); sout<<"All Modifications Cleared"<<std::endl; }
   else {
     Standard_Integer num = edf->NameNumber (arg2);
-    if (num == 0) sout<<"Unknown Value Name : "<<arg2<<Message_EndLine;
-    if (num <  0) sout<<"Not Extracted Value Name : "<<arg2<<Message_EndLine;
+    if (num == 0) sout<<"Unknown Value Name : "<<arg2<<std::endl;
+    if (num <  0) sout<<"Not Extracted Value Name : "<<arg2<<std::endl;
     if (num <= 0) return IFSelect_RetError;
     if (!edf->IsModified(num))
-      { sout<<"Value "<<arg2<<" was not modified"<<Message_EndLine; return IFSelect_RetVoid; }
+      { sout<<"Value "<<arg2<<" was not modified"<<std::endl; return IFSelect_RetVoid; }
     edf->ClearEdit (num);
-    sout<<"Modification on Value "<<arg2<<" Cleared"<<Message_EndLine;
+    sout<<"Modification on Value "<<arg2<<" Cleared"<<std::endl;
   }
   return IFSelect_RetDone;
 }
@@ -2196,40 +2202,40 @@ static IFSelect_ReturnStatus fun_editapply
   (const Handle(IFSelect_SessionPilot)& pilot)
 {
   Standard_Integer argc = pilot->NbWords();
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Give the name of an EditForm [+ option keep to re-apply edited values]"<<Message_EndLine;
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Give the name of an EditForm [+ option keep to re-apply edited values]"<<std::endl;
                  return IFSelect_RetError;  }
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
   Handle(IFSelect_WorkSession) WS = pilot->Session();
   DeclareAndCast(IFSelect_EditForm,edf,WS->NamedItem(arg1));
   if (edf.IsNull())
-    {  sout<<"Not an EditForm : "<<arg1<<Message_EndLine; return IFSelect_RetError;  }
+    {  sout<<"Not an EditForm : "<<arg1<<std::endl; return IFSelect_RetError;  }
 
   Handle(Standard_Transient) ent = edf->Entity();
   Handle(Interface_InterfaceModel) model = edf->Model();
   if (!model.IsNull()) {
-    if (ent.IsNull()) sout<<"Applying modifications on loaded model"<<Message_EndLine;
+    if (ent.IsNull()) sout<<"Applying modifications on loaded model"<<std::endl;
     else {
       sout<<"Applying modifications on loaded entity : ";
-      model->PrintLabel (ent,sout);
+      model->PrintLabel (ent, sout);
     }
   }
-  else sout<<"Applying modifications"<<Message_EndLine;
+  else sout<<"Applying modifications"<<std::endl;
 
   if (!edf->ApplyData (edf->Entity(),edf->Model())) {
-    sout<<"Modifications could not be applied"<<Message_EndLine;
+    sout<<"Modifications could not be applied"<<std::endl;
     return IFSelect_RetFail;
   }
-  sout<<"Modifications have been applied"<<Message_EndLine;
+  sout<<"Modifications have been applied"<<std::endl;
 
   Standard_Boolean stat = Standard_True;
   if (argc > 2 && arg2[0] == 'k') stat = Standard_False;
   if (stat) {
     edf->ClearEdit();
-    sout<<"Edited values are cleared"<<Message_EndLine;
+    sout<<"Edited values are cleared"<<std::endl;
   }
-  else sout<<"Edited values are kept for another loading/applying"<<Message_EndLine;
+  else sout<<"Edited values are kept for another loading/applying"<<std::endl;
 
   return IFSelect_RetDone;
 }
@@ -2238,34 +2244,34 @@ static IFSelect_ReturnStatus fun_editload
   (const Handle(IFSelect_SessionPilot)& pilot)
 {
   Standard_Integer argc = pilot->NbWords();
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Give the name of an EditForm [+ Entity-Ident]"<<Message_EndLine;
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Give the name of an EditForm [+ Entity-Ident]"<<std::endl;
                  return IFSelect_RetError;  }
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
   Handle(IFSelect_WorkSession) WS = pilot->Session();
   DeclareAndCast(IFSelect_EditForm,edf,WS->NamedItem(arg1));
   if (edf.IsNull())
-    {  sout<<"Not an EditForm : "<<arg1<<Message_EndLine; return IFSelect_RetError;  }
+    {  sout<<"Not an EditForm : "<<arg1<<std::endl; return IFSelect_RetError;  }
 
   Standard_Integer num = (argc < 3 ? 0 : pilot->Number (arg2));
   Standard_Boolean stat = Standard_False;
   if (argc < 3) {
-    sout<<"EditForm "<<arg1<<" : Loading Model"<<Message_EndLine;
+    sout<<"EditForm "<<arg1<<" : Loading Model"<<std::endl;
     stat = edf->LoadModel(WS->Model());
   } else if (num <= 0) {
-    sout<<"Not an entity ident : "<<arg2<<Message_EndLine;
+    sout<<"Not an entity ident : "<<arg2<<std::endl;
     return IFSelect_RetError;
   } else {
-    sout<<"EditForm "<<arg1<<" : Loading Entity "<<arg2<<Message_EndLine;
+    sout<<"EditForm "<<arg1<<" : Loading Entity "<<arg2<<std::endl;
     stat = edf->LoadData (WS->StartingEntity(num),WS->Model());
   }
 
   if (!stat) {
-    sout<<"Loading not done"<<Message_EndLine;
+    sout<<"Loading not done"<<std::endl;
     return IFSelect_RetFail;
   }
-  sout<<"Loading done"<<Message_EndLine;
+  sout<<"Loading done"<<std::endl;
   return IFSelect_RetDone;
 }
 
@@ -2331,12 +2337,12 @@ Handle(IFSelect_Dispatch)  IFSelect_Functions::GiveDispatch
   if (disp.IsNull()) return disp;     // KO anyway
 
 //  According to the type of dispatch :
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   DeclareAndCast(IFSelect_DispPerCount,dc,disp);
   if (!dc.IsNull()) {
     Standard_Integer nb = atoi( &(nam.ToCString())[paro]);
     if (nb <= 0) {
-      sout<<" DispPerCount, count is not positive"<<Message_EndLine;
+      sout<<" DispPerCount, count is not positive"<<std::endl;
       disp.Nullify();
       return disp;
     }
@@ -2351,7 +2357,7 @@ Handle(IFSelect_Dispatch)  IFSelect_Functions::GiveDispatch
   if (!dp.IsNull()) {
     Standard_Integer nb = atoi( &(nam.ToCString())[paro]);
     if (nb <= 0) {
-      sout<<" DispPerFiles, count is not positive"<<Message_EndLine;
+      sout<<" DispPerFiles, count is not positive"<<std::endl;
       disp.Nullify();
       return disp;
     }
@@ -2366,14 +2372,14 @@ Handle(IFSelect_Dispatch)  IFSelect_Functions::GiveDispatch
   if (!ds.IsNull()) {
     DeclareAndCast(IFSelect_Signature,sg,WS->NamedItem( &(nam.ToCString())[paro]));
     if (sg.IsNull()) {
-      sout<<"DispPerSignature "<<nam<<" , Signature not valid : "<<&(nam.ToCString())[paro]<<Message_EndLine;
+      sout<<"DispPerSignature "<<nam<<" , Signature not valid : "<<&(nam.ToCString())[paro]<<std::endl;
       disp.Nullify();
       return disp;
     }
     if (mode) ds->SetSignCounter (new IFSelect_SignCounter(sg));
     return ds;
   }
-  sout<<"Dispatch : "<<name<<" , Parameter : "<<&(nam.ToCString())[paro]<<Message_EndLine;
+  sout<<"Dispatch : "<<name<<" , Parameter : "<<&(nam.ToCString())[paro]<<std::endl;
   return disp;
 }