Operators << for Handle(Message_Messenger) are removed; their use is replaced by use of Message_Messenger::StreamBuffer
Message_Messenger has been replaced by Standard_OStream within Interface_InterfaceModel,IFSelect,IGES,STEP dump interfaces.
{
if (modif.IsNull()) return;
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
- sout << "--- Run Modifier:" << Message_EndLine;
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
+ sout << "--- Run Modifier:" << std::endl;
Handle(IFSelect_Selection) sel = modif->Selection();
if (!sel.IsNull()) sout<<" Selection:"<<sel->Label();
else sout<<" (no Selection)";
for (Standard_Integer i = 1; i <= nb; i ++) {
if (thelist.Value(i) != ' ') ne ++;
}
- if (nb == ne) sout<<" All Model ("<<nb<<" Entities)"<<Message_EndLine;
- else sout<<" Entities,Total:"<<nb<<" Concerned:"<<ne<<Message_EndLine;
+ if (nb == ne) sout<<" All Model ("<<nb<<" Entities)"<<std::endl;
+ else sout<<" Entities,Total:"<<nb<<" Concerned:"<<ne<<std::endl;
}
{
// Trace courante
if (thecurr <= 0) return;
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
if (ValueOriginal() == ValueResult())
- sout<<"-- ContextModif. Entity n0 "<<thecurr<<Message_EndLine;
+ sout<<"-- ContextModif. Entity n0 "<<thecurr<<std::endl;
else
sout<<"-- ContextModif. Entity in Original, n0 "<<thecurr<<" in Result, n0 "
- <<thecurt<<Message_EndLine;
- if (mess[0] != '\0') sout<<"-- Message:"<<mess<<Message_EndLine;
+ <<thecurt<<std::endl;
+ if (mess[0] != '\0') sout<<"-- Message:"<<mess<<std::endl;
}
}
- void IFSelect_EditForm::PrintDefs (const Handle(Message_Messenger)& S) const
+ void IFSelect_EditForm::PrintDefs (Standard_OStream& S) const
{
Standard_Integer iv, nbv = NbValues(Standard_True);
- S<<"***** EditForm, Label : "<<Label()<<Message_EndLine;
- if (IsComplete()) S<<"Complete, "<<nbv<<" Values"<<Message_EndLine;
+ S<<"***** EditForm, Label : "<<Label()<<std::endl;
+ if (IsComplete()) S<<"Complete, "<<nbv<<" Values"<<std::endl;
else {
- S<<"Extraction on "<<nbv<<" Values : (extracted<-editor)"<<Message_EndLine;
+ S<<"Extraction on "<<nbv<<" Values : (extracted<-editor)"<<std::endl;
for (iv = 1; iv <= nbv; iv ++) S<<" "<<iv<<"<-"<<NumberFromRank(iv);
- S<<Message_EndLine;
+ S<<std::endl;
}
- S<<"*****"<<Message_EndLine;
+ S<<"*****"<<std::endl;
}
static void PrintList
(const Handle(TColStd_HSequenceOfHAsciiString)& list,
- const Handle(Message_Messenger)& S, const Standard_Boolean alsolist)
+ Standard_OStream& S, const Standard_Boolean alsolist)
{
- if (list.IsNull()) { S<<"(NULL LIST)"<<Message_EndLine; return; }
+ if (list.IsNull()) { S<<"(NULL LIST)"<<std::endl; return; }
Standard_Integer i,nb = list->Length();
- S<<"(List : "<<nb<<" Items)"<<Message_EndLine;
+ S<<"(List : "<<nb<<" Items)"<<std::endl;
if (!alsolist) return;
for (i = 1; i <= nb; i ++) {
Handle(TCollection_HAsciiString) str = list->Value(i);
- S<<" ["<<i<<"] "<< (str.IsNull() ? "(NULL)" : str->ToCString())<<Message_EndLine;
+ S<<" ["<<i<<"] "<< (str.IsNull() ? "(NULL)" : str->ToCString())<<std::endl;
}
}
void IFSelect_EditForm::PrintValues
- (const Handle(Message_Messenger)& S, const Standard_Integer what,
+ (Standard_OStream& S, const Standard_Integer what,
const Standard_Boolean names, const Standard_Boolean alsolist) const
{
Standard_Integer iv, nbv = NbValues(Standard_True);
- S<< "****************************************************"<<Message_EndLine;
- S<<"***** "<<Label()<<Interface_MSG::Blanks(Label(),40)<<"*****"<<Message_EndLine;
- S<<"***** *****"<<Message_EndLine;
+ S<< "****************************************************"<<std::endl;
+ S<<"***** "<<Label()<<Interface_MSG::Blanks(Label(),40)<<"*****"<<std::endl;
+ S<<"***** *****"<<std::endl;
if (!theloaded)
- S<<"***** Values are NOT loaded *****"<<Message_EndLine;
+ S<<"***** Values are NOT loaded *****"<<std::endl;
else {
// Donnees sur lesquelles on a travaille
else S<<"***** No loaded Model. Loaded object : type "<<theent->DynamicType()->Name();
} else {
if (theent.IsNull()) S<<"***** No loaded entity";
- else { S<<"***** Loaded entity : "; themodel->PrintLabel (theent,S); }
+ else { S<<"***** Loaded entity : "; themodel->PrintLabel (theent, S); }
}
}
- S<<Message_EndLine<<"****************************************************"<<Message_EndLine<<Message_EndLine;
+ S<<std::endl<<"****************************************************"<<std::endl<<std::endl;
// Affichage des valeurs
Standard_Boolean nams = names;
Standard_Integer maxnam = theeditor->MaxNameLength (names ? 0 : -1);
if (maxnam == 0) { maxnam = theeditor->MaxNameLength (0); nams = Standard_True; }
Standard_Integer nbmod = 0;
- if (what != 0) S<<"Mod N0 Name Value"<<Message_EndLine;
- else S<<" N0 Name Value"<<Message_EndLine;
+ if (what != 0) S<<"Mod N0 Name Value"<<std::endl;
+ else S<<" N0 Name Value"<<std::endl;
for (iv = 1; iv <= nbv; iv ++) {
Standard_Integer jv = NumberFromRank(iv);
Handle(TCollection_HAsciiString) str;
if (IsModified(jv)) S<<"* ";
else S<<" ";
- S <<Interface_MSG::Blanks(iv,3)<<iv<<" "
+ S<<Interface_MSG::Blanks(iv,3)<<iv<<" "
<<name<<Interface_MSG::Blanks(name,maxnam)<<" ";
if (theeditor->IsList(jv)) {
if (what < 0) str = OriginalValue (jv);
if (what > 0) str = EditedValue (jv);
- S << (str.IsNull() ? "(NULL)" : str->ToCString()) <<Message_EndLine;
+ S<< (str.IsNull() ? "(NULL)" : str->ToCString()) <<std::endl;
// Modified only
} else {
nbmod ++;
if (theeditor->IsList(jv)) {
Handle(TColStd_HSequenceOfHAsciiString) list= OriginalList (jv);
- S <<Interface_MSG::Blanks(iv,3)<<iv<<" "
+ S<<Interface_MSG::Blanks(iv,3)<<iv<<" "
<<name<<Interface_MSG::Blanks(name,maxnam)<<" ORIG:";
PrintList (list,S,alsolist);
}
Handle(TCollection_HAsciiString) str = OriginalValue (jv);
- S <<Interface_MSG::Blanks(iv,3)<<iv<<" "
+ S<<Interface_MSG::Blanks(iv,3)<<iv<<" "
<<name<<Interface_MSG::Blanks(name,maxnam)<<" ORIG:"
- << (str.IsNull() ? "(NULL)" : str->ToCString()) <<Message_EndLine;
+ << (str.IsNull() ? "(NULL)" : str->ToCString()) <<std::endl;
str = EditedValue (jv);
- S<<Interface_MSG::Blanks("",maxnam+4)<<" MOD :"<< (str.IsNull() ? "(NULL)" : str->ToCString()) <<Message_EndLine;
+ S<<Interface_MSG::Blanks("",maxnam+4)<<" MOD :"<< (str.IsNull() ? "(NULL)" : str->ToCString()) <<std::endl;
}
}
- if (what == 0) S<<"On "<<nbv<<" Values, "<<nbmod<<" Modified"<<Message_EndLine;
+ if (what == 0) S<<"On "<<nbv<<" Values, "<<nbmod<<" Modified"<<std::endl;
}
class Interface_InterfaceModel;
class IFSelect_ListEditor;
class TCollection_HAsciiString;
-class Message_Messenger;
-
class IFSelect_EditForm;
DEFINE_STANDARD_HANDLE(IFSelect_EditForm, Standard_Transient)
Standard_EXPORT void ClearEdit (const Standard_Integer num = 0);
//! Prints Definitions, relative to the Editor
- Standard_EXPORT void PrintDefs (const Handle(Message_Messenger)& S) const;
+ Standard_EXPORT void PrintDefs (Standard_OStream& S) const;
//! Prints Values, according to what and alsolist
//! <names> True : prints Long Names; False : prints Short Names
//! <what> = 0 : prints Modified Values (Original + Edited)
//! <alsolist> False (D) : lists are printed only as their count
//! <alsolist> True : lists are printed for all their items
- Standard_EXPORT void PrintValues (const Handle(Message_Messenger)& S, const Standard_Integer what, const Standard_Boolean names, const Standard_Boolean alsolist = Standard_False) const;
+ Standard_EXPORT void PrintValues (Standard_OStream& S, const Standard_Integer what, const Standard_Boolean names, const Standard_Boolean alsolist = Standard_False) const;
//! Applies modifications to own data
//! Calls ApplyData then Clears Status according EditKeepStatus
return (IFSelect_EditValue) edm;
}
- void IFSelect_Editor::PrintNames (const Handle(Message_Messenger)& S) const
+ void IFSelect_Editor::PrintNames (Standard_OStream& S) const
{
Standard_Integer i, nb = NbValues();
- S<<"**** Editor : "<<Label()<<Message_EndLine;
- S<<"**** Nb Values = "<<nb<<" **** Names / Labels"<<Message_EndLine;
+ S<<"**** Editor : "<<Label()<<std::endl;
+ S<<"**** Nb Values = "<<nb<<" **** Names / Labels"<<std::endl;
S<<" Num ";
if (themaxsh > 0) S<<"Short"<<Interface_MSG::Blanks("Short",themaxsh)<<" ";
- S<<"Complete"<<Interface_MSG::Blanks("Complete",themaxco)<<" Label"<<Message_EndLine;
+ S<<"Complete"<<Interface_MSG::Blanks("Complete",themaxco)<<" Label"<<std::endl;
for (i = 1; i <= nb; i ++) {
Handle(Interface_TypedValue) tv = TypedValue(i);
const TCollection_AsciiString& sho = theshorts(i);
S<<sho<<Interface_MSG::Blanks(sho.ToCString(),themaxsh)<<" ";
}
- S<<tv->Name()<<Interface_MSG::Blanks(tv->Name(),themaxco)<<" "<<tv->Label()<<Message_EndLine;
+ S<<tv->Name()<<Interface_MSG::Blanks(tv->Name(),themaxco)<<" "<<tv->Label()<<std::endl;
}
}
void IFSelect_Editor::PrintDefs
- (const Handle(Message_Messenger)& S, const Standard_Boolean labels) const
+ (Standard_OStream& S, const Standard_Boolean labels) const
{
Standard_Integer i, nb = NbValues();
- S<<"**** Editor : "<<Label()<<Message_EndLine;
- S<<"**** Nb Values = "<<nb<<" **** "<<(labels ? "Labels" : "Names")<<" / Definitions"<<Message_EndLine;
+ S<<"**** Editor : "<<Label()<<std::endl;
+ S<<"**** Nb Values = "<<nb<<" **** "<<(labels ? "Labels" : "Names")<<" / Definitions"<<std::endl;
S<<" Num ";
if (labels) S<<"Label"<<Interface_MSG::Blanks("Label",themaxla);
else {
if (themaxsh > 0) S<<"Short"<<Interface_MSG::Blanks("Short",themaxsh+1);
S<<"Complete"<<Interface_MSG::Blanks("Complete",themaxco);
}
- S<<" Edit Mode & Definition"<<Message_EndLine;
+ S<<" Edit Mode & Definition"<<std::endl;
for (i = 1; i <= nb; i ++) {
Handle(Interface_TypedValue) tv = TypedValue(i);
default : S<<"?????????"; break;
}
- S<<" "<<tv->Definition()<<Message_EndLine;
+ S<<" "<<tv->Definition()<<std::endl;
}
}
#include <NCollection_DataMap.hxx>
class Standard_OutOfRange;
class Interface_TypedValue;
-class Message_Messenger;
class IFSelect_EditForm;
class TCollection_HAsciiString;
class IFSelect_ListEditor;
//! complete. If not found, returns 0
Standard_EXPORT Standard_Integer NameNumber (const Standard_CString name) const;
- Standard_EXPORT void PrintNames (const Handle(Message_Messenger)& S) const;
+ Standard_EXPORT void PrintNames (Standard_OStream& S) const;
- Standard_EXPORT void PrintDefs (const Handle(Message_Messenger)& S, const Standard_Boolean labels = Standard_False) const;
+ Standard_EXPORT void PrintDefs (Standard_OStream& S, const Standard_Boolean labels = Standard_False) const;
//! Returns the MaxLength of, according to what :
//! <what> = -1 : length of short names
{
// **** 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;
}
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;
}
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;
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);
}
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);
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);
}
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;
}
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;
}
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));
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;
}
}
}
if (counter.IsNull()) {
- sout<<"Neither Counter nor Signature : "<<arg1<<Message_EndLine;
+ sout<<"Neither Counter nor Signature : "<<arg1<<std::endl;
return IFSelect_RetError;
}
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;
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;
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;
}
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"
<<" 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;
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;
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;
}
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);
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;
}
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;
}
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);
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;
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);
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;
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;
}
// **** 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;
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;
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;
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;
}
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;
}
}
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);
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(" ");
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;
}
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;
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;
}
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;
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;
}
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);
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);
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;
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);
{
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;
}
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);
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;
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;
}
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;
}
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;
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;
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;
}
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;
}
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;
}
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);
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);
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);
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;
}
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;
}
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;
}
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) {
}
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);
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) {
}
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;
}
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;
}
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;
}
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);
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;
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);
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'));
}
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;
}
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;
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;
}
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);
// **** 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);
}
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;
}
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;
}
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;
}
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;
}
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);
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));
}
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));
}
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);
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;
}
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;
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; }
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);
}
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);
}
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);
(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);
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) {
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;
(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);
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;
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;
(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;
(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;
}
(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;
}
(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;
}
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;
}
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;
}
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;
}
const Handle(Interface_Protocol)& protocol,
Interface_CopyTool& TC)
{
- Message::DefaultMessenger() <<
- "** WorkSession : Copying split data before sending"<<Message_EndLine;
+ Message::SendInfo() << "** WorkSession : Copying split data before sending"<<std::endl;
const Interface_Graph& G = eval.Graph();
Interface_CheckIterator checks;
theshareout = eval.ShareOut();
(const Handle(IFSelect_WorkLibrary)& WL,
const Handle(Interface_Protocol)& protocol)
{
- Message::DefaultMessenger() <<
- "** WorkSession : Sending split data already copied"<<Message_EndLine;
+ Message::SendInfo() << "** WorkSession : Sending split data already copied"<<std::endl;
Standard_Integer nb = NbFiles();
Interface_CheckIterator checks;
if (nb > 0) {
if (!res) {
char mess[100]; sprintf(mess,"Split Send (WriteFile) abandon on file n0.%d",i);
checks.CCheck(0)->AddFail (mess);
- Message::DefaultMessenger() <<
- " ** Sending File n0."<<i<<" has failed, abandon **"<<Message_EndLine;
+ Message::SendInfo() << " ** Sending File n0."<<i<<" has failed, abandon **"<<std::endl;
return checks;
}
AddSentFile (FileName(i).ToCString());
const Interface_Graph& G = eval.Graph();
Interface_CheckIterator checks;
Standard_Integer i = 0;
- Message::DefaultMessenger() <<
- "** WorkSession : Copying then sending split data"<<Message_EndLine;
+ Message::SendInfo() << "** WorkSession : Copying then sending split data"<<std::endl;
theshareout = eval.ShareOut();
theremain = new TColStd_HArray1OfInteger(0,G.Size()); theremain->Init(0);
for (eval.Evaluate(); eval.More(); eval.Next()) {
if (!res) {
char mess[100]; sprintf(mess,"Split Send (WriteFile) abandon on file n0.%d",i);
checks.CCheck(0)->AddFail (mess);
- Message::DefaultMessenger() <<
- " ** Sending File "<<filename<<" has failed, abandon **"<<Message_EndLine;
+ Message::SendInfo() << " ** Sending File "<<filename<<" has failed, abandon **"<<std::endl;
checks.SetName ("X-STEP WorkSession : Split Send (only Write)");
return checks;
}
{
Interface_CheckIterator checks;
checks.SetName ("X-STEP WorkSession : Send All");
- Message::DefaultMessenger() <<
- "** WorkSession : Sending all data"<<Message_EndLine;
+ Message::SendInfo() << "** WorkSession : Sending all data"<<std::endl;
Handle(Interface_InterfaceModel) model = G.Model();
if (model.IsNull() || protocol.IsNull() || WL.IsNull()) return checks;
checks.Merge(checklst);
if (!res) checks.CCheck(0)->AddFail ("SendAll (WriteFile) has failed");
// if (!checks.IsEmpty(Standard_False)) {
-// Message::DefaultMessenger() <<
+// Message::SendWarning() <<
// " ** SendAll has produced Check Messages : **"<<std::endl;
// checks.Print (sout,model,Standard_False);
// }
{
Interface_CheckIterator checks;
checks.SetName ("X-STEP WorkSession : Send Selected");
- Message::DefaultMessenger() <<
- "** WorkSession : Sending selected data"<<Message_EndLine;
+ Message::SendInfo() << "** WorkSession : Sending selected data"<<std::endl;
Handle(Interface_InterfaceModel) original = G.Model();
if (original.IsNull() || protocol.IsNull() || WL.IsNull()) return checks;
Handle(Interface_InterfaceModel) newmod = original->NewEmptyModel();
checks.Merge(checklst);
if (!res) checks.CCheck(0)->AddFail ("SendSelected (WriteFile) has failed");
// if (!checks.IsEmpty(Standard_False)) {
-// Message::DefaultMessenger() <<
+// Message::SendWarning() <<
// " ** SendSelected has produced Check Messages : **"<<std::endl;
// checks.Print (sout,original,Standard_False);
// }
// Faut-il enregistrer les erreurs dans newmod ? bonne question
// if (!checks.IsEmpty(Standard_False)) {
-// Message::DefaultMessenger() <<
+// Message::SendWarning() <<
// " Messages on Copied Model n0 "<<numod<<", Dispatch Rank "<<dispnum<<std::endl;
// checks.Print(sout,newmod,Standard_False);
// }
Standard_Boolean IFSelect_SessionFile::RecognizeFile
(const Standard_CString headerline)
{
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
SplitLine (headerline);
- if (theline.Length() != 4) { sout<<"File Form Incorrect"<<Message_EndLine; return Standard_False; }
+ if (theline.Length() != 4) { sout<<"File Form Incorrect"<<std::endl; return Standard_False; }
Handle(Standard_Type) sesstype = thesess->DynamicType();
if (!theline.Value(1).IsEqual("!XSTEP") ||
!theline.Value(2).IsEqual("SESSION") ||
!theline.Value(4).IsEqual(sesstype->Name()) )
- { sout<<"Lineno."<<thenl<<" : File Header Description Incorrect"<<Message_EndLine; return Standard_False; }
+ { sout<<"Lineno."<<thenl<<" : File Header Description Incorrect"<<std::endl; return Standard_False; }
// Value(3) definit la VERSION du format de fichier
return Standard_True;
}
Standard_Integer IFSelect_SessionFile::ReadSession ()
{
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
thedone = Standard_True;
// ... Preparation Specifique
thenames.Clear();
// .. Donnees generales, controle
if (!ReadLine()) return 1;
- if (theline.Length() != 4) { sout<<"File Form Incorrect"<<Message_EndLine; return 1; }
+ if (theline.Length() != 4) { sout<<"File Form Incorrect"<<std::endl; return 1; }
Handle(Standard_Type) sesstype = thesess->DynamicType();
if (!theline.Value(1).IsEqual("!XSTEP") ||
!theline.Value(2).IsEqual("SESSION") ||
!theline.Value(4).IsEqual(sesstype->Name()) )
- { sout<<"Lineno."<<thenl<<" : File Header Description Incorrect"<<Message_EndLine; return 1; }
+ { sout<<"Lineno."<<thenl<<" : File Header Description Incorrect"<<std::endl; return 1; }
// Value(3) definit la VERSION du format de fichier
if (!ReadLine()) return 1;
if (ungen.Value(1) == '!') break; // fin des generaux
if (ungen.IsEqual("ErrorHandle")) {
if (theline.Length() != 2)
- { sout<<"Lineno."<<thenl<<" : ErrorHandle Description Incorrect"<<Message_EndLine; continue; }
+ { sout<<"Lineno."<<thenl<<" : ErrorHandle Description Incorrect"<<std::endl; continue; }
if (theline.Value(2).IsEqual("0"))
thesess->SetErrorHandle(Standard_False);
else if (theline.Value(2).IsEqual("1"))
thesess->SetErrorHandle(Standard_True);
- else { sout<<"Lineno."<<thenl<<" : ErrorHandle Incorrect : "<<theline.Value(2)<<Message_EndLine; continue; }
+ else { sout<<"Lineno."<<thenl<<" : ErrorHandle Incorrect : "<<theline.Value(2)<<std::endl; continue; }
continue;
}
- else sout<<"Lineno."<<thenl<<" : Unknown General Parameter : "<<ungen<<" , ignored"<<Message_EndLine;
+ else sout<<"Lineno."<<thenl<<" : Unknown General Parameter : "<<ungen<<" , ignored"<<std::endl;
}
// .. IntParams
if (!ReadLine()) return 1;
if (theline.Value(1).Value(1) == '!') break; // liste suivante
if (theline.Length() != 2)
- { sout<<"Lineno."<<thenl<<" : An Integer Parameter is badly defined"<<Message_EndLine; continue; }
+ { sout<<"Lineno."<<thenl<<" : An Integer Parameter is badly defined"<<std::endl; continue; }
Handle(IFSelect_IntParam) par = new IFSelect_IntParam;
par->SetValue ( atoi(theline.Value(2).ToCString()) );
AddItem (par);
if (!ReadLine()) return 1;
if (theline.Value(1).Value(1) == '!') break; // liste suivante
if (theline.Length() != 2)
- { sout<<"Lineno."<<thenl<<" : A Text Parameter is badly defined"<<Message_EndLine; continue; }
+ { sout<<"Lineno."<<thenl<<" : A Text Parameter is badly defined"<<std::endl; continue; }
// Attention, un texte peut contenir des blancs ... repartir de line(thenl)
TCollection_AsciiString oneline = thelist.Value(thenl);
Standard_Integer iw = 0, inc = 0;
if (!ReadLine()) return 1;
if (theline.Value(1).Value(1) == '!') break; // liste suivante
if (theline.Length() < 2)
- { sout<<"Lineno."<<thenl<<" : A Selection is badly defined"<<Message_EndLine; continue; }
+ { sout<<"Lineno."<<thenl<<" : A Selection is badly defined"<<std::endl; continue; }
// .. Analyse de certains cas generaux
Handle(IFSelect_IntParam) low,up;
Standard_Integer firstown = 3;
if (item.IsNull()) continue;
DeclareAndCast(IFSelect_SelectExtract,sxt,item);
if (!sxt.IsNull()) {
- if (direct == 0) sout<<"Lineno."<<thenl<<" : A SelectExtract is badly defined"<<Message_EndLine;
+ if (direct == 0) sout<<"Lineno."<<thenl<<" : A SelectExtract is badly defined"<<std::endl;
else sxt->SetDirect( (direct > 0) );
}
DeclareAndCast(IFSelect_SelectAnyList,sli,item);
if (!sli.IsNull()) {
- if (numlist == 0) sout<<"Lineno."<<thenl<<" : A SelectAnyList is badly defined"<<Message_EndLine;
+ if (numlist == 0) sout<<"Lineno."<<thenl<<" : A SelectAnyList is badly defined"<<std::endl;
else sli->SetRange(low,up);
}
AddItem(item);
if (!ReadLine()) return 1;
if (theline.Value(1).Value(1) == '!') break; // liste suivante
if (theline.Length() < 3)
- { sout<<"Lineno."<<thenl<<" : A Selection Source List is badly defined"<<Message_EndLine; continue; }
+ { sout<<"Lineno."<<thenl<<" : A Selection Source List is badly defined"<<std::endl; continue; }
DeclareAndCast(IFSelect_Selection,sel,ItemValue(1));
if (sel.IsNull())
- { sout<<"Lineno."<<thenl<<" : A Source List is not for a Selection"<<Message_EndLine; continue; }
+ { sout<<"Lineno."<<thenl<<" : A Source List is not for a Selection"<<std::endl; continue; }
Standard_Integer nbs = atoi(theline.Value(2).ToCString());
// .. Differents cas reconnus
DeclareAndCast(IFSelect_SelectExtract,sxt,sel);
if (!sxt.IsNull()) {
if (nbs > 1)
- sout<<"Lineno."<<thenl<<" : SelectExtract, more than one source, followings ignored"<<Message_EndLine;
+ sout<<"Lineno."<<thenl<<" : SelectExtract, more than one source, followings ignored"<<std::endl;
DeclareAndCast(IFSelect_Selection,source,ItemValue(3));
sxt->SetInput(source);
}
DeclareAndCast(IFSelect_SelectDeduct,sdt,sel);
if (!sdt.IsNull()) {
if (nbs > 1)
- sout<<"Lineno."<<thenl<<" : SelectDeduct, more than one source, followings ignored"<<Message_EndLine;
+ sout<<"Lineno."<<thenl<<" : SelectDeduct, more than one source, followings ignored"<<std::endl;
sdt->SetInput(GetCasted(IFSelect_Selection,ItemValue(3)));
}
DeclareAndCast(IFSelect_SelectControl,sct,sel);
if (!sct.IsNull()) {
if (nbs != 2)
- sout<<"Lineno."<<thenl<<" : SelectControl, not two sources, followings ignored"<<Message_EndLine;
+ sout<<"Lineno."<<thenl<<" : SelectControl, not two sources, followings ignored"<<std::endl;
sct->SetMainInput (GetCasted(IFSelect_Selection,ItemValue(3)));
sct->SetSecondInput (GetCasted(IFSelect_Selection,ItemValue(4)));
}
if (!ReadLine()) return 1;
if (theline.Value(1).Value(1) == '!') break; // liste suivante
if (theline.Length() < 2)
- { sout<<"Lineno."<<thenl<<" : A Modifier is badly defined"<<Message_EndLine; continue; }
+ { sout<<"Lineno."<<thenl<<" : A Modifier is badly defined"<<std::endl; continue; }
Handle(Standard_Transient) item; // a fournir ...
ReadOwn(item);
if (item.IsNull()) continue;
DeclareAndCast(IFSelect_GeneralModifier,modif,item);
if (modif.IsNull())
- { sout<<"Lineno."<<thenl<<" : A Modifier has not been Recognized"<<Message_EndLine; continue; }
+ { sout<<"Lineno."<<thenl<<" : A Modifier has not been Recognized"<<std::endl; continue; }
AddItem(modif,Standard_False); // active plus tard
}
if (!ReadLine()) return 1;
if (theline.Value(1).Value(1) == '!') break; // liste suivante
if (theline.Length() < 2)
- { sout<<"Lineno."<<thenl<<" : A Transformer is badly defined"<<Message_EndLine; continue; }
+ { sout<<"Lineno."<<thenl<<" : A Transformer is badly defined"<<std::endl; continue; }
Handle(Standard_Transient) item; // a fournir ...
ReadOwn(item);
if (item.IsNull()) continue;
DeclareAndCast(IFSelect_Transformer,trf,item);
if (trf.IsNull())
- { sout<<"Lineno."<<thenl<<" : A Transformer has not been Recognized"<<Message_EndLine; continue; }
+ { sout<<"Lineno."<<thenl<<" : A Transformer has not been Recognized"<<std::endl; continue; }
AddItem(trf,Standard_False); // active plus tard
}
if (!ReadLine()) return 1;
if (theline.Value(1).Value(1) == '!') break; // liste suivante
if (theline.Length() < 3)
- { sout<<"Lineno."<<thenl<<" : A Dispatch is badly defined"<<Message_EndLine; continue; }
+ { sout<<"Lineno."<<thenl<<" : A Dispatch is badly defined"<<std::endl; continue; }
DeclareAndCast(IFSelect_Selection,input,ItemValue(3));
SetLastGeneral(3);
Handle(Standard_Transient) item; // a fournir ...
if (item.IsNull()) continue;
DeclareAndCast(IFSelect_Dispatch,disp,item);
if (disp.IsNull())
- { sout<<"Lineno."<<thenl<<" : A Dispatch has not been Recognized"<<Message_EndLine; continue; }
+ { sout<<"Lineno."<<thenl<<" : A Dispatch has not been Recognized"<<std::endl; continue; }
AddItem(disp);
thesess->SetItemSelection(disp,input);
}
if (!ReadLine()) return 1;
if (theline.Value(1).Value(1) == '!') break; // liste suivante
if (theline.Length() != 2)
- { sout<<"Lineno."<<thenl<<" : A File Root is badly defined"<<Message_EndLine; continue; }
+ { sout<<"Lineno."<<thenl<<" : A File Root is badly defined"<<std::endl; continue; }
DeclareAndCast(IFSelect_Dispatch,disp,ItemValue(1));
thesess->SetFileRoot (disp,theline.Value(2).ToCString());
}
if (!ReadLine()) return 1;
if (theline.Value(1).Value(1) == '!') break; // liste suivante
if (theline.Length() < 3)
- { sout<<"Lineno."<<thenl<<" : A General Modifier is badly defined"<<Message_EndLine; continue; }
+ { sout<<"Lineno."<<thenl<<" : A General Modifier is badly defined"<<std::endl; continue; }
DeclareAndCast(IFSelect_GeneralModifier,modif,ItemValue(1));
DeclareAndCast(IFSelect_Selection,input,ItemValue(2));
DeclareAndCast(IFSelect_Dispatch,disp,ItemValue(3));
if (modif.IsNull())
- { sout<<"Lineno."<<thenl<<" : A General Modifier has not been Recognized"<<Message_EndLine; continue; }
+ { sout<<"Lineno."<<thenl<<" : A General Modifier has not been Recognized"<<std::endl; continue; }
thesess->SetItemSelection (modif,input);
if (!disp.IsNull()) thesess->SetAppliedModifier (modif,disp);
else thesess->SetAppliedModifier (modif,thesess->ShareOut());
Standard_Integer IFSelect_SessionFile::ReadEnd ()
{
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
if ( theline.Length() != 2 ||
!theline.Value(1).IsEqual("!XSTEP") ||
!theline.Value(2).IsEqual("END"))
- { sout<<"End of File Incorrect, lineno"<<thenl<<Message_EndLine; return 1; }
+ { sout<<"End of File Incorrect, lineno"<<thenl<<std::endl; return 1; }
return 0;
}
Standard_Boolean IFSelect_SessionFile::ReadOwn
(Handle(Standard_Transient)& item)
{
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
if (theline.Length() < 2) return Standard_False;
const TCollection_AsciiString& type = theline.Value(2);
if (dumper->ReadOwn(*this,type,item)) break;
dumper = dumper->Next();
}
- if (dumper.IsNull()) sout<<" -- Lineno."<<thenl<<" : an Item could not be read"<<Message_EndLine;
+ if (dumper.IsNull()) sout<<" -- Lineno."<<thenl<<" : an Item could not be read"<<std::endl;
return (!dumper.IsNull()); // IsNull -> echec
}
void IFSelect_SessionFile::AddItem
(const Handle(Standard_Transient)& item, const Standard_Boolean active)
{
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
const TCollection_AsciiString& name = theline.Value(1);
Standard_Integer id = 0;
else id = thesess->AddNamedItem(name.ToCString(),item,active);
}
else sout<<"Lineno."<<thenl<<" -- Name : "<<name
- <<" : Item could not be defined" << Message_EndLine;
+ <<" : Item could not be defined" << std::endl;
thenames.Bind(name,id);
}
void IFSelect_SessionFile::SendItem (const Handle(Standard_Transient)& par)
{
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
char laligne[100];
Standard_Integer filenum = 0;
if (id != 0) filenum = thenums->Value(id);
if (filenum == 0) {
if (!par.IsNull()) sout << "Lineno " << thenl << " -- Unknown Item : "
- << " Type:" << par->DynamicType()->Name() << Message_EndLine; //sout<<Handle par
+ << " Type:" << par->DynamicType()->Name() << std::endl; //sout<<Handle par
SendVoid();
thedone = Standard_False;
return;
Handle(Standard_Transient) IFSelect_SessionFile::ItemValue
(const Standard_Integer num) const
{
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
Handle(Standard_Transient) res;
Standard_Integer nm = num + thelastgen;
if (name.IsEqual("$")) return res; // item non-defini justement
if (!thenames.Find(name, id)) {
sout << " -- Item Unknown in File : " << name
- << " lineno " << thenl << " param." << nm << Message_EndLine;
+ << " lineno " << thenl << " param." << nm << std::endl;
id = 0;
}
return thesess->Item(id);
}
counter->AddWithGraph (list,thesession->Graph());
}
- counter->PrintList(Message::DefaultMessenger(),thesession->Model(),mode);
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
+ counter->PrintList (sout, thesession->Model(), mode);
return IFSelect_RetVoid;
}
#include <Interface_InterfaceModel.hxx>
#include <Interface_Macros.hxx>
#include <Interface_MSG.hxx>
-#include <Message.hxx>
-#include <Message_Messenger.hxx>
#include <Standard_Transient.hxx>
#include <Standard_Type.hxx>
#include <TCollection_HAsciiString.hxx>
{ return thename->ToCString(); }
- void IFSelect_SignatureList::PrintCount (const Handle(Message_Messenger)& S) const
+ void IFSelect_SignatureList::PrintCount (Standard_OStream& S) const
{
Standard_Integer nbtot = 0, nbsign = 0;
NCollection_IndexedDataMap<TCollection_AsciiString, Standard_Integer>::Iterator iter(thedicount);
- S << " Count "<<thename->ToCString()<<"\n ----- -----------"<<Message_EndLine;
+ S << " Count "<<thename->ToCString()<<"\n ----- -----------"<<std::endl;
for (; iter.More(); iter.Next()) {
Standard_Integer val = iter.Value();
- S << Interface_MSG::Blanks(val,6) << val <<" "<<iter.Key()<<Message_EndLine;
+ S << Interface_MSG::Blanks(val,6) << val <<" "<<iter.Key()<<std::endl;
nbtot += val;
nbsign ++;
}
- if (thenbnuls > 0) S << thename->ToCString()<< " Nul : " << thenbnuls<<Message_EndLine;
- S<<" Nb Total:"<<nbtot<<" for "<<nbsign<<" items"<<Message_EndLine;
+ if (thenbnuls > 0) S << thename->ToCString()<< " Nul : " << thenbnuls <<std::endl;
+ S << " Nb Total:"<<nbtot<<" for "<<nbsign<<" items"<<std::endl;
}
void IFSelect_SignatureList::PrintList
- (const Handle(Message_Messenger)& S, const Handle(Interface_InterfaceModel)& model,
+ (Standard_OStream& S, const Handle(Interface_InterfaceModel)& model,
const IFSelect_PrintCount mod) const
{
if (mod == IFSelect_ItemsByEntity) return;
if (mod == IFSelect_CountByItem) { PrintCount (S); return; }
if (mod == IFSelect_CountSummary) { PrintSum (S); return; }
if (!HasEntities()) {
- S <<" SignatureList "<<Name()<<" : PrintList, list not available"<<Message_EndLine;
+ S <<" SignatureList "<<Name()<<" : PrintList, list not available"<<std::endl;
PrintCount(S);
return;
}
NCollection_IndexedDataMap<TCollection_AsciiString, Handle(Standard_Transient)>::Iterator iter(thediclist);
for (; iter.More(); iter.Next()) {
DeclareAndCast(TColStd_HSequenceOfTransient,list,iter.Value());
- S<<Name()<<" : "<<iter.Key()<<Message_EndLine;
- if (list.IsNull()) { S<<" - (empty list)"<<Message_EndLine; continue; }
+ S<<Name()<<" : "<<iter.Key()<<std::endl;
+ if (list.IsNull()) { S<<" - (empty list)"<<std::endl; continue; }
Standard_Integer nb = list->Length();
S<<" - Nb: "<<nb<<" : ";
Standard_Integer nc = nb; if (nb > 5 && mod == IFSelect_ShortByItem) nc = 5;
for (Standard_Integer i = 1; i <= nc; i ++) {
if (list->Value(i).IsNull()) {
- S<<" 0"; if (mod == IFSelect_EntitiesByItem) S<<":(Global)";
+ S << " 0";
+ if (mod == IFSelect_EntitiesByItem) S<<":(Global)";
continue;
}
Standard_Integer num = model->Number(list->Value(i));
if (num == IFSelect_ShortByItem) { S<<" ??"; continue; }
S<<" "<<num;
if (mod == IFSelect_EntitiesByItem)
- { S<<":"; model->PrintLabel(list->Value(i),S); }
+ { S<<":"; model->PrintLabel(list->Value(i), S); }
}
if (nc < nb) S<<" .. etc";
- S<<Message_EndLine;
+ S<<std::endl;
nbtot += nb;
nbsign ++;
}
- S<<" Nb Total:"<<nbtot<<" for "<<nbsign<<" items"<<Message_EndLine;
+ S <<" Nb Total:"<<nbtot<<" for "<<nbsign<<" items"<<std::endl;
}
- void IFSelect_SignatureList::PrintSum (const Handle(Message_Messenger)& S) const
+ void IFSelect_SignatureList::PrintSum (Standard_OStream& S) const
{
NCollection_IndexedDataMap<TCollection_AsciiString, Standard_Integer>::Iterator iter(thedicount);
- S << " Summary "<<thename->ToCString()<<"\n ----- -----------"<<Message_EndLine;
+ S << " Summary "<<thename->ToCString()<<"\n ----- -----------"<<std::endl;
Standard_Integer nbtot = 0, nbsign = 0, maxent = 0, nbval = 0, nbve = 0, minval = 0, maxval = 0, totval = 0;
for (; iter.More(); iter.Next()) {
Standard_Integer nbent = iter.Value();
nbve += nbent;
totval += (val*nbent);
}
- S << " Nb Total:"<<nbtot<<" for "<<nbsign<<" items"<<Message_EndLine;
- S << " Highest count of entities : "<<maxent<<" on one item"<<Message_EndLine;
+ S << " Nb Total:"<<nbtot<<" for "<<nbsign<<" items"<<std::endl;
+ S << " Highest count of entities : "<<maxent<<" on one item"<<std::endl;
if (nbval > 0) {
- S<<" Summary on Integer Values"<<Message_EndLine;
- S<<" Nb Integer Items : "<<nbval<<Message_EndLine;
- S<<" For Nb Entities : "<<nbve<<Message_EndLine;
- S<<" Cumulated Values : "<<totval<<Message_EndLine;
- S<<" Maximum Value : "<<maxval<<Message_EndLine;
+ S<<" Summary on Integer Values"<<std::endl;
+ S<<" Nb Integer Items : "<<nbval<<std::endl;
+ S<<" For Nb Entities : "<<nbve<<std::endl;
+ S<<" Cumulated Values : "<<totval<<std::endl;
+ S <<" Maximum Value : "<<maxval<<std::endl;
Standard_Integer avg1, avg2;
avg1 = totval/nbve;
avg2 = ((totval - (avg1*nbve)) * 10) / nbve;
- S<<" Average Value : "<<avg1<<" "<<avg2<<"/10"<<Message_EndLine;
- S<<" Minimum Value : "<<minval<<Message_EndLine;
+ S <<" Average Value : "<<avg1<<" "<<avg2<<"/10"<<std::endl;
+ S <<" Minimum Value : "<<minval<<std::endl;
}
}
#include <Standard_Transient.hxx>
#include <NCollection_IndexedDataMap.hxx>
class TCollection_HAsciiString;
-class Message_Messenger;
class Interface_InterfaceModel;
Standard_EXPORT virtual Standard_CString Name() const;
//! Prints the counts of items (not the list)
- Standard_EXPORT virtual void PrintCount (const Handle(Message_Messenger)& S) const;
+ Standard_EXPORT virtual void PrintCount (Standard_OStream& S) const;
//! Prints the lists of items, if they are present (else, prints
//! a message "no list available")
//! - ShortByItem(D) complete list of entity numbers (0: "Global")
//! - EntitiesByItem : list of (entity number/PrintLabel from the model)
//! other modes are ignored
- Standard_EXPORT virtual void PrintList (const Handle(Message_Messenger)& S, const Handle(Interface_InterfaceModel)& model, const IFSelect_PrintCount mod = IFSelect_ListByItem) const;
+ Standard_EXPORT virtual void PrintList (Standard_OStream& S, const Handle(Interface_InterfaceModel)& model, const IFSelect_PrintCount mod = IFSelect_ListByItem) const;
//! Prints a summary
//! Item which has the greatest count of entities
//! For items which are numeric values : their count, maximum,
//! minimum values, cumul, average
- Standard_EXPORT virtual void PrintSum (const Handle(Message_Messenger)& S) const;
+ Standard_EXPORT virtual void PrintSum (Standard_OStream& S) const;
Interface_CopyTool& TC, Interface_CheckIterator& checks,
Handle(Interface_InterfaceModel)& newmod) const
{
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
Standard_Boolean res = Standard_True;
Standard_Boolean chg = Standard_False;
Standard_Integer nb = NbModifiers();
Interface_CheckIterator checklist = ctx.CheckList();
if (!checklist.IsEmpty(Standard_False)) {
checks.Merge(checklist);
- sout<<"IFSelect_TransformStandard : Messages from Modifier n0 "<<i<<" of "<<nb<<Message_EndLine;
+ sout<<"IFSelect_TransformStandard : Messages from Modifier n0 "<<i<<" of "<<nb<<std::endl;
checklist.Print(sout,newmod,Standard_False);
}
if (!checklist.IsEmpty(Standard_True)) {
- sout<<" -- Abandon TransformStandard --"<<Message_EndLine;
+ sout<<" -- Abandon TransformStandard --"<<std::endl;
res = Standard_False; break;
}
}
#include <Interface_EntityIterator.hxx>
#include <Interface_InterfaceModel.hxx>
#include <Interface_Protocol.hxx>
-#include <Message.hxx>
-#include <Message_Messenger.hxx>
#include <Standard_Transient.hxx>
#include <Standard_Type.hxx>
#include <TCollection_HAsciiString.hxx>
(const Handle(Interface_InterfaceModel)& model,
const Handle(Interface_Protocol)& protocol,
const Handle(Standard_Transient)& entity,
- const Handle(Message_Messenger)& S) const
+ Standard_OStream& S) const
{
if (thelevhlp.IsNull()) DumpEntity (model,protocol,entity,S,0);
else DumpEntity (model,protocol,entity,S,thelevdef);
class Interface_EntityIterator;
class Interface_CopyTool;
class Standard_Transient;
-class Message_Messenger;
-
class IFSelect_WorkLibrary;
DEFINE_STANDARD_HANDLE(IFSelect_WorkLibrary, Standard_Transient)
//! for each norm. <model> helps to identify, number ... entities.
//! <level> is to be interpreted for each norm (because of the
//! formats which can be very different)
- Standard_EXPORT virtual void DumpEntity (const Handle(Interface_InterfaceModel)& model, const Handle(Interface_Protocol)& protocol, const Handle(Standard_Transient)& entity, const Handle(Message_Messenger)& S, const Standard_Integer level) const = 0;
+ Standard_EXPORT virtual void DumpEntity (const Handle(Interface_InterfaceModel)& model, const Handle(Interface_Protocol)& protocol, const Handle(Standard_Transient)& entity, Standard_OStream& S, const Standard_Integer level) const = 0;
//! Calls deferred DumpEntity with the recorded default level
- Standard_EXPORT void DumpEntity (const Handle(Interface_InterfaceModel)& model, const Handle(Interface_Protocol)& protocol, const Handle(Standard_Transient)& entity, const Handle(Message_Messenger)& S) const;
+ Standard_EXPORT void DumpEntity (const Handle(Interface_InterfaceModel)& model, const Handle(Interface_Protocol)& protocol, const Handle(Standard_Transient)& entity, Standard_OStream& S) const;
//! Records a default level and a maximum value for level
//! level for DumpEntity can go between 0 and <max>
else status = IFSelect_RetFail;
}
catch(Standard_Failure const& anException) {
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
sout<<" **** Interruption ReadFile par Exception : ****\n";
sout << anException.GetMessageString();
- sout<<"\n Abandon"<<Message_EndLine;
+ sout<<"\n Abandon"<<std::endl;
status = IFSelect_RetFail;
}
if (status != IFSelect_RetDone) return status;
iter = EvalSelection(sel); // appel normal (donc, code pas duplique)
}
catch (Standard_Failure const& anException) {
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
sout<<" **** Interruption EvalSelection par Exception : ****\n";
sout<<anException.GetMessageString();
- sout<<"\n Abandon"<<Message_EndLine;
+ sout<<"\n Abandon"<<std::endl;
}
errhand = theerrhand;
return iter;
res = SelectionResult(sel); // appel normal (->code unique)
}
catch (Standard_Failure const& anException) {
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
sout<<" **** Interruption SelectionResult par Exception : ****\n";
sout<<anException.GetMessageString();
- sout<<"\n Abandon"<<Message_EndLine;
+ sout<<"\n Abandon"<<std::endl;
}
errhand = theerrhand;
return res;
(thegraph->Graph(),theprotocol,checks,newmod);
if (!checks.IsEmpty(Standard_False)) {
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
- sout<<" ** RunTransformer has produced Check Messages : **"<<Message_EndLine;
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
+ sout<<" ** RunTransformer has produced Check Messages : **"<<std::endl;
checks.Print (sout,myModel,Standard_False);
}
thecheckdone = Standard_False;
EvaluateFile(); // appel normal (donc, code pas duplique)
}
catch (Standard_Failure const& anException) {
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
sout<<" **** Interruption EvaluateFile par Exception : ****\n";
sout<<anException.GetMessageString();
- sout<<"\n Abandon"<<Message_EndLine;
+ sout<<"\n Abandon"<<std::endl;
checks.CCheck(0)->AddFail ("Exception Raised -> Abandon");
}
errhand = theerrhand;
IFSelect_ShareOutResult R(theshareout,thegraph->Graph());
checks = thecopier->Copy (R,thelibrary,theprotocol);
if (!checks.IsEmpty(Standard_False)) {
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
- sout<<" ** EvaluateFile has produced Check Messages : **"<<Message_EndLine;
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
+ sout<<" ** EvaluateFile has produced Check Messages : **"<<std::endl;
checks.Print (sout,myModel,Standard_False);
}
thecopier->SetRemaining (thegraph->CGraph());
return SendSplit(); // appel normal (donc, code pas duplique)
}
catch (Standard_Failure const& anException) {
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
sout<<" **** Interruption SendSplit par Exception : ****\n";
sout<<anException.GetMessageString();
- sout<<"\n Abandon"<<Message_EndLine;
+ sout<<"\n Abandon"<<std::endl;
checks.CCheck(0)->AddFail ("Exception Raised -> Abandon");
}
errhand = theerrhand;
return Standard_False;
}
if (!IsLoaded()) {
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
- sout<< " *** Data for SendSplit not available ***"<<Message_EndLine;
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
+ sout<< " *** Data for SendSplit not available ***"<<std::endl;
checks.CCheck(0)->AddFail("Data not available");
thecheckrun = checks;
return Standard_False;
if (theshareout.IsNull()) return Standard_False;
Standard_Integer i, nbd = theshareout->NbDispatches();
Standard_Integer nf = 0;
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
sout<<" SendSplit .. ";
for (i = 1; i <= nbd; i ++) {
Handle(IFSelect_Dispatch) disp = theshareout->Dispatch(i);
if (stat != IFSelect_RetDone) std::cout<<"File "<<filnam<<" failed"<<std::endl;
}
}
- sout<<" .. Files Written : "<<nf<<Message_EndLine;
+ sout<<" .. Files Written : "<<nf<<std::endl;
}
thecheckrun = checks;
return Standard_True;
Standard_Boolean IFSelect_WorkSession::SetRemaining
(const IFSelect_RemainMode mode)
{
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
if (!IsLoaded()) return Standard_False;
if (mode == IFSelect_RemainForget) {
Standard_Integer nb = thegraph->Graph().Size();
Interface_CopyTool TC(myModel,theprotocol);
thecopier->CopiedRemaining (thegraph->Graph(),thelibrary,TC,newmod);
if (newmod.IsNull()) {
- sout<<" No Remaining Data recorded"<<Message_EndLine; return Standard_False;
+ sout<<" No Remaining Data recorded"<<std::endl; return Standard_False;
} else if (newmod == myModel) {
- sout<<" Remaining causes all original data to be kept"<<Message_EndLine;
+ sout<<" Remaining causes all original data to be kept"<<std::endl;
thecopier->SetRemaining (thegraph->CGraph());
return Standard_False;
} else {
for (Standard_Integer i = 1; i <= nb; i ++)
{ if (thegraph->Graph().Status(i) >= 0) ne ++; }
if (ne == 0) {
- sout<<" - All entities are remaining, none yet sent"<<Message_EndLine; return Standard_True;
+ sout<<" - All entities are remaining, none yet sent"<<std::endl; return Standard_True;
}
Interface_EntityIterator iter = SentList(0);
nb = iter.NbEntities();
if (nb == 0) {
- sout<<" - No recorded remaining entities"<<Message_EndLine; return Standard_True;
+ sout<<" - No recorded remaining entities"<<std::endl; return Standard_True;
}
- sout <<" -- Recorded Remaining (not yet sent) Entities --"<<Message_EndLine;
- ListEntities(iter,2);
+ sout <<" -- Recorded Remaining (not yet sent) Entities --"<<std::endl;
+ ListEntities (iter, 2, sout);
sout << " -- Maximum Sending Count (i.e. duplication in files) "<<
- MaxSendingCount() << Message_EndLine;
+ MaxSendingCount() << std::endl;
/*
sout<< " - Now, dispatches are deactivated"<<std::endl;
checks = thecopier->SendAll(filename,thegraph->Graph(),thelibrary,theprotocol);
}
catch (Standard_Failure const& anException) {
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
sout<<" **** Interruption SendAll par Exception : ****\n";
sout<<anException.GetMessageString();
- sout<<"\n Abandon"<<Message_EndLine;
+ sout<<"\n Abandon"<<std::endl;
errhand = theerrhand;
checks.CCheck(0)->AddFail ("Exception Raised -> Abandon");
thecheckrun = checks;
return SendSelected (filename,sel); // appel normal
}
catch (Standard_Failure const& anException) {
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
sout<<" **** Interruption SendSelected par Exception : ****\n";
sout<<anException.GetMessageString();
- sout<<"\n Abandon"<<Message_EndLine;
+ sout<<"\n Abandon"<<std::endl;
checks.CCheck(0)->AddFail ("Exception Raised -> Abandon");
errhand = theerrhand;
thecheckrun = checks;
void IFSelect_WorkSession::TraceStatics
(const Standard_Integer use, const Standard_Integer mode) const
{
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
if (use > 0) {
- if (mode == 0) sout<<"******************************************"<<Message_EndLine;
+ if (mode == 0) sout<<"******************************************"<<std::endl;
if (use == 1) {
- if (mode == 0) sout<<"***** General Parameters *****"<<Message_EndLine;
+ if (mode == 0) sout<<"***** General Parameters *****"<<std::endl;
} else if (use == 2) {
- if (mode == 0) sout<<"***** Load File *****"<<Message_EndLine;
+ if (mode == 0) sout<<"***** Load File *****"<<std::endl;
} else if (use == 3) {
- if (mode == 0) sout<<"***** Write File *****"<<Message_EndLine;
+ if (mode == 0) sout<<"***** Write File *****"<<std::endl;
} else if (use == 4) {
- if (mode == 0) sout<<"***** Split File *****"<<Message_EndLine;
+ if (mode == 0) sout<<"***** Split File *****"<<std::endl;
} else if (use == 5) {
- if (mode == 0) sout<<"***** Transfer (Read) *****"<<Message_EndLine;
+ if (mode == 0) sout<<"***** Transfer (Read) *****"<<std::endl;
} else if (use == 6) {
- if (mode == 0) sout<<"***** Transfer (Write) *****"<<Message_EndLine;
+ if (mode == 0) sout<<"***** Transfer (Write) *****"<<std::endl;
}
- if (mode == 0) sout<<"******************************************"<<Message_EndLine<<Message_EndLine;
+ if (mode == 0) sout<<"******************************************"<<std::endl<<std::endl;
}
// Echainements particuliers (use > 0)
if (use == 5) {
TraceStatics (-2,mode);
- if (mode == 0) sout<<Message_EndLine;
+ if (mode == 0) sout<<std::endl;
} else if (use == 4 || use == 6) {
TraceStatics (-3,mode);
- if (mode == 0) sout<<Message_EndLine;
+ if (mode == 0) sout<<std::endl;
}
// Valeurs particulieres
} else if (use == 4 || use == -4) { // Split : Prefix & cie
if (mode == 0) {
Handle(TCollection_HAsciiString) str = theshareout->Prefix();
- if (!str.IsNull()) sout << "Prefix : "<<str->ToCString()<<Message_EndLine;
- else sout << "Prefix not Defined" << Message_EndLine;
+ if (!str.IsNull()) sout << "Prefix : "<<str->ToCString()<<std::endl;
+ else sout << "Prefix not Defined" << std::endl;
str = theshareout->DefaultRootName();
- if (!str.IsNull()) sout << "Default Root : "<<str->ToCString()<<Message_EndLine;
- else sout << "Default Root not Defined" << Message_EndLine;
+ if (!str.IsNull()) sout << "Default Root : "<<str->ToCString()<<std::endl;
+ else sout << "Default Root not Defined" << std::endl;
str = theshareout->Extension();
- if (!str.IsNull()) sout << "Extension : "<<str->ToCString()<<Message_EndLine;
- else sout << "Extension not defined" << Message_EndLine;
+ if (!str.IsNull()) sout << "Extension : "<<str->ToCString()<<std::endl;
+ else sout << "Extension not defined" << std::endl;
}
}
// Fin
if (use > 0) {
- if (mode == 0) sout<<"******************************************"<<Message_EndLine<<Message_EndLine;
+ if (mode == 0) sout<<"******************************************"<<std::endl<<std::endl;
}
}
void IFSelect_WorkSession::DumpShare () const
{
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
- sout<<" ********** Definition ShareOut (Complete) **********"<<Message_EndLine;
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
+ sout<<" ********** Definition ShareOut (Complete) **********"<<std::endl;
Handle(TCollection_HAsciiString) str = theshareout->Prefix();
- if (!str.IsNull()) sout << "Prefix : " << str->ToCString() << Message_EndLine;
- else sout << "Prefix not Defined" << Message_EndLine;
+ if (!str.IsNull()) sout << "Prefix : " << str->ToCString() << std::endl;
+ else sout << "Prefix not Defined" << std::endl;
str = theshareout->DefaultRootName();
- if (!str.IsNull()) sout << "Default Root : " << str->ToCString() << Message_EndLine;
- else sout << "Default Root not Defined" << Message_EndLine;
+ if (!str.IsNull()) sout << "Default Root : " << str->ToCString() << std::endl;
+ else sout << "Default Root not Defined" << std::endl;
str = theshareout->Extension();
- if (!str.IsNull()) sout << "Extension : " << str->ToCString() << Message_EndLine;
- else sout << "Extension not defined" << Message_EndLine;
+ if (!str.IsNull()) sout << "Extension : " << str->ToCString() << std::endl;
+ else sout << "Extension not defined" << std::endl;
Standard_Integer lr = theshareout->LastRun();
Standard_Integer nb = theshareout->NbDispatches();
- sout << "Nb Dispatches : " << nb <<" (Last Run : " << lr << ") : "<<Message_EndLine;
+ sout << "Nb Dispatches : " << nb <<" (Last Run : " << lr << ") : "<<std::endl;
for (Standard_Integer i = 1; i <= nb; i ++) {
Handle(IFSelect_Dispatch) disp = theshareout->Dispatch(i);
sout << "Dispatch n0 " << i;
if (HasName(disp)) sout << " Name:"<< Name(disp)->ToCString();
- sout << " Label:" << disp->Label() << Message_EndLine;
+ sout << " Label:" << disp->Label() << std::endl;
Handle(IFSelect_Selection) sel = disp->FinalSelection();
- if (sel.IsNull()) sout << " No Final Selection Defined" << Message_EndLine;
+ if (sel.IsNull()) sout << " No Final Selection Defined" << std::endl;
else if (HasName(sel)) sout << " Final Selection : Name:"
- << Name(sel)->ToCString() << " Label:" << sel->Label() << Message_EndLine;
- else sout << " Final Selection : " << sel->Label() << Message_EndLine;
+ << Name(sel)->ToCString() << " Label:" << sel->Label() << std::endl;
+ else sout << " Final Selection : " << sel->Label() << std::endl;
if (disp->HasRootName())
- sout<<" File Root Name : "<<disp->RootName()->ToCString()<<Message_EndLine;
- else sout<<" No specific file root name (see Default Root)"<<Message_EndLine;
+ sout<<" File Root Name : "<<disp->RootName()->ToCString()<<std::endl;
+ else sout<<" No specific file root name (see Default Root)"<<std::endl;
}
Standard_Integer nbm = theshareout->NbModifiers(Standard_True);
if (nbm > 0) sout<<
- " *** "<<nbm<<" active Model Modifiers : see ListModifiers ***"<<Message_EndLine;
+ " *** "<<nbm<<" active Model Modifiers : see ListModifiers ***"<<std::endl;
Standard_Integer nbf = theshareout->NbModifiers(Standard_False);
if (nbf > 0) sout<<
- " *** "<<nbf<<" active File Modifiers : see ListModifiers ***"<<Message_EndLine;
- if (nbm+nbf == 0) sout<<" *** No active Modifiers ***"<<Message_EndLine;
+ " *** "<<nbf<<" active File Modifiers : see ListModifiers ***"<<std::endl;
+ if (nbm+nbf == 0) sout<<" *** No active Modifiers ***"<<std::endl;
}
// #### #### #### #### #### #### #### #### ####
void IFSelect_WorkSession::ListItems (const Standard_CString lab) const
{
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
- sout<< " ********** Items in Session **********"<<Message_EndLine;
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
+ sout<< " ********** Items in Session **********"<<std::endl;
Standard_Integer nb = MaxIdent();
Handle(TCollection_HAsciiString) str;
if (lab[0] != '\0') str = new TCollection_HAsciiString (lab);
sout<<"#"<<i;
if (HasName(var)) sout<<" - Named : "<<Name(var)->ToCString()<<" - ";
else sout<<" - (no name) - ";
- sout<<var->DynamicType()->Name()<<Message_EndLine<<" "<<label->ToCString()<<Message_EndLine;
+ sout<<var->DynamicType()->Name()<<std::endl<<" "<<label->ToCString()<<std::endl;
}
}
void IFSelect_WorkSession::ListFinalModifiers
(const Standard_Boolean formodel) const
{
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
Standard_Integer nb = theshareout->NbModifiers(formodel);
sout<< " ********** Modifiers in Session ";
sout<<(formodel ? "(For Model)" : "(For File)");
- sout<<": "<<nb<<" **********"<<Message_EndLine;
+ sout<<": "<<nb<<" **********"<<std::endl;
for (Standard_Integer i = 1; i <= nb; i ++) {
Handle(IFSelect_GeneralModifier) modif =
theshareout->GeneralModifier(formodel,i);
if (!modif.IsNull()) sout<<"Modifier n0."<<i<<" : "<<modif->Label();
if (HasName(modif)) sout << " Named as : " << Name(modif)->ToCString();
- sout<<Message_EndLine;
+ sout<<std::endl;
}
}
void IFSelect_WorkSession::DumpSelection
(const Handle(IFSelect_Selection)& sel) const
{
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
if (ItemIdent(sel) == 0) {
- sout << "Selection : Unknown"<<Message_EndLine; //sout<<Handle
+ sout << "Selection : Unknown"<<std::endl; //sout<<Handle
return;
}
sout << " ********** Selection";
if (HasName(sel)) sout << " , Name : " << Name(sel)->ToCString();
- sout <<" **********"<<Message_EndLine;
- sout<< "Label : " << sel->Label() << " . Input(s) : "<< Message_EndLine;
+ sout <<" **********"<<std::endl;
+ sout<< "Label : " << sel->Label() << " . Input(s) : "<< std::endl;
Standard_Integer nb = 0;
IFSelect_SelectionIterator iter; sel->FillIterator(iter);
for (; iter.More(); iter.Next()) {
nb ++;
Handle(IFSelect_Selection) newsel = iter.Value();
- sout<<" -- "<<newsel->Label()<<Message_EndLine;
+ sout<<" -- "<<newsel->Label()<<std::endl;
}
- sout << " Nb Inputs:"<<nb<<Message_EndLine;
+ sout << " Nb Inputs:"<<nb<<std::endl;
}
//=======================================================================
void IFSelect_WorkSession::DumpModel
- (const Standard_Integer level, const Handle(Message_Messenger)& S)
+ (const Standard_Integer level, Standard_OStream& S)
{
if (!IsLoaded())
- { S<< " *** Data for List not available ***"<<Message_EndLine; return; }
+ { S << " *** Data for List not available ***"<<std::endl; return; }
S << "\n *****************************************************************\n";
if (theloaded.Length() > 0)
- S << " ******** Loaded File : "<<theloaded.ToCString()<<Interface_MSG::Blanks(32-theloaded.Length())<<" ********"<<Message_EndLine;
- else S << " ******** No name for Loaded File"<<Message_EndLine;
+ S << " ******** Loaded File : "<<theloaded.ToCString()<<Interface_MSG::Blanks(32-theloaded.Length())<<" ********"<<std::endl;
+ else S << " ******** No name for Loaded File"<<std::endl;
if (level == 0) {
- S<<" ******** Short Dump of Header ********\n";
+ S <<" ******** Short Dump of Header ********\n";
S << " *****************************************************************\n\n";
- myModel->DumpHeader(S); S<<Message_EndLine;
+ myModel->DumpHeader (S); S <<std::endl;
}
Standard_Integer nbent = myModel->NbEntities();
for (Standard_Integer i = 1; i <= nbent; i ++) {
if (!shar.IsShared(myModel->Value(i))) nbr ++;
}
- S << " *****************************************************************\n";
- S << " ******** Model : "<<nbent<<" Entities, of which "<<nbr<<" Root(s)\n";
- S << " *****************************************************************\n"<<Message_EndLine;
+ S << " *****************************************************************\n"
+ << " ******** Model : "<<nbent<<" Entities, of which "<<nbr<<" Root(s)\n"
+ << " *****************************************************************\n"<<std::endl;
if (level <= 0) return;
else if (level == 1) {
- S<<" ******** Root Entities ******** ";
- ListEntities (shar.RootEntities(),1);
+ S <<" ******** Root Entities ******** ";
+ ListEntities (shar.RootEntities(), 1, S);
} else if (level == 2) {
- S<<" ******** Complete List ******** ";
- ListEntities (myModel->Entities(),1);
+ S <<" ******** Complete List ******** ";
+ ListEntities (myModel->Entities(), 1, S);
} else if (level > 2) {
IFSelect_PrintCount mode = IFSelect_ItemsByEntity;
if (level == 5 || level == 8) mode = IFSelect_CountByItem;
if (level == 6 || level == 9) mode = IFSelect_ListByItem;
if (level == 7 || level == 10) mode = IFSelect_EntitiesByItem;
- PrintCheckList (ModelCheckList(),Standard_False, mode);
+ PrintCheckList (S, ModelCheckList(),Standard_False, mode);
} else {
- if (level == 3) S << " ******** Check Model (Fails) ********"<<Message_EndLine;
- else S << " ******** Check Model (Complete) ********"<<Message_EndLine;
+ if (level == 3) S << " ******** Check Model (Fails) ********"<<std::endl;
+ else S << " ******** Check Model (Complete) ********"<<std::endl;
Interface_CheckTool CT (Graph());
Interface_CheckIterator C;
if (theerrhand) {
else C = CT.CompleteCheckList();
}
catch (Standard_Failure const&) {
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
sout<<" **** Interruption DumpModel (Check) par Exception ****\n";
- S<<" ** ** Exception Raised during Check ! ** **\n";
- S<<" --> what could be determined is listed"<<Message_EndLine;
+ S <<" ** ** Exception Raised during Check ! ** **\n";
+ S <<" --> what could be determined is listed"<<std::endl;
}
}
else if (level == 3) C = CT.CheckList();
C.Print(S,myModel, (level == 3));
}
catch (Standard_Failure const& anException) {
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
sout<<" **** Interruption DumpModel par Exception : ****\n";
sout<<anException.GetMessageString();
- sout<<"\n Abandon"<<Message_EndLine;
+ sout<<"\n Abandon"<<std::endl;
}
}
- S<<Message_EndLine<<"There are "<<nbent<<" Entities, of which "<<nbr<<" Root(s)"<<Message_EndLine;
+ S <<std::endl<<"There are "<<nbent<<" Entities, of which "<<nbr<<" Root(s)"<<std::endl;
}
// .... TraceDumpModel .... (Model + CheckList)
void IFSelect_WorkSession::TraceDumpModel
(const Standard_Integer mode)
{
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
- DumpModel (mode,sout);
+ Message_Messenger::StreamBuffer sout = Message::SendInfo(); // should it be changed to SendTrace()?
+ DumpModel (mode, sout);
// if (mode <= 4) { DumpModel (mode,sout); return; }
// else if (mode <= 7) PrintCheckList (ModelCheckList(),Standard_False, mode-5);
void IFSelect_WorkSession::DumpEntity
(const Handle(Standard_Transient)& ent, const Standard_Integer level,
- const Handle(Message_Messenger)& S) const
+ Standard_OStream& S) const
{
if (!IsLoaded())
- { S<< " *** Data for List not available ***"<<Message_EndLine; return; }
+ { S << " *** Data for List not available ***"<<std::endl; return; }
Standard_Integer num = myModel->Number(ent);
- if (num == 0) { S<<" *** Entity to Dump not in the Model ***"<<Message_EndLine; return; }
- if (thelibrary.IsNull()) { S<<" *** WorkLibrary not defined ***"<<Message_EndLine; return; }
+ if (num == 0) { S <<" *** Entity to Dump not in the Model ***"<<std::endl; return; }
+ if (thelibrary.IsNull()) { S <<" *** WorkLibrary not defined ***"<<std::endl; return; }
S << " ******** Dumping Entity n0 "<<num
- <<" level:"<<level<<" ********"<<Message_EndLine;
+ <<" level:"<<level<<" ********"<<std::endl;
thelibrary->DumpEntity (myModel,theprotocol,ent,S,level);
}
void IFSelect_WorkSession::TraceDumpEntity
(const Handle(Standard_Transient)& ent, const Standard_Integer level) const
{
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
- DumpEntity (ent,level,sout);
+ Message_Messenger::StreamBuffer sout = Message::SendInfo(); // should it be changed to SendTrace()?
+ DumpEntity (ent, level, sout);
}
// .... PrintEntityStatus ....
//=======================================================================
void IFSelect_WorkSession::PrintEntityStatus
- (const Handle(Standard_Transient)& ent, const Handle(Message_Messenger)& S)
+ (const Handle(Standard_Transient)& ent, Standard_OStream& S)
{
Standard_Integer i,nb;
Standard_Integer num = StartingNumber(ent);
if (num == 0) { std::cout<<" -- PrintEntityStatus : unknown"<<std::endl; return; }
S <<" Ent. n0/id: ";
- myModel->Print(ent,S);
+ myModel->Print (ent, S);
Handle(TCollection_HAsciiString) hname = EntityName(ent);
- if (!hname.IsNull() && hname->Length() > 0) S<<" Name:"<<hname->ToCString();
- S<<Message_EndLine;
+ if (!hname.IsNull() && hname->Length() > 0) S <<" Name:"<<hname->ToCString();
+ S <<std::endl;
Handle(IFSelect_Signature) signtype = SignType();
- if (signtype.IsNull()) S<<" Type(CDL):"<<ent->DynamicType()->Name()<<Message_EndLine;
- else S <<" Type:"<<signtype->Value (ent,myModel)<<Message_EndLine;
+ if (signtype.IsNull()) S <<" Type(CDL):"<<ent->DynamicType()->Name()<<std::endl;
+ else S <<" Type:"<<signtype->Value (ent,myModel)<<std::endl;
S <<" Category : " <<CategoryName (ent)
- <<" Validity : " <<ValidityName (ent) << Message_EndLine;
+ <<" Validity : " <<ValidityName (ent) << std::endl;
Interface_CheckIterator chl = CheckOne (ent);
chl.Print (S,myModel,Standard_False,Standard_False);
Handle(TColStd_HSequenceOfTransient) list = Sharings(ent);
- if (list.IsNull()) S<<" Root"<<Message_EndLine;
+ if (list.IsNull()) S <<" Root"<<std::endl;
else {
nb = list->Length();
- if (nb == 0) S<<" Root";
- else S<<" Super-entities:"<<nb<<" : (n0/id):";
- for (i = 1; i <= nb; i ++) { S<<" "; myModel->Print(list->Value(i),S); }
- S<<Message_EndLine;
+ if (nb == 0) S <<" Root";
+ else S <<" Super-entities:"<<nb<<" : (n0/id):";
+ for (i = 1; i <= nb; i ++) { S <<" "; myModel->Print(list->Value(i), S); }
+ S <<std::endl;
}
list = Shareds (ent);
- if (list.IsNull()) S<<" No sub-entity"<<Message_EndLine;
+ if (list.IsNull()) S <<" No sub-entity"<<std::endl;
else {
nb = list->Length();
- if (nb == 0) S<<" No sub-entity";
- else S<<" Sub-entities:"<<nb<<" , i.e. (n0/id):";
- for (i = 1; i <= nb; i ++) { S<<" "; myModel->Print(list->Value(i),S); }
- S<<Message_EndLine;
+ if (nb == 0) S <<" No sub-entity";
+ else S <<" Sub-entities:"<<nb<<" , i.e. (n0/id):";
+ for (i = 1; i <= nb; i ++) { S <<" "; myModel->Print(list->Value(i), S); }
+ S <<std::endl;
}
}
//purpose :
//=======================================================================
-void IFSelect_WorkSession::PrintCheckList
- (const Interface_CheckIterator& checklist,
- const Standard_Boolean failsonly, const IFSelect_PrintCount mode) const
+void IFSelect_WorkSession::PrintCheckList (Standard_OStream& S,
+ const Interface_CheckIterator& checklist,
+ const Standard_Boolean failsonly,
+ const IFSelect_PrintCount mode) const
{
// mode : 0 comptage 1 n0s entites 2 n0s+id ents
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (mode == IFSelect_ItemsByEntity) checklist.Print (sout,myModel,failsonly);
+ if (mode == IFSelect_ItemsByEntity) checklist.Print (S,myModel,failsonly);
else {
Interface_CheckIterator chks = checklist;
Handle(IFSelect_CheckCounter) counter =
new IFSelect_CheckCounter (mode>1 && mode != IFSelect_CountSummary);
counter->Analyse (chks,myModel,Standard_True,failsonly);
- counter->PrintList (sout,myModel,mode);
+ counter->PrintList (S, myModel, mode);
}
}
//purpose :
//=======================================================================
-void IFSelect_WorkSession::PrintSignatureList
- (const Handle(IFSelect_SignatureList)& signlist,
- const IFSelect_PrintCount mode) const
+void IFSelect_WorkSession::PrintSignatureList (Standard_OStream& S,
+ const Handle(IFSelect_SignatureList)& signlist,
+ const IFSelect_PrintCount mode) const
{
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
if (signlist.IsNull()) return;
- signlist->PrintList (sout,myModel,mode);
+ signlist->PrintList (S, myModel, mode);
}
// #### #### #### #### #### #### #### #### ####
void IFSelect_WorkSession::EvaluateSelection
(const Handle(IFSelect_Selection)& sel) const
{
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
if (errhand) {
errhand = Standard_False;
try {
catch (Standard_Failure const& anException) {
sout<<" **** Interruption EvaluateSelection par Exception **** Intitule\n";
sout<<anException.GetMessageString();
- sout<<"\n Abandon"<<Message_EndLine;
+ sout<<"\n Abandon"<<std::endl;
}
errhand = theerrhand;
return;
}
if (!IsLoaded())
- { sout<< " *** Data for Evaluation not available ***"<<Message_EndLine; return; }
+ { sout<< " *** Data for Evaluation not available ***"<<std::endl; return; }
if (ItemIdent(sel) == 0)
- { sout << " Selection : Unknown"<<Message_EndLine; return; } //sout<<Handle
+ { sout << " Selection : Unknown"<<std::endl; return; } //sout<<Handle
Interface_EntityIterator iter = EvalSelection (sel);
- ListEntities (iter,1);
+ ListEntities (iter, 1, sout);
sout << "**** (Unique) RootResult, Selection : "
- <<sel->Label()<<Message_EndLine;
+ <<sel->Label()<<std::endl;
}
void IFSelect_WorkSession::EvaluateDispatch
(const Handle(IFSelect_Dispatch)& disp, const Standard_Integer mode) const
{
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
if (errhand) {
errhand = Standard_False;
try {
catch (Standard_Failure const& anException) {
sout<<" **** Interruption EvaluateDispatch par Exception **** Intitule\n";
sout<<anException.GetMessageString();
- sout<<"\n Abandon"<<Message_EndLine;
+ sout<<"\n Abandon"<<std::endl;
}
errhand = theerrhand;
return;
Standard_Integer numdisp = DispatchRank(disp);
if (!IsLoaded())
- { sout<< " *** Data for List not available ***"<<Message_EndLine; return; }
+ { sout<< " *** Data for List not available ***"<<std::endl; return; }
if (theshareout->NbDispatches() < numdisp || numdisp <= 0)
- { sout<<"Dispatch : Unknown"<<Message_EndLine; return; } //sout<<Handle
+ { sout<<"Dispatch : Unknown"<<std::endl; return; } //sout<<Handle
if (disp->FinalSelection().IsNull())
- { sout<<"Dispatch : No Final Selection"<<Message_EndLine; return; }//sout<<Handle
- sout<<" --- Dispatch Label : "<<disp->Label()<<Message_EndLine;
+ { sout<<"Dispatch : No Final Selection"<<std::endl; return; }//sout<<Handle
+ sout<<" --- Dispatch Label : "<<disp->Label()<<std::endl;
IFSelect_ShareOutResult eval(disp,thegraph->Graph());
eval.Evaluate();
eval.Packets (mode ? Standard_True : Standard_False);
Standard_Integer nbpack = evres->NbPackets();
- sout<<"Nb Packets produced : "<<nbpack<<" :"<<Message_EndLine;
+ sout<<"Nb Packets produced : "<<nbpack<<" :"<<std::endl;
for (numpack = 1; numpack <= nbpack; numpack ++) {
- sout<<"\n **** Packet n0 : "<<numpack<<" ****"<<Message_EndLine;
+ sout<<"\n **** Packet n0 : "<<numpack<<" ****"<<std::endl;
if (!mode) std::cout<<"Root Entities :"<<std::endl;
- ListEntities (evres->Entities(numpack), (mode ? 2 : -1));
+ ListEntities (evres->Entities(numpack), (mode ? 2 : -1), sout);
}
//// Interface_EntityIterator iterem = disp->Remainder(thegraph->Graph());
if (mode == 0) return;
if (mode == 1 || mode == 3) {
- sout<<Message_EndLine;
+ sout<<std::endl;
if (evres->NbDuplicated(0,Standard_False) == 0)
- sout<<" **** All the Model is taken into account ****"<<Message_EndLine;
+ sout<<" **** All the Model is taken into account ****"<<std::endl;
else {
- sout<<" **** Starting Entities not taken by this Dispatch ****"<<Message_EndLine;
- ListEntities (evres->Duplicated(0,Standard_False),2);
+ sout<<" **** Starting Entities not taken by this Dispatch ****"<<std::endl;
+ ListEntities (evres->Duplicated(0,Standard_False), 2, sout);
}
}
if (mode >= 2) {
sout<<" **** Entites in more than one packet ****";
Standard_Integer max = evres->HighestDuplicationCount();
- if (max < 2) sout<<" : There are none"<<Message_EndLine;
+ if (max < 2) sout<<" : There are none"<<std::endl;
else {
Standard_Integer newcount;
- sout<<Message_EndLine;
+ sout<<std::endl;
for (newcount = 2; newcount <= max; newcount ++) {
if (evres->NbDuplicated(newcount,Standard_False) == 0) continue;
- sout<<" **** Entities put in "<<newcount<<" packets ****"<<Message_EndLine;
- ListEntities (evres->Duplicated(newcount,Standard_False),2);
+ sout<<" **** Entities put in "<<newcount<<" packets ****"<<std::endl;
+ ListEntities (evres->Duplicated(newcount,Standard_False), 2, sout);
}
}
}
void IFSelect_WorkSession::EvaluateComplete
(const Standard_Integer mode) const
{
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
if (errhand) {
errhand = Standard_False;
try {
catch (Standard_Failure const& anException) {
sout<<" **** Interruption EvaluateComplete par Exception : ****\n";
sout<<anException.GetMessageString();
- sout<<"\n Abandon"<<Message_EndLine;
+ sout<<"\n Abandon"<<std::endl;
}
errhand = theerrhand;
return;
}
if (!IsLoaded())
- { sout<< " *** Data for List not available ***"<<Message_EndLine; return; }
+ { sout<< " *** Data for List not available ***"<<std::endl; return; }
IFSelect_ShareOutResult eval(theshareout,thegraph->Graph());
eval.Evaluate();
sout<<"\n******** Evaluation ShareOutResult (Complete) ********\n";
- sout<<" **** List of Packets **** Count : "<<eval.NbPackets()<<Message_EndLine;
- if (mode == 0) sout << " ** (for each one : Root Entities) **"<<Message_EndLine;
- else sout << " ** (for each one : Evaluated Content) **"<<Message_EndLine;
+ sout<<" **** List of Packets **** Count : "<<eval.NbPackets()<<std::endl;
+ if (mode == 0) sout << " ** (for each one : Root Entities) **"<<std::endl;
+ else sout << " ** (for each one : Evaluated Content) **"<<std::endl;
Standard_Integer numpack = 0;
Handle(IFSelect_PacketList) evres =
eval.Packets (mode ? Standard_True : Standard_False);
Standard_Integer nbpack = evres->NbPackets();
- sout<<"Nb Packets produced : "<<nbpack<<" :"<<Message_EndLine;
+ sout<<"Nb Packets produced : "<<nbpack<<" :"<<std::endl;
for (numpack = 1; numpack <= nbpack; numpack ++) {
- sout<<"\n **** Packet n0 : "<<numpack<<" ****"<<Message_EndLine;
+ sout<<"\n **** Packet n0 : "<<numpack<<" ****"<<std::endl;
if (!mode) std::cout<<"Root Entities :"<<std::endl;
- ListEntities (evres->Entities(numpack), (mode ? 2: -1));
+ ListEntities (evres->Entities(numpack), (mode ? 2: -1), sout);
}
if (mode == 0) return;
if (mode == 1 || mode == 3) {
- sout<<Message_EndLine;
+ sout<<std::endl;
if (evres->NbDuplicated(0,Standard_False) == 0)
- sout<<" **** All the Model is taken into account ****"<<Message_EndLine;
+ sout<<" **** All the Model is taken into account ****"<<std::endl;
else {
- sout<<" **** Starting Entities Forgotten ****"<<Message_EndLine;
- ListEntities (evres->Duplicated(0,Standard_False),2);
+ sout<<" **** Starting Entities Forgotten ****"<<std::endl;
+ ListEntities (evres->Duplicated(0,Standard_False), 2, sout);
}
}
if (mode >= 2) {
- sout<<" **** Entites in more than one packet ****"<<Message_EndLine;
+ sout<<" **** Entites in more than one packet ****"<<std::endl;
Standard_Integer max = evres->HighestDuplicationCount();
- if (max < 2) sout<<" : There are none"<<Message_EndLine;
+ if (max < 2) sout<<" : There are none"<<std::endl;
else {
Standard_Integer newcount;
- sout<<Message_EndLine;
+ sout<<std::endl;
for (newcount = 2; newcount <= max; newcount ++) {
if (evres->NbDuplicated(newcount,Standard_False) == 0) continue;
- sout<<" **** Entities put in "<<newcount<<" packets ****"<<Message_EndLine;
- ListEntities (evres->Duplicated(newcount,Standard_False),2);
+ sout<<" **** Entities put in "<<newcount<<" packets ****"<<std::endl;
+ ListEntities (evres->Duplicated(newcount,Standard_False), 2, sout);
}
}
}
//=======================================================================
void IFSelect_WorkSession::ListEntities
- (const Interface_EntityIterator& iter, const Standard_Integer mmode) const
+ (const Interface_EntityIterator& iter, const Standard_Integer mmode, Standard_OStream& sout) const
{
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
int titre = 0;
Standard_Integer mode = (mmode < 0 ? -mmode : mmode);
- if (mmode >= 0) sout << " List of " << iter.NbEntities() << " Entities :"<<Message_EndLine;
+ if (mmode >= 0) sout << " List of " << iter.NbEntities() << " Entities :"<<std::endl;
if (!IsLoaded())
- { sout<< " *** Data for List not available ***"<<Message_EndLine; return; }
+ { sout<< " *** Data for List not available ***"<<std::endl; return; }
Interface_ShareFlags tool(thegraph->Graph());
try {
int newcount = -1; int mods = 0; int cnt = 0;
for (iter.Start(); iter.More(); iter.Next()) {
if (!titre && mode == 1) sout
- << "Number/Id. Category Validity Type\n----------- ----...."<<Message_EndLine;
+ << "Number/Id. Category Validity Type\n----------- ----...."<<std::endl;
// 123456789 123456789 123456 123456789 123456789 123456
- if (!titre && mode == 0) sout<<" Keys : R Root ? Unknown * Unloaded"<<Message_EndLine;
+ if (!titre && mode == 0) sout<<" Keys : R Root ? Unknown * Unloaded"<<std::endl;
if (!titre && mode == 2) sout<<"(";
titre = 1;
Handle(Standard_Transient) ent = iter.Value();
if (mode == 1) {
// n0 id (root?) category validity tracetype
sout<<Interface_MSG::Blanks (num,6);
- myModel->Print(ent,sout,0);
+ myModel->Print (ent, sout, 0);
if (!tool.IsShared(ent)) sout << " #ROOT#";
else sout << " ";
Standard_Integer catnum = myModel->CategoryNumber(num);
if (catnum > 0) sout<<" "<<Interface_Category::Name (catnum);
sout << " (" << ValidityName (ent) << ") ";
- sout<<" Type:"<<myModel->TypeName (ent, Standard_False)<<Message_EndLine;
+ sout<<" Type:"<<myModel->TypeName (ent, Standard_False)<<std::endl;
} else if (mode == 2) {
newcount ++;
if (newcount > 0) sout<<",";
sout<<num;
} else {
newcount ++; mods = 0; cnt ++;
- if (newcount >= 10) { sout << Message_EndLine<<"["<<cnt<<"]:"; newcount = 1; }
+ if (newcount >= 10) { sout << std::endl<<"["<<cnt<<"]:"; newcount = 1; }
if (newcount > 0) sout << " ";
- myModel->Print(ent,sout,0);
+ myModel->Print (ent, sout, 0);
if (!tool.IsShared(ent)) { if(mods == 0) sout<<"("; sout<<"R"; mods++; }
if (myModel->IsUnknownEntity(num)) { sout<<(mods==0 ? '(' : ' ')<<"?"; mods ++; }
if (myModel->IsRedefinedContent(num)) { sout<<(mods==0 ? '(' : ' ')<<"*"; mods ++; }
if (mods) { sout<<")"; newcount ++; }
}
}
- if (mode == 0) sout<<Message_EndLine;
- if (mode == 2) sout<<")"<<Message_EndLine;
+ if (mode == 0) sout<<std::endl;
+ if (mode == 2) sout<<")"<<std::endl;
}
catch (Standard_Failure const& anException) {
sout<<" **** Interruption ListEntities par Exception : ****\n";
sout<<anException.GetMessageString();
- sout<<"\n Abandon"<<Message_EndLine;
+ sout<<"\n Abandon"<<std::endl;
}
}
class IFSelect_Modifier;
class IFSelect_Transformer;
class IFSelect_PacketList;
-class Message_Messenger;
class IFSelect_SignatureList;
//! 4 -> as 3 but all CheckList (Fails + Warnings)
//! 5,6,7 : as 3 but resp. Count,List,Labels by Fail
//! 8,9,10 : as 4 but resp. Count,List,Labels by message
- Standard_EXPORT void DumpModel (const Standard_Integer level, const Handle(Message_Messenger)& S);
+ Standard_EXPORT void DumpModel (const Standard_Integer level, Standard_OStream& S);
//! Dumps the current Model (as inherited DumpModel), on currently
//! defined Default Trace File (default is standard output)
//! <level> is to be interpreted for each norm : see specific
//! classes of WorkLibrary for it. Generally, 0 if for very basic
//! (only type ...), greater values give more and more details.
- Standard_EXPORT void DumpEntity (const Handle(Standard_Transient)& ent, const Standard_Integer level, const Handle(Message_Messenger)& S) const;
+ Standard_EXPORT void DumpEntity (const Handle(Standard_Transient)& ent, const Standard_Integer level, Standard_OStream& S) const;
//! Prints main informations about an entity : its number, type,
//! validity (and checks if any), category, shareds and sharings..
//! mutable because it can recompute checks as necessary
- Standard_EXPORT void PrintEntityStatus (const Handle(Standard_Transient)& ent, const Handle(Message_Messenger)& S);
+ Standard_EXPORT void PrintEntityStatus (const Handle(Standard_Transient)& ent, Standard_OStream& S);
//! Dumps an entity from the current Model as inherited DumpEntity
//! on currently defined Default Trace File
//! 1 : according messages, count of entities
//! 2 : id but with list of entities, designated by their numbers
//! 3 : as 2 but with labels of entities
- Standard_EXPORT void PrintCheckList (const Interface_CheckIterator& checklist, const Standard_Boolean failsonly, const IFSelect_PrintCount mode) const;
+ Standard_EXPORT void PrintCheckList (Standard_OStream& S,
+ const Interface_CheckIterator& checklist,
+ const Standard_Boolean failsonly,
+ const IFSelect_PrintCount mode) const;
//! Prints a SignatureList to the current Trace File, controlled
//! with the current Model
//! <mode> defines the mode of printing (see SignatureList)
- Standard_EXPORT void PrintSignatureList (const Handle(IFSelect_SignatureList)& signlist, const IFSelect_PrintCount mode) const;
+ Standard_EXPORT void PrintSignatureList (Standard_OStream& S,
+ const Handle(IFSelect_SignatureList)& signlist,
+ const IFSelect_PrintCount mode) const;
//! Displays the list of Entities selected by a Selection (i.e.
//! the result of EvalSelection).
//! 1 gives a more complete trace (1 line per Entity)
//! (can be used each time a trace has to be output from a list)
//! 2 gives a form suitable for givelist : (n1,n2,n3...)
- Standard_EXPORT void ListEntities (const Interface_EntityIterator& iter, const Standard_Integer mode) const;
+ Standard_EXPORT void ListEntities (const Interface_EntityIterator& iter, const Standard_Integer mode, Standard_OStream& S) const;
DEFINE_STANDARD_RTTIEXT(IFSelect_WorkSession,Standard_Transient)
void IGESAppli_SpecificModule::OwnDump
(const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent,
- const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S,
+ const IGESData_IGESDumper& dumper, Standard_OStream& S,
const Standard_Integer own) const
{
switch (CN) {
#include <Standard_Boolean.hxx>
class IGESData_IGESEntity;
class IGESData_IGESDumper;
-class Message_Messenger;
-
class IGESAppli_SpecificModule;
DEFINE_STANDARD_HANDLE(IGESAppli_SpecificModule, IGESData_SpecificModule)
Standard_EXPORT IGESAppli_SpecificModule();
//! Specific Dump (own parameters) for IGESAppli
- Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const Standard_OVERRIDE;
+ Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const Standard_OVERRIDE;
//! ---Purpose
Standard_EXPORT virtual Standard_Boolean OwnCorrect (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent) const Standard_OVERRIDE;
void IGESAppli_ToolDrilledHole::OwnDump
(const Handle(IGESAppli_DrilledHole)& ent, const IGESData_IGESDumper& /*dumper*/,
- const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
+ Standard_OStream& S, const Standard_Integer /*level*/) const
{
- S << "IGESAppli_DrilledHole" << Message_EndLine;
+ S << "IGESAppli_DrilledHole" << std::endl;
- S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
+ S << "Number of property values : " << ent->NbPropertyValues() << std::endl;
S << "Drill diameter size :" << ent->DrillDiaSize() << " ";
- S << "Finish diameter size : " << ent->FinishDiaSize() << Message_EndLine;
+ S << "Finish diameter size : " << ent->FinishDiaSize() << std::endl;
S << "Plating indication flag : ";
if (!ent->IsPlating()) S << "NO" << " - ";
else S << "YES - ";
S << "Lower Numbered Layer : " << ent->NbLowerLayer() << " ";
- S << "Higher Numbered Layer : " << ent->NbHigherLayer() << Message_EndLine;
+ S << "Higher Numbered Layer : " << ent->NbHigherLayer() << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
//! Tool to work on a DrilledHole. Called by various Modules
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_DrilledHole)& entfrom, const Handle(IGESAppli_DrilledHole)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESAppli_DrilledHole)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESAppli_DrilledHole)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESAppli_ToolElementResults::OwnDump
(const Handle(IGESAppli_ElementResults)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const // UNFINISHED
+ Standard_OStream& S, const Standard_Integer level) const // UNFINISHED
{
Standard_Integer sublevel = (level > 4) ? 1 : 0;
- S << "IGESAppli_ElementResults" << Message_EndLine;
+ S << "IGESAppli_ElementResults\n";
S << "General Note : ";
dumper.Dump(ent->Note(),S, sublevel);
- S << Message_EndLine;
- S << "Subcase Number : " << ent->SubCaseNumber() << Message_EndLine;
- S << "Time : " << ent->Time() << Message_EndLine;
- S << "Number of Result Values : " << ent->NbResultValues() << Message_EndLine;
- S << "Result Report Flag : " << ent->ResultReportFlag() << Message_EndLine;
+ S << "\n";
+ S << "Subcase Number : " << ent->SubCaseNumber() << "\n";
+ S << "Time : " << ent->Time() << "\n";
+ S << "Number of Result Values : " << ent->NbResultValues() << "\n";
+ S << "Result Report Flag : " << ent->ResultReportFlag() << "\n";
S << "Element Identifiers : ";
- IGESData_DumpVals(S ,level,1, ent->NbElements(),ent->ElementIdentifier);
- S << Message_EndLine << "Elements : ";
+ IGESData_DumpVals(S,level,1, ent->NbElements(),ent->ElementIdentifier);
+ S << "\nElements : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbElements(),ent->Element);
- S << Message_EndLine << "Element Topology Types : ";
- IGESData_DumpVals(S ,level,1, ent->NbElements(),ent->ElementTopologyType);
- S << Message_EndLine << "Numbers of Layers : ";
- IGESData_DumpVals(S ,level,1, ent->NbElements(),ent->NbLayers);
- S << Message_EndLine << "Data Layer Flags : ";
- IGESData_DumpVals(S ,level,1, ent->NbElements(),ent->DataLayerFlag);
- S << Message_EndLine << "Numbers of Result Data Locations : ";
- IGESData_DumpVals(S ,level,1, ent->NbElements(),ent->NbResultDataLocs);
- S << Message_EndLine << "Result Data Locations : "; S << " TO BE DONE ";
+ S << "\nElement Topology Types : ";
+ IGESData_DumpVals(S,level,1, ent->NbElements(),ent->ElementTopologyType);
+ S << "\nNumbers of Layers : ";
+ IGESData_DumpVals(S,level,1, ent->NbElements(),ent->NbLayers);
+ S << "\nData Layer Flags : ";
+ IGESData_DumpVals(S,level,1, ent->NbElements(),ent->DataLayerFlag);
+ S << "\nNumbers of Result Data Locations : ";
+ IGESData_DumpVals(S,level,1, ent->NbElements(),ent->NbResultDataLocs);
+ S << "\nResult Data Locations : "; S << " TO BE DONE ";
// ?? A VERIFIER DE PRES, pas du tout sur que ce soit bon
// cf aussi Write et Copy
- if (level <= 4) S << " [ ask level > 4 for more, > 5 for complete ]" << Message_EndLine;
+ if (level <= 4) S << " [ ask level > 4 for more, > 5 for complete ]\n";
else {
Standard_Integer i;// svv Jan 10 2000 : porting on DEC
for (i = 1; i <= ent->NbElements(); i ++) {
S << " ["<<i<<":NbLoc="<<nloc<<"]:";
for (Standard_Integer j = 1; j <= nloc; j ++)
S << " " << ent->ResultDataLoc (i,j);
- S << Message_EndLine;
+ S << "\n";
}
S << "Result Data : ";
for (i = 1; i <= ent->NbElements(); i ++) {
Standard_Integer nres = ent->NbResults(i);
S << " ["<<i<<":NbRes="<<nres<<"]:";
- if (level <= 5) S << " [ ask level > 5 for complete Data ]" << Message_EndLine;
+ if (level <= 5) S << " [ ask level > 5 for complete Data ]\n";
else {
for (Standard_Integer j = 1; j <= nres; j ++)
S << " " << ent->ResultData(i,j); // ?? is it all ?? UNFINISHED
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a ElementResults. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_ElementResults)& entfrom, const Handle(IGESAppli_ElementResults)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESAppli_ElementResults)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESAppli_ElementResults)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
#include <TCollection_HAsciiString.hxx>
void IGESAppli_ToolFiniteElement::OwnDump
(const Handle(IGESAppli_FiniteElement)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESAppli_FiniteElement" << Message_EndLine;
+ S << "IGESAppli_FiniteElement\n";
- S << "Topology type : " << ent->Topology() << Message_EndLine;
+ S << "Topology type : " << ent->Topology() << "\n";
S << "Nodes : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbNodes(),ent->Node);
- S << Message_EndLine << "Element Name : " << ent->Name();
- S << Message_EndLine;
+ S << "\nElement Name : " << ent->Name()->String();
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a FiniteElement. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_FiniteElement)& entfrom, const Handle(IGESAppli_FiniteElement)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESAppli_FiniteElement)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESAppli_FiniteElement)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESAppli_ToolFlow::OwnDump
(const Handle(IGESAppli_Flow)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESAppli_Flow" << Message_EndLine;
- S << "Number of Context Flags : " << ent->NbContextFlags() << Message_EndLine;
+ S << "IGESAppli_Flow\n";
+ S << "Number of Context Flags : " << ent->NbContextFlags() << "\n";
Standard_Integer tf = ent->TypeOfFlow();
S << "Type of Flow : " << tf;
- if (tf == 1) S << " (logical)" << Message_EndLine;
- else if (tf == 2) S << " (physical)" << Message_EndLine;
- else S << " (not specified)" << Message_EndLine;
+ if (tf == 1) S << " (logical)\n";
+ else if (tf == 2) S << " (physical)\n";
+ else S << " (not specified)\n";
tf = ent->FunctionFlag();
S << "Function Flag : " << tf;
- if (tf == 1) S << " (electrical signal)" << Message_EndLine;
- else if (tf == 2) S << " (fluid flow path)" << Message_EndLine;
- else S << " (not specified)" << Message_EndLine;
+ if (tf == 1) S << " (electrical signal)\n";
+ else if (tf == 2) S << " (fluid flow path)\n";
+ else S << " (not specified)\n";
S << "Flow Associativities : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbFlowAssociativities(),
ent->FlowAssociativity);
- S << Message_EndLine << "Connect Points : ";
+ S << "\nConnect Points : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbConnectPoints(),
ent->ConnectPoint);
- S << Message_EndLine << "Joins : ";
+ S << "\nJoins : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbJoins(),ent->Join);
- S << Message_EndLine << "Flow Names : ";
+ S << "\nFlow Names : ";
IGESData_DumpStrings(S ,level,1, ent->NbFlowNames(),ent->FlowName);
- S << Message_EndLine << "Text Display Templates : ";
+ S << "\nText Display Templates : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbTextDisplayTemplates(),
ent->TextDisplayTemplate);
- S << Message_EndLine << "Continuation Flow Associativities : ";
+ S << "\nContinuation Flow Associativities : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbContFlowAssociativities(),
ent->ContFlowAssociativity);
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a Flow. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_Flow)& entfrom, const Handle(IGESAppli_Flow)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESAppli_Flow)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESAppli_Flow)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESAppli_ToolFlowLineSpec::OwnDump
(const Handle(IGESAppli_FlowLineSpec)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESAppli_FlowLineSpec" << Message_EndLine;
+ S << "IGESAppli_FlowLineSpec\n";
S << "Name and Modifiers : ";
IGESData_DumpStrings(S ,level,1, ent->NbPropertyValues(),ent->Modifier);
- S << Message_EndLine;
+ S << "\n";
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a FlowLineSpec. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_FlowLineSpec)& entfrom, const Handle(IGESAppli_FlowLineSpec)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESAppli_FlowLineSpec)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESAppli_FlowLineSpec)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESAppli_ToolLevelFunction::OwnDump
(const Handle(IGESAppli_LevelFunction)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
+ Standard_OStream& S, const Standard_Integer /* level */) const
{
- S << "IGESAppli_LevelFunction" << Message_EndLine;
+ S << "IGESAppli_LevelFunction\n";
- S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
- S << "Function Description code : " << ent->FuncDescriptionCode() << Message_EndLine;
+ S << "Number of property values : " << ent->NbPropertyValues() << "\n";
+ S << "Function Description code : " << ent->FuncDescriptionCode() << "\n";
S << "Function Description : ";
IGESData_DumpString(S,ent->FuncDescription());
- S << Message_EndLine;
+ S << "\n";
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a LevelFunction. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_LevelFunction)& entfrom, const Handle(IGESAppli_LevelFunction)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESAppli_LevelFunction)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESAppli_LevelFunction)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESAppli_ToolLevelToPWBLayerMap::OwnDump
(const Handle(IGESAppli_LevelToPWBLayerMap)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer i, num;
- S << "IGESAppli_LevelToPWBLayerMap" << Message_EndLine;
- S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
- S << "Exchange File Level Number : " << Message_EndLine;
- S << "Native Level Identification : " << Message_EndLine;
- S << "Physical Layer Number : " << Message_EndLine;
+ S << "IGESAppli_LevelToPWBLayerMap\n";
+ S << "Number of property values : " << ent->NbPropertyValues() << "\n";
+ S << "Exchange File Level Number :\n";
+ S << "Native Level Identification :\n";
+ S << "Physical Layer Number :\n";
S << "Exchange File Level Identification : ";
IGESData_DumpStrings
(S,-level,1, ent->NbLevelToLayerDefs(),ent->ExchangeFileLevelIdent);
- S << Message_EndLine;
+ S << "\n";
if (level > 4)
for ( num = ent->NbLevelToLayerDefs(), i = 1; i <= num; i++ )
{
- S << "[" << i << "]: " << Message_EndLine;
+ S << "[" << i << "]:\n";
S << "Exchange File Level Number : "
- << ent->ExchangeFileLevelNumber(i) << Message_EndLine;
+ << ent->ExchangeFileLevelNumber(i) << "\n";
S << "Native Level Identification : ";
IGESData_DumpString(S,ent->NativeLevel(i));
- S << Message_EndLine;
- S << "Physical Layer Number : " << ent->PhysicalLayerNumber(i) << Message_EndLine;
+ S << "\n";
+ S << "Physical Layer Number : " << ent->PhysicalLayerNumber(i) << "\n";
S << "Exchange File Level Identification : ";
IGESData_DumpString(S,ent->ExchangeFileLevelIdent(i));
- S << Message_EndLine;
+ S << "\n";
}
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a LevelToPWBLayerMap. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_LevelToPWBLayerMap)& entfrom, const Handle(IGESAppli_LevelToPWBLayerMap)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESAppli_LevelToPWBLayerMap)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESAppli_LevelToPWBLayerMap)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
IGESAppli_ToolLineWidening::IGESAppli_ToolLineWidening () { }
void IGESAppli_ToolLineWidening::OwnDump
(const Handle(IGESAppli_LineWidening)& ent, const IGESData_IGESDumper& /*dumper*/,
- const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
+ Standard_OStream& S, const Standard_Integer /*level*/) const
{
- S << "IGESAppli_LineWidening" << Message_EndLine;
+ S << "IGESAppli_LineWidening\n";
- S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
- S << "Width of metalization : " << ent->WidthOfMetalization() << Message_EndLine;
+ S << "Number of property values : " << ent->NbPropertyValues() << "\n";
+ S << "Width of metalization : " << ent->WidthOfMetalization() << "\n";
S << "Cornering Code : " ;
- if (ent->CorneringCode() == 0) S << "0 (rounded)" << Message_EndLine;
- else if (ent->CorneringCode() == 1) S << "1 (squared)" << Message_EndLine;
- else S << "incorrect value" << Message_EndLine;
+ if (ent->CorneringCode() == 0) S << "0 (rounded)\n";
+ else if (ent->CorneringCode() == 1) S << "1 (squared)\n";
+ else S << "incorrect value\n";
S << "Extension Flag : " ;
- if (ent->ExtensionFlag() == 0) S << "0 (No Extension)" << Message_EndLine;
- else if (ent->ExtensionFlag() == 1) S << "1 (One-half width extension)" << Message_EndLine;
- else if (ent->ExtensionFlag() == 2) S << "2 (Extension set by ExtensionValue)" << Message_EndLine;
- else S << "incorrect value" << Message_EndLine;
+ if (ent->ExtensionFlag() == 0) S << "0 (No Extension)\n";
+ else if (ent->ExtensionFlag() == 1) S << "1 (One-half width extension)\n";
+ else if (ent->ExtensionFlag() == 2) S << "2 (Extension set by ExtensionValue)\n";
+ else S << "incorrect value\n";
S << "Justification Flag : " ;
if (ent->JustificationFlag() == 0)
- S << "0 (Centre justified)" << Message_EndLine;
+ S << "0 (Centre justified)\n";
else if (ent->JustificationFlag() == 1)
- S << "1 (left justified)" << Message_EndLine;
+ S << "1 (left justified)\n";
else if (ent->JustificationFlag() == 2)
- S << "2 (right justified)" << Message_EndLine;
+ S << "2 (right justified)\n";
else
- S << "incorrect value" << Message_EndLine;
+ S << "incorrect value\n";
if (ent->ExtensionFlag() == 2)
- S << "Extension Value : " << ent->ExtensionValue() << Message_EndLine;
+ S << "Extension Value : " << ent->ExtensionValue() << std::endl;
else
- S << "No Extension Value (Extension Flag != 2)" << Message_EndLine;
+ S << "No Extension Value (Extension Flag != 2)" << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a LineWidening. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_LineWidening)& entfrom, const Handle(IGESAppli_LineWidening)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESAppli_LineWidening)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESAppli_LineWidening)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESAppli_ToolNodalConstraint::OwnDump
(const Handle(IGESAppli_NodalConstraint)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer sublevel = (level > 4) ? 1 : 0;
- S << "IGESAppli_NodalConstraint" << Message_EndLine;
- S << "Type of Constraint : " << ent->Type() << Message_EndLine;
+ S << "IGESAppli_NodalConstraint\n";
+ S << "Type of Constraint : " << ent->Type() << "\n";
S << "Node : ";
dumper.Dump(ent->NodeEntity(),S, sublevel);
- S << Message_EndLine;
+ S << "\n";
S << "Tabular Data Properties : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbCases(),ent->TabularData);
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a NodalConstraint. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_NodalConstraint)& entfrom, const Handle(IGESAppli_NodalConstraint)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESAppli_NodalConstraint)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESAppli_NodalConstraint)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESAppli_ToolNodalDisplAndRot::OwnDump
(const Handle(IGESAppli_NodalDisplAndRot)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESAppli_NodalDisplAndRot" << Message_EndLine;
+ S << "IGESAppli_NodalDisplAndRot\n";
Standard_Integer nbcases = ent->NbCases();
Standard_Integer nbnodes = ent->NbNodes();
- S << "No. of analysis cases : " << nbcases << Message_EndLine;
+ S << "No. of analysis cases : " << nbcases << "\n";
S << "General Notes : ";
IGESData_DumpEntities(S,dumper ,level,1, nbcases,ent->Note);
- S << Message_EndLine;
+ S << "\n";
// gp_GTrsf loca; // true location n.u.
switch (level)
// IGESData_DumpListXYZL(S,-level,1,nbcases,ent->TranslationParameter,loca);
S << "Rotational Parameters : ";
// IGESData_DumpListXYZL(S,-level,1,nbcases,ent->RotationalParameter,loca);
- S << " TO BE DONE" << Message_EndLine;
+ S << " TO BE DONE" << std::endl;
break;
case 5:
case 6: {
{
S << "[" << i << "]: ";
dumper.Dump (ent->Note(i),S, 1);
- S << Message_EndLine;
+ S << std::endl;
}
- S << "Nodes : " << Message_EndLine;
- S << "Node Identifiers : " << Message_EndLine;
- S << "Translation Parameters : " << Message_EndLine;
+ S << "Nodes :\n";
+ S << "Node Identifiers :\n";
+ S << "Translation Parameters :\n";
S << "Rotational Parameters : Count = " << nbcases;
// IGESData_DumpListXYZL(S,-level,1,nbcases,ent->RotationalParameter,loca);
- S << Message_EndLine;
+ S << "\n";
for (Standard_Integer j = 1; j <= nbnodes; j ++)
{
S << "[" << j << "]: - NodeIdentifier : "
- << ent->NodeIdentifier(j) << " - Node :"<<Message_EndLine;
+ << ent->NodeIdentifier(j) << " - Node :\n";
S << "Node : ";
dumper.Dump (ent->Node(j),S, 1);
- S << " - Parameters : " << Message_EndLine;
+ S << " - Parameters :\n";
for (Standard_Integer k = 1; k <= nbcases; k ++)
{
- S << " [" << k << "]: " << Message_EndLine;
+ S << " [" << k << "]:\n";
S << "Translational Parameter : X="
<< ent->TranslationParameter(j,k).X() << ", Y="
<< ent->TranslationParameter(j,k).Y() << ", Z="
- << ent->TranslationParameter(j,k).Z() << Message_EndLine;
+ << ent->TranslationParameter(j,k).Z() << "\n";
S << "Rotational Parameter : X="
<< ent->RotationalParameter(j,k).X() << ", Y="
<< ent->RotationalParameter(j,k).Y() << ", Z="
<< ent->RotationalParameter(j,k).Z();
if (k == nbcases) S << "] ";
- S << Message_EndLine;
+ S << "\n";
}
}
}
break;
default: break;
}
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a NodalDisplAndRot. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_NodalDisplAndRot)& entfrom, const Handle(IGESAppli_NodalDisplAndRot)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESAppli_NodalDisplAndRot)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESAppli_NodalDisplAndRot)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESAppli_ToolNodalResults::OwnDump
(const Handle(IGESAppli_NodalResults)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
// Standard_Integer nbnodes = ent->NbNodes();
// Standard_Integer nbdata = ent->NbData ();
- S << "IGESAppli_NodalResults" << Message_EndLine;
+ S << "IGESAppli_NodalResults\n";
S << "General Note : ";
dumper.Dump(ent->Note(),S, (level <= 4) ? 0 : 1);
- S << Message_EndLine;
+ S << "\n";
S << "Analysis subcase number : " << ent->SubCaseNumber() << " ";
- S << "Time used : " << ent->Time() << Message_EndLine;
+ S << "Time used : " << ent->Time() << "\n";
S << "No. of nodes : " << ent->NbNodes() << " ";
- S << "No. of values for a node : " << ent->NbData() << Message_EndLine;
- S << "Node Identifiers : " << Message_EndLine;
- S << "Nodes : " << Message_EndLine;
+ S << "No. of values for a node : " << ent->NbData() << "\n";
+ S << "Node Identifiers :\n";
+ S << "Nodes :\n";
S << "Data : "; if (level < 6) S << " [ask level > 5]";
// IGESData_DumpRectVals(S ,-level,1, ent->NbData(),ent->Data);
- S << Message_EndLine;
+ S << "\n";
if (level > 4)
{
for (Standard_Integer i=1; i <= ent->NbNodes(); i++)
S << "NodeIdentifier : " << ent->NodeIdentifier(i) << " ";
S << "Node : ";
dumper.Dump (ent->Node(i),S, 1);
- S << Message_EndLine;
+ S << "\n";
if (level < 6) continue;
S << "Data : [ ";
for (Standard_Integer j = 1; j <= ent->NbData(); j ++)
S << " " << ent->Data(i,j);
- S << " ]" << Message_EndLine;
+ S << " ]\n";
}
}
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a NodalResults. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_NodalResults)& entfrom, const Handle(IGESAppli_NodalResults)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESAppli_NodalResults)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESAppli_NodalResults)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESAppli_ToolNode::OwnDump
(const Handle(IGESAppli_Node)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESAppli_Node" << Message_EndLine;
+ S << "IGESAppli_Node\n";
S << " Nodal Coords : 1st " << ent->Coord().X()
- << " 2nd : " << ent->Coord().Y() << " 3rd : " << ent->Coord().Z() <<Message_EndLine;
+ << " 2nd : " << ent->Coord().Y() << " 3rd : " << ent->Coord().Z() << "\n";
S << "Nodal Displacement Coordinate System : ";
if (!ent->System().IsNull())
dumper.Dump(ent->System(),S, level);
else
S << "Global Cartesian Coordinate System (default)";
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a Node. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_Node)& entfrom, const Handle(IGESAppli_Node)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESAppli_Node)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESAppli_Node)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESAppli_ToolPWBArtworkStackup::OwnDump
(const Handle(IGESAppli_PWBArtworkStackup)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESAppli_PWBArtworkStackup" << Message_EndLine;
- S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
+ S << "IGESAppli_PWBArtworkStackup\n";
+ S << "Number of property values : " << ent->NbPropertyValues() << "\n";
S << "Artwork Stackup Identification : ";
IGESData_DumpString(S,ent->Identification());
- S << Message_EndLine;
+ S << "\n";
S << "Level Numbers : ";
- IGESData_DumpVals(S ,level,1, ent->NbLevelNumbers(),ent->LevelNumber);
- S << Message_EndLine;
+ IGESData_DumpVals(S,level,1, ent->NbLevelNumbers(),ent->LevelNumber);
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a PWBArtworkStackup. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_PWBArtworkStackup)& entfrom, const Handle(IGESAppli_PWBArtworkStackup)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESAppli_PWBArtworkStackup)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESAppli_PWBArtworkStackup)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESAppli_ToolPWBDrilledHole::OwnDump
(const Handle(IGESAppli_PWBDrilledHole)& ent, const IGESData_IGESDumper& /*dumper*/,
- const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
+ Standard_OStream& S, const Standard_Integer /*level*/) const
{
- S << "IGESAppli_PWBDrilledHole" << Message_EndLine;
- S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
- S << "Drill Diameter Size : " << ent->DrillDiameterSize() << Message_EndLine;
- S << "Finish Diameter Size : " << ent->FinishDiameterSize() << Message_EndLine;
- S << "Drilled Hole Function Code : " << ent->FunctionCode() << Message_EndLine;
+ S << "IGESAppli_PWBDrilledHole\n"
+ << "Number of property values : " << ent->NbPropertyValues() << "\n"
+ << "Drill Diameter Size : " << ent->DrillDiameterSize() << "\n"
+ << "Finish Diameter Size : " << ent->FinishDiameterSize() << "\n"
+ << "Drilled Hole Function Code : " << ent->FunctionCode() << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a PWBDrilledHole. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_PWBDrilledHole)& entfrom, const Handle(IGESAppli_PWBDrilledHole)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESAppli_PWBDrilledHole)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESAppli_PWBDrilledHole)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
#include <TCollection_HAsciiString.hxx>
void IGESAppli_ToolPartNumber::OwnDump
(const Handle(IGESAppli_PartNumber)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
+ Standard_OStream& S, const Standard_Integer /* level */) const
{
//Standard_Integer sublevel = (level > 4) ? 1 : 0; //szv#4:S4163:12Mar99 unused
- S << "IGESAppli_PartNumber" << Message_EndLine;
- S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
+ S << "IGESAppli_PartNumber\n";
+ S << "Number of property values : " << ent->NbPropertyValues() << "\n";
S << "Generic Number or Name : ";
IGESData_DumpString(S,ent->GenericNumber());
- S << Message_EndLine;
+ S << "\n";
S << "Military Number or Name : ";
IGESData_DumpString(S,ent->MilitaryNumber());
- S << Message_EndLine;
+ S << "\n";
S << "Vendor Number or Name : ";
IGESData_DumpString(S,ent->VendorNumber());
- S << Message_EndLine;
+ S << "\n";
S << "Internal Number or Name : ";
IGESData_DumpString(S,ent->InternalNumber());
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a PartNumber. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_PartNumber)& entfrom, const Handle(IGESAppli_PartNumber)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESAppli_PartNumber)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESAppli_PartNumber)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESAppli_ToolPinNumber::OwnDump
(const Handle(IGESAppli_PinNumber)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
+ Standard_OStream& S, const Standard_Integer /* level */) const
{
- S << "IGESAppli_PinNumber" << Message_EndLine;
- S << "Number of Property Values : " << ent->NbPropertyValues() << Message_EndLine;
+ S << "IGESAppli_PinNumber\n";
+ S << "Number of Property Values : " << ent->NbPropertyValues() << "\n";
S << "PinNumber : ";
IGESData_DumpString(S,ent->PinNumberVal());
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a PinNumber. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_PinNumber)& entfrom, const Handle(IGESAppli_PinNumber)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESAppli_PinNumber)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESAppli_PinNumber)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESAppli_ToolPipingFlow::OwnDump
(const Handle(IGESAppli_PipingFlow)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESAppli_PipingFlow" << Message_EndLine;
- S << "Number of Context Flags : " << ent->NbContextFlags() << Message_EndLine;
- S << "Type of Flow : " << ent->TypeOfFlow() << Message_EndLine;
+ S << "IGESAppli_PipingFlow\n";
+ S << "Number of Context Flags : " << ent->NbContextFlags() << "\n";
+ S << "Type of Flow : " << ent->TypeOfFlow() << "\n";
S << "Flow Associativities : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbFlowAssociativities(),
ent->FlowAssociativity);
S << "Continuation Flow Associativities : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbContFlowAssociativities(),
ent->ContFlowAssociativity);
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a PipingFlow. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_PipingFlow)& entfrom, const Handle(IGESAppli_PipingFlow)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESAppli_PipingFlow)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESAppli_PipingFlow)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESAppli_ToolReferenceDesignator::OwnDump
(const Handle(IGESAppli_ReferenceDesignator)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
+ Standard_OStream& S, const Standard_Integer /* level */) const
{
- S << "IGESAppli_ReferenceDesignator" << Message_EndLine;
- S << "Number of Property Values : " << ent->NbPropertyValues() << Message_EndLine;
+ S << "IGESAppli_ReferenceDesignator\n";
+ S << "Number of Property Values : " << ent->NbPropertyValues() << "\n";
S << "ReferenceDesignator : ";
IGESData_DumpString(S,ent->RefDesignatorText());
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a ReferenceDesignator. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_ReferenceDesignator)& entfrom, const Handle(IGESAppli_ReferenceDesignator)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESAppli_ReferenceDesignator)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESAppli_ReferenceDesignator)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESAppli_ToolRegionRestriction::OwnDump
(const Handle(IGESAppli_RegionRestriction)& ent, const IGESData_IGESDumper& /*dumper*/,
- const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
+ Standard_OStream& S, const Standard_Integer /*level*/) const
{
- S << "IGESAppli_RegionRestriction" << Message_EndLine;
- S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
- S << "Electrical vias restriction : "
- << ent->ElectricalViasRestriction() << Message_EndLine;
- S << "Electrical components restriction : "
- << ent->ElectricalComponentRestriction() << Message_EndLine;
- S << "Electrical circuitary restriction : "
- << ent->ElectricalCktRestriction() << Message_EndLine;
+ S << "IGESAppli_RegionRestriction\n"
+ << "Number of property values : " << ent->NbPropertyValues() << "\n"
+ << "Electrical vias restriction : "
+ << ent->ElectricalViasRestriction() << "\n"
+ << "Electrical components restriction : "
+ << ent->ElectricalComponentRestriction() << "\n"
+ << "Electrical circuitary restriction : "
+ << ent->ElectricalCktRestriction() << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a RegionRestriction. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_RegionRestriction)& entfrom, const Handle(IGESAppli_RegionRestriction)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESAppli_RegionRestriction)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESAppli_RegionRestriction)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESBasic_SpecificModule::OwnDump
(const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent,
- const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S,
+ const IGESData_IGESDumper& dumper, Standard_OStream& S,
const Standard_Integer own) const
{
switch (CN) {
#include <Standard_Boolean.hxx>
class IGESData_IGESEntity;
class IGESData_IGESDumper;
-class Message_Messenger;
-
class IGESBasic_SpecificModule;
DEFINE_STANDARD_HANDLE(IGESBasic_SpecificModule, IGESData_SpecificModule)
Standard_EXPORT IGESBasic_SpecificModule();
//! Specific Dump (own parameters) for IGESBasic
- Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const Standard_OVERRIDE;
+ Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const Standard_OVERRIDE;
//! Performs non-ambiguous Corrections on Entities which support
//! them (AssocGroupType,Hierarchy,Name,SingleParent)
void IGESBasic_ToolAssocGroupType::OwnDump
(const Handle(IGESBasic_AssocGroupType)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
+ Standard_OStream& S, const Standard_Integer /* level */) const
{
- S << "IGESBasic_AssocGroupType" << Message_EndLine;
- S << "Number of data fields : " << ent->NbData() << Message_EndLine;
- S << "Type of attached associativity : " << ent->AssocType() << Message_EndLine;
- S << "Name of attached associativity : ";
+ S << "IGESBasic_AssocGroupType\n"
+ << "Number of data fields : " << ent->NbData() << "\n"
+ << "Type of attached associativity : " << ent->AssocType() << "\n"
+ << "Name of attached associativity : ";
IGESData_DumpString(S,ent->Name());
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a AssocGroupType. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESBasic_AssocGroupType)& entfrom, const Handle(IGESBasic_AssocGroupType)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESBasic_AssocGroupType)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESBasic_AssocGroupType)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESBasic_ToolExternalRefFile::OwnDump
(const Handle(IGESBasic_ExternalRefFile)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
+ Standard_OStream& S, const Standard_Integer /* level */) const
{
- S << "IGESBasic_ExternalRefFile" << Message_EndLine;
- S << "External Reference File Identifier : ";
+ S << "IGESBasic_ExternalRefFile\n"
+ << "External Reference File Identifier : ";
IGESData_DumpString(S,ent->FileId());
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a ExternalRefFile. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESBasic_ExternalRefFile)& entfrom, const Handle(IGESBasic_ExternalRefFile)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESBasic_ExternalRefFile)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESBasic_ExternalRefFile)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESBasic_ToolExternalRefFileIndex::OwnDump
(const Handle(IGESBasic_ExternalRefFileIndex)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer i, num;
- S << "IGESBasic_ExternalRefFileIndex" << Message_EndLine;
- S << "External Reference Names : " << Message_EndLine;
- S << "Internal Entities : ";
+ S << "IGESBasic_ExternalRefFileIndex\n"
+ << "External Reference Names :\n"
+ << "Internal Entities : ";
IGESData_DumpEntities(S,dumper,-level,1, ent->NbEntries(),ent->Entity);
- S << Message_EndLine;
+ S << "\n";
if (level > 4)
for ( num = ent->NbEntries(), i = 1; i <= num; i++ )
{
- S << "[" << i << "]: ";
- S << "External Reference Name : ";
+ S << "[" << i << "]: "
+ << "External Reference Name : ";
IGESData_DumpString(S,ent->Name(i));
S << " Internal Entity : ";
dumper.Dump (ent->Entity(i),S, 1);
- S << Message_EndLine;
+ S << "\n";
}
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a ExternalRefFileIndex. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESBasic_ExternalRefFileIndex)& entfrom, const Handle(IGESBasic_ExternalRefFileIndex)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESBasic_ExternalRefFileIndex)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESBasic_ExternalRefFileIndex)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESBasic_ToolExternalRefFileName::OwnDump
(const Handle(IGESBasic_ExternalRefFileName)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
+ Standard_OStream& S, const Standard_Integer /* level */) const
{
- S << "IGESBasic_ExternalRefFileName" << Message_EndLine;
- S << "External Reference File Identifier : ";
+ S << "IGESBasic_ExternalRefFileName\n"
+ << "External Reference File Identifier : ";
IGESData_DumpString(S,ent->FileId());
- S << Message_EndLine;
- S << "External Reference Symbolic Name : ";
+ S << "\n"
+ << "External Reference Symbolic Name : ";
IGESData_DumpString(S,ent->ReferenceName());
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a ExternalRefFileName. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESBasic_ExternalRefFileName)& entfrom, const Handle(IGESBasic_ExternalRefFileName)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESBasic_ExternalRefFileName)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESBasic_ExternalRefFileName)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESBasic_ToolExternalRefLibName::OwnDump
(const Handle(IGESBasic_ExternalRefLibName)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S,const Standard_Integer /* level */) const
+ Standard_OStream& S,const Standard_Integer /* level */) const
{
- S << "IGESBasic_ExternalRefLibName" << Message_EndLine;
- S << "Name of Library : ";
+ S << "IGESBasic_ExternalRefLibName\n"
+ << "Name of Library : ";
IGESData_DumpString(S,ent->LibraryName());
- S << Message_EndLine;
- S << "External Reference Symbolic Name : ";
+ S << "\n"
+ << "External Reference Symbolic Name : ";
IGESData_DumpString(S,ent->ReferenceName());
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a ExternalRefLibName. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESBasic_ExternalRefLibName)& entfrom, const Handle(IGESBasic_ExternalRefLibName)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESBasic_ExternalRefLibName)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESBasic_ExternalRefLibName)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESBasic_ToolExternalRefName::OwnDump
(const Handle(IGESBasic_ExternalRefName)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
+ Standard_OStream& S, const Standard_Integer /* level */) const
{
- S << "IGESBasic_ExternalRefName" << Message_EndLine;
- S << "External Reference Symbolic Name : ";
+ S << "IGESBasic_ExternalRefName\n"
+ << "External Reference Symbolic Name : ";
IGESData_DumpString(S,ent->ReferenceName());
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a ExternalRefName. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESBasic_ExternalRefName)& entfrom, const Handle(IGESBasic_ExternalRefName)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESBasic_ExternalRefName)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESBasic_ExternalRefName)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESBasic_ToolExternalReferenceFile::OwnDump
(const Handle(IGESBasic_ExternalReferenceFile)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESBasic_ExternalReferenceFile" << Message_EndLine;
- S << "External Reference Names : ";
- IGESData_DumpStrings(S ,level,1, ent->NbListEntries(),ent->Name);
- S << Message_EndLine;
+ S << "IGESBasic_ExternalReferenceFile\n"
+ << "External Reference Names : ";
+ IGESData_DumpStrings(S,level,1, ent->NbListEntries(),ent->Name);
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a ExternalReferenceFile. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESBasic_ExternalReferenceFile)& entfrom, const Handle(IGESBasic_ExternalReferenceFile)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESBasic_ExternalReferenceFile)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESBasic_ExternalReferenceFile)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
#include <Message_Msg.hxx>
#include <Standard_DomainError.hxx>
void IGESBasic_ToolGroup::OwnDump
(const Handle(IGESBasic_Group)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESBasic_Group" << Message_EndLine;
- S << "Entries in the Group : ";
+ S << "IGESBasic_Group\n"
+ << "Entries in the Group : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbEntities(),ent->Entity);
- S << Message_EndLine;
+ S << std::endl;
}
Standard_EXPORT void OwnCopy (const Handle(IGESBasic_Group)& entfrom, const Handle(IGESBasic_Group)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESBasic_Group)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESBasic_Group)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESBasic_ToolGroupWithoutBackP::OwnDump
(const Handle(IGESBasic_GroupWithoutBackP)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESBasic_GroupWithoutBackP" << Message_EndLine;
- S << "Entries in the Group : ";
+ S << "IGESBasic_GroupWithoutBackP\n"
+ << "Entries in the Group : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbEntities(),ent->Entity);
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a GroupWithoutBackP. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESBasic_GroupWithoutBackP)& entfrom, const Handle(IGESBasic_GroupWithoutBackP)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESBasic_GroupWithoutBackP)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESBasic_GroupWithoutBackP)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESBasic_ToolHierarchy::OwnDump
(const Handle(IGESBasic_Hierarchy)& ent, const IGESData_IGESDumper& /*dumper*/,
- const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
+ Standard_OStream& S, const Standard_Integer /*level*/) const
{
- S << "IGESBasic_Hierarchy" << Message_EndLine;
-
- S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
- S << "Line Font : " << ent->NewLineFont() << Message_EndLine;
- S << "View Number : " << ent->NewView() << Message_EndLine;
- S << "Entity level : " << ent->NewEntityLevel() << Message_EndLine;
- S << "Blank status : " << ent->NewBlankStatus() << Message_EndLine;
- S << "Line weight : " << ent->NewLineWeight() << Message_EndLine;
- S << "Color number : " << ent->NewColorNum() << Message_EndLine;
+ S << "IGESBasic_Hierarchy\n"
+ << "Number of property values : " << ent->NbPropertyValues() << "\n"
+ << "Line Font : " << ent->NewLineFont() << "\n"
+ << "View Number : " << ent->NewView() << "\n"
+ << "Entity level : " << ent->NewEntityLevel() << "\n"
+ << "Blank status : " << ent->NewBlankStatus() << "\n"
+ << "Line weight : " << ent->NewLineWeight() << "\n"
+ << "Color number : " << ent->NewColorNum() << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a Hierarchy. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESBasic_Hierarchy)& entfrom, const Handle(IGESBasic_Hierarchy)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESBasic_Hierarchy)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESBasic_Hierarchy)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESBasic_ToolName::OwnDump
(const Handle(IGESBasic_Name)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
+ Standard_OStream& S, const Standard_Integer /* level */) const
{
- S << "IGESBasic_Name" << Message_EndLine;
-
- S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
- S << "Name : ";
+ S << "IGESBasic_Name\n"
+ << "Number of property values : " << ent->NbPropertyValues() << "\n"
+ << "Name : ";
IGESData_DumpString(S,ent->Value());
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a Name. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESBasic_Name)& entfrom, const Handle(IGESBasic_Name)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESBasic_Name)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESBasic_Name)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESBasic_ToolOrderedGroup::OwnDump
(const Handle(IGESBasic_OrderedGroup)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESBasic_OrderedGroup" << Message_EndLine;
-
- S << "Entries in the Group : ";
+ S << "IGESBasic_OrderedGroup\n"
+ << "Entries in the Group : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbEntities(),ent->Entity);
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a OrderedGroup. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESBasic_OrderedGroup)& entfrom, const Handle(IGESBasic_OrderedGroup)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESBasic_OrderedGroup)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESBasic_OrderedGroup)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESBasic_ToolOrderedGroupWithoutBackP::OwnDump
(const Handle(IGESBasic_OrderedGroupWithoutBackP)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESBasic_OrderedGroupWithoutBackP" << Message_EndLine;
-
- S << "Entries in the Group : ";
+ S << "IGESBasic_OrderedGroupWithoutBackP\n"
+ << "Entries in the Group : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbEntities(),ent->Entity);
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a OrderedGroupWithoutBackP. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESBasic_OrderedGroupWithoutBackP)& entfrom, const Handle(IGESBasic_OrderedGroupWithoutBackP)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESBasic_OrderedGroupWithoutBackP)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESBasic_OrderedGroupWithoutBackP)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESBasic_ToolSingleParent::OwnDump
(const Handle(IGESBasic_SingleParent)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESBasic_SingleParent" << Message_EndLine;
-
- S << "Number of ParentEntities : " << ent->NbParentEntities() << Message_EndLine;
- S << "ParentEntity : ";
+ S << "IGESBasic_SingleParent\n"
+ << "Number of ParentEntities : " << ent->NbParentEntities() << "\n"
+ << "ParentEntity : ";
dumper.Dump(ent->SingleParent(),S,(level <= 4) ? 0 : 1);
- S << Message_EndLine;
- S << "Children : ";
+ S << "\n"
+ << "Children : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbChildren(),ent->Child);
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a SingleParent. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESBasic_SingleParent)& entfrom, const Handle(IGESBasic_SingleParent)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESBasic_SingleParent)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESBasic_SingleParent)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESBasic_ToolSingularSubfigure::OwnDump
(const Handle(IGESBasic_SingularSubfigure)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESBasic_SingularSubfigure" << Message_EndLine;
-
- S << "Subfigure Definition Entity : " ;
+ S << "IGESBasic_SingularSubfigure\n"
+ << "Subfigure Definition Entity : " ;
dumper.Dump(ent->Subfigure(),S,(level <= 4) ? 0 : 1);
- S << Message_EndLine;
- S << " Translation Data : ";
+ S << "\n"
+ << " Translation Data : ";
IGESData_DumpXYZL(S,level, ent->Translation(), ent->Location());
- S << " Scale Factors : " << ent->ScaleFactor() << Message_EndLine;
- S << Message_EndLine;
+ S << " Scale Factors : " << ent->ScaleFactor() << "\n"
+ << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a SingularSubfigure. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESBasic_SingularSubfigure)& entfrom, const Handle(IGESBasic_SingularSubfigure)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESBasic_SingularSubfigure)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESBasic_SingularSubfigure)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
#include <Message_Msg.hxx>
#include <Standard_DomainError.hxx>
#include <TCollection_HAsciiString.hxx>
void IGESBasic_ToolSubfigureDef::OwnDump
(const Handle(IGESBasic_SubfigureDef)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESBasic_SubfigureDef" << Message_EndLine;
-
- S << "Depth of the subfigure : " << ent->Depth() << Message_EndLine;
- S << "Name of subfigure : ";
+ S << "IGESBasic_SubfigureDef\n"
+ << "Depth of the subfigure : " << ent->Depth() << "\n"
+ << "Name of subfigure : ";
IGESData_DumpString(S,ent->Name());
- S << Message_EndLine;
- S << "The Associated Entities : " ;
+ S << "\n"
+ << "The Associated Entities : ";
IGESData_DumpEntities(S,dumper,level,1,ent->NbEntities(),ent->AssociatedEntity);
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a SubfigureDef. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESBasic_SubfigureDef)& entfrom, const Handle(IGESBasic_SubfigureDef)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESBasic_SubfigureDef)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESBasic_SubfigureDef)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
NCollection_DataMap<TCollection_AsciiString, Handle(TColStd_HSequenceOfInteger)>::Iterator aMapListIter(aMapList);
for(; aMapCountIter.More() && aMapListIter.More();
aMapCountIter.Next(), aMapListIter.Next()) {
- TF << aMapCountIter.Value() << aMapCountIter.Key() << Message_EndLine;
+ Message_Messenger::StreamBuffer aSender = TF->SendInfo();
+ aSender << aMapCountIter.Value() << aMapCountIter.Key() << std::endl;
if (mode == IFSelect_ListByItem) {
Handle(TColStd_HSequenceOfInteger) entityList = aMapListIter.Value();
Standard_Integer length = entityList->Length();
TF->Send(msg3035, Message_Info);
char line[80];
sprintf(line, "\t\t\t");
- TF << line;
+ aSender << line;
Standard_Integer nbInLine = 0;
for (Standard_Integer i = 1; i <= length; i++) {
// IDT_Out << (entityList->Value(i)) << " ";
sprintf(line, "\t %d", entityList->Value(i));
- TF << line;
+ aSender << line;
if (++nbInLine == 6) {
nbInLine = 0;
sprintf(line, "\n\t\t\t");
- TF << line;
+ aSender << line;
}
}
- TF << Message_EndLine;
+ aSender << std::endl;
}
}
break;
NCollection_DataMap<TCollection_AsciiString, Standard_Integer>::Iterator aMapIter(aMapCountResult);
for (; aMapIter.More(); aMapIter.Next())
{
- TF << aMapIter.Key() << aMapIter.Value() << Message_EndLine;
+ TF->SendInfo() << aMapIter.Key() << aMapIter.Value() << std::endl;
}
break;
}
for(; aMapCountIter.More(); aMapCountIter.Next()) {
char mess[80];
sprintf(mess, aMapCountIter.Key().ToCString(), aMapCountIter.Value());
- TF << mess << Message_EndLine; //dicoCountIter.Value() << dicoCountIter.Name() << std::endl;
+ TF->SendInfo() << mess << std::endl; //dicoCountIter.Value() << dicoCountIter.Name() << std::endl;
}
break;
}
void IGESData_DefaultSpecific::OwnDump
(const Standard_Integer /*CN*/, const Handle(IGESData_IGESEntity)& ent,
- const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S,
+ const IGESData_IGESDumper& dumper, Standard_OStream& S,
const Standard_Integer /*own*/) const
{
DeclareAndCast(IGESData_UndefinedEntity,lent,ent);
if (lent.IsNull()) return;
Standard_Integer dstat = lent->DirStatus();
- if (dstat != 0) S
- << " -- Directory Entry Error Status = " << dstat << " --" << Message_EndLine;
+ if (dstat != 0)
+ S << " -- Directory Entry Error Status = " << dstat << " --\n";
Handle(Interface_UndefinedContent) cont = lent->UndefinedContent();
Standard_Integer nb = cont->NbParams();
S << " UNDEFINED ENTITY ...\n"<<nb
<<" Parameters (WARNING : Odd Integer Values Interpreted as Entities)\n";
for (Standard_Integer i = 1; i <= nb; i ++) {
Interface_ParamType ptyp = cont->ParamType(i);
- if (ptyp == Interface_ParamVoid) S<<" ["<<i<<":Void]";
+ if (ptyp == Interface_ParamVoid) S <<" ["<<i<<":Void]";
else if (cont->IsParamEntity(i)) {
DeclareAndCast(IGESData_IGESEntity,anent,cont->ParamEntity(i));
- S<<" ["<<i<<":IGES]=";
+ S <<" ["<<i<<":IGES]=";
dumper.PrintDNum(anent,S);
}
- else { S<<" ["<<i<<"]=" << cont->ParamValue(i); }
- if ( i == (i%5)*5) S << Message_EndLine;
+ else { S <<" ["<<i<<"]=" << cont->ParamValue(i)->String(); }
+ if ( i == (i%5)*5) S << "\n";
}
- S << Message_EndLine;
+ S << std::endl;
}
#include <Standard_Integer.hxx>
class IGESData_IGESEntity;
class IGESData_IGESDumper;
-class Message_Messenger;
-
class IGESData_DefaultSpecific;
DEFINE_STANDARD_HANDLE(IGESData_DefaultSpecific, IGESData_SpecificModule)
//! Specific Dump for UndefinedEntity : it concerns only
//! own parameters, the general data (Directory Part, Lists) are
//! taken into account by the IGESDumper
- Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const Standard_OVERRIDE;
+ Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const Standard_OVERRIDE;
#define IGESData_DumpString(S,str) \
if (str.IsNull()) S << "(undefined)";\
- else { S << '"' << str << '"'; }
+ else { S << '"' << str->String() << '"'; }
#define IGESData_DumpXY(S,XYval) \
S << " (" << XYval.X() << "," << XYval.Y() << ")"
S << " :";\
for (Standard_Integer iopa = lo; iopa <= up; iopa ++) IGESData_DumpXY(S,item(iopa));\
if (Trsf.Form() != gp_Identity) {\
- S<< "\n Transformed :";\
- if (Level == 5) S<<" [ask level > 5]";\
+ S << "\n Transformed :";\
+ if (Level == 5) S <<" [ask level > 5]";\
else\
for (Standard_Integer jopa = lo; jopa <= up; jopa ++)\
IGESData_DumpXYT(S,item(jopa),Trsf);\
S << " :";\
for (Standard_Integer iopa = lo; iopa <= up; iopa ++) IGESData_DumpXY(S,item(iopa));\
if (Trsf.Form() != gp_Identity) {\
- S<< "\n Transformed :";\
- if (Level == 5) S<<" [ask level > 5]";\
+ S << "\n Transformed :";\
+ if (Level == 5) S <<" [ask level > 5]";\
else\
for (Standard_Integer jopa = lo; jopa <= up; jopa ++)\
IGESData_DumpXYTZ(S,item(jopa),Trsf,Z);\
S << " :";\
for (Standard_Integer iopa = lo; iopa <= up; iopa ++) IGESData_DumpXYZ(S,item(iopa));\
if (Trsf.Form() != gp_Identity) {\
- S<< "\n Transformed :";\
- if (Level == 5) S<<" [ask level > 5]";\
+ S << "\n Transformed :";\
+ if (Level == 5) S <<" [ask level > 5]";\
else\
for (Standard_Integer jopa = lo; jopa <= up; jopa ++)\
IGESData_DumpXYZT(S,item(jopa),Trsf);\
else if (Level > 0) {\
S << " :";\
for (Standard_Integer iopa = lo; iopa <= up; iopa ++)\
- { S << "\n["<<Interface_MSG::Blanks(iopa,3)<<iopa<<"]:\"" << item(iopa) << '"'; }\
+ { S << "\n["<<Interface_MSG::Blanks(iopa,3)<<iopa<<"]:\"" << item(iopa)->String() << '"'; }\
S << "\n";\
}\
}
#include <Interface_InterfaceError.hxx>
#include <Interface_Macros.hxx>
#include <Interface_MSG.hxx>
-#include <Message_Messenger.hxx>
#include <TCollection_HAsciiString.hxx>
IGESData_IGESDumper::IGESData_IGESDumper
void IGESData_IGESDumper::PrintDNum
- (const Handle(IGESData_IGESEntity)& ent, const Handle(Message_Messenger)& S) const
+ (const Handle(IGESData_IGESEntity)& ent, Standard_OStream& S) const
{
// Affichage garanti sur 12 caracteres 12345/D24689
Standard_Integer num = 0;
if (!ent.IsNull()) {
- if (themodel.IsNull()) S<<" D??? ";
- else if ( (num = themodel->Number(ent)) == 0) S<<" 0:D?????";
+ if (themodel.IsNull()) S <<" D??? ";
+ else if ( (num = themodel->Number(ent)) == 0) S <<" 0:D?????";
// throw Interface_InterfaceError("IGESDumper : PrintDNum");
else {
- S<<Interface_MSG::Blanks(num,9)<<num<<":D"<<2*num-1<<Interface_MSG::Blanks(2*num-1,9);
+ S <<Interface_MSG::Blanks(num,9)<<num<<":D"<<2*num-1<<Interface_MSG::Blanks(2*num-1,9);
}
}
- else S<<" D0(Null) ";
+ else S <<" D0(Null) ";
}
void IGESData_IGESDumper::PrintShort
- (const Handle(IGESData_IGESEntity)& ent, const Handle(Message_Messenger)& S) const
+ (const Handle(IGESData_IGESEntity)& ent, Standard_OStream& S) const
{
// PrintDNum(ent,S);
if (!ent.IsNull()) {
Standard_Integer num = 0;
if (!themodel.IsNull()) num = themodel->Number(ent);
- if (num > 0) S<<num<<":D"<<2*num-1;
+ if (num > 0) S <<num<<":D"<<2*num-1;
S << " Type:" << ent->TypeNumber() << " Form:" << ent->FormNumber()
<< Interface_MSG::Blanks (ent->FormNumber(),3)
<< " Class:"<< Interface_InterfaceModel::ClassName(ent->DynamicType()->Name());
void IGESData_IGESDumper::Dump
- (const Handle(IGESData_IGESEntity)& ent, const Handle(Message_Messenger)& S,
+ (const Handle(IGESData_IGESEntity)& ent, Standard_OStream& S,
const Standard_Integer own, const Standard_Integer attached) const
{
Standard_Integer att = attached;
if (att == 0) att = diratt; // -1 signifie : ne rien sortir
if (own < 0) return;
- if (own > 1) S<<"\n";
- if (ent.IsNull()) { S<<"(Null)"; if (own > 1) S<<"\n"; return; }
+
+ if (own > 1) S <<"\n";
+ if (ent.IsNull()) { S <<"(Null)"; if (own > 1) S <<"\n"; return; }
if (own == 0) { PrintDNum (ent,S); return; } // affichage auxiliaire
if (own == 1) { PrintShort (ent,S); return; } // affichage auxiliaire
- if (own > 0) S<<"**** Dump IGES, level "<<own<<" ( ";
+ if (own > 0) S <<"**** Dump IGES, level "<<own<<" ( ";
switch (own) {
case 0 : break;
- case 1 : S<<"D.E. Number + Type + Name"; break;
- case 2 : S<<"D.E. Number + Type, Name + Transf, View"; break;
- case 3 : S<<"Complete Directory Part"; break;
- case 4 : S<<"Directory Part + Parameters, no Arrays"; break;
- case 5 : S<<"Complete"; break;
- default : S<<"Complete + Transformed Values"; break;
+ case 1 : S <<"D.E. Number + Type + Name"; break;
+ case 2 : S <<"D.E. Number + Type, Name + Transf, View"; break;
+ case 3 : S <<"Complete Directory Part"; break;
+ case 4 : S <<"Directory Part + Parameters, no Arrays"; break;
+ case 5 : S <<"Complete"; break;
+ default : S <<"Complete + Transformed Values"; break;
}
- S<<" ) ****"<<Message_EndLine;
+ S <<" ) ****\n";
// **** Entity 1234:D2467 ** Type:102 Form:56 ** CompositeCurve **
- S<<"\n**** Entity "; PrintShort (ent,S); S<<Message_EndLine;
+ S <<"\n**** Entity "; PrintShort (ent,S); S << "\n";
- S<<" Directory Part\n";
+ S <<" Directory Part\n";
// ** Status : Blank:1 Subordinate:2 UseFlag:3 Hierarchy:4
if (own >= 2)
S <<"** Status Number : Blank:"<<ent->BlankStatus()
<<" UseFlag:"<<ent->UseFlag()
<<" Hierarchy:"<<ent->HierarchyStatus()<<"\n";
if (own >= 1) {
- if (ent->HasShortLabel()) S<<"**** Label :"<<ent->ShortLabel()->ToCString();
- if (ent->HasSubScriptNumber()) S<<" SubScript:"<<ent->SubScriptNumber();
- if (ent->HasShortLabel()) S<<Message_EndLine;
+ if (ent->HasShortLabel()) S <<"**** Label :"<<ent->ShortLabel()->ToCString();
+ if (ent->HasSubScriptNumber()) S <<" SubScript:"<<ent->SubScriptNumber();
+ if (ent->HasShortLabel()) S <<std::endl;
if (ent->HasTransf())
- { S<<"** Transf.Matrix :"; PrintDNum(ent->Transf(),S); S<<"\n"; }
+ { S <<"** Transf.Matrix :"; PrintDNum(ent->Transf(),S); S <<"\n"; }
IGESData_DefList viewkind = ent->DefView();
if (viewkind == IGESData_DefOne)
- { S<<"** View :"; PrintDNum (ent->View(),S); S<<"\n"; }
+ { S <<"** View :"; PrintDNum (ent->View(),S); S <<"\n"; }
if (viewkind == IGESData_DefSeveral)
- { S<<"** View (List) :"; PrintDNum (ent->ViewList(),S); S<<"\n"; }
+ { S <<"** View (List) :"; PrintDNum (ent->ViewList(),S); S <<"\n"; }
}
if (own >= 2) {
if (ent->HasStructure())
- { S<<"** Structure :"; PrintDNum (ent->Structure(),S); S<<"\n"; }
+ { S <<"** Structure :"; PrintDNum (ent->Structure(),S); S <<"\n"; }
- S<<"\n Graphic Attributes\n";
+ S <<"\n Graphic Attributes\n";
if (ent->DefLineFont() == IGESData_DefValue)
- { S<<"** LineFont Value:"<<ent->RankLineFont()<<"\n"; }
+ { S <<"** LineFont Value:"<<ent->RankLineFont()<<"\n"; }
else if (ent->DefLineFont() == IGESData_DefReference)
- { S<<"** LineFont Ref :"; PrintDNum (ent->LineFont(),S); S<<"\n"; }
+ { S <<"** LineFont Ref :"; PrintDNum (ent->LineFont(),S); S <<"\n"; }
- if (ent->Level() > 0) S<<"** Level Value :"<<ent->Level()<<"\n";
+ if (ent->Level() > 0) S <<"** Level Value :"<<ent->Level()<<"\n";
else if (ent->Level() < 0)
- { S<<"** Level List :"; PrintDNum(ent->LevelList(),S); S<<"\n"; }
+ { S <<"** Level List :"; PrintDNum(ent->LevelList(),S); S <<"\n"; }
if (ent->HasLabelDisplay())
- { S<<"** Label Display :"; PrintDNum (ent->LabelDisplay(),S); S<<"\n"; }
+ { S <<"** Label Display :"; PrintDNum (ent->LabelDisplay(),S); S <<"\n"; }
if (ent->LineWeightNumber() != 0) {
- S <<"** LineWeight Num:"<<ent->LineWeightNumber();
- if (diratt > 0) S<<" -> Value:"<<ent->LineWeight();
- S<<Message_EndLine;
+ S <<"** LineWeight Num:"<<ent->LineWeightNumber();
+ if (diratt > 0) S <<" -> Value:"<<ent->LineWeight();
+ S <<std::endl;
}
if (ent->DefColor() == IGESData_DefValue)
- { S<<"** Color Value :"<<ent->RankColor(); }
+ { S <<"** Color Value :"<<ent->RankColor(); }
else if (ent->DefColor() == IGESData_DefReference)
- { S<<"** Color Ref :"; PrintDNum (ent->Color(),S); }
- S<<Message_EndLine;
+ { S <<"** Color Ref :"; PrintDNum (ent->Color(),S); }
+ S <<std::endl;
if (own > 3) {
- S<<"**** Own Data ****\n\n";
+ S <<"**** Own Data ****\n\n";
OwnDump(ent,S,own);
}
}
Standard_Integer nb = iter.NbEntities();
Standard_Boolean iasuit = (nb > 0);
if (nb > 0) {
- S<<"\n**** Properties (nb:"<<nb<<") ****\n";
+ S <<"\n**** Properties (nb:"<<nb<<") ****\n";
for (;iter.More(); iter.Next()) {
DeclareAndCast(IGESData_IGESEntity,ent2,iter.Value());
Dump (ent2,S,att,-1);
nb = iter.NbEntities();
if (nb > 0) iasuit = Standard_True;
if (nb > 0) {
- S<<"\n**** Associativities (nb:"<<nb<<") ****\n";
+ S <<"\n**** Associativities (nb:"<<nb<<") ****\n";
for (;iter.More(); iter.Next()) {
DeclareAndCast(IGESData_IGESEntity,ent2,iter.Value());
Dump(ent2,S,att,-1);
}
}
if (iasuit) { if (att <= 1) S << "\n"; }
- S<<"\n**** End of Dump ****\n"<<Message_EndLine;
+ S <<"\n**** End of Dump ****\n"<<std::endl;
}
void IGESData_IGESDumper::OwnDump
- (const Handle(IGESData_IGESEntity)& ent, const Handle(Message_Messenger)& S,
+ (const Handle(IGESData_IGESEntity)& ent, Standard_OStream& S,
const Standard_Integer own) const
{
Handle(IGESData_SpecificModule) module; Standard_Integer CN;
if (thelib.Select(ent,module,CN))
module->OwnDump(CN,ent,*this,S,own);
else if (themodel.IsNull())
- S <<" **** Dump impossible. Type "<<ent->DynamicType()->Name()<<Message_EndLine;
+ S <<" **** Dump impossible. Type "<<ent->DynamicType()->Name()<<std::endl;
else
S <<" **** Dump Impossible, n0:id:"<<themodel->Number(ent)<<":D"
- <<themodel->DNum(ent)<<" Type "<<ent->DynamicType()->Name()<<Message_EndLine;
+ <<themodel->DNum(ent)<<" Type "<<ent->DynamicType()->Name()<<std::endl;
}
class Interface_InterfaceError;
class IGESData_Protocol;
class IGESData_IGESEntity;
-class Message_Messenger;
-
//! Provides a way to obtain a clear Dump of an IGESEntity
//! (distinct from normalized output). It works with tools
//! Prints onto an output, the "Number of Directory Entry" which
//! corresponds to an IGESEntity in the IGESModel, under the form
//! "D#nnn" (a Null Handle gives D#0)
- Standard_EXPORT void PrintDNum (const Handle(IGESData_IGESEntity)& ent, const Handle(Message_Messenger)& S) const;
+ Standard_EXPORT void PrintDNum (const Handle(IGESData_IGESEntity)& ent, Standard_OStream& S) const;
//! Prints onto an output, the "Number of Directory Entry" (see
//! PrintDNum) plus IGES Type and Form Numbers, which gives
//! "D#nnn Type nnn Form nnn"
- Standard_EXPORT void PrintShort (const Handle(IGESData_IGESEntity)& ent, const Handle(Message_Messenger)& S) const;
+ Standard_EXPORT void PrintShort (const Handle(IGESData_IGESEntity)& ent, Standard_OStream& S) const;
- Standard_EXPORT void Dump (const Handle(IGESData_IGESEntity)& ent, const Handle(Message_Messenger)& S, const Standard_Integer own, const Standard_Integer attached = -1) const;
+ Standard_EXPORT void Dump (const Handle(IGESData_IGESEntity)& ent, Standard_OStream& S, const Standard_Integer own, const Standard_Integer attached = -1) const;
//! Specific Dump for each IGES Entity, call by Dump (just above)
//! <own> is the parameter <own> from Dump
- Standard_EXPORT void OwnDump (const Handle(IGESData_IGESEntity)& ent, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESData_IGESEntity)& ent, Standard_OStream& S, const Standard_Integer own) const;
#include <Interface_InterfaceModel.hxx>
#include <Interface_Macros.hxx>
#include <Interface_Static.hxx>
-#include <Message_Messenger.hxx>
#include <Message_Msg.hxx>
#include <Standard_Transient.hxx>
#include <Standard_Type.hxx>
//=======================================================================
void IGESData_IGESModel::DumpHeader
- (const Handle(Message_Messenger)& S, const Standard_Integer ) const
+ (Standard_OStream& S, const Standard_Integer ) const
{
Standard_Integer ns = thestart->Length();
- S<<"**** Dump of IGES Model , Start and Global Sections ****"<<Message_EndLine;
+ S <<"**** Dump of IGES Model , Start and Global Sections ****"<<std::endl;
if (ns > 0) {
S << "**** Start Section : "<<ns<<" Line(s) ****\n";
for (Standard_Integer i = 1; i <= ns; i ++)
- S<<"["<<(i<10 ? " ": "")<<i<<"]:"<<thestart->Value(i)->ToCString()<<Message_EndLine;
+ S <<"["<<(i<10 ? " ": "")<<i<<"]:"<<thestart->Value(i)->ToCString()<<std::endl;
}
S << "\n**** Global Section ****\n";
char sep = theheader.Separator();
char emk = theheader.EndMark();
if (emk == ';') S << " [ 2] Default End Mark : " << emk;
else S << " [ 2] Non Default End Mark : " << emk;
- S<<"\n";
+ S <<"\n";
Handle(TCollection_HAsciiString) str;
str = theheader.SendName();
- if (!str.IsNull()) S<<"[ 3] Sender : "<<str->ToCString()<<Message_EndLine;
+ if (!str.IsNull()) S <<"[ 3] Sender : "<<str->ToCString()<<std::endl;
str = theheader.FileName();
- if (!str.IsNull()) S<<"[ 4] (recorded) File Name : "<<str->ToCString()<<Message_EndLine;
+ if (!str.IsNull()) S <<"[ 4] (recorded) File Name : "<<str->ToCString()<<std::endl;
str = theheader.SystemId();
- if (!str.IsNull()) S<<"[ 5] System Identification : "<<str->ToCString()<<Message_EndLine;
+ if (!str.IsNull()) S <<"[ 5] System Identification : "<<str->ToCString()<<std::endl;
str = theheader.InterfaceVersion();
- if (!str.IsNull()) S<<"[ 6] Interface Version : "<<str->ToCString()<<Message_EndLine;
- S<<Message_EndLine;
+ if (!str.IsNull()) S <<"[ 6] Interface Version : "<<str->ToCString()<<std::endl;
+ S <<std::endl;
S << "[ 7] Integer Bits : " << theheader.IntegerBits()
- << " Features for Reals : " << Message_EndLine;
+ << " Features for Reals : " << std::endl;
S << "[ 8] Single Max.Power(10) : " << theheader.MaxPower10Single();
S << " [ 9] Digits : " << theheader.MaxDigitsSingle()<<"\n";
S << "[10] Double Max.Power(10) : " << theheader.MaxPower10Double();
S << " [11] Digits : " << theheader.MaxDigitsDouble() << "\n\n";
str = theheader.ReceiveName();
- if (!str.IsNull()) S<<"[12] Receiver : "<<str->ToCString()<<"\n";
+ if (!str.IsNull()) S <<"[12] Receiver : "<<str->ToCString()<<"\n";
S << "[13] Scale : " << theheader.Scale()<<"\n";
S << "[14] Unit Flag : " << theheader.UnitFlag();
// if (Interface_Static::IVal("read.scale.unit") == 1)
//#73 rln 10.03.99 S4135: "read.scale.unit" does not affect GlobalSection
-// S << " -> Value (in Meter) = " << theheader.UnitValue() / 1000 <<"\n";
+// S << " -> Value (in Meter) = " << theheader.UnitValue() / 1000 <<"\n";
// else S << " -> Value (in Millimeter) = " << theheader.UnitValue()<<"\n";
//abv 02 Mar 00: no unit parameter in OCC
S << " -> Value (in CASCADE units) = " << theheader.UnitValue() <<"\n";
str = theheader.UnitName();
- if (!str.IsNull()) S<<"[15] Unit Name : " << str->ToCString()<<"\n\n";
+ if (!str.IsNull()) S <<"[15] Unit Name : " << str->ToCString()<<"\n\n";
S << "[16] Line Weight Gradient : " << theheader.LineWeightGrad()<<"\n";
S << "[17] Line Weight Max Value: " << theheader.MaxLineWeight()<<"\n";
str = theheader.Date();
- if (!str.IsNull()) S<<"[18] (Creation) Date : "<<str->ToCString()
+ if (!str.IsNull()) S <<"[18] (Creation) Date : "<<str->ToCString()
<<" i.e. "<<IGESData_GlobalSection::NewDateString(str,1)->ToCString()<<"\n";
S << "[19] Resolution : " << theheader.Resolution()<<"\n";
if (theheader.HasMaxCoord())
- S<<"[20] Maximum Coord : " << theheader.MaxCoord() << "\n\n";
- else S<<"[20] Maximum Coord not defined\n\n";
+ S <<"[20] Maximum Coord : " << theheader.MaxCoord() << "\n\n";
+ else S <<"[20] Maximum Coord not defined\n\n";
str = theheader.AuthorName();
- if (!str.IsNull()) S<<"[21] Author : "<<str->ToCString()<<"\n";
+ if (!str.IsNull()) S <<"[21] Author : "<<str->ToCString()<<"\n";
str = theheader.CompanyName();
- if (!str.IsNull()) S<<"[22] Company : "<<str->ToCString()<<"\n";
+ if (!str.IsNull()) S <<"[22] Company : "<<str->ToCString()<<"\n";
Standard_Integer num = theheader.IGESVersion();
S << "[23] IGES Version Number : " << num << " -> Name : "
<< IGESData_BasicEditor::IGESVersionName(num);
num = theheader.DraftingStandard();
S << "\n[24] Drafting Standard : " << num;
- if (num > 0) S<< " -> Name : " << IGESData_BasicEditor::DraftingName(num);
- S<<Message_EndLine;
+ if (num > 0) S << " -> Name : " << IGESData_BasicEditor::DraftingName(num);
+ S <<std::endl;
if (theheader.HasLastChangeDate()) {
str = theheader.LastChangeDate();
S << "[25] Last Change Date : " << str->ToCString()
- <<" i.e. "<<IGESData_GlobalSection::NewDateString(str,1)->ToCString()<<Message_EndLine;
+ <<" i.e. "<<IGESData_GlobalSection::NewDateString(str,1)->ToCString()<<std::endl;
}
- else S<<"[25] Last Change Date not defined (version IGES < 5.1)" << Message_EndLine;
+ else S <<"[25] Last Change Date not defined (version IGES < 5.1)" << std::endl;
if (theheader.HasApplicationProtocol()) {
str = theheader.ApplicationProtocol();
- S << "[26] Application Protocol : " << str->ToCString() <<Message_EndLine;
+ S << "[26] Application Protocol : " << str->ToCString() <<std::endl;
}
- S << " **** End of Dump ****"<<Message_EndLine;
+ S << " **** End of Dump ****"<<std::endl;
}
//=======================================================================
void IGESData_IGESModel::PrintLabel
- (const Handle(Standard_Transient)& ent, const Handle(Message_Messenger)& S) const
+ (const Handle(Standard_Transient)& ent, Standard_OStream& S) const
{
DeclareAndCast(IGESData_IGESEntity,igesent,ent);
- if (igesent.IsNull()) S<<"Null";
+ if (igesent.IsNull()) S <<"Null";
else {
Standard_Integer num = Number(ent);
- if (num == 0) S<<"??";
- else S<<"D"<<(2*num-1);
+ if (num == 0) S <<"??";
+ else S <<"D"<<(2*num-1);
}
}
//=======================================================================
void IGESData_IGESModel::PrintToLog
- (const Handle(Standard_Transient)& ent, const Handle(Message_Messenger)& S) const
+ (const Handle(Standard_Transient)& ent, Standard_OStream& S) const
{
DeclareAndCast(IGESData_IGESEntity,igesent,ent);
if (!igesent.IsNull()) {
Standard_Integer num = Number(ent);
- if (num == 0) S<<"??";
+ if (num == 0) S <<"??";
else {
- S<<" DE : "<<(2*num-1) << " type : " << igesent->TypeNumber();
+ S <<" DE : "<<(2*num-1) << " type : " << igesent->TypeNumber();
// Standard_Integer num2 = igesent->TypeNumber();
}
}
//=======================================================================
void IGESData_IGESModel::PrintInfo
- (const Handle(Standard_Transient)& ent, const Handle(Message_Messenger)& S) const
+ (const Handle(Standard_Transient)& ent, Standard_OStream& S) const
{
DeclareAndCast(IGESData_IGESEntity,igesent,ent);
- if (igesent.IsNull()) S<<"(NOT IGES)";
+ if (igesent.IsNull()) S <<"(NOT IGES)";
else {
Standard_Integer num = Number(ent);
- if (num == 0) S<<"??";
+ if (num == 0) S <<"??";
else {
- S<<(2*num-1) << "type " << Type(ent)->Name();
+ S <<(2*num-1) << "type " << Type(ent)->Name();
}
}
}
#ifndef _IGESData_IGESModel_HeaderFile
#define _IGESData_IGESModel_HeaderFile
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
#include <TColStd_HSequenceOfHAsciiString.hxx>
#include <IGESData_GlobalSection.hxx>
#include <Interface_InterfaceModel.hxx>
-#include <Standard_Integer.hxx>
-#include <Standard_CString.hxx>
-#include <Standard_Boolean.hxx>
-#include <Standard_Real.hxx>
+
class Interface_InterfaceError;
-class Message_Messenger;
class IGESData_GlobalSection;
class IGESData_IGESEntity;
class Interface_InterfaceModel;
//! Prints the IGES file header
//! (Start and Global Sections) to the log file. The integer
//! parameter is intended to be used as a level indicator but is not used at present.
- Standard_EXPORT void DumpHeader (const Handle(Message_Messenger)& S, const Standard_Integer level = 0) const Standard_OVERRIDE;
+ Standard_EXPORT void DumpHeader (Standard_OStream& S, const Standard_Integer level = 0) const Standard_OVERRIDE;
//! Returns Model's Start Section (list of comment lines)
Standard_EXPORT Handle(TColStd_HSequenceOfHAsciiString) StartSection() const;
//! Prints label specific to IGES norm for a given entity, i.e.
//! its directory entry number (2*Number-1)
- Standard_EXPORT void PrintLabel (const Handle(Standard_Transient)& ent, const Handle(Message_Messenger)& S) const Standard_OVERRIDE;
+ Standard_EXPORT void PrintLabel (const Handle(Standard_Transient)& ent, Standard_OStream& S) const Standard_OVERRIDE;
//! Prints label specific to IGES norm for a given -- --
//! entity, i.e. its directory entry number (2*Number-1)
//! in the log file format.
- Standard_EXPORT virtual void PrintToLog (const Handle(Standard_Transient)& ent, const Handle(Message_Messenger)& S) const Standard_OVERRIDE;
+ Standard_EXPORT virtual void PrintToLog (const Handle(Standard_Transient)& ent, Standard_OStream& S) const Standard_OVERRIDE;
//! Prints label specific to IGES norm for a given entity, i.e.
//! its directory entry number (2*Number-1)
- Standard_EXPORT void PrintInfo (const Handle(Standard_Transient)& ent, const Handle(Message_Messenger)& S) const;
+ Standard_EXPORT void PrintInfo (const Handle(Standard_Transient)& ent, Standard_OStream& S) const;
//! Returns a string with the label attached to a given entity,
//! i.e. a string "Dnn" with nn = directory entry number (2*N-1)
void IGESData_IGESWriter::SendModel
(const Handle(IGESData_Protocol)& protocol)
{
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
IGESData_WriterLib lib(protocol);
Standard_Integer nb = themodel->NbEntities();
#endif
// Attention aux cas d erreur : contenu redefini
if (themodel->IsRedefinedContent(i)) {
- sout << " -- IGESWriter : Erroneous Entity N0."<<i<<" --"<<Message_EndLine;
+ sout << " -- IGESWriter : Erroneous Entity N0."<<i<<" --"<<std::endl;
Handle(Interface_ReportEntity) rep = themodel->ReportEntity(i);
if (!rep.IsNull()) cnt = GetCasted(IGESData_IGESEntity,rep->Content());
if (cnt.IsNull()) cnt = ent; // secours
undent->WriteOwnParams (*this);
}
else sout<<" -- IGESWriter : Not Processed for n0."<<i<<" in file, Type "
- <<cnt->TypeNumber()<<" Form "<<cnt->FormNumber()<<Message_EndLine;
+ <<cnt->TypeNumber()<<" Form "<<cnt->FormNumber()<<std::endl;
Associativities (cnt);
Properties (cnt);
S << " *** EUCLID/STRIM DESKTOP CLIPBOARD ***"<<std::endl;
writefnes (S," S0000001");
}
- else S<<" S0000001";
+ else S <<" S0000001";
// 123456789 123456789 123456789 123456789 123456789 123456789 123456789 12
S << std::endl;
} else {
if (fnes) writefnes (S,line->ToCString());
else S << line->ToCString();
-// for (Standard_Integer k = line->Length()+1; k <= MaxcarsG; k ++) S<<' ';
+// for (Standard_Integer k = line->Length()+1; k <= MaxcarsG; k ++) aSender <<' ';
S << &blancs[line->Length()];
if (fnes) writefnes (S,finlin);
else S << finlin;
if (fnes) writefnes (S,line->ToCString());
else S << line->ToCString();
-// for (Standard_Integer k = line->Length()+1; k <= MaxcarsG; k ++) S<<' ';
+// for (Standard_Integer k = line->Length()+1; k <= MaxcarsG; k ++) aSender <<' ';
S << &blancs[line->Length()];
if (fnes) writefnes (S,finlin);
else S << finlin;
v[8],v[9],v[10],v[11] ,2*i-1);
if (fnes) writefnes (S,ligne);
else S << ligne;
- S<< "\n";
+ S << "\n";
sprintf(ligne,"%8d%8d%8d%8d%8d%8s%8s%8s%8sD%7.7d",
v[0],v[13],v[14],v[15],v[16],res1,res2,lab,num,2*i);
if (fnes) writefnes (S,ligne);
else S << ligne;
- S<< "\n";
+ S << "\n";
// std::cout << "Ent.no "<<i<<" No en P "<<thepnum.Value(i)<<
// " Lignes P:"<<thepnum.Value(i+1)-thepnum.Value(i)<<std::endl;
-// for (j = 0; j < 17; j ++) S<<v[j]<<" ";
-// S<<res1<<res2<<" label:"<<lab<<" subnum:"<<num<<std::endl;
+// for (j = 0; j < 17; j ++) S <<v[j]<<" ";
+// S <<res1<<res2<<" label:"<<lab<<" subnum:"<<num<<std::endl;
isGood = S.good();
}
if(!isGood)
if (fnes) writefnes (S,line->ToCString());
else S << line->ToCString();
-// for (Standard_Integer k = line->Length()+1; k <= MaxcarsP; k ++)S<<' ';
+// for (Standard_Integer k = line->Length()+1; k <= MaxcarsP; k ++)aSender <<' ';
S << &blancs[line->Length()];
if (fnes) writefnes (S,finlin);
else S << finlin;
// 12345678- 16- 24- 32 56789 123456789 123456789 123456789 12
if (fnes) writefnes (S,ligne);
else S << ligne;
- S<< "\n";
+ S << "\n";
S.flush();
isGood = S.good();
#ifdef PATIENCELOG
#include <IGESData_IGESDumper.hxx>
#include <IGESData_IGESEntity.hxx>
#include <IGESData_SpecificModule.hxx>
-#include <Message_Messenger.hxx>
-#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(IGESData_SpecificModule,Standard_Transient)
#include <Standard_Boolean.hxx>
class IGESData_IGESEntity;
class IGESData_IGESDumper;
-class Message_Messenger;
class IGESData_SpecificModule;
//! taken into account by the IGESDumper
//! See class IGESDumper for the rules to follow for <own> and
//! <attached> level
- Standard_EXPORT virtual void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const = 0;
+ Standard_EXPORT virtual void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const = 0;
//! Specific Automatic Correction on own Parameters of an Entity.
//! It works by setting in accordance redundant data, if there are
#include <IGESDefs_ToolUnitsData.hxx>
#include <IGESDefs_UnitsData.hxx>
#include <Interface_Macros.hxx>
-#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(IGESDefs_SpecificModule,IGESData_SpecificModule)
void IGESDefs_SpecificModule::OwnDump
(const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent,
- const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S,
+ const IGESData_IGESDumper& dumper, Standard_OStream& S,
const Standard_Integer own) const
{
switch (CN) {
#include <Standard_Integer.hxx>
class IGESData_IGESEntity;
class IGESData_IGESDumper;
-class Message_Messenger;
-
class IGESDefs_SpecificModule;
DEFINE_STANDARD_HANDLE(IGESDefs_SpecificModule, IGESData_SpecificModule)
Standard_EXPORT IGESDefs_SpecificModule();
//! Specific Dump (own parameters) for IGESDefs
- Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const Standard_OVERRIDE;
+ Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const Standard_OVERRIDE;
void IGESDefs_ToolAssociativityDef::OwnDump
(const Handle(IGESDefs_AssociativityDef)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESDefs_AssociativityDef" << Message_EndLine;
- S << "Number of Class Definitions : " << ent->NbClassDefs() << Message_EndLine;
- S << "Back Pointer Requirement : " << Message_EndLine;
- S << "Ordered / Unordered Class : " << Message_EndLine;
- S << "Number Of Items per Entry : " << Message_EndLine;
- S << "Items : " << Message_EndLine;
+ S << "IGESDefs_AssociativityDef\n"
+ << "Number of Class Definitions : " << ent->NbClassDefs() << "\n"
+ << "Back Pointer Requirement :\n"
+ << "Ordered / Unordered Class :\n"
+ << "Number Of Items per Entry :\n"
+ << "Items :\n";
IGESData_DumpVals(S,-level,1, ent->NbClassDefs(),ent->BackPointerReq);
- S << Message_EndLine;
+ S << std::endl;
if (level > 4)
{
// Warning : Item is a JAGGED Array
Standard_Integer upper = ent->NbClassDefs();
for (Standard_Integer i = 1; i <= upper; i ++) {
- S << "[" << i << "]: " << Message_EndLine;
+ S << "[" << i << "]:\n";
S << "Back Pointer Requirement : " << ent->BackPointerReq(i) << " ";
if (ent->IsBackPointerReq(i)) S << "(Yes) ";
else S << "(No) ";
S << " Ordered/Unordered Class : " << ent->ClassOrder(i) << " ";
- if (ent->IsOrdered(i)) S << "(Yes)" <<Message_EndLine;
- else S << "(No)" <<Message_EndLine;
+ if (ent->IsOrdered(i)) S << "(Yes)\n";
+ else S << "(No)\n";
S << "Number Of Items per Entry : " << ent->NbItemsPerClass(i);
if (level < 6) {
- S << " [ask level > 5 for more]" << Message_EndLine;
+ S << " [ask level > 5 for more]\n";
continue;
}
- S << Message_EndLine << " [";
+ S << "\n [";
for (Standard_Integer j = 1; j <= ent->NbItemsPerClass(i); j ++)
S << " " << ent->Item(i,j);
- S << "]" << Message_EndLine;
+ S << "]\n";
}
}
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a AssociativityDef. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDefs_AssociativityDef)& entfrom, const Handle(IGESDefs_AssociativityDef)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDefs_AssociativityDef)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDefs_AssociativityDef)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESDefs_ToolAttributeDef::OwnDump
(const Handle(IGESDefs_AttributeDef)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer sublevel = (level > 4) ? 1 : 0;
- S << "IGESDefs_AttributeDef" << Message_EndLine;
- S << "Attribute Table Name: ";
+ S << "IGESDefs_AttributeDef\n"
+ << "Attribute Table Name: ";
IGESData_DumpString(S,ent->TableName());
- S << Message_EndLine;
- S << "Attribute List Type : " << ent->ListType() << Message_EndLine;
- S << "Number of Attributes : " << ent->NbAttributes() << Message_EndLine;
- S << "Attribute Types : " << Message_EndLine;
- S << "Attribute Value Data Types : " << Message_EndLine;
- S << "Attribute Value Counts : " << Message_EndLine;
- if (ent->HasValues()) S << "Attribute Values : " << Message_EndLine;
- if (ent->HasTextDisplay()) S << "Attribute Value Entities : " << Message_EndLine;
+ S << "\n"
+ << "Attribute List Type : " << ent->ListType() << "\n"
+ << "Number of Attributes : " << ent->NbAttributes() << "\n"
+ << "Attribute Types :\n"
+ << "Attribute Value Data Types :\n"
+ << "Attribute Value Counts :\n";
+ if (ent->HasValues()) S << "Attribute Values :\n";
+ if (ent->HasTextDisplay()) S << "Attribute Value Entities :\n";
IGESData_DumpVals(S,-level,1, ent->NbAttributes(),ent->AttributeType);
- S << Message_EndLine;
+ S << "\n";
if (level > 4)
{
Standard_Integer upper = ent->NbAttributes();
{
Standard_Integer avc = ent->AttributeValueCount(i);
Standard_Integer typ = ent->AttributeValueDataType(i);
- S << "[" << i << "]: ";
- S << "Attribute Type : " << ent->AttributeType(i) << " ";
- S << "Value Data Type : " << typ;
+ S << "[" << i << "]: "
+ << "Attribute Type : " << ent->AttributeType(i) << " "
+ << "Value Data Type : " << typ;
switch (typ) {
case 0 : S << " (Void)"; break;
case 1 : S << " : Integer "; break;
case 6 : S << " : Logical "; break;
default : break;
}
- S << " Count : " << avc << Message_EndLine;
+ S << " Count : " << avc << "\n";
if (ent->HasValues())
{
if (level <= 5) {
- S << " [ content (Values) : ask level > 5 ]" << Message_EndLine;
+ S << " [ content (Values) : ask level > 5 ]\n";
continue;
}
for (Standard_Integer j = 1; j <= avc; j ++)
S << " Attribute Value Pointer : ";
dumper.Dump (ent->AttributeTextDisplay(i,j),S, sublevel);
}
- S << Message_EndLine;
+ S << std::endl;
}
}
}
}
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a AttributeDef. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDefs_AttributeDef)& entfrom, const Handle(IGESDefs_AttributeDef)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDefs_AttributeDef)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDefs_AttributeDef)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESDefs_ToolAttributeTable::OwnDump
(const Handle(IGESDefs_AttributeTable)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESDefs_AttributeTable" << Message_EndLine;
+ S << "IGESDefs_AttributeTable\n";
Handle(IGESDefs_AttributeDef) ab = ent->Definition();
Standard_Integer na = ent->NbAttributes();
Standard_Integer nr = ent->NbRows();
if (ent->FormNumber() == 1)
- S << "Number of Rows (i.e. complete sets of Attributes) : " << nr << Message_EndLine;
- else S << "One set of Attributes" << Message_EndLine;
- S << "Number of defined Attributes : " << na << Message_EndLine;
+ S << "Number of Rows (i.e. complete sets of Attributes) : " << nr << "\n";
+ else S << "One set of Attributes\n";
+ S << "Number of defined Attributes : " << na << "\n";
if (level <= 4) S <<
- " [ structure : see Structure in Directory Entry; content : level > 4 ]" <<Message_EndLine;
+ " [ structure : see Structure in Directory Entry; content : level > 4 ]\n";
else
for (Standard_Integer k = 1; k <= nr; k ++)
{
default : break;
}
}
- S << Message_EndLine;
+ S << "\n";
}
}
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a AttributeTable. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDefs_AttributeTable)& entfrom, const Handle(IGESDefs_AttributeTable)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDefs_AttributeTable)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDefs_AttributeTable)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESDefs_ToolGenericData::OwnDump
(const Handle(IGESDefs_GenericData)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESDefs_GenericData" << Message_EndLine;
- S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
- S << "Property Name : ";
+ S << "IGESDefs_GenericData\n"
+ << "Number of property values : " << ent->NbPropertyValues() << "\n"
+ << "Property Name : ";
IGESData_DumpString(S,ent->Name());
- S << Message_EndLine;
+ S << std::endl;
switch (level)
{
case 4:
- S << "Types : " << Message_EndLine;
- S << "Values : Count = " << ent->NbTypeValuePairs() << Message_EndLine;
- S << " [ as level > 4 for content ]" << Message_EndLine;
+ S << "Types :\n";
+ S << "Values : Count = " << ent->NbTypeValuePairs() << "\n";
+ S << " [ as level > 4 for content ]\n";
break;
case 5:
case 6:
{
Standard_Integer i, num;
- S << "Types & Values : " << Message_EndLine;
+ S << "Types & Values : " << "\n";
for ( num = ent->NbTypeValuePairs(), i = 1; i <= num; i++ )
{
S << "[" << i << "]: ";
<< (ent->ValueAsLogical(i) ? "True" : "False"); break;
default : break;
}
- S << Message_EndLine;
+ S << "\n";
}
}
}
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a GenericData. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDefs_GenericData)& entfrom, const Handle(IGESDefs_GenericData)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDefs_GenericData)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDefs_GenericData)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESDefs_ToolMacroDef::OwnDump
(const Handle(IGESDefs_MacroDef)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESDefs_MacroDef" << Message_EndLine;
- S << "MACRO : ";
+ S << "IGESDefs_MacroDef\n"
+ << "MACRO : ";
IGESData_DumpString(S,ent->MACRO());
- S << Message_EndLine;
- S << "Entity Type ID : " << ent->EntityTypeID() << Message_EndLine;
- S << "Language Statement : ";
- IGESData_DumpStrings(S ,level,1, ent->NbStatements(),ent->LanguageStatement);
+ S << "\n"
+ << "Entity Type ID : " << ent->EntityTypeID() << "\n"
+ << "Language Statement : ";
+ IGESData_DumpStrings(S,level,1, ent->NbStatements(),ent->LanguageStatement);
S << "END MACRO : ";
IGESData_DumpString(S,ent->ENDMACRO());
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a MacroDef. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDefs_MacroDef)& entfrom, const Handle(IGESDefs_MacroDef)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDefs_MacroDef)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDefs_MacroDef)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESDefs_ToolTabularData::OwnDump
(const Handle(IGESDefs_TabularData)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer nbIndeps = ent->NbIndependents(); //szv#4:S4163:12Mar99 i unused
Standard_Integer nbDeps = ent->NbDependents();
- S << "IGESDefs_TabularData" << Message_EndLine;
- S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
- S << "Property type : " << ent->PropertyType() << Message_EndLine;
- S << "No. of Dependent variables : " << nbDeps << Message_EndLine;
- S << "No. of Independent variables : " << nbIndeps << Message_EndLine;
- S << "Type of independent variables : ";
- IGESData_DumpVals(S ,level,1, nbIndeps,ent->TypeOfIndependents);
- S << Message_EndLine << "Number of values of independent variables : ";
- IGESData_DumpVals(S ,level,1, nbIndeps,ent->NbValues);
+ S << "IGESDefs_TabularData\n"
+ << "No. of property values : " << ent->NbPropertyValues() << "\n"
+ << "Property type : " << ent->PropertyType() << "\n"
+ << "No. of Dependent variables : " << nbDeps << "\n"
+ << "No. of Independent variables : " << nbIndeps << "\n"
+ << "Type of independent variables : ";
+ IGESData_DumpVals(S,level,1, nbIndeps,ent->TypeOfIndependents);
+ S << "\nNumber of values of independent variables : ";
+ IGESData_DumpVals(S,level,1, nbIndeps,ent->NbValues);
// ?? JAGGED ??
- S << Message_EndLine << "Values of the independent variable : ";
+ S << std::endl << "Values of the independent variable : ";
if (level < 5) S << " [ask level > 4]";
else {
for (Standard_Integer ind = 1; ind <= nbIndeps; ind ++) {
- S << Message_EndLine << "[" << ind << "]:";
+ S << std::endl << "[" << ind << "]:";
Standard_Integer nbi = ent->NbValues(ind);
for (Standard_Integer iv = 1; iv <= nbi; iv ++)
S << " " << ent->IndependentValue(ind,iv);
}
}
-// IGESData_DumpVals(S ,level,1, nbIndeps,ent->IndependentValue);
- S << Message_EndLine << "Values of the dependent variable : ";
-// IGESData_DumpVals(S ,level,1, nbDeps,ent->DependentValue);
- S << " TO BE DONE";
- S << Message_EndLine;
+// IGESData_DumpVals(aSender,level,1, nbIndeps,ent->IndependentValue);
+ S << std::endl << "Values of the dependent variable : ";
+// IGESData_DumpVals(aSender,level,1, nbDeps,ent->DependentValue);
+ S << " TO BE DONE"
+ << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a TabularData. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDefs_TabularData)& entfrom, const Handle(IGESDefs_TabularData)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDefs_TabularData)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDefs_TabularData)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
#include <Interface_HArray1OfHAsciiString.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
#include <TCollection_HAsciiString.hxx>
#include <TColStd_HArray1OfReal.hxx>
void IGESDefs_ToolUnitsData::OwnDump
(const Handle(IGESDefs_UnitsData)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESDefs_UnitsData" << Message_EndLine;
- S << "Number of Units : " << ent->NbUnits() << Message_EndLine;
- S << "Type of Unit : " << Message_EndLine;
- S << "Value of Unit : " << Message_EndLine;
- S << "Scale Factor : " << Message_EndLine;
+ S << "IGESDefs_UnitsData\n"
+ << "Number of Units : " << ent->NbUnits() << "\n"
+ << "Type of Unit :\n"
+ << "Value of Unit :\n"
+ << "Scale Factor :\n";
IGESData_DumpStrings(S,-level,1, ent->NbUnits(),ent->UnitType);
- S << Message_EndLine;
+ S << "\n";
if (level > 4)
{
- S << "Details of the Units" << Message_EndLine;
+ S << "Details of the Units\n";
Standard_Integer upper = ent->NbUnits();
for (Standard_Integer i = 1; i <= upper; i++)
{
S << "[" << i << "] Type : ";
IGESData_DumpString(S,ent->UnitType(i));
- S << Message_EndLine;
- S << " Value : ";
+ S << "\n"
+ << " Value : ";
IGESData_DumpString(S,ent->UnitValue(i));
- S << Message_EndLine;
- S << " ScaleFactor: " << ent->ScaleFactor(i) << Message_EndLine;
+ S << "\n"
+ << " ScaleFactor: " << ent->ScaleFactor(i) << "\n";
}
}
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a UnitsData. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDefs_UnitsData)& entfrom, const Handle(IGESDefs_UnitsData)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDefs_UnitsData)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDefs_UnitsData)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESDimen_SpecificModule::OwnDump
(const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent,
- const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S,
+ const IGESData_IGESDumper& dumper, Standard_OStream& S,
const Standard_Integer own) const
{
switch (CN) {
#include <Standard_Boolean.hxx>
class IGESData_IGESEntity;
class IGESData_IGESDumper;
-class Message_Messenger;
-
class IGESDimen_SpecificModule;
DEFINE_STANDARD_HANDLE(IGESDimen_SpecificModule, IGESData_SpecificModule)
Standard_EXPORT IGESDimen_SpecificModule();
//! Specific Dump (own parameters) for IGESDimen
- Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const Standard_OVERRIDE;
+ Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const Standard_OVERRIDE;
//! Performs non-ambiguous Corrections on Entities which support
//! them (BasicDimension,CenterLine,DimensionDisplayData,
void IGESDimen_ToolAngularDimension::OwnDump
(const Handle(IGESDimen_AngularDimension)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer sublevel = (level > 4) ? 1 : 0;
- S << "IGESDimen_AngularDimension" << Message_EndLine;
- S << "General Note Entity : ";
+ S << "IGESDimen_AngularDimension\n"
+ << "General Note Entity : ";
dumper.Dump(ent->Note(),S, sublevel);
- S << Message_EndLine;
- S << "First Witness Entity : ";
+ S << "\n"
+ << "First Witness Entity : ";
dumper.Dump(ent->FirstWitnessLine(),S, sublevel);
- S << Message_EndLine;
- S << "Second Witness Entity : ";
+ S << "\n"
+ << "Second Witness Entity : ";
dumper.Dump(ent->SecondWitnessLine(),S, sublevel);
- S << Message_EndLine;
- S << "Vertex Point Co-ords : ";
- IGESData_DumpXYL(S,level, ent->Vertex(), ent->Location()); S << Message_EndLine;
- S << "Radius of Leader arcs : " << ent->Radius() << Message_EndLine;
- S << "First Leader Entity : ";
+ S << "\n"
+ << "Vertex Point Co-ords : ";
+ IGESData_DumpXYL(S,level, ent->Vertex(), ent->Location()); S << "\n";
+ S << "Radius of Leader arcs : " << ent->Radius() << "\n"
+ << "First Leader Entity : ";
dumper.Dump(ent->FirstLeader(),S, sublevel);
- S << Message_EndLine;
- S << "Second Leader Entity : ";
+ S << "\n"
+ << "Second Leader Entity : ";
dumper.Dump(ent->SecondLeader(),S, sublevel);
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a AngularDimension. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDimen_AngularDimension)& entfrom, const Handle(IGESDimen_AngularDimension)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDimen_AngularDimension)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDimen_AngularDimension)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESDimen_ToolBasicDimension::OwnDump
(const Handle(IGESDimen_BasicDimension)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
+ Standard_OStream& S, const Standard_Integer /* level */) const
{
- S << "IGESDimen_BasicDimension" << Message_EndLine;
- S << "Number of Property Values : " << ent->NbPropertyValues() << Message_EndLine;
- S << Message_EndLine << " Lower left corner : " ;
+ S << "IGESDimen_BasicDimension\n"
+ << "Number of Property Values : " << ent->NbPropertyValues() << "\n\n"
+ << " Lower left corner : " ;
IGESData_DumpXY(S, ent->LowerLeft());
- S << Message_EndLine << " Lower right corner : " ;
+ S << "\n Lower right corner : " ;
IGESData_DumpXY(S, ent->LowerRight());
- S << Message_EndLine << " Upper right corner : " ;
+ S << "\n Upper right corner : " ;
IGESData_DumpXY(S, ent->UpperRight());
- S << Message_EndLine << " Upper left corner : ";
+ S << "\n Upper left corner : ";
IGESData_DumpXY(S, ent->UpperLeft());
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a BasicDimension. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDimen_BasicDimension)& entfrom, const Handle(IGESDimen_BasicDimension)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDimen_BasicDimension)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDimen_BasicDimension)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESDimen_ToolCenterLine::OwnDump
(const Handle(IGESDimen_CenterLine)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESDimen_CenterLine" << Message_EndLine;
- if (ent->IsCrossHair()) S << "Cross Hair" << Message_EndLine;
- else S << "Through Circle Centers" << Message_EndLine;
- S << "Data Type : " << ent->Datatype() << " ";
- S << "Number of Data Points : " << ent->NbPoints() << " ";
- S << "Common Z displacement : " << ent->ZDisplacement() << " ";
- S << "Data Points : " << Message_EndLine;
- IGESData_DumpListXYLZ(S ,level,1, ent->NbPoints(),ent->Point,
+ S << "IGESDimen_CenterLine\n";
+ if (ent->IsCrossHair()) S << "Cross Hair\n";
+ else S << "Through Circle Centers\n";
+ S << "Data Type : " << ent->Datatype() << " "
+ << "Number of Data Points : " << ent->NbPoints() << " "
+ << "Common Z displacement : " << ent->ZDisplacement() << " "
+ << "Data Points :\n";
+ IGESData_DumpListXYLZ(S,level,1, ent->NbPoints(),ent->Point,
ent->Location(), ent->ZDisplacement());
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a CenterLine. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDimen_CenterLine)& entfrom, const Handle(IGESDimen_CenterLine)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDimen_CenterLine)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDimen_CenterLine)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESDimen_ToolCurveDimension::OwnDump
(const Handle(IGESDimen_CurveDimension)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer sublevel = (level > 4) ? 1 : 0;
- S << "IGESDimen_CurveDimension" << Message_EndLine;
- S << "General Note Entity : ";
+ S << "IGESDimen_CurveDimension\n"
+ << "General Note Entity : ";
dumper.Dump(ent->Note(),S, sublevel);
- S << Message_EndLine;
- S << "First Curve Entity : ";
+ S << "\n"
+ << "First Curve Entity : ";
dumper.Dump(ent->FirstCurve(),S, sublevel);
- S << Message_EndLine;
- S << "Second Curve Entity : ";
+ S << "\n"
+ << "Second Curve Entity : ";
dumper.Dump(ent->SecondCurve(),S, sublevel);
- S << Message_EndLine;
- S << "First Leader Entity : ";
+ S << "\n"
+ << "First Leader Entity : ";
dumper.Dump(ent->FirstLeader(),S, sublevel);
- S << Message_EndLine;
- S << "Second Leader Entity : ";
+ S << "\n"
+ << "Second Leader Entity : ";
dumper.Dump(ent->SecondLeader(),S, sublevel);
- S << Message_EndLine;
- S << "First Witness Entity : ";
+ S << "\n"
+ << "First Witness Entity : ";
dumper.Dump(ent->FirstWitnessLine(),S, sublevel);
- S << Message_EndLine;
- S << "Second Witness Entity : ";
+ S << "\n"
+ << "Second Witness Entity : ";
dumper.Dump(ent->SecondWitnessLine(),S, sublevel);
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a CurveDimension. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDimen_CurveDimension)& entfrom, const Handle(IGESDimen_CurveDimension)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDimen_CurveDimension)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDimen_CurveDimension)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESDimen_ToolDiameterDimension::OwnDump
(const Handle(IGESDimen_DiameterDimension)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer sublevel = (level > 4) ? 1 : 0;
- S << "IGESDimen_DiameterDimension" << Message_EndLine;
- S << "General Note Entity : ";
+ S << "IGESDimen_DiameterDimension\n"
+ << "General Note Entity : ";
dumper.Dump(ent->Note(),S, sublevel);
- S << Message_EndLine;
- S << "First Leader Entity : ";
+ S << "\n"
+ << "First Leader Entity : ";
dumper.Dump(ent->FirstLeader(),S, sublevel);
- S << Message_EndLine;
- S << "Second Leader Entity : ";
+ S << "\n"
+ << "Second Leader Entity : ";
dumper.Dump(ent->SecondLeader(),S, sublevel);
- S << Message_EndLine;
- S << "Center Point : ";
+ S << "\n"
+ << "Center Point : ";
IGESData_DumpXYL(S,level, ent->Center(), ent->Location());
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a DiameterDimension. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDimen_DiameterDimension)& entfrom, const Handle(IGESDimen_DiameterDimension)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDimen_DiameterDimension)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDimen_DiameterDimension)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESDimen_ToolDimensionDisplayData::OwnDump
(const Handle(IGESDimen_DimensionDisplayData)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESDimen_DimensionDisplayData" << Message_EndLine;
-
- S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
-
- S << "DimensionType : " << ent->DimensionType() ;
+ S << "IGESDimen_DimensionDisplayData\n"
+ << "No. of property values : " << ent->NbPropertyValues() << "\n"
+ << "DimensionType : " << ent->DimensionType() ;
switch (ent->DimensionType()) {
- case 0 : S << " (Ordinary)" << Message_EndLine; break;
- case 1 : S << " (Reference)" << Message_EndLine; break;
- case 2 : S << " (Basic)" << Message_EndLine; break;
- default : S << " (Incorrect Value)" << Message_EndLine; break;
+ case 0 : S << " (Ordinary)\n"; break;
+ case 1 : S << " (Reference)\n"; break;
+ case 2 : S << " (Basic)\n"; break;
+ default : S << " (Incorrect Value)\n"; break;
}
S << "Preferred Label Position : " << ent->LabelPosition();
switch (ent->LabelPosition()) {
- case 0 : S << " (Does not exist)" << Message_EndLine; break;
- case 1 : S << " (Before Measurement)" << Message_EndLine; break;
- case 2 : S << " (After Measurement)" << Message_EndLine; break;
- case 3 : S << " (Above Measurement)" << Message_EndLine; break;
- case 4 : S << " (Below Measurement)" << Message_EndLine; break;
- default : S << " (Incorrect Value)" << Message_EndLine; break;
+ case 0 : S << " (Does not exist)\n"; break;
+ case 1 : S << " (Before Measurement)\n"; break;
+ case 2 : S << " (After Measurement)\n"; break;
+ case 3 : S << " (Above Measurement)\n"; break;
+ case 4 : S << " (Below Measurement)\n"; break;
+ default : S << " (Incorrect Value)\n"; break;
}
S << "Character set interpretation : " << ent->CharacterSet() ;
switch (ent->CharacterSet())
{
- case 1 : S << " (Standard ASCII)" << Message_EndLine; break;
- case 1001 : S << " (Symbol Font 1)" << Message_EndLine; break;
- case 1002 : S << " (Symbol Font 2)" << Message_EndLine; break;
- case 1003 : S << " (Drafting Font)" << Message_EndLine; break;
- default : S << " (Not meaningful)" << Message_EndLine; break;
+ case 1 : S << " (Standard ASCII)\n"; break;
+ case 1001 : S << " (Symbol Font 1)\n"; break;
+ case 1002 : S << " (Symbol Font 2)\n"; break;
+ case 1003 : S << " (Drafting Font)\n"; break;
+ default : S << " (Not meaningful)\n"; break;
}
S << "LString : ";
IGESData_DumpString(S,ent->LString());
- S << Message_EndLine;
-
- S << "Decimal Symbol : ";
- if (ent->DecimalSymbol() == 0) S << "0 (.)" << Message_EndLine;
- else S << "1 (,)" << Message_EndLine;
+ S << "\n"
+ << "Decimal Symbol : ";
+ if (ent->DecimalSymbol() == 0) S << "0 (.)\n";
+ else S << "1 (,)\n";
- S << "Witness Line Angle : " << ent->WitnessLineAngle() << Message_EndLine;
- S << "Text Alignment : " ;
- if (ent->TextAlignment() == 0 ) S << "0 (Horizontal)" << Message_EndLine;
- else if (ent->TextAlignment() == 1 ) S << "1 (Parallel)" << Message_EndLine;
- else S << ent->TextAlignment() << " (Incorrect Value)" << Message_EndLine;
+ S << "Witness Line Angle : " << ent->WitnessLineAngle() << "\n"
+ << "Text Alignment : " ;
+ if (ent->TextAlignment() == 0 ) S << "0 (Horizontal)\n";
+ else if (ent->TextAlignment() == 1 ) S << "1 (Parallel)\n";
+ else S << ent->TextAlignment() << " (Incorrect Value)\n";
S << "Text Level : " << ent->TextLevel();
switch (ent->TextLevel()) {
- case 0 : S << " (Neither above nor below)" << Message_EndLine; break;
- case 1 : S << " (Above)" << Message_EndLine; break;
- case 2 : S << " (Below)" << Message_EndLine; break;
- default : S << " (Incorrect Value)" << Message_EndLine; break;
+ case 0 : S << " (Neither above nor below)\n"; break;
+ case 1 : S << " (Above)\n"; break;
+ case 2 : S << " (Below)\n"; break;
+ default : S << " (Incorrect Value)\n"; break;
}
S << "Preferred Text placement : " << ent->TextPlacement();
switch (ent->TextPlacement()) {
- case 0 : S << " (Between witness lines)" << Message_EndLine; break;
- case 1 : S << " (Outside near the first witness line)" << Message_EndLine; break;
- case 2 : S << " (Outside near second witness line)" << Message_EndLine; break;
- default : S << " (Incorrect Value)" << Message_EndLine; break;
+ case 0 : S << " (Between witness lines)\n"; break;
+ case 1 : S << " (Outside near the first witness line)\n"; break;
+ case 2 : S << " (Outside near second witness line)\n"; break;
+ default : S << " (Incorrect Value)\n"; break;
}
S << "Arrow Head Orientation : " << ent->ArrowHeadOrientation();
- if (ent->ArrowHeadOrientation() == 0) S << " (In, pointing out)" <<Message_EndLine;
- else if (ent->ArrowHeadOrientation() == 1) S << " (Out, pointing in)" <<Message_EndLine;
- else S << " (Incorrect Value)" << Message_EndLine;
+ if (ent->ArrowHeadOrientation() == 0) S << " (In, pointing out)\n";
+ else if (ent->ArrowHeadOrientation() == 1) S << " (Out, pointing in)\n";
+ else S << " (Incorrect Value)\n";
Standard_Integer nbnotes = ent->NbSupplementaryNotes();
- S << " Primary Dimension Value : " << ent->InitialValue() << Message_EndLine;
- S << " Number of Supplementary Notes : " << nbnotes <<Message_EndLine;
- S << "Supplementary Notes , ";
- S << " Start Index , ";
- S << " End Index : " << Message_EndLine;
+ S << " Primary Dimension Value : " << ent->InitialValue() << "\n"
+ << " Number of Supplementary Notes : " << nbnotes << "\n"
+ << "Supplementary Notes , "
+ << " Start Index , "
+ << " End Index :\n";
IGESData_DumpVals(S,-level,1, nbnotes,ent->EndIndex);
- S << Message_EndLine;
+ S << "\n";
if (level > 4)
for (Standard_Integer i = 1; i <= nbnotes; i ++)
{
- S << "[" << i << "]: " << Message_EndLine;
- S << "Supplementary Note : " << ent->SupplementaryNote(i);
- S << ", Start Index : " << ent->StartIndex(i);
- S << ", End Index : " << ent->EndIndex(i) << Message_EndLine;
+ S << "[" << i << "]:\n"
+ << "Supplementary Note : " << ent->SupplementaryNote(i)
+ << ", Start Index : " << ent->StartIndex(i)
+ << ", End Index : " << ent->EndIndex(i) << "\n";
}
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a DimensionDisplayData. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDimen_DimensionDisplayData)& entfrom, const Handle(IGESDimen_DimensionDisplayData)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDimen_DimensionDisplayData)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDimen_DimensionDisplayData)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESDimen_ToolDimensionTolerance::OwnDump
(const Handle(IGESDimen_DimensionTolerance)& ent, const IGESData_IGESDumper& /*dumper*/,
- const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
+ Standard_OStream& S, const Standard_Integer /*level*/) const
{
- S << "IGESDimen_DimensionTolerance" << Message_EndLine;
- S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
- S << "Secondary Tolerance Flag : " << ent->SecondaryToleranceFlag() << Message_EndLine;
- S << "Tolerance Type : " << ent->ToleranceType() << Message_EndLine;
- S << "Tolerance Placement Flag : " << ent->TolerancePlacementFlag() << Message_EndLine;
- S << "Upper Tolerance : " << ent->UpperTolerance() << Message_EndLine;
- S << "Lower Tolerance : " << ent->LowerTolerance() << Message_EndLine;
- S << "Sign Suppression Flag : " << ( ent->SignSuppressionFlag() ? "True" : "False" ) << Message_EndLine;
- S << "Fraction Flag : " << ent->FractionFlag() << Message_EndLine;
- S << "Precision : " << ent->Precision() << Message_EndLine;
+ S << "IGESDimen_DimensionTolerance\n"
+ << "Number of property values : " << ent->NbPropertyValues() << "\n"
+ << "Secondary Tolerance Flag : " << ent->SecondaryToleranceFlag() << "\n"
+ << "Tolerance Type : " << ent->ToleranceType() << "\n"
+ << "Tolerance Placement Flag : " << ent->TolerancePlacementFlag() << "\n"
+ << "Upper Tolerance : " << ent->UpperTolerance() << "\n"
+ << "Lower Tolerance : " << ent->LowerTolerance() << "\n"
+ << "Sign Suppression Flag : " << ( ent->SignSuppressionFlag() ? "True" : "False" ) << "\n"
+ << "Fraction Flag : " << ent->FractionFlag() << "\n"
+ << "Precision : " << ent->Precision() << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a DimensionTolerance. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDimen_DimensionTolerance)& entfrom, const Handle(IGESDimen_DimensionTolerance)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDimen_DimensionTolerance)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDimen_DimensionTolerance)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESDimen_ToolDimensionUnits::OwnDump
(const Handle(IGESDimen_DimensionUnits)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
+ Standard_OStream& S, const Standard_Integer /* level */) const
{
- S << "IGESDimen_DimensionUnits" << Message_EndLine;
- S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
- S << "Secondary Dimension Position : " << ent->SecondaryDimenPosition() << Message_EndLine;
- S << "Units Indicator : " << ent->UnitsIndicator() << Message_EndLine;
- S << "Character Set : " << ent->CharacterSet() << Message_EndLine;
- S << "Format String : ";
+ S << "IGESDimen_DimensionUnits\n"
+ << "Number of property values : " << ent->NbPropertyValues() << "\n"
+ << "Secondary Dimension Position : " << ent->SecondaryDimenPosition() << "\n"
+ << "Units Indicator : " << ent->UnitsIndicator() << "\n"
+ << "Character Set : " << ent->CharacterSet() << "\n"
+ << "Format String : ";
IGESData_DumpString(S,ent->FormatString());
- S << Message_EndLine;
- S << "Fraction Flag : " << ent->FractionFlag();
+ S << "\n"
+ << "Fraction Flag : " << ent->FractionFlag();
if (ent->FractionFlag() == 0) S << " Decimal , Precision : ";
else S << " Fraction , Denominator : ";
- S << ent->PrecisionOrDenominator() << Message_EndLine;
+ S << ent->PrecisionOrDenominator() << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a DimensionUnits. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDimen_DimensionUnits)& entfrom, const Handle(IGESDimen_DimensionUnits)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDimen_DimensionUnits)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDimen_DimensionUnits)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
IGESDimen_ToolDimensionedGeometry::IGESDimen_ToolDimensionedGeometry () { }
void IGESDimen_ToolDimensionedGeometry::OwnDump
(const Handle(IGESDimen_DimensionedGeometry)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESDimen_DimensionedGeometry" << Message_EndLine;
+ S << "IGESDimen_DimensionedGeometry\n";
//Standard_Integer lower = 1; //szv#4:S4163:12Mar99 unused
// Standard_Integer upper = ent->NbGeometryEntities();
- S << "Number of Dimensions : " << ent->NbDimensions() << Message_EndLine;
- S << "Dimension Entity : ";
+ S << "Number of Dimensions : " << ent->NbDimensions() << "\n"
+ << "Dimension Entity : ";
dumper.Dump(ent->DimensionEntity(),S,(level <= 4) ? 0 : 1);
- S << Message_EndLine;
- S << "Geometry Entities : ";
+ S << "\n"
+ << "Geometry Entities : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbGeometryEntities(),ent->GeometryEntity);
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a DimensionedGeometry. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDimen_DimensionedGeometry)& entfrom, const Handle(IGESDimen_DimensionedGeometry)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDimen_DimensionedGeometry)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDimen_DimensionedGeometry)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
IGESDimen_ToolFlagNote::IGESDimen_ToolFlagNote () { }
void IGESDimen_ToolFlagNote::OwnDump
(const Handle(IGESDimen_FlagNote)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer sublevel = (level > 4) ? 1 : 0;
- S << "IGESDimen_FlagNote" << Message_EndLine;
- S << "LowerLeftCorner : ";
+ S << "IGESDimen_FlagNote\n"
+ << "LowerLeftCorner : ";
IGESData_DumpXYZL(S,level, ent->LowerLeftCorner(), ent->Location());
- S << Message_EndLine << "Rotation Angle: " << ent->Angle() << Message_EndLine;
- S << "General Note Entity : ";
+ S << "\nRotation Angle: " << ent->Angle() << "\n"
+ << "General Note Entity : ";
dumper.Dump(ent->Note(),S, sublevel);
- S << Message_EndLine;
- S << "Number of Leaders : " << ent->NbLeaders() << " Leaders : ";
+ S << "\n"
+ << "Number of Leaders : " << ent->NbLeaders() << " Leaders : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbLeaders(),ent->Leader);
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a FlagNote. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDimen_FlagNote)& entfrom, const Handle(IGESDimen_FlagNote)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDimen_FlagNote)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDimen_FlagNote)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESDimen_ToolGeneralLabel::OwnDump
(const Handle(IGESDimen_GeneralLabel)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer sublevel = (level > 4) ? 1 : 0;
- S << "IGESDimen_GeneralLabel" << Message_EndLine;
- S << "General Note Entity : ";
+ S << "IGESDimen_GeneralLabel\n"
+ << "General Note Entity : ";
dumper.Dump(ent->Note(),S, sublevel);
- S << Message_EndLine;
- S << "Number of Leaders : " << ent->NbLeaders() << Message_EndLine;
- S << "Leaders : ";
+ S << "\n"
+ << "Number of Leaders : " << ent->NbLeaders() << "\n"
+ << "Leaders : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbLeaders(),ent->Leader);
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a GeneralLabel. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDimen_GeneralLabel)& entfrom, const Handle(IGESDimen_GeneralLabel)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDimen_GeneralLabel)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDimen_GeneralLabel)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESDimen_ToolGeneralNote::OwnDump
(const Handle(IGESDimen_GeneralNote)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer sublevel = (level > 4) ? 1 : 0;
Standard_Integer upper = ent->NbStrings();
- S << "IGESDimen_GeneralNote" << Message_EndLine;
- S << "Number of Text Strings : " << upper << Message_EndLine;
- S << "Number of Characters : " << Message_EndLine;
- S << "Box Widths : " << Message_EndLine;
- S << "Box Heights : " << Message_EndLine;
- S << "Font Codes : " << Message_EndLine;
- S << "Font Entities : " << Message_EndLine;
- S << "Slant Angles : " << Message_EndLine;
- S << "Rotation Angles : " << Message_EndLine;
- S << "Mirror Flags : " << Message_EndLine;
- S << "Rotate Flags : " << Message_EndLine;
- S << "Start Points : " << Message_EndLine;
- S << "Texts : ";
+ S << "IGESDimen_GeneralNote\n"
+ << "Number of Text Strings : " << upper << "\n"
+ << "Number of Characters :\n"
+ << "Box Widths :\n"
+ << "Box Heights :\n"
+ << "Font Codes :\n"
+ << "Font Entities :\n"
+ << "Slant Angles :\n"
+ << "Rotation Angles :\n"
+ << "Mirror Flags :\n"
+ << "Rotate Flags :\n"
+ << "Start Points :\n"
+ << "Texts : ";
IGESData_DumpVals(S,-level,1, ent->NbStrings(),ent->NbCharacters);
- S << Message_EndLine;
+ S << "\n";
if (level > 4)
{
- S << "Details of each String" << Message_EndLine;
+ S << "Details of each String\n";
for ( Standard_Integer i = 1; i <= upper; i++)
{
- S << "[" << i << "]: " << Message_EndLine;
- S << "Number of Characters : " << ent->NbCharacters(i) << " ";
- S << "Box Width : " << ent->BoxWidth(i) << " ";
- S << "Box Height : " << ent->BoxHeight(i) << Message_EndLine;
+ S << "[" << i << "]:\n"
+ << "Number of Characters : " << ent->NbCharacters(i) << " "
+ << "Box Width : " << ent->BoxWidth(i) << " "
+ << "Box Height : " << ent->BoxHeight(i) << "\n";
if (ent->IsFontEntity(i))
{
S << "Font Entity : ";
dumper.Dump (ent->FontEntity(i),S, sublevel);
- S << Message_EndLine;
+ S << "\n";
}
else
- S << "Font Code : " << ent->FontCode(i) << Message_EndLine;
- S << "Slant Angle : " << ent->SlantAngle(i) << " ";
- S << "Rotation Angle : " << ent->RotationAngle(i) << " ";
- S << "Mirror Flag : " << ent->MirrorFlag(i) << " ";
- S << "Rotate Flag : " << ent->RotateFlag(i) << Message_EndLine;
- S << "Start Point : ";
+ S << "Font Code : " << ent->FontCode(i) << "\n"
+ << "Slant Angle : " << ent->SlantAngle(i) << " "
+ << "Rotation Angle : " << ent->RotationAngle(i) << " "
+ << "Mirror Flag : " << ent->MirrorFlag(i) << " "
+ << "Rotate Flag : " << ent->RotateFlag(i) << "\n"
+ << "Start Point : ";
IGESData_DumpXYZL(S,level, ent->StartPoint(i), ent->Location());
S << "\nText : ";
IGESData_DumpString(S,ent->Text(i));
- S << Message_EndLine;
+ S << "\n";
}
}
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a GeneralNote. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDimen_GeneralNote)& entfrom, const Handle(IGESDimen_GeneralNote)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDimen_GeneralNote)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDimen_GeneralNote)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESDimen_ToolGeneralSymbol::OwnDump
(const Handle(IGESDimen_GeneralSymbol)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer sublevel = (level > 4) ? 1 : 0;
- S << "IGESDimen_GeneralSymbol" << Message_EndLine;
- S << "General Note : ";
+ S << "IGESDimen_GeneralSymbol\n"
+ << "General Note : ";
dumper.Dump(ent->Note(),S, sublevel);
- S << Message_EndLine << "Geometric Entities : ";
+ S << "\nGeometric Entities : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbGeomEntities(),ent->GeomEntity);
- S << Message_EndLine << "Leader Arrows : ";
+ S << "\nLeader Arrows : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbLeaders(),ent->LeaderArrow);
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a GeneralSymbol. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDimen_GeneralSymbol)& entfrom, const Handle(IGESDimen_GeneralSymbol)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDimen_GeneralSymbol)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDimen_GeneralSymbol)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
#include <TColgp_HArray1OfXY.hxx>
void IGESDimen_ToolLeaderArrow::OwnDump
(const Handle(IGESDimen_LeaderArrow)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESDimen_LeaderArrow" << Message_EndLine;
- S << "Number of Segments : " << ent->NbSegments() << Message_EndLine;
- S << "Arrowhead Height : " << ent->ArrowHeadHeight() << Message_EndLine;
- S << "Arrowhead Width : " << ent->ArrowHeadWidth() << Message_EndLine;
- S << "Z depth : " << ent->ZDepth() << Message_EndLine;
- S << "Arrowhead co-ords : ";
+ S << "IGESDimen_LeaderArrow\n"
+ << "Number of Segments : " << ent->NbSegments() << "\n"
+ << "Arrowhead Height : " << ent->ArrowHeadHeight() << "\n"
+ << "Arrowhead Width : " << ent->ArrowHeadWidth() << "\n"
+ << "Z depth : " << ent->ZDepth() << "\n"
+ << "Arrowhead co-ords : ";
IGESData_DumpXYLZ(S,level,ent->ArrowHead(),ent->Location(),ent->ZDepth());
- S << Message_EndLine << "Segment Tails : ";
- IGESData_DumpListXYLZ(S ,level,1, ent->NbSegments(),ent->SegmentTail,
+ S << "\nSegment Tails : ";
+ IGESData_DumpListXYLZ(S,level,1, ent->NbSegments(),ent->SegmentTail,
ent->Location(), ent->ZDepth());
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a LeaderArrow. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDimen_LeaderArrow)& entfrom, const Handle(IGESDimen_LeaderArrow)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDimen_LeaderArrow)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDimen_LeaderArrow)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
IGESDimen_ToolLinearDimension::IGESDimen_ToolLinearDimension () { }
void IGESDimen_ToolLinearDimension::OwnDump
(const Handle(IGESDimen_LinearDimension)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer sublevel = (level > 4) ? 1 : 0;
- S << "IGESDimen_LinearDimension" << Message_EndLine;
- if (ent->FormNumber() == 0) S << " (Undetermined Form)" << Message_EndLine;
- else if (ent->FormNumber() == 1) S << " (Diameter Form)" << Message_EndLine;
- else if (ent->FormNumber() == 2) S << " (Radius Form)" << Message_EndLine;
+ S << "IGESDimen_LinearDimension\n";
+ if (ent->FormNumber() == 0) S << " (Undetermined Form)\n";
+ else if (ent->FormNumber() == 1) S << " (Diameter Form)\n";
+ else if (ent->FormNumber() == 2) S << " (Radius Form)\n";
S << "General Note Entity : ";
dumper.Dump(ent->Note(),S, sublevel);
- S << Message_EndLine;
- S << "First Leader Entity : ";
+ S << "\n"
+ << "First Leader Entity : ";
dumper.Dump(ent->FirstLeader(),S, sublevel);
- S << Message_EndLine;
- S << "Second Leader Entity : ";
+ S << "\n"
+ << "Second Leader Entity : ";
dumper.Dump(ent->SecondLeader(),S, sublevel);
- S << Message_EndLine;
- S << "First Witness Entity : ";
+ S << "\n"
+ << "First Witness Entity : ";
dumper.Dump(ent->FirstWitness(),S, sublevel);
- S << Message_EndLine;
- S << "Second Witness Entity : ";
+ S << "\n"
+ << "Second Witness Entity : ";
dumper.Dump(ent->SecondWitness(),S, sublevel);
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a LinearDimension. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDimen_LinearDimension)& entfrom, const Handle(IGESDimen_LinearDimension)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDimen_LinearDimension)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDimen_LinearDimension)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESDimen_ToolNewDimensionedGeometry::OwnDump
(const Handle(IGESDimen_NewDimensionedGeometry)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer i, num, sublevel = (level > 4) ? 1 : 0;
- S << "IGESDimen_NewDimensionedGeometry" << Message_EndLine;
- S << "Number of Dimensions : " << ent->NbDimensions() << Message_EndLine;
- S << "Dimension Entity : ";
+ S << "IGESDimen_NewDimensionedGeometry\n"
+ << "Number of Dimensions : " << ent->NbDimensions() << "\n"
+ << "Dimension Entity : ";
dumper.Dump(ent->DimensionEntity(),S, sublevel);
- S << Message_EndLine;
- S << "Dimension Orientation Flag : " << ent->DimensionOrientationFlag() << Message_EndLine;
- S << "Angle Value Flag : " << ent->AngleValue() << Message_EndLine;
- S << "Geometry Entities : " << Message_EndLine;
- S << "Dimension Location Flags : " << Message_EndLine;
- S << "Points : ";
+ S << "\n"
+ << "Dimension Orientation Flag : " << ent->DimensionOrientationFlag() << "\n"
+ << "Angle Value Flag : " << ent->AngleValue() << "\n"
+ << "Geometry Entities :\n"
+ << "Dimension Location Flags :\n"
+ << "Points : ";
IGESData_DumpEntities(S,dumper,-level,1, ent->NbGeometries(),ent->GeometryEntity);
- S << Message_EndLine;
+ S << "\n";
if (level > 4)
for ( num = ent->NbGeometries(), i = 1; i <= num; i++ )
{
- S << "[" << i << "]: " << Message_EndLine;
- S << "Geometry Entity : ";
+ S << "[" << i << "]:\n"
+ << "Geometry Entity : ";
dumper.Dump (ent->GeometryEntity(i),S, 1);
- S << Message_EndLine;
- S << "Dimension Location Flag : " << ent->DimensionLocationFlag(i) << Message_EndLine;
- S << "Point : ";
+ S << "\n"
+ << "Dimension Location Flag : " << ent->DimensionLocationFlag(i) << "\n"
+ << "Point : ";
IGESData_DumpXYZL(S,level, ent->Point(i), ent->Location());
}
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a NewDimensionedGeometry. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDimen_NewDimensionedGeometry)& entfrom, const Handle(IGESDimen_NewDimensionedGeometry)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDimen_NewDimensionedGeometry)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDimen_NewDimensionedGeometry)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESDimen_ToolNewGeneralNote::OwnDump
(const Handle(IGESDimen_NewGeneralNote)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer sublevel = (level > 4) ? 1 : 0;
Standard_Integer nbval = ent->NbStrings();
- S << "IGESDimen_NewGeneralNote" << Message_EndLine;
- S << "Text Area : Width : " << ent->TextWidth() << " ";
- S << "Height : " << ent->TextHeight() << " ";
- S << "Justification Code : " << ent->JustifyCode() << Message_EndLine;
- S << "Text Area Location Point : ";
+ S << "IGESDimen_NewGeneralNote\n"
+ << "Text Area : Width : " << ent->TextWidth() << " "
+ << "Height : " << ent->TextHeight() << " "
+ << "Justification Code : " << ent->JustifyCode() << "\n"
+ << "Text Area Location Point : ";
IGESData_DumpXYZL(S,level, ent->AreaLocation(), ent->Location());
- S << "Rotation Angle of Text : " << ent->AreaRotationAngle() << Message_EndLine;
- S << "Base Line Position : ";
+ S << "Rotation Angle of Text : " << ent->AreaRotationAngle() << "\n"
+ << "Base Line Position : ";
IGESData_DumpXYZL(S,level, ent->BaseLinePosition(), ent->Location());
- S << "Normal Interline Spacing : " << ent->NormalInterlineSpace() << Message_EndLine;
- S << "Number of Text Strings : " << nbval << Message_EndLine;
-
- S << "Character Display : " << Message_EndLine;
- S << "Character Width : " << Message_EndLine;
- S << "Character Height : " << Message_EndLine;
- S << "Inter Character Spacing : " << Message_EndLine;
- S << "Interline Spacing : " << Message_EndLine;
- S << "Font Styles : " << Message_EndLine;
- S << "Character Angle : " << Message_EndLine;
- S << "Control Code String : " << Message_EndLine;
- S << "Number of Characters : " << Message_EndLine;
- S << "Box Widths : " << Message_EndLine;
- S << "Box Heights : " << Message_EndLine;
- S << "Character Set Codes : " << Message_EndLine;
- S << "Character Set Entities : " << Message_EndLine;
- S << "Slant Angles : " << Message_EndLine;
- S << "Rotation Angles : " << Message_EndLine;
- S << "Mirror Flags : " << Message_EndLine;
- S << "Rotate Flags : " << Message_EndLine;
- S << "Start Points : " << Message_EndLine;
- S << "Texts : ";
+ S << "Normal Interline Spacing : " << ent->NormalInterlineSpace() << "\n"
+ << "Number of Text Strings : " << nbval << "\n";
+
+ S << "Character Display :\n"
+ << "Character Width :\n"
+ << "Character Height :\n"
+ << "Inter Character Spacing :\n"
+ << "Interline Spacing :\n"
+ << "Font Styles :\n"
+ << "Character Angle :\n"
+ << "Control Code String :\n"
+ << "Number of Characters :\n"
+ << "Box Widths :\n"
+ << "Box Heights :\n"
+ << "Character Set Codes :\n"
+ << "Character Set Entities :\n"
+ << "Slant Angles :\n"
+ << "Rotation Angles :\n"
+ << "Mirror Flags :\n"
+ << "Rotate Flags :\n"
+ << "Start Points :\n"
+ << "Texts : ";
IGESData_DumpVals(S,-level,1, nbval, ent->NbCharacters);
- S << Message_EndLine;
+ S << "\n";
if (level > 4)
{
- S << "Details of each String" << Message_EndLine;
+ S << "Details of each String\n";
for ( Standard_Integer i = 1; i <= nbval; i++)
{
- S << "[" << i << "]: " << Message_EndLine;
- S << "Character Display : " << ent->CharacterDisplay(i) << " ";
- S << "Character Width : " << ent->CharacterWidth(i) << " ";
- S << "Character Height : " << ent->CharacterHeight(i) << Message_EndLine;
- S << "Inter Character Spacing : "<<ent->InterCharacterSpace(i)<<" ";
- S << "Interline Spacing : " << ent->InterlineSpace(i) << Message_EndLine;
- S << "Font Styles : " << ent->FontStyle(i) << Message_EndLine;
- S << "Character Angle : " << ent->CharacterAngle(i) << Message_EndLine;
- S << "Control Code String : " ;
+ S << "[" << i << "]:\n"
+ << "Character Display : " << ent->CharacterDisplay(i) << " "
+ << "Character Width : " << ent->CharacterWidth(i) << " "
+ << "Character Height : " << ent->CharacterHeight(i) << "\n"
+ << "Inter Character Spacing : "<<ent->InterCharacterSpace(i)<<" "
+ << "Interline Spacing : " << ent->InterlineSpace(i) << "\n"
+ << "Font Styles : " << ent->FontStyle(i) << "\n"
+ << "Character Angle : " << ent->CharacterAngle(i) << "\n"
+ << "Control Code String : " ;
IGESData_DumpString(S,ent->ControlCodeString(i));
- S << Message_EndLine;
- S << "Number of Characters : " << ent->NbCharacters(i) << " ";
- S << "Box Width : " << ent->BoxWidth(i) << " ";
- S << "Box Height : " << ent->BoxHeight(i) << Message_EndLine;
+ S << "\n"
+ << "Number of Characters : " << ent->NbCharacters(i) << " "
+ << "Box Width : " << ent->BoxWidth(i) << " "
+ << "Box Height : " << ent->BoxHeight(i) << "\n";
if (ent->IsCharSetEntity(i))
{
S << "Character Set Entity : ";
dumper.Dump (ent->CharSetEntity(i),S, sublevel);
- S << Message_EndLine;
+ S << "\n";
}
else
- S << "Character Set Code : " << ent->CharSetCode(i) << Message_EndLine;
+ S << "Character Set Code : " << ent->CharSetCode(i) << "\n"
- S << "Slant Angle : " << ent->SlantAngle(i) << " ";
- S << "Rotation Angle : " << ent->RotationAngle(i) << " ";
- S << "Mirror Flag : " << ent->MirrorFlag(i) << " ";
- S << "Rotate Flag : " << ent->RotateFlag(i) << Message_EndLine;
- S << "Start Point : ";
+ << "Slant Angle : " << ent->SlantAngle(i) << " "
+ << "Rotation Angle : " << ent->RotationAngle(i) << " "
+ << "Mirror Flag : " << ent->MirrorFlag(i) << " "
+ << "Rotate Flag : " << ent->RotateFlag(i) << "\n"
+ << "Start Point : ";
IGESData_DumpXYZL(S,level, ent->StartPoint(i), ent->Location());
S << "Text : ";
IGESData_DumpString(S,ent->Text(i));
- S << Message_EndLine;
+ S << "\n";
}
}
- else S << Message_EndLine;
+ else S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a NewGeneralNote. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDimen_NewGeneralNote)& entfrom, const Handle(IGESDimen_NewGeneralNote)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDimen_NewGeneralNote)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDimen_NewGeneralNote)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESDimen_ToolOrdinateDimension::OwnDump
(const Handle(IGESDimen_OrdinateDimension)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESDimen_OrdinateDimension" << Message_EndLine;
+ S << "IGESDimen_OrdinateDimension\n";
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
S << "General Note : ";
dumper.Dump(ent->Note(),S, sublevel);
- S << Message_EndLine;
+ S << "\n";
Handle(IGESDimen_WitnessLine) witLine = ent->WitnessLine();
Handle(IGESDimen_LeaderArrow) leadArr = ent->Leader();
if (!witLine.IsNull()) {
S << "Witness line : ";
dumper.Dump(witLine,S, sublevel);
- S << Message_EndLine;
+ S << "\n";
}
if (!leadArr.IsNull()) {
S << "Leader arrow :";
dumper.Dump(leadArr,S, sublevel);
- S << Message_EndLine;
+ S << "\n";
}
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a OrdinateDimension. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDimen_OrdinateDimension)& entfrom, const Handle(IGESDimen_OrdinateDimension)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDimen_OrdinateDimension)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDimen_OrdinateDimension)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESDimen_ToolPointDimension::OwnDump
(const Handle(IGESDimen_PointDimension)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESDimen_PointDimension" << Message_EndLine;
+ S << "IGESDimen_PointDimension\n";
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
S << "General Note : ";
dumper.Dump(ent->Note(),S , sublevel);
- S << Message_EndLine;
- S << "Leader Arrow : ";
+ S << "\n"
+ << "Leader Arrow : ";
dumper.Dump(ent->LeaderArrow(),S , sublevel);
- S << Message_EndLine;
+ S << "\n";
if (!ent->Geom().IsNull())
{
S << "Enclosing Entity : ";
dumper.Dump(ent->Geom(),S , sublevel);
- S << Message_EndLine;
+ S << "\n";
}
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a PointDimension. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDimen_PointDimension)& entfrom, const Handle(IGESDimen_PointDimension)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDimen_PointDimension)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDimen_PointDimension)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESDimen_ToolRadiusDimension::OwnDump
(const Handle(IGESDimen_RadiusDimension)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S,const Standard_Integer level) const
+ Standard_OStream& S,const Standard_Integer level) const
{
- S << "IGESDimen_RadiusDimension" << Message_EndLine;
+ S << "IGESDimen_RadiusDimension\n";
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
S << "General note : ";
dumper.Dump(ent->Note(),S, sublevel);
- S << Message_EndLine;
- S << "Leader arrow : ";
+ S << "\n"
+ << "Leader arrow : ";
dumper.Dump(ent->Leader(),S, sublevel);
- S << Message_EndLine;
- S << "Arc center : ";
+ S << "\n"
+ << "Arc center : ";
IGESData_DumpXYLZ(S,level,ent->Center(),ent->Location(),ent->Leader()->ZDepth());
if (ent->HasLeader2())
{
- S << Message_EndLine << "Leader arrow 2 : ";
+ S << "\nLeader arrow 2 : ";
dumper.Dump(ent->Leader2(),S, sublevel);
- S << Message_EndLine;
+ S << "\n";
}
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a RadiusDimension. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDimen_RadiusDimension)& entfrom, const Handle(IGESDimen_RadiusDimension)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDimen_RadiusDimension)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDimen_RadiusDimension)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESDimen_ToolSection::OwnDump
(const Handle(IGESDimen_Section)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESDimen_Section" << Message_EndLine;
- S << "Data Type : " << ent->Datatype() << " ";
- S << "Number of Data Points : " << ent->NbPoints() << " ";
- S << "Common Z displacement : " << ent->ZDisplacement() << Message_EndLine;
- S << "Data Points : ";
- IGESData_DumpListXYLZ(S ,level,1, ent->NbPoints(),ent->Point,
+ S << "IGESDimen_Section\n"
+ << "Data Type : " << ent->Datatype() << " "
+ << "Number of Data Points : " << ent->NbPoints() << " "
+ << "Common Z displacement : " << ent->ZDisplacement() << "\n"
+ << "Data Points : ";
+ IGESData_DumpListXYLZ(S,level,1, ent->NbPoints(),ent->Point,
ent->Location(), ent->ZDisplacement());
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a Section. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDimen_Section)& entfrom, const Handle(IGESDimen_Section)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDimen_Section)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDimen_Section)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
IGESDimen_ToolSectionedArea::IGESDimen_ToolSectionedArea () { }
void IGESDimen_ToolSectionedArea::OwnDump
(const Handle(IGESDimen_SectionedArea)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
- S << "IGESDimen_SectionedArea" << Message_EndLine;
- S << (ent->IsInverted() ? "Inverted Cross Hatches" : "Standard Cross Hatches");
-
- S << " - Exterior curve : ";
+ S << "IGESDimen_SectionedArea\n"
+ << (ent->IsInverted() ? "Inverted Cross Hatches" : "Standard Cross Hatches")
+ << " - Exterior curve : ";
dumper.Dump(ent->ExteriorCurve(),S, sublevel);
- S << Message_EndLine;
- S << "Fill pattern code : " << ent->Pattern() << Message_EndLine;
- S << "Passing point : ";
- IGESData_DumpXYZL(S,level, ent->PassingPoint(), ent->Location()); S << Message_EndLine;
- S << "Distance between lines : " << ent->Distance() << Message_EndLine;
- S << "Angle between lines and X axis : " << ent->Angle() << Message_EndLine;
- S << "Island Curve : ";
+ S << "\n"
+ << "Fill pattern code : " << ent->Pattern() << "\n"
+ << "Passing point : ";
+ IGESData_DumpXYZL(S,level, ent->PassingPoint(), ent->Location()); S << "\n";
+ S << "Distance between lines : " << ent->Distance() << "\n"
+ << "Angle between lines and X axis : " << ent->Angle() << "\n"
+ << "Island Curve : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbIslands(),ent->IslandCurve);
- S << Message_EndLine;
+ S << "\n";
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a SectionedArea. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDimen_SectionedArea)& entfrom, const Handle(IGESDimen_SectionedArea)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDimen_SectionedArea)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDimen_SectionedArea)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESDimen_ToolWitnessLine::OwnDump
(const Handle(IGESDimen_WitnessLine)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESDimen_WitnessLine" << Message_EndLine;
- S << "Data Type : " << ent->Datatype() << " ";
- S << "Number of Data Points : " << ent->NbPoints() << " ";
- S << "Common Z displacement : " << ent->ZDisplacement() << Message_EndLine;
- S << "Data Points : ";
- IGESData_DumpListXYLZ(S ,level,1, ent->NbPoints(),ent->Point,
+ S << "IGESDimen_WitnessLine\n"
+ << "Data Type : " << ent->Datatype() << " "
+ << "Number of Data Points : " << ent->NbPoints() << " "
+ << "Common Z displacement : " << ent->ZDisplacement() << "\n"
+ << "Data Points : ";
+ IGESData_DumpListXYLZ(S,level,1, ent->NbPoints(),ent->Point,
ent->Location(), ent->ZDisplacement());
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a WitnessLine. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDimen_WitnessLine)& entfrom, const Handle(IGESDimen_WitnessLine)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDimen_WitnessLine)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDimen_WitnessLine)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
#include <IGESDraw_ViewsVisible.hxx>
#include <IGESDraw_ViewsVisibleWithAttr.hxx>
#include <Interface_Macros.hxx>
-#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(IGESDraw_SpecificModule,IGESData_SpecificModule)
void IGESDraw_SpecificModule::OwnDump
(const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent,
- const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S,
+ const IGESData_IGESDumper& dumper, Standard_OStream& S,
const Standard_Integer own) const
{
switch (CN) {
#include <Standard_Boolean.hxx>
class IGESData_IGESEntity;
class IGESData_IGESDumper;
-class Message_Messenger;
-
class IGESDraw_SpecificModule;
DEFINE_STANDARD_HANDLE(IGESDraw_SpecificModule, IGESData_SpecificModule)
Standard_EXPORT IGESDraw_SpecificModule();
//! Specific Dump (own parameters) for IGESDraw
- Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const Standard_OVERRIDE;
+ Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const Standard_OVERRIDE;
//! Performs non-ambiguous Corrections on Entities which support
//! them (Planar)
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
#include <TColStd_HArray1OfInteger.hxx>
void IGESDraw_ToolCircArraySubfigure::OwnDump
(const Handle(IGESDraw_CircArraySubfigure)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
- S << "IGESDraw_CircArraySubfigure" << Message_EndLine;
-
- S << "Base Entity : ";
+ S << "IGESDraw_CircArraySubfigure\n"
+ << "Base Entity : ";
dumper.Dump(ent->BaseEntity(),S, tempSubLevel);
- S << Message_EndLine;
- S << "Total Number Of Possible Instance Locations : " << ent->NbLocations()
- << Message_EndLine;
- S << "Imaginary Circle. Radius : " << ent->CircleRadius() << " Center : ";
- IGESData_DumpXYZL(S, level, ent->CenterPoint(), ent->Location()); S << Message_EndLine;
- S << "Start Angle (in radians) : " << ent->StartAngle() << " ";
- S << "Delta Angle (in radians) : " << ent->DeltaAngle() << Message_EndLine;
- S << "Do-Dont Flag : ";
- if (ent->DoDontFlag()) S << "Dont" << Message_EndLine;
- else S << "Do" << Message_EndLine;
+ S << "\n"
+ << "Total Number Of Possible Instance Locations : " << ent->NbLocations()
+ << "\n"
+ << "Imaginary Circle. Radius : " << ent->CircleRadius() << " Center : ";
+ IGESData_DumpXYZL(S, level, ent->CenterPoint(), ent->Location()); S << "\n";
+ S << "Start Angle (in radians) : " << ent->StartAngle() << " "
+ << "Delta Angle (in radians) : " << ent->DeltaAngle() << "\n"
+ << "Do-Dont Flag : ";
+ if (ent->DoDontFlag()) S << "Dont\n";
+ else S << "Do\n";
S << "The Do-Dont List : ";
- IGESData_DumpVals(S ,level,1, ent->ListCount(),ent->ListPosition);
- S << Message_EndLine;
+ IGESData_DumpVals(S,level,1, ent->ListCount(),ent->ListPosition);
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a CircArraySubfigure. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDraw_CircArraySubfigure)& entfrom, const Handle(IGESDraw_CircArraySubfigure)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDraw_CircArraySubfigure)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDraw_CircArraySubfigure)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESDraw_ToolConnectPoint::OwnDump
(const Handle(IGESDraw_ConnectPoint)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
- S << "IGESDraw_ConnectPoint" << Message_EndLine;
-
- S << "Connection Point Coordinate : ";
+ S << "IGESDraw_ConnectPoint\n"
+ << "Connection Point Coordinate : ";
IGESData_DumpXYZL(S, level, ent->Point(), ent->Location());
S << "Display Symbol Geometry Entity : ";
dumper.Dump(ent->DisplaySymbol(),S, tempSubLevel);
- S << Message_EndLine;
- S << "Type Flag : " << ent->TypeFlag() << " "
- << "Function Flag : " << ent->FunctionFlag() << Message_EndLine;
- S << "Function Identifier : ";
+ S << "\n"
+ << "Type Flag : " << ent->TypeFlag() << " "
+ << "Function Flag : " << ent->FunctionFlag() << "\n"
+ << "Function Identifier : ";
IGESData_DumpString(S,ent->FunctionIdentifier());
- S << Message_EndLine << "Text Display Template Entity for CID : ";
+ S << "\nText Display Template Entity for CID : ";
dumper.Dump(ent->IdentifierTemplate(),S, tempSubLevel);
- S << Message_EndLine << "Function Name : ";
+ S << "\nFunction Name : ";
IGESData_DumpString(S,ent->FunctionName());
- S << Message_EndLine << "Text Display Template Entity for CFN : ";
+ S << "\nText Display Template Entity for CFN : ";
dumper.Dump(ent->FunctionTemplate(),S, tempSubLevel);
- S << Message_EndLine;
- S << "Point Identifier : " << ent->PointIdentifier() << Message_EndLine
+ S << "\n"
+ << "Point Identifier : " << ent->PointIdentifier() << "\n"
<< "Function Code : " << ent->FunctionCode()
- << "Swap Flag : " << ( ent->SwapFlag() ? "True" : "False" ) << Message_EndLine;
- S << "Owner Subfigure Entity : ";
+ << "Swap Flag : " << ( ent->SwapFlag() ? "True" : "False" ) << "\n"
+ << "Owner Subfigure Entity : ";
dumper.Dump(ent->OwnerSubfigure(),S, tempSubLevel);
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a ConnectPoint. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDraw_ConnectPoint)& entfrom, const Handle(IGESDraw_ConnectPoint)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDraw_ConnectPoint)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDraw_ConnectPoint)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESDraw_ToolDrawing::OwnDump
(const Handle(IGESDraw_Drawing)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
- S << "IGESDraw_Drawing" << Message_EndLine;
-
- S << "View Entities : " << Message_EndLine
- << "Transformed View Origins : ";
- S << "Count = " << ent->NbViews();
+ S << "IGESDraw_Drawing\n"
+ << "View Entities :\n"
+ << "Transformed View Origins : "
+ << "Count = " << ent->NbViews();
switch (level)
{
- case 4 : S << " [ ask level > 4 for content ]" << Message_EndLine;
+ case 4 : S << " [ ask level > 4 for content ]\n";
break; // Nothing to be dumped here
case 5 : // Presently level 5 and 6 have the same Dump
- S << Message_EndLine;
+ S << "\n";
Standard_FALLTHROUGH
case 6 :
{
Standard_Integer up = ent->NbViews();
for (I = 1; I <= up; I++)
{
- S << Message_EndLine << "[" << I << "] ";
- S << "View Entity : ";
+ S << "\n[" << I << "] "
+ << "View Entity : ";
dumper.Dump (ent->ViewItem(I),S, sublevel);
- S << Message_EndLine;
- S << "Transformed View Origin : ";
+ S << "\n"
+ << "Transformed View Origin : ";
IGESData_DumpXY(S, ent->ViewOrigin(I));
}
}
break;
}
- S << Message_EndLine << "Annotation Entities : ";
+ S << "\nAnnotation Entities : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbAnnotations(),ent->Annotation);
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a Drawing. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDraw_Drawing)& entfrom, const Handle(IGESDraw_Drawing)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDraw_Drawing)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDraw_Drawing)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESDraw_ToolDrawingWithRotation::OwnDump
(const Handle(IGESDraw_DrawingWithRotation)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
- S << "IGESDraw_DrawingWithRotation" << Message_EndLine;
-
- S << "View Entities : " << Message_EndLine
- << "Transformed View Origins : " << Message_EndLine
- << "Orientation Angles : ";
- S << "Count = " << ent->NbViews() << Message_EndLine;
+ S << "IGESDraw_DrawingWithRotation\n"
+ << "View Entities :\n"
+ << "Transformed View Origins :\n"
+ << "Orientation Angles : "
+ << "Count = " << ent->NbViews() << "\n";
if (level > 4) // Level = 4 : no Dump. Level = 5 & 6 have same Dump
{
Standard_Integer up = ent->NbViews();
for (I = 1; I <= up; I++)
{
- S << "[" << I << "]:" << Message_EndLine;
- S << "View Entity : ";
+ S << "[" << I << "]:\n"
+ << "View Entity : ";
dumper.Dump (ent->ViewItem(I),S, sublevel);
- S << Message_EndLine;
- S << "Transformed View Origin : ";
+ S << "\n"
+ << "Transformed View Origin : ";
IGESData_DumpXY(S, ent->ViewOrigin(I));
- S << " Orientation Angle : " << ent->OrientationAngle(I) << Message_EndLine;
+ S << " Orientation Angle : " << ent->OrientationAngle(I) << "\n";
}
}
S << "Annotation Entities : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbAnnotations(),ent->Annotation);
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a DrawingWithRotation. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDraw_DrawingWithRotation)& entfrom, const Handle(IGESDraw_DrawingWithRotation)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDraw_DrawingWithRotation)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDraw_DrawingWithRotation)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESDraw_ToolLabelDisplay::OwnDump
(const Handle(IGESDraw_LabelDisplay)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
- S << "IGESDraw_LabelDisplay" << Message_EndLine;
-
- S << "View Entities : " << Message_EndLine
- << "Text Locations : " << Message_EndLine
- << "Leader Entities : " << Message_EndLine
- << "Label Level Numbers : " << Message_EndLine
- << "Displayed Entities : ";
- S << "Count = " << ent->NbLabels() << Message_EndLine;
+ S << "IGESDraw_LabelDisplay\n"
+ << "View Entities :\n"
+ << "Text Locations :\n"
+ << "Leader Entities :\n"
+ << "Label Level Numbers :\n"
+ << "Displayed Entities : "
+ << "Count = " << ent->NbLabels() << "\n";
if (level > 4) // Level = 4 : no Dump. Level = 5 & 6 : same Dump
{
Standard_Integer I;
Standard_Integer up = ent->NbLabels();
for (I = 1; I <= up; I ++)
{
- S << "[" << I << "]:" << Message_EndLine;
- S << "View Entity : ";
+ S << "[" << I << "]:\n"
+ << "View Entity : ";
dumper.Dump (ent->ViewItem(I),S, sublevel);
- S << Message_EndLine;
- S << "Text Location in View : ";
+ S << "\n"
+ << "Text Location in View : ";
IGESData_DumpXYZL(S,level, ent->TextLocation(I), ent->Location());
S << " Leader Entity in View : ";
dumper.Dump (ent->LeaderEntity(I),S, sublevel);
- S << Message_EndLine;
- S << "Entity Label Level Number : ";
- S << ent->LabelLevel(I) << " ";
- S << "Displayed Entity : ";
+ S << "\n"
+ << "Entity Label Level Number : "
+ << ent->LabelLevel(I) << " "
+ << "Displayed Entity : ";
dumper.Dump (ent->DisplayedEntity(I),S, sublevel);
- S << Message_EndLine;
+ S << "\n";
}
}
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a LabelDisplay. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDraw_LabelDisplay)& entfrom, const Handle(IGESDraw_LabelDisplay)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDraw_LabelDisplay)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDraw_LabelDisplay)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESDraw_ToolNetworkSubfigure::OwnDump
(const Handle(IGESDraw_NetworkSubfigure)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
- S << "IGESDraw_NetworkSubfigure" << Message_EndLine;
-
- S << "Network Subfigure Definition Entity : ";
+ S << "IGESDraw_NetworkSubfigure\n"
+ << "Network Subfigure Definition Entity : ";
dumper.Dump(ent->SubfigureDefinition(),S, sublevel);
- S << Message_EndLine << "Translation Data : ";
+ S << "\nTranslation Data : ";
IGESData_DumpXYZL(S,level, ent->Translation(), ent->Location());
- S << Message_EndLine << "Scale Factors : ";
+ S << "\nScale Factors : ";
IGESData_DumpXYZ(S, ent->ScaleFactors());
- S << Message_EndLine << "Type Flag : " << ent->TypeFlag() << Message_EndLine;
- S << "Primary Reference Designator : ";
+ S << "\nType Flag : " << ent->TypeFlag() << "\n"
+ << "Primary Reference Designator : ";
IGESData_DumpString(S,ent->ReferenceDesignator());
- S << Message_EndLine << "Text Display Template Entity : ";
+ S << "\nText Display Template Entity : ";
dumper.Dump(ent->DesignatorTemplate(),S, sublevel);
- S << Message_EndLine << "Connect Points : ";
+ S << "\nConnect Points : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbConnectPoints(),ent->ConnectPoint);
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a NetworkSubfigure. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDraw_NetworkSubfigure)& entfrom, const Handle(IGESDraw_NetworkSubfigure)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDraw_NetworkSubfigure)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDraw_NetworkSubfigure)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESDraw_ToolNetworkSubfigureDef::OwnDump
(const Handle(IGESDraw_NetworkSubfigureDef)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
- S << "IGESDraw_NetworkSubfigureDef" << Message_EndLine;
-
- S << "Depth Of Subfigure(Nesting) : " << ent->Depth() << Message_EndLine;
- S << "Name Of Subfigure : ";
+ S << "IGESDraw_NetworkSubfigureDef\n"
+ << "Depth Of Subfigure(Nesting) : " << ent->Depth() << "\n"
+ << "Name Of Subfigure : ";
IGESData_DumpString(S,ent->Name());
- S << Message_EndLine << "Associated Entities : ";
+ S << "\nAssociated Entities : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbEntities(),ent->Entity);
- S << Message_EndLine << "Type Flag : " << ent->TypeFlag() << Message_EndLine;
- S << "Primary Reference Designator : ";
+ S << "\nType Flag : " << ent->TypeFlag() << "\n"
+ << "Primary Reference Designator : ";
IGESData_DumpString(S,ent->Designator());
- S << Message_EndLine << "Text Display Template Entity : ";
+ S << "\nText Display Template Entity : ";
dumper.Dump(ent->DesignatorTemplate(),S, tempSubLevel);
- S << Message_EndLine << "Connect Point Entities : ";
+ S << "\nConnect Point Entities : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbPointEntities(),ent->PointEntity);
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a NetworkSubfigureDef. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDraw_NetworkSubfigureDef)& entfrom, const Handle(IGESDraw_NetworkSubfigureDef)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDraw_NetworkSubfigureDef)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDraw_NetworkSubfigureDef)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESDraw_ToolPerspectiveView::OwnDump
(const Handle(IGESDraw_PerspectiveView)& ent, const IGESData_IGESDumper& /*dumper*/,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESDraw_PerspectiveView" << Message_EndLine;
-
- S << "View Number : " << ent->ViewNumber() << " ";
- S << "Scale Factor : " << ent->ScaleFactor() << Message_EndLine;
- S << "View Plane Normal Vector : ";
+ S << "IGESDraw_PerspectiveView\n"
+ << "View Number : " << ent->ViewNumber() << " "
+ << "Scale Factor : " << ent->ScaleFactor() << "\n"
+ << "View Plane Normal Vector : ";
IGESData_DumpXYZL(S,level, ent->ViewNormalVector(), ent->Location());
- S << Message_EndLine << "View Reference Point : ";
+ S << "\nView Reference Point : ";
IGESData_DumpXYZL(S,level, ent->ViewReferencePoint() , ent->Location());
- S << Message_EndLine << "Center Of Projection : ";
+ S << "\nCenter Of Projection : ";
IGESData_DumpXYZL(S,level, ent->CenterOfProjection() , ent->Location());
- S << Message_EndLine << "View Up Vector : ";
+ S << "\nView Up Vector : ";
IGESData_DumpXYZL(S,level, ent->ViewUpVector() , ent->Location());
- S << Message_EndLine << "View Plane Distance : " << ent->ViewPlaneDistance()<<Message_EndLine;
- S << "Left Side Of Clipping Window : " << ent->TopLeft().X() << Message_EndLine;
- S << "Right Side Of Clipping Window : " << ent->BottomRight().X() << Message_EndLine;
- S << "Bottom Side Of Clipping Window : " << ent->BottomRight().Y() << Message_EndLine;
- S << "Top Side Of Clipping Window : " << ent->TopLeft().Y() << Message_EndLine;
- S << "Depth Clipping : " << ent->DepthClip();
+ S << "\nView Plane Distance : " << ent->ViewPlaneDistance()<< "\n"
+ << "Left Side Of Clipping Window : " << ent->TopLeft().X() << "\n"
+ << "Right Side Of Clipping Window : " << ent->BottomRight().X() << "\n"
+ << "Bottom Side Of Clipping Window : " << ent->BottomRight().Y() << "\n"
+ << "Top Side Of Clipping Window : " << ent->TopLeft().Y() << "\n"
+ << "Depth Clipping : " << ent->DepthClip();
switch (ent->DepthClip()) {
- case 0 : S << " (No Depth Clipping)" << Message_EndLine; break;
- case 1 : S << " (Back Clipping Plane ON)" << Message_EndLine; break;
- case 2 : S << " (Front Clipping Plane ON)" << Message_EndLine; break;
- case 3 : S << " (Front and Back Clipping Planes ON)" << Message_EndLine; break;
- default : S << " (Invalid Value)" << Message_EndLine; break;
+ case 0 : S << " (No Depth Clipping)\n"; break;
+ case 1 : S << " (Back Clipping Plane ON)\n"; break;
+ case 2 : S << " (Front Clipping Plane ON)\n"; break;
+ case 3 : S << " (Front and Back Clipping Planes ON)\n"; break;
+ default : S << " (Invalid Value)\n"; break;
}
- S << "Back Plane Distance : " << ent->BackPlaneDistance() << " ";
- S << "Front Plane Distance : " << ent->FrontPlaneDistance() << Message_EndLine;
- S << Message_EndLine;
+ S << "Back Plane Distance : " << ent->BackPlaneDistance() << " "
+ << "Front Plane Distance : " << ent->FrontPlaneDistance() << "\n"
+ << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a PerspectiveView. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDraw_PerspectiveView)& entfrom, const Handle(IGESDraw_PerspectiveView)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDraw_PerspectiveView)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDraw_PerspectiveView)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESDraw_ToolPlanar::OwnDump
(const Handle(IGESDraw_Planar)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
- S << "IGESDraw_Planar" << Message_EndLine;
-
- S << "No. of Transformation Matrices : " << ent->NbMatrices() << " ";
- S << "i.e. : ";
+ S << "IGESDraw_Planar\n"
+ << "No. of Transformation Matrices : " << ent->NbMatrices() << " "
+ << "i.e. : ";
if ( ent->TransformMatrix().IsNull() )
S << "Null Handle";
else
dumper.OwnDump (ent->TransformMatrix(),S, sublevel);
- S << Message_EndLine;
- S << "Array of Entities on the specified plane : ";
+ S << "\n"
+ << "Array of Entities on the specified plane : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbEntities(),ent->Entity);
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a Planar. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDraw_Planar)& entfrom, const Handle(IGESDraw_Planar)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDraw_Planar)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDraw_Planar)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESDraw_ToolRectArraySubfigure::OwnDump
(const Handle(IGESDraw_RectArraySubfigure)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
- S << "IGESDraw_RectArraySubfigure" << Message_EndLine;
-
- S << "Base Entity : ";
+ S << "IGESDraw_RectArraySubfigure\n"
+ << "Base Entity : ";
dumper.Dump(ent->BaseEntity(),S, tempSubLevel);
- S << Message_EndLine;
- S << "Scale Factor : " << ent->ScaleFactor() << " ";
- S << "Lower Left Corner Of Array : ";
+ S << "\n"
+ << "Scale Factor : " << ent->ScaleFactor() << " "
+ << "Lower Left Corner Of Array : ";
IGESData_DumpXYZL(S,level, ent->LowerLeftCorner(),gp_GTrsf()); // no location
- S << "Number Of Columns : " << ent->NbColumns() << " ";
- S << "Number Of Rows : " << ent->NbRows() << Message_EndLine;
- S << "Horizontal Distance Between Columns : " << ent->ColumnSeparation()<<Message_EndLine;
- S << "Vertical Distance Between Rows : " << ent->RowSeparation() <<Message_EndLine;
- S << "Rotation Angle (in radians) : " << ent->RotationAngle() <<Message_EndLine;
- S << "Do-Dont Flag : ";
+ S << "Number Of Columns : " << ent->NbColumns() << " "
+ << "Number Of Rows : " << ent->NbRows() << "\n"
+ << "Horizontal Distance Between Columns : " << ent->ColumnSeparation()<< "\n"
+ << "Vertical Distance Between Rows : " << ent->RowSeparation() << "\n"
+ << "Rotation Angle (in radians) : " << ent->RotationAngle() << "\n"
+ << "Do-Dont Flag : ";
if (ent->DoDontFlag()) S << "(1)Dont ";
else S << "(0)Do ";
S << "Do-Dont List : ";
- IGESData_DumpVals(S ,level,1, ent->ListCount(),ent->ListPosition);
- S << Message_EndLine;
+ IGESData_DumpVals(S,level,1, ent->ListCount(),ent->ListPosition);
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a RectArraySubfigure. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDraw_RectArraySubfigure)& entfrom, const Handle(IGESDraw_RectArraySubfigure)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDraw_RectArraySubfigure)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDraw_RectArraySubfigure)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <TColStd_HArray1OfReal.hxx>
void IGESDraw_ToolSegmentedViewsVisible::OwnDump
(const Handle(IGESDraw_SegmentedViewsVisible)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
- S << "IGESDraw_SegmentedViewsVisible" << Message_EndLine;
-
- S << "View Entities : " << Message_EndLine
- << "Breakpoint parameters : " << Message_EndLine
- << "Display flags : " << Message_EndLine
- << "Color Values : " << Message_EndLine
- << "Color Definitions : " << Message_EndLine
- << "LineFont Values : " << Message_EndLine
- << "LineFont Definitions : " << Message_EndLine
- << "Line Weights : " << Message_EndLine;
- S << "Count Of Blocks = " << ent->NbSegmentBlocks() << Message_EndLine;
+ S << "IGESDraw_SegmentedViewsVisible\n"
+ << "View Entities :\n"
+ << "Breakpoint parameters :\n"
+ << "Display flags :\n"
+ << "Color Values :\n"
+ << "Color Definitions :\n"
+ << "LineFont Values :\n"
+ << "LineFont Definitions :\n"
+ << "Line Weights :\n"
+ << "Count Of Blocks = " << ent->NbSegmentBlocks() << "\n";
switch (level)
{
- case 4 : S << " [ for content, ask level > 4 ]" << Message_EndLine;
+ case 4 : S << " [ for content, ask level > 4 ]\n";
break; // Nothing to be dumped here
case 5 : // Presently level 5 and 6 have the same Dump
case 6 :
Standard_Integer up = ent->NbSegmentBlocks();
for (I = 1; I <= up; I++)
{
- S << "[" << I << "]:" << Message_EndLine;
- S << "View Entity : ";
+ S << "[" << I << "]:\n"
+ << "View Entity : ";
dumper.Dump (ent->ViewItem(I),S, sublevel);
- S << Message_EndLine;
- S << "Breakpoint parameter : " <<ent->BreakpointParameter(I)<<Message_EndLine;
- S << "Display Flag : " << ent->DisplayFlag(I) << Message_EndLine;
+ S << "\n"
+ << "Breakpoint parameter : " <<ent->BreakpointParameter(I)<< "\n"
+ << "Display Flag : " << ent->DisplayFlag(I) << "\n";
if ( (ent->ColorDefinition(I)).IsNull() )
{
- S << "Color Value : ";
- S << ent->ColorValue(I);
+ S << "Color Value : " << ent->ColorValue(I);
}
else
{
S << "Color Definition : ";
dumper.Dump (ent->ColorDefinition(I),S, sublevel);
}
- S << Message_EndLine;
+ S << "\n";
if ( (ent->LineFontDefinition(I)).IsNull() )
{
S << "LineFont Value : " << ent->LineFontValue(I);
S << "LineFont Definition : ";
dumper.Dump (ent->LineFontDefinition(I),S, sublevel);
}
- S << Message_EndLine;
- S << "Line Weight : " << ent->LineWeightItem(I) << Message_EndLine;
+ S << "\n"
+ << "Line Weight : " << ent->LineWeightItem(I) << "\n";
}
}
break;
}
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a SegmentedViewsVisible. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDraw_SegmentedViewsVisible)& entfrom, const Handle(IGESDraw_SegmentedViewsVisible)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDraw_SegmentedViewsVisible)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDraw_SegmentedViewsVisible)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
IGESDraw_ToolView::IGESDraw_ToolView () { }
void IGESDraw_ToolView::OwnDump
(const Handle(IGESDraw_View)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
- S << "IGESDraw_View" << Message_EndLine;
-
- S << "View Number : " << ent->ViewNumber() << Message_EndLine;
- S << "Scale Factor : " << ent->ScaleFactor() << Message_EndLine;
- S << "Left Plane Of View Volume : ";
- dumper.Dump(ent->LeftPlane(),S, tempSubLevel); S << Message_EndLine;
+ S << "IGESDraw_View\n"
+ << "View Number : " << ent->ViewNumber() << "\n"
+ << "Scale Factor : " << ent->ScaleFactor() << "\n"
+ << "Left Plane Of View Volume : ";
+ dumper.Dump(ent->LeftPlane(),S, tempSubLevel); S << "\n";
S << "Top Plane Of View Volume : ";
- dumper.Dump(ent->TopPlane(),S, tempSubLevel); S << Message_EndLine;
+ dumper.Dump(ent->TopPlane(),S, tempSubLevel); S << "\n";
S << "Right Plane Of View Volume : ";
- dumper.Dump(ent->RightPlane(),S, tempSubLevel); S << Message_EndLine;
+ dumper.Dump(ent->RightPlane(),S, tempSubLevel); S << "\n";
S << "Bottom Plane Of View Volume : ";
- dumper.Dump(ent->BottomPlane(),S, tempSubLevel); S << Message_EndLine;
+ dumper.Dump(ent->BottomPlane(),S, tempSubLevel); S << "\n";
S << "Back Plane Of View Volume : ";
- dumper.Dump(ent->BackPlane(),S, tempSubLevel); S << Message_EndLine;
+ dumper.Dump(ent->BackPlane(),S, tempSubLevel); S << "\n";
S << "Front Plane Of View Volume : ";
- dumper.Dump(ent->FrontPlane(),S, tempSubLevel); S << Message_EndLine;
+ dumper.Dump(ent->FrontPlane(),S, tempSubLevel); S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a View. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESDraw_View)& entfrom, const Handle(IGESDraw_View)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDraw_View)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDraw_View)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
#include <stdio.h>
void IGESDraw_ToolViewsVisible::OwnDump
(const Handle(IGESDraw_ViewsVisible)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESDraw_ViewsVisible" << Message_EndLine;
-
- S << "Views Visible : ";
+ S << "IGESDraw_ViewsVisible\n"
+ << "Views Visible : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbViews(),ent->ViewItem);
- S << Message_EndLine;
- S << "Entities Displayed : ";
- IGESData_DumpEntities
- (S,dumper ,level,1, ent->NbDisplayedEntities(),ent->DisplayedEntity);
- S << Message_EndLine;
+ S << "\n"
+ << "Entities Displayed : ";
+ IGESData_DumpEntities(S,dumper ,level,1, ent->NbDisplayedEntities(),ent->DisplayedEntity);
+ S << std::endl;
}
Standard_Boolean IGESDraw_ToolViewsVisible::OwnCorrect
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a ViewsVisible. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnWhenDelete (const Handle(IGESDraw_ViewsVisible)& ent) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDraw_ViewsVisible)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDraw_ViewsVisible)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
//! Sets automatic unambiguous Correction on a ViewsVisible
//! (all displayed entities must refer to <ent> in directory part,
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
#include <TColStd_HArray1OfInteger.hxx>
void IGESDraw_ToolViewsVisibleWithAttr::OwnDump
(const Handle(IGESDraw_ViewsVisibleWithAttr)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
- S << "IGESDraw_ViewsVisibleWithAttr" << Message_EndLine;
-
- S << "View Entities : " << Message_EndLine
- << "Line Font Values : " << Message_EndLine
- << "Line Font Definitions : " << Message_EndLine
- << "Color Number/Definitions : " << Message_EndLine
- << "Line Weights : " << Message_EndLine;
- S << "Count of View Blocks : " << ent->NbViews() << Message_EndLine;
+ S << "IGESDraw_ViewsVisibleWithAttr\n"
+ << "View Entities :\n"
+ << "Line Font Values :\n"
+ << "Line Font Definitions :\n"
+ << "Color Number/Definitions :\n"
+ << "Line Weights :\n"
+ << "Count of View Blocks : " << ent->NbViews() << "\n";
if (level > 4) { // Level = 4 : nothing to Dump. Level = 5 & 6 : same Dump
Standard_Integer I;
Standard_Integer upper = ent->NbViews();
for (I = 1; I <= upper; I++) {
- S << "[" << I << "]: " << Message_EndLine;
- S << "View Entity : ";
+ S << "[" << I << "]:\n"
+ << "View Entity : ";
dumper.Dump (ent->ViewItem(I),S, tempSubLevel);
- S << Message_EndLine;
+ S << "\n";
if (ent->IsFontDefinition(I)) {
S << "Line Font Definition : ";
dumper.Dump (ent->FontDefinition(I),S, tempSubLevel);
- S << Message_EndLine;
+ S << "\n";
}
- else S << "Line Font Value : " << ent->LineFontValue(I) << Message_EndLine;
+ else S << "Line Font Value : " << ent->LineFontValue(I) << "\n";
if (ent->IsColorDefinition(I)) {
S << "Color Definition : ";
dumper.Dump (ent->ColorDefinition(I),S, tempSubLevel);
- S << Message_EndLine;
+ S << std::endl;
}
- else S << "Color Value : " << ent->ColorValue(I) << Message_EndLine;
+ else S << "Color Value : " << ent->ColorValue(I) << "\n";
- S << "Line Weight : " << ent->LineWeightItem(I) << Message_EndLine;
+ S << "Line Weight : " << ent->LineWeightItem(I) << "\n";
}
}
S << "Displayed Entities : ";
- IGESData_DumpEntities
- (S,dumper ,level,1, ent->NbDisplayedEntities(),ent->DisplayedEntity);
- S << Message_EndLine;
+ IGESData_DumpEntities(S,dumper ,level,1, ent->NbDisplayedEntities(),ent->DisplayedEntity);
+ S << std::endl;
}
Standard_Boolean IGESDraw_ToolViewsVisibleWithAttr::OwnCorrect
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a ViewsVisibleWithAttr. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnWhenDelete (const Handle(IGESDraw_ViewsVisibleWithAttr)& ent) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESDraw_ViewsVisibleWithAttr)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESDraw_ViewsVisibleWithAttr)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
//! Sets automatic unambiguous Correction on a ViewsVisibleWithAttr
//! (all displayed entities must refer to <ent> in directory part,
#include <IGESGeom_TransformationMatrix.hxx>
#include <IGESGeom_TrimmedSurface.hxx>
#include <Interface_Macros.hxx>
-#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(IGESGeom_SpecificModule,IGESData_SpecificModule)
void IGESGeom_SpecificModule::OwnDump
(const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent,
- const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S,
+ const IGESData_IGESDumper& dumper, Standard_OStream& S,
const Standard_Integer own) const
{
switch (CN) {
#include <Standard_Boolean.hxx>
class IGESData_IGESEntity;
class IGESData_IGESDumper;
-class Message_Messenger;
-
class IGESGeom_SpecificModule;
DEFINE_STANDARD_HANDLE(IGESGeom_SpecificModule, IGESData_SpecificModule)
Standard_EXPORT IGESGeom_SpecificModule();
//! Specific Dump (own parameters) for IGESGeom
- Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const Standard_OVERRIDE;
+ Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const Standard_OVERRIDE;
//! Performs non-ambiguous Correction on Entities which support
//! them (Boundary,ConicArc,Flash,OffsetCurve,TransformationMatrix)
void IGESGeom_ToolBSplineCurve::OwnDump(const Handle(IGESGeom_BSplineCurve)& ent,
const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S,
+ Standard_OStream& S,
const Standard_Integer level) const
{
Standard_Integer upind = ent->UpperIndex();
- S << "BSplineCurve from IGESGeom" << Message_EndLine;
- S << "Sum UpperIndex : " << upind;
- S << " Degree : " << ent->Degree() << " ";
- S << (ent->IsPlanar() ? "Planar" : "NonPlanar") << Message_EndLine;
- S << (ent->IsClosed() ? "Closed" : "Open") << " ";
- S << (ent->IsPeriodic() ? "Periodic" : "NonPeriodic") << " ";//#54 rln 24.12.98 CCI60005
- S << (ent->IsPolynomial(Standard_True) ? "Polynomial" : "Rational");
-
- S << Message_EndLine << "Knots : ";
- IGESData_DumpVals(S ,level,-ent->Degree(), upind+1,ent->Knot);
- S << Message_EndLine << "Weights : ";
- IGESData_DumpVals(S ,level,0, upind,ent->Weight);
- S << Message_EndLine << "Control Points (Poles) : ";
- IGESData_DumpListXYZL(S ,level,0, upind, ent->Pole, ent->Location());
- S << Message_EndLine << "Starting Parameter Value : " << ent->UMin();
- S << " Ending Parameter Value : " << ent->UMax() << Message_EndLine;
- S << "Unit Normal : ";
+ S << "BSplineCurve from IGESGeom\n"
+ << "Sum UpperIndex : " << upind
+ << " Degree : " << ent->Degree() << " "
+ << (ent->IsPlanar() ? "Planar" : "NonPlanar") << "\n"
+ << (ent->IsClosed() ? "Closed" : "Open") << " "
+ << (ent->IsPeriodic() ? "Periodic" : "NonPeriodic") << " " //#54 rln 24.12.98 CCI60005
+ << (ent->IsPolynomial(Standard_True) ? "Polynomial" : "Rational")
+ << "\nKnots : ";
+ IGESData_DumpVals(S,level,-ent->Degree(), upind+1,ent->Knot);
+ S << "\nWeights : ";
+ IGESData_DumpVals(S,level,0, upind,ent->Weight);
+ S << "\nControl Points (Poles) : ";
+ IGESData_DumpListXYZL(S,level,0, upind, ent->Pole, ent->Location());
+ S << "\nStarting Parameter Value : " << ent->UMin()
+ << " Ending Parameter Value : " << ent->UMax() << "\n"
+ << "Unit Normal : ";
IGESData_DumpXYZL(S,level, ent->Normal(), ent->Location());
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a BSplineCurve. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGeom_BSplineCurve)& entfrom, const Handle(IGESGeom_BSplineCurve)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGeom_BSplineCurve)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGeom_BSplineCurve)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESGeom_ToolBSplineSurface::OwnDump(const Handle(IGESGeom_BSplineSurface)& ent,
const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S,
+ Standard_OStream& S,
const Standard_Integer level) const
{
- S << "BSplineSurface from IGESGeom" << Message_EndLine << Message_EndLine;
+ S << "BSplineSurface from IGESGeom\n\n";
Standard_Integer indU = ent->UpperIndexU();
Standard_Integer indV = ent->UpperIndexV();
Standard_Integer degU = ent->DegreeU();
Standard_Integer degV = ent->DegreeV();
- S << "In U : Upper Knot Index : " << indU;
- S << " Degree : " << degU << " ";
- S << (ent->IsClosedU() ? "Closed" : "Open") << " ";
- S << (ent->IsPeriodicU() ? "Periodic" : "Non Periodic");
- S << Message_EndLine;
- S << "In V : Upper Knot Index : " << indV;
- S << " Degree : " << degV << " ";
- S << (ent->IsClosedV() ? "Closed" : "Open") << " ";
- S << (ent->IsPeriodicV() ? "Periodic" : "Non Periodic") << " ";
- S << (ent->IsPolynomial(Standard_True) ? "Polynomial" : "Rational") << Message_EndLine;
-
- S << "Starting Parameter for U direction : " << ent->UMin() << Message_EndLine;
- S << "Ending Parameter for U direction : " << ent->UMax() << Message_EndLine;
- S << "Starting Parameter for V direction : " << ent->VMin() << Message_EndLine;
- S << "Ending Parameter for V direction : " << ent->VMax() << Message_EndLine;
+ S << "In U : Upper Knot Index : " << indU
+ << " Degree : " << degU << " "
+ << (ent->IsClosedU() ? "Closed" : "Open") << " "
+ << (ent->IsPeriodicU() ? "Periodic" : "Non Periodic")
+ << "\n"
+ << "In V : Upper Knot Index : " << indV
+ << " Degree : " << degV << " "
+ << (ent->IsClosedV() ? "Closed" : "Open") << " "
+ << (ent->IsPeriodicV() ? "Periodic" : "Non Periodic") << " "
+ << (ent->IsPolynomial(Standard_True) ? "Polynomial" : "Rational") << "\n";
+
+ S << "Starting Parameter for U direction : " << ent->UMin() << "\n"
+ << "Ending Parameter for U direction : " << ent->UMax() << "\n"
+ << "Starting Parameter for V direction : " << ent->VMin() << "\n"
+ << "Ending Parameter for V direction : " << ent->VMax() << "\n";
S << " Knots in U : ";
- IGESData_DumpVals(S ,level,-degU, indU+1,ent->KnotU);
- S << Message_EndLine;
- S << " Knots in V : ";
- IGESData_DumpVals(S ,level,-degV, indV+1,ent->KnotV);
- S << Message_EndLine;
- S << "Weights : (Row -> IndexU, Col -> IndexV)";
- IGESData_DumpRectVals(S ,level,0, indU,0,indV,ent->Weight);
- S << Message_EndLine;
- S << "Control Points (Poles) : ";
+ IGESData_DumpVals(S,level,-degU, indU+1,ent->KnotU);
+ S << "\n"
+ << " Knots in V : ";
+ IGESData_DumpVals(S,level,-degV, indV+1,ent->KnotV);
+ S << "\n"
+ << "Weights : (Row -> IndexU, Col -> IndexV)";
+ IGESData_DumpRectVals(S,level,0, indU,0,indV,ent->Weight);
+ S << "\n"
+ << "Control Points (Poles) : ";
//IGESData_DumpRectXYZL(S,level,1, ent->NbPoles(),ent->Pole, ent->Location());
- if (level < 5) { S << " [ content : ask level > 4 ]" << Message_EndLine; return; }
+ if (level < 5) { S << " [ content : ask level > 4 ]" << std::endl; return; }
gp_GTrsf loca = ent->Location();
for (Standard_Integer JP = 0; JP <= indV; JP ++)
for (Standard_Integer IP = 0; IP <= indU; IP ++) {
- if (IP == 0) S << Message_EndLine;
+ if (IP == 0) S << "\n";
S <<" - ["<<IP<<","<<JP<<"]: ";
IGESData_DumpXYZL(S,level,ent->Pole(IP,JP),loca);
}
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a BSplineSurface. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGeom_BSplineSurface)& entfrom, const Handle(IGESGeom_BSplineSurface)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGeom_BSplineSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGeom_BSplineSurface)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
#include <Message_Msg.hxx>
#include <Standard_DomainError.hxx>
#include <TColStd_HArray1OfInteger.hxx>
void IGESGeom_ToolBoundary::OwnDump(const Handle(IGESGeom_Boundary)& ent,
const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S,
+ Standard_OStream& S,
const Standard_Integer level) const
{
Standard_Integer i, num, sublevel = (level > 4) ? 1 : 0;
- S << "IGESGeom_Boundary" << Message_EndLine;
- S << "Bounded Surface Representation Type : " << ent->BoundaryType() << Message_EndLine;
- S << "Trimming Curves Representation : " << ent->PreferenceType() << Message_EndLine;
- S << "Bounded Surface : ";
+ S << "IGESGeom_Boundary\n"
+ << "Bounded Surface Representation Type : " << ent->BoundaryType() << "\n"
+ << "Trimming Curves Representation : " << ent->PreferenceType() << "\n"
+ << "Bounded Surface : ";
dumper.Dump(ent->Surface(),S, sublevel);
- S << Message_EndLine;
- S << "Model Space Curves : " << Message_EndLine;
- S << "Orientation Flags : " << Message_EndLine;
- S << "Parameter Curves Set : ";
- IGESData_DumpEntities
- (S,dumper,-level,1,ent->NbModelSpaceCurves(),ent->ModelSpaceCurve);
- S << Message_EndLine;
+ S << "\n"
+ << "Model Space Curves :\n"
+ << "Orientation Flags :\n"
+ << "Parameter Curves Set : ";
+ IGESData_DumpEntities(S,dumper,-level,1,ent->NbModelSpaceCurves(),ent->ModelSpaceCurve);
+ S << "\n";
if (level > 4)
for ( num = ent->NbModelSpaceCurves(), i = 1; i <= num; i++ )
{
- S << "[" << i << "]: ";
- S << "Model Space Curve : ";
+ S << "[" << i << "]: "
+ << "Model Space Curve : ";
dumper.Dump (ent->ModelSpaceCurve(i),S, 1);
- S << " Orientation Flags : " << ent->Sense(i) << Message_EndLine;
- S << " Parameter Curves : ";
+ S << " Orientation Flags : " << ent->Sense(i) << "\n"
+ << " Parameter Curves : ";
Handle(IGESData_HArray1OfIGESEntity) curves = ent->ParameterCurves(i);
if (!curves.IsNull()) {
IGESData_DumpEntities(S,dumper, level,1,curves->Length(),curves->Value);
}
- else S << " List Empty";
- S << Message_EndLine;
+ else
+ {
+ S << " List Empty";
+ }
+ S << "\n";
}
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a Boundary. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGeom_Boundary)& entfrom, const Handle(IGESGeom_Boundary)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGeom_Boundary)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGeom_Boundary)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESGeom_ToolBoundedSurface::OwnDump(const Handle(IGESGeom_BoundedSurface)& ent,
const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S,
+ Standard_OStream& S,
const Standard_Integer level) const
{
Standard_Integer sublevel = (level > 4) ? 1 : 0;
- S << "IGESGeom_BoundedSurface" << Message_EndLine;
- S << "Representation Type : " << ent->RepresentationType() << Message_EndLine;
- S << "Surface to be Bounded : ";
+ S << "IGESGeom_BoundedSurface\n"
+ << "Representation Type : " << ent->RepresentationType() << "\n"
+ << "Surface to be Bounded : ";
dumper.Dump(ent->Surface(),S, sublevel);
- S << Message_EndLine;
- S << "Boundary Entities : ";
+ S << "\n"
+ << "Boundary Entities : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbBoundaries(),ent->Boundary);
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a BoundedSurface. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGeom_BoundedSurface)& entfrom, const Handle(IGESGeom_BoundedSurface)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGeom_BoundedSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGeom_BoundedSurface)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
#include <Interface_Macros.hxx>
#include <Interface_MSG.hxx>
#include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
#include <Message_Msg.hxx>
#include <Standard_DomainError.hxx>
void IGESGeom_ToolCircularArc::OwnDump
(const Handle(IGESGeom_CircularArc)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "CircularArc from IGESGeom" << Message_EndLine;
- S << "Z-Plane Displacement : " << ent->ZPlane() << Message_EndLine;
- S << "Center : ";
+ S << "CircularArc from IGESGeom]\n"
+ << "Z-Plane Displacement : " << ent->ZPlane() << "\n"
+ << "Center : ";
IGESData_DumpXYLZ(S,level, ent->Center(), ent->Location(), ent->ZPlane());
- S << Message_EndLine;
- S << "Start Point : ";
+ S << "\n"
+ << "Start Point : ";
IGESData_DumpXYLZ(S,level, ent->StartPoint(), ent->Location(),ent->ZPlane());
- S << Message_EndLine;
- S << "End Point : ";
+ S << "\n"
+ << "End Point : ";
IGESData_DumpXYLZ(S,level, ent->EndPoint(), ent->Location(), ent->ZPlane());
- S << Message_EndLine;
+ S << "\n";
if (level <= 5) return;
- S<< " Normal Axis : "; IGESData_DumpXYZL(S,level,ent->Axis(),ent->VectorLocation());
- S << Message_EndLine;
+ S << " Normal Axis : "; IGESData_DumpXYZL(S,level,ent->Axis(),ent->VectorLocation());
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a CircularArc. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGeom_CircularArc)& entfrom, const Handle(IGESGeom_CircularArc)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGeom_CircularArc)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGeom_CircularArc)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESGeom_ToolCompositeCurve::OwnDump
(const Handle(IGESGeom_CompositeCurve)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESGeom_CompositeCurve" << Message_EndLine;
- S << "Curve Entities : " << Message_EndLine;
+ S << "IGESGeom_CompositeCurve\n"
+ << "Curve Entities :\n";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbCurves(),ent->Curve);
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a CompositeCurve. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGeom_CompositeCurve)& entfrom, const Handle(IGESGeom_CompositeCurve)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGeom_CompositeCurve)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGeom_CompositeCurve)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESGeom_ToolConicArc::OwnDump(const Handle(IGESGeom_ConicArc)& ent,
const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S,
+ Standard_OStream& S,
const Standard_Integer level) const
{
Standard_Real A,B,C,D,E,F;
ent->Equation(A,B,C,D,E,F);
- S << "IGESGeom_ConicArc" << Message_EndLine;
+ S << "IGESGeom_ConicArc\n";
Standard_Integer cf = ent->FormNumber();
if (cf == 0) cf = ent->ComputedFormNumber();
- if (cf == 1) S << " -- Ellipse --" << Message_EndLine;
- else if (cf == 2) S << " -- Hyperbola --" << Message_EndLine;
- else if (cf == 3) S << " -- Parabola --" << Message_EndLine;
- else S << " -- (Undetermined type of Conic) --" << Message_EndLine;
- S << "Conic Coefficient A : " << A << Message_EndLine;
- S << "Conic Coefficient B : " << B << Message_EndLine;
- S << "Conic Coefficient C : " << C << Message_EndLine;
- S << "Conic Coefficient D : " << D << Message_EndLine;
- S << "Conic Coefficient E : " << E << Message_EndLine;
- S << "Conic Coefficient F : " << F << Message_EndLine;
- S << "Z-Plane shift : " << ent->ZPlane() << Message_EndLine;
- S << "Start Point : ";
+ if (cf == 1) S << " -- Ellipse --\n";
+ else if (cf == 2) S << " -- Hyperbola --\n";
+ else if (cf == 3) S << " -- Parabola --\n";
+ else S << " -- (Undetermined type of Conic) --\n";
+
+ S << "Conic Coefficient A : " << A << "\n"
+ << "Conic Coefficient B : " << B << "\n"
+ << "Conic Coefficient C : " << C << "\n"
+ << "Conic Coefficient D : " << D << "\n"
+ << "Conic Coefficient E : " << E << "\n"
+ << "Conic Coefficient F : " << F << "\n"
+ << "Z-Plane shift : " << ent->ZPlane() << "\n"
+ << "Start Point : ";
IGESData_DumpXYLZ(S,level, ent->StartPoint(), ent->Location(),ent->ZPlane());
- S << Message_EndLine;
- S << "End Point : ";
+ S << "\n"
+ << "End Point : ";
IGESData_DumpXYLZ(S,level, ent->EndPoint(), ent->Location(), ent->ZPlane());
- S << Message_EndLine;
- if (level <= 4) S<<" -- Computed Definition : ask level > 4" << Message_EndLine;
+ S << "\n";
+ if (level <= 4) S <<" -- Computed Definition : ask level > 4" << std::endl;
else {
gp_Pnt Cen; gp_Dir Ax; Standard_Real Rmin,Rmax;
ent->Definition (Cen,Ax,Rmin,Rmax);
- S << " -- Computed Definition (and Transformed if level > 5)" << Message_EndLine;
+ S << " -- Computed Definition (and Transformed if level > 5)\n";
if (cf != 3) {
- S<<" Center : "; IGESData_DumpXYZL(S,level,Cen,ent->Location());
- S<<Message_EndLine;
+ S <<" Center : "; IGESData_DumpXYZL(S,level,Cen,ent->Location());
+ S <<"\n";
}
S << " Main Axis : "; IGESData_DumpXYZL(S,level,Ax,ent->VectorLocation());
- S<<Message_EndLine;
- if (cf == 3) S << " Focal : " << Rmin << Message_EndLine;
- else if (Rmin == Rmax) S << " Radius (Major = Minor) : " << Rmin << Message_EndLine;
- else S << " Major Radius : " << Rmax << " Minor Radius : " << Rmin <<Message_EndLine;
- S<< " Normal Axis : "; IGESData_DumpXYZL(S,level,ent->Axis(),ent->VectorLocation());
- S << Message_EndLine;
+ S <<"\n";
+ if (cf == 3) S << " Focal : " << Rmin << "\n";
+ else if (Rmin == Rmax) S << " Radius (Major = Minor) : " << Rmin << "\n";
+ else S << " Major Radius : " << Rmax << " Minor Radius : " << Rmin <<"\n";
+
+ S << " Normal Axis : "; IGESData_DumpXYZL(S,level,ent->Axis(),ent->VectorLocation());
+ S << std::endl;
}
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a ConicArc. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGeom_ConicArc)& entfrom, const Handle(IGESGeom_ConicArc)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGeom_ConicArc)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGeom_ConicArc)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESGeom_ToolCopiousData::OwnDump(const Handle(IGESGeom_CopiousData)& ent,
const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S,
+ Standard_OStream& S,
const Standard_Integer level) const
{
Standard_Integer nbPnts = ent->NbPoints();
gp_GTrsf locv = ent->VectorLocation();
Standard_Boolean yatr = (level > 5 && ent->HasTransf());
- S << "IGESGeom_CopiousData" << Message_EndLine;
+ S << "IGESGeom_CopiousData\n";
if (ent->IsPointSet()) S << "Point Set ";
else if (ent->IsPolyline()) S << "Polyline ";
else if (ent->IsClosedPath2D()) S << "Closed Path 2D ";
- S << "DataType " << ent->DataType() << " ";
- S << "Number of T-uples = " << nbPnts << " ";
+ S << "DataType " << ent->DataType() << " "
+ << "Number of T-uples = " << nbPnts << " ";
if (dtype == 1) {
- S << "(Points 2D) ";
- S << "ZPlane = " << ent->ZPlane() << Message_EndLine;
+ S << "(Points 2D) "
+ << "ZPlane = " << ent->ZPlane() << "\n";
}
else if (dtype == 2)
- S << "(Points 3D)" << Message_EndLine;
+ S << "(Points 3D)\n";
else if (dtype == 3)
- S << "(Points 3D + Vectors 3D)" << Message_EndLine;
+ S << "(Points 3D + Vectors 3D)\n";
if (level > 4) {
for (i = 1; i <= nbPnts; i ++) {
S << " Transformed ("<< T.X() << "," << T.Y() << "," << T.Z() << ")";
}
}
- S << Message_EndLine;
+ S << std::endl;
}
}
else S << " [ for content, ask level > 4 ]";
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a CopiousData. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGeom_CopiousData)& entfrom, const Handle(IGESGeom_CopiousData)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGeom_CopiousData)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGeom_CopiousData)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESGeom_ToolCurveOnSurface::OwnDump(const Handle(IGESGeom_CurveOnSurface)& ent,
const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S,
+ Standard_OStream& S,
const Standard_Integer level) const
{
- S << "IGESGeom_CurveOnSurface" << Message_EndLine << Message_EndLine;
+ S << "IGESGeom_CurveOnSurface\n\n";
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
Standard_Integer crem = ent->CreationMode();
S << "Creation Mode : " << crem << " i.e. ";
- if (crem == 0) S << " <Unspecified>" << Message_EndLine;
- else if (crem == 1) S << " Projection of a Curve on a Surface" << Message_EndLine;
- else if (crem == 2) S << " Intersection of two Surfaces" << Message_EndLine;
- else if (crem == 3) S << " Isoparametric Curve (either U or V)" << Message_EndLine;
- else S << " <Incorrect Value>" << Message_EndLine;
+ if (crem == 0) S << " <Unspecified>\n";
+ else if (crem == 1) S << " Projection of a Curve on a Surface\n";
+ else if (crem == 2) S << " Intersection of two Surfaces\n";
+ else if (crem == 3) S << " Isoparametric Curve (either U or V)\n";
+ else S << " <Incorrect Value>\n";
S << "The Surface on which the curve lies : ";
dumper.Dump(ent->Surface(),S, sublevel);
- S << Message_EndLine;
- S << "The curve B (in the parametric space (u, v)) : ";
+ S << "\n"
+ "The curve B (in the parametric space (u, v)) : ";
dumper.Dump(ent->CurveUV(),S, sublevel);
- S << Message_EndLine;
- S << "The curve C (in the 3D Space) : ";
+ S << "\n"
+ "The curve C (in the 3D Space) : ";
dumper.Dump(ent->Curve3D(),S, sublevel);
- S << Message_EndLine;
+ S << "\n";
Standard_Integer pref = ent->PreferenceMode();
S << "Preferred representation mode : " << pref << " i.e. ";
- if (pref == 0) S << " <Unspecified>" << Message_EndLine;
- else if (pref == 1) S << " Curve B on Surface" << Message_EndLine;
- else if (pref == 2) S << " Curve C in 3D Space" << Message_EndLine;
- else if (pref == 3) S << " Curves B & C equally preferred" << Message_EndLine;
- else S << " <Incorrect Value>" << Message_EndLine;
+ if (pref == 0) S << " <Unspecified>\n";
+ else if (pref == 1) S << " Curve B on Surface\n";
+ else if (pref == 2) S << " Curve C in 3D Space\n";
+ else if (pref == 3) S << " Curves B & C equally preferred\n";
+ else S << " <Incorrect Value>\n";
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a CurveOnSurface. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGeom_CurveOnSurface)& entfrom, const Handle(IGESGeom_CurveOnSurface)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGeom_CurveOnSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGeom_CurveOnSurface)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
IGESGeom_ToolDirection::IGESGeom_ToolDirection () { }
void IGESGeom_ToolDirection::OwnDump
(const Handle(IGESGeom_Direction)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESGeom_Direction" << Message_EndLine << Message_EndLine;
-
- S << "Value : ";
+ S << "IGESGeom_Direction\n\n"
+ << "Value : ";
IGESData_DumpXYZL(S,level, ent->Value(), ent->VectorLocation());
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a Direction. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGeom_Direction)& entfrom, const Handle(IGESGeom_Direction)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGeom_Direction)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGeom_Direction)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESGeom_ToolFlash::OwnDump
(const Handle(IGESGeom_Flash)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
Standard_Integer fn = ent->FormNumber();
- S << "IGESGeom_Flash" << Message_EndLine;
+ S << "IGESGeom_Flash\n";
switch (fn) {
- case 0 : S << " -- Form defined by reference entity --" << Message_EndLine; break;
+ case 0 : S << " -- Form defined by reference entity --\n"; break;
case 1 : S << " -- Circular -- "; break;
case 2 : S << " -- Rectangle -- "; break;
case 3 : S << " -- Donut -- "; break;
S << "Flash reference point : ";
IGESData_DumpXYL(S,level, ent->ReferencePoint(), ent->Location());
- S << " First sizing parameter : " << ent->Dimension1() << " ";
- S << " Second sizing parameter : " << ent->Dimension2() << Message_EndLine;
- S << " Rotation about reference entity : " << ent->Rotation() << Message_EndLine;
- S << "Reference Entity : ";
+ S << " First sizing parameter : " << ent->Dimension1() << " "
+ << " Second sizing parameter : " << ent->Dimension2() << "\n"
+ << " Rotation about reference entity : " << ent->Rotation() << "\n"
+ << "Reference Entity : ";
dumper.Dump(ent->ReferenceEntity(),S, sublevel);
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a Flash. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGeom_Flash)& entfrom, const Handle(IGESGeom_Flash)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGeom_Flash)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGeom_Flash)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESGeom_ToolLine::OwnDump
(const Handle(IGESGeom_Line)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer infin = ent->Infinite();
switch (infin) {
- case 1 : S << "Semi-Infinite Line"<<Message_EndLine; break;
- case 2 : S << "Infinite Line"<<Message_EndLine; break;
- default : S << "Bounded Line"<<Message_EndLine; break;
+ case 1 : S << "Semi-Infinite Line\n"; break;
+ case 2 : S << "Infinite Line\n"; break;
+ default : S << "Bounded Line\n"; break;
}
- S << "Line from IGESGeom" << Message_EndLine;
- S << "Starting Point : ";
+ S << "Line from IGESGeom\n"
+ << "Starting Point : ";
IGESData_DumpXYZL(S,level, ent->StartPoint(), ent->Location());
- S << Message_EndLine;
- S << "End Point : ";
+ S << "\n"
+ "End Point : ";
IGESData_DumpXYZL(S,level, ent->EndPoint(), ent->Location());
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a Line. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGeom_Line)& entfrom, const Handle(IGESGeom_Line)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGeom_Line)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGeom_Line)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESGeom_ToolOffsetCurve::OwnDump(const Handle(IGESGeom_OffsetCurve)& ent,
const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S,
+ Standard_OStream& S,
const Standard_Integer level) const
{
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
- S << "IGESGeom_OffsetCurve" << Message_EndLine;
-
- S << "The curve to be offset : " << Message_EndLine;
+ S << "IGESGeom_OffsetCurve\n"
+ << "The curve to be offset :\n";
dumper.Dump(ent->BaseCurve(),S, sublevel);
- S << "Offset Distance Flag : " << ent->OffsetType() << Message_EndLine;
- S << "Curve entity whose coordinate defines the offset : ";
+ S << "Offset Distance Flag : " << ent->OffsetType() << "\n"
+ << "Curve entity whose coordinate defines the offset : ";
dumper.Dump(ent->Function(),S, sublevel);
- S << Message_EndLine;
- S << "In which Coordinate to use : " << ent->FunctionParameter() << Message_EndLine;
- S << "Tapered Offset Type Flag : " << ent->TaperedOffsetType() << Message_EndLine;
- S << "First Offset Distance : " << ent->FirstOffsetDistance() << " ";
- S << "Arc Length : " << ent->ArcLength1() << Message_EndLine;
- S << "Second Offset Distance : " << ent->SecondOffsetDistance() << " ";
- S << "Arc Length : " << ent->ArcLength2() << Message_EndLine;
- S << "Normal Vector : ";
- IGESData_DumpXYZL(S,level, ent->NormalVector(), ent->VectorLocation()); S<<Message_EndLine;
- S << "Offset curve Parameters. Starting : " << ent->StartParameter() << " ";
- S << "Ending : " << ent->EndParameter() << Message_EndLine;
+ S << "\n"
+ << "In which Coordinate to use : " << ent->FunctionParameter() << "\n"
+ << "Tapered Offset Type Flag : " << ent->TaperedOffsetType() << "\n"
+ << "First Offset Distance : " << ent->FirstOffsetDistance() << " "
+ << "Arc Length : " << ent->ArcLength1() << "\n"
+ << "Second Offset Distance : " << ent->SecondOffsetDistance() << " "
+ << "Arc Length : " << ent->ArcLength2() << "\n"
+ << "Normal Vector : ";
+ IGESData_DumpXYZL(S,level, ent->NormalVector(), ent->VectorLocation()); S <<"\n";
+ S << "Offset curve Parameters. Starting : " << ent->StartParameter() << " "
+ << "Ending : " << ent->EndParameter() << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a OffsetCurve. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGeom_OffsetCurve)& entfrom, const Handle(IGESGeom_OffsetCurve)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGeom_OffsetCurve)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGeom_OffsetCurve)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESGeom_ToolOffsetSurface::OwnDump
(const Handle(IGESGeom_OffsetSurface)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
- S << "IGESGeom_OffsetSurface" << Message_EndLine;
-
- S << "Offset Indicator : ";
+ S << "IGESGeom_OffsetSurface\n"
+ << "Offset Indicator : ";
IGESData_DumpXYZL(S,level, ent->OffsetIndicator(), ent->VectorLocation());
- S << Message_EndLine;
- S << "Offset Distance : " << ent->Distance() << " ";
- S << "Surface to be offset : ";
+ S << "\n"
+ << "Offset Distance : " << ent->Distance() << " "
+ << "Surface to be offset : ";
dumper.Dump(ent->Surface(),S, sublevel);
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a OffsetSurface. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGeom_OffsetSurface)& entfrom, const Handle(IGESGeom_OffsetSurface)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGeom_OffsetSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGeom_OffsetSurface)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESGeom_ToolPlane::OwnDump(const Handle(IGESGeom_Plane)& ent,
const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S,
+ Standard_OStream& S,
const Standard_Integer level) const
{
- S << "IGESGeom_Plane" << Message_EndLine;
+ S << "IGESGeom_Plane\n";
Standard_Real A,B,C,D;
ent->Equation(A,B,C,D);
- S << "Plane Coefficient A : " << A << Message_EndLine;
- S << "Plane Coefficient B : " << B << Message_EndLine;
- S << "Plane Coefficient C : " << C << Message_EndLine;
- S << "Plane Coefficient D : " << D << Message_EndLine;
- S << "The Bounding Curve : " ;
+ S << "Plane Coefficient A : " << A << "\n"
+ << "Plane Coefficient B : " << B << "\n"
+ << "Plane Coefficient C : " << C << "\n"
+ << "Plane Coefficient D : " << D << "\n"
+ << "The Bounding Curve : " ;
dumper.Dump(ent->BoundingCurve(),S, (level <= 4) ? 0 : 1);
- S << Message_EndLine;
- S << "Display Symbol Location : ";
+ S << "\n"
+ << "Display Symbol Location : ";
IGESData_DumpXYZL(S,level, ent->SymbolAttach(), ent->Location());
- S << " Size : " << ent->SymbolSize() << Message_EndLine;
+ S << " Size : " << ent->SymbolSize() << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a Plane. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGeom_Plane)& entfrom, const Handle(IGESGeom_Plane)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGeom_Plane)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGeom_Plane)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESGeom_ToolPoint::OwnDump
(const Handle(IGESGeom_Point)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESGeom_Point" << Message_EndLine;
-
- S << " Value : ";
+ S << "IGESGeom_Point\n"
+ << " Value : ";
IGESData_DumpXYZL(S,level, ent->Value(), ent->Location());
- S << Message_EndLine;
- S << " Display Symbol : ";
+ S << "\n"
+ << " Display Symbol : ";
dumper.Dump(ent->DisplaySymbol(),S, (level <= 4) ? 0 : 1);
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a Point. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGeom_Point)& entfrom, const Handle(IGESGeom_Point)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGeom_Point)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGeom_Point)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESGeom_ToolRuledSurface::OwnDump
(const Handle(IGESGeom_RuledSurface)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
- S << "IGESGeom_RuledSurface" << Message_EndLine;
-
- S << "First Curve : ";
+ S << "IGESGeom_RuledSurface\n"
+ << "First Curve : ";
dumper.Dump(ent->FirstCurve(),S, tempSubLevel);
- S << Message_EndLine;
- S << "Second Curve : ";
+ S << "\n"
+ << "Second Curve : ";
dumper.Dump(ent->SecondCurve(),S, tempSubLevel);
- S << Message_EndLine;
- S << "Direction Flag : " << ent->DirectionFlag() << " i.e.";
- if (ent->DirectionFlag() == 0) S<< "Join First to First, Last to Last"<<Message_EndLine;
- else S<< "Join First to Last, Last to First"<<Message_EndLine;
- if (ent->IsDevelopable()) S << " .. Is Developable" << Message_EndLine;
- else S << " .. Is possibly not developable .." << Message_EndLine;
+ S << "\n"
+ << "Direction Flag : " << ent->DirectionFlag() << " i.e.";
+ if (ent->DirectionFlag() == 0) S << "Join First to First, Last to Last\n";
+ else S << "Join First to Last, Last to First\n";
+ if (ent->IsDevelopable()) S << " .. Is Developable\n";
+ else S << " .. Is possibly not developable ..\n";
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a RuledSurface. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGeom_RuledSurface)& entfrom, const Handle(IGESGeom_RuledSurface)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGeom_RuledSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGeom_RuledSurface)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
#include <Message_Msg.hxx>
#include <Standard_DomainError.hxx>
#include <TColStd_HArray1OfReal.hxx>
void IGESGeom_ToolSplineCurve::OwnDump
(const Handle(IGESGeom_SplineCurve)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESGeom_SplineCurve" << Message_EndLine;
+ S << "IGESGeom_SplineCurve\n";
Standard_Integer nbSegments = ent->NbSegments();
S << "Spline Type : " << ent->SplineType() << " ";
case 6 : S << "(B-Spline)"; break;
default : S << "(Invalid value)"; break;
}
- S << Message_EndLine;
- S << "Degree Of Continuity : " << ent->Degree() << Message_EndLine;
- S << "Number Of Dimensions : " << ent->NbDimensions() << Message_EndLine;
- S << "Number Of Segments : " << ent->NbSegments() << Message_EndLine;
- S << "Segment Break Points : ";
- IGESData_DumpVals(S ,level,1, nbSegments+1,ent->BreakPoint);
+ S << "\n"
+ << "Degree Of Continuity : " << ent->Degree() << "\n"
+ << "Number Of Dimensions : " << ent->NbDimensions() << "\n"
+ << "Number Of Segments : " << ent->NbSegments() << "\n"
+ << "Segment Break Points : ";
+ IGESData_DumpVals(S,level,1, nbSegments+1,ent->BreakPoint);
if (level <= 4) {
- S << " [ also ask level > 4 for X-Y-Z Polynomials ]" << Message_EndLine;
+ S << " [ also ask level > 4 for X-Y-Z Polynomials ]" << std::endl;
return;
}
- S << " -- Polynomial Values --" << Message_EndLine;
+ S << " -- Polynomial Values --\n";
Standard_Real AX,BX,CX,DX, AY,BY,CY,DY, AZ,BZ,CZ,DZ;
for (Standard_Integer I = 1; I <= nbSegments; I++) {
//no need to declare (hides the same name in an outer scope)
ent->XCoordPolynomial(I,AX,BX,CX,DX);
ent->YCoordPolynomial(I,AY,BY,CY,DY);
ent->ZCoordPolynomial(I,AZ,BZ,CZ,DZ);
- S << "Segment "<<I<<" : X Y Z"<<Message_EndLine;
- S << " A ... "<<AX<<" "<<AY<<" "<<AZ<<Message_EndLine;
- S << " B ... "<<BX<<" "<<BY<<" "<<BZ<<Message_EndLine;
- S << " C ... "<<CX<<" "<<CY<<" "<<CZ<<Message_EndLine;
- S << " D ... "<<DX<<" "<<DY<<" "<<DZ<<Message_EndLine;
+ S << "Segment "<<I<<" : X Y Z"<<"\n"
+ << " A ... "<<AX<<" "<<AY<<" "<<AZ<<"\n"
+ << " B ... "<<BX<<" "<<BY<<" "<<BZ<<"\n"
+ << " C ... "<<CX<<" "<<CY<<" "<<CZ<<"\n"
+ << " D ... "<<DX<<" "<<DY<<" "<<DZ<<"\n";
}
ent->XValues(AX,BX,CX,DX);
ent->YValues(AY,BY,CY,DY);
ent->ZValues(AZ,BZ,CZ,DZ);
- S << "Terminate Point : X Y Z"<<Message_EndLine;
- S << " Value "<<AX<<" "<<AY<<" "<<AZ<<Message_EndLine;
- S << " 1st Derivative "<<BX<<" "<<BY<<" "<<BZ<<Message_EndLine;
- S << " 2nd Der./2! "<<CX<<" "<<CY<<" "<<CZ<<Message_EndLine;
- S << " 3rd Der./3! "<<DX<<" "<<DY<<" "<<DZ<<Message_EndLine;
+ S << "Terminate Point : X Y Z"<<"\n"
+ << " Value "<<AX<<" "<<AY<<" "<<AZ<<"\n"
+ << " 1st Derivative "<<BX<<" "<<BY<<" "<<BZ<<"\n"
+ << " 2nd Der./2! "<<CX<<" "<<CY<<" "<<CZ<<"\n"
+ << " 3rd Der./3! "<<DX<<" "<<DY<<" "<<DZ<<std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a SplineCurve. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGeom_SplineCurve)& entfrom, const Handle(IGESGeom_SplineCurve)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGeom_SplineCurve)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGeom_SplineCurve)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESGeom_ToolSplineSurface::OwnDump
(const Handle(IGESGeom_SplineSurface)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESGeom_SplineSurface" << Message_EndLine;
+ S << "IGESGeom_SplineSurface\n";
Standard_Integer I, J;
Standard_Integer nbUSegs = ent->NbUSegments();
case 6 : S << " (B-Spline)"; break;
default : S << " (Invalid value)"; break;
}
- S << Message_EndLine;
- S << "The Patch Type : " << ent->PatchType();
+ S << "\n"
+ << "The Patch Type : " << ent->PatchType();
if (ent->PatchType() == 1) S << " (Cartesian Product)";
else S << " (Unspecified)";
- S << Message_EndLine;
- S << "Number Of Segments. In U : "
- << nbUSegs << " In V : " << nbVSegs << Message_EndLine;
- S << "The U Break Points : ";
- IGESData_DumpVals(S ,level,1, nbUSegs+1,ent->UBreakPoint);
- S <<Message_EndLine<< "The V Break Points : ";
- IGESData_DumpVals(S ,level,1, nbVSegs+1,ent->VBreakPoint);
-
- S <<Message_EndLine<< " X-Y-Z Polynomials Of Segments : ";
- S << Message_EndLine;
+ S << "\n"
+ << "Number Of Segments. In U : "
+ << nbUSegs << " In V : " << nbVSegs << "\n"
+ << "The U Break Points : ";
+ IGESData_DumpVals(S,level,1, nbUSegs+1,ent->UBreakPoint);
+ S << "\nThe V Break Points : ";
+ IGESData_DumpVals(S,level,1, nbVSegs+1,ent->VBreakPoint);
+
+ S << "\n X-Y-Z Polynomials Of Segments :\n";
if (level > 4)
{
for (I = 1; I <= nbUSegs; I++)
for (J = 1; J <= nbVSegs; J++)
{
- S << "[" << I <<"," << J << "]: " << Message_EndLine;
- S << "X Polynomial : ";
+ S << "[" << I <<"," << J << "]:\n"
+ << "X Polynomial : ";
temp = ent->XPolynomial(I,J);
IGESData_DumpVals(S,level,1, temp->Length(),temp->Value);
- S << Message_EndLine;
- S << "Y Polynomial : ";
+ S << "\n"
+ << "Y Polynomial : ";
temp = ent->YPolynomial(I,J);
IGESData_DumpVals(S,level,1, temp->Length(),temp->Value);
- S << Message_EndLine;
- S << "Z Polynomial : ";
+ S << "\n"
+ << "Z Polynomial : ";
temp = ent->ZPolynomial(I,J);
IGESData_DumpVals(S,level,1, temp->Length(),temp->Value);
- S << Message_EndLine;
+ S << "\n";
}
}
- else S << Message_EndLine;
+ else S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a SplineSurface. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGeom_SplineSurface)& entfrom, const Handle(IGESGeom_SplineSurface)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGeom_SplineSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGeom_SplineSurface)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
#include <Message_Msg.hxx>
#include <Standard_DomainError.hxx>
void IGESGeom_ToolSurfaceOfRevolution::OwnDump
(const Handle(IGESGeom_SurfaceOfRevolution)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
-
- S << "IGESGeom_SurfaceOfRevolution" << Message_EndLine << Message_EndLine;
+ S << "IGESGeom_SurfaceOfRevolution\n\n";
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
S << "Axis Of Revolution : ";
dumper.Dump(ent->AxisOfRevolution(),S, sublevel);
- S << Message_EndLine;
- S << "Generatrix : ";
+ S << "\n"
+ << "Generatrix : ";
dumper.Dump(ent->Generatrix(),S, sublevel);
- S << Message_EndLine;
- S << "Start Angle : " << ent->StartAngle() << " ";
- S << "End Angle : " << ent->EndAngle() << Message_EndLine;
+ S << "\n"
+ << "Start Angle : " << ent->StartAngle() << " "
+ << "End Angle : " << ent->EndAngle() << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a SurfaceOfRevolution. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGeom_SurfaceOfRevolution)& entfrom, const Handle(IGESGeom_SurfaceOfRevolution)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGeom_SurfaceOfRevolution)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGeom_SurfaceOfRevolution)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
#include <Message_Msg.hxx>
#include <Standard_DomainError.hxx>
void IGESGeom_ToolTabulatedCylinder::OwnDump
(const Handle(IGESGeom_TabulatedCylinder)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
- S << "IGESGeom_TabulatedCylinder" << Message_EndLine;
-
- S << "Directrix : ";
+ S << "IGESGeom_TabulatedCylinder\n"
+ << "Directrix : ";
dumper.Dump(ent->Directrix(),S, sublevel);
- S << Message_EndLine;
- S << "Terminate Point : ";
+ S << "\n"
+ << "Terminate Point : ";
IGESData_DumpXYZL(S,level, ent->EndPoint(), ent->Location());
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a TabulatedCylinder. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGeom_TabulatedCylinder)& entfrom, const Handle(IGESGeom_TabulatedCylinder)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGeom_TabulatedCylinder)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGeom_TabulatedCylinder)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
#include <Message_Msg.hxx>
#include <Standard_DomainError.hxx>
#include <TColStd_HArray2OfReal.hxx>
void IGESGeom_ToolTransformationMatrix::OwnDump
(const Handle(IGESGeom_TransformationMatrix)& ent, const IGESData_IGESDumper& /*dumper*/,
- const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
+ Standard_OStream& S, const Standard_Integer /*level*/) const
{
- S << "IGESGeom_TransformationMatrix" << Message_EndLine;
-
- S << "| R11, R12, R13, T1 | "
+ S << "IGESGeom_TransformationMatrix\n"
+ << "| R11, R12, R13, T1 | "
<< ent->Data(1, 1) << ", " << ent->Data(1, 2) << ", "
- << ent->Data(1, 3) << ", " << ent->Data(1, 4) << Message_EndLine;
-
- S << "| R21, R22, R23, T2 | "
+ << ent->Data(1, 3) << ", " << ent->Data(1, 4) << "\n"
+ << "| R21, R22, R23, T2 | "
<< ent->Data(2, 1) << ", " << ent->Data(2, 2) << ", "
- << ent->Data(2, 3) << ", " << ent->Data(2, 4) << Message_EndLine;
-
- S << "| R31, R32, R33, T3 | "
+ << ent->Data(2, 3) << ", " << ent->Data(2, 4) << "\n"
+ << "| R31, R32, R33, T3 | "
<< ent->Data(3, 1) << ", " << ent->Data(3, 2) << ", "
- << ent->Data(3, 3) << ", " << ent->Data(3, 4) << Message_EndLine;
+ << ent->Data(3, 3) << ", " << ent->Data(3, 4) << "\n";
switch (ent->FormNumber()) {
- case 0 : S << "-- Direct Orthogonal Matrix" << Message_EndLine; break;
- case 1 : S << "-- Reverse Orthogonal Matrix" << Message_EndLine; break;
- case 10 : S << "-- Cartesien Coordinate System" << Message_EndLine; break;
- case 11 : S << "-- Cylindrical Coordinate System" << Message_EndLine; break;
- case 12 : S << "-- Spherical Coordinate System" << Message_EndLine; break;
- default : S << "-- (Incorrect Form Number)" << Message_EndLine; break;
+ case 0 : S << "-- Direct Orthogonal Matrix" << std::endl; break;
+ case 1 : S << "-- Reverse Orthogonal Matrix" << std::endl; break;
+ case 10 : S << "-- Cartesien Coordinate System" << std::endl; break;
+ case 11 : S << "-- Cylindrical Coordinate System" << std::endl; break;
+ case 12 : S << "-- Spherical Coordinate System" << std::endl; break;
+ default : S << "-- (Incorrect Form Number)" << std::endl; break;
}
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a TransformationMatrix. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGeom_TransformationMatrix)& entfrom, const Handle(IGESGeom_TransformationMatrix)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGeom_TransformationMatrix)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGeom_TransformationMatrix)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
#include <Message_Msg.hxx>
#include <Standard_DomainError.hxx>
void IGESGeom_ToolTrimmedSurface::OwnDump(const Handle(IGESGeom_TrimmedSurface)& ent,
const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S,
+ Standard_OStream& S,
const Standard_Integer level) const
{
Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
- S << "IGESGeom_TrimmedSurface" << Message_EndLine;
-
- S << "Surface to be trimmed : ";
+ S << "IGESGeom_TrimmedSurface\n"
+ << "Surface to be trimmed : ";
dumper.Dump(ent->Surface(),S, tempSubLevel);
- S << Message_EndLine;
- S << "Boundary type : " << ent->OuterBoundaryType() << Message_EndLine;
- S << "Outer Boundary : ";
+ S << "\n"
+ << "Boundary type : " << ent->OuterBoundaryType() << "\n"
+ << "Outer Boundary : ";
dumper.Dump(ent->OuterContour(),S, tempSubLevel);
- S << Message_EndLine;
- S << "Inner Boundaries : ";
+ S << "\n"
+ << "Inner Boundaries : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbInnerContours(),ent->InnerContour);
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a TrimmedSurface. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGeom_TrimmedSurface)& entfrom, const Handle(IGESGeom_TrimmedSurface)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGeom_TrimmedSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGeom_TrimmedSurface)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESGraph_SpecificModule::OwnDump
(const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent,
- const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S,
+ const IGESData_IGESDumper& dumper, Standard_OStream& S,
const Standard_Integer own) const
{
switch (CN) {
#include <Standard_Boolean.hxx>
class IGESData_IGESEntity;
class IGESData_IGESDumper;
-class Message_Messenger;
-
class IGESGraph_SpecificModule;
DEFINE_STANDARD_HANDLE(IGESGraph_SpecificModule, IGESData_SpecificModule)
Standard_EXPORT IGESGraph_SpecificModule();
//! Specific Dump (own parameters) for IGESGraph
- Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const Standard_OVERRIDE;
+ Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const Standard_OVERRIDE;
//! Performs non-ambiguous Corrections on Entities which support
//! them (DrawingSize,DrawingUnits,HighLight,IntercharacterSpacing,
void IGESGraph_ToolColor::OwnDump
(const Handle(IGESGraph_Color)& ent, const IGESData_IGESDumper& /*dumper*/,
- const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
+ Standard_OStream& S, const Standard_Integer /*level*/) const
{
- S << "IGESGraph_Color" << Message_EndLine;
+ S << "IGESGraph_Color\n";
Standard_Real Red,Green,Blue;
ent->RGBIntensity(Red,Green,Blue);
- S << "Red (in % Of Full Intensity) : " << Red << Message_EndLine;
- S << "Green (in % Of Full Intensity) : " << Green << Message_EndLine;
- S << "Blue (in % Of Full Intensity) : " << Blue << Message_EndLine;
- S << "Color Name : ";
+ S << "Red (in % Of Full Intensity) : " << Red << "\n"
+ << "Green (in % Of Full Intensity) : " << Green << "\n"
+ << "Blue (in % Of Full Intensity) : " << Blue << "\n"
+ << "Color Name : ";
IGESData_DumpString(S,ent->ColorName());
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a Color. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_Color)& entfrom, const Handle(IGESGraph_Color)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGraph_Color)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGraph_Color)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESGraph_ToolDefinitionLevel::OwnDump
(const Handle(IGESGraph_DefinitionLevel)& ent, const IGESData_IGESDumper& /*dumper*/,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESGraph_DefinitionLevel" << Message_EndLine;
-
- S << "Level Numbers : ";
- IGESData_DumpVals(S ,level,1, ent->NbPropertyValues(),ent->LevelNumber);
- S << Message_EndLine;
+ S << "IGESGraph_DefinitionLevel\n"
+ << "Level Numbers : ";
+ IGESData_DumpVals(S,level,1, ent->NbPropertyValues(),ent->LevelNumber);
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a DefinitionLevel. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_DefinitionLevel)& entfrom, const Handle(IGESGraph_DefinitionLevel)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGraph_DefinitionLevel)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGraph_DefinitionLevel)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESGraph_ToolDrawingSize::OwnDump
(const Handle(IGESGraph_DrawingSize)& ent, const IGESData_IGESDumper& /*dumper*/,
- const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
+ Standard_OStream& S, const Standard_Integer /*level*/) const
{
- S << "IGESGraph_DrawingSize" << Message_EndLine;
-
- S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
- S << "Drawing extent along positive X-axis : " << ent->XSize() << Message_EndLine;
- S << "Drawing extent along positive Y-axis : " << ent->YSize() << Message_EndLine;
- S << Message_EndLine;
+ S << "IGESGraph_DrawingSize\n"
+ << "No. of property values : " << ent->NbPropertyValues() << "\n"
+ << "Drawing extent along positive X-axis : " << ent->XSize() << "\n"
+ << "Drawing extent along positive Y-axis : " << ent->YSize() << "\n"
+ << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a DrawingSize. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_DrawingSize)& entfrom, const Handle(IGESGraph_DrawingSize)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGraph_DrawingSize)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGraph_DrawingSize)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESGraph_ToolDrawingUnits::OwnDump
(const Handle(IGESGraph_DrawingUnits)& ent, const IGESData_IGESDumper& /*dumper*/,
- const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
+ Standard_OStream& S, const Standard_Integer /*level*/) const
{
- S << "IGESGraph_DrawingUnits" << Message_EndLine;
-
- S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
- S << " Units Flag : " << ent->Flag();
- S << " Units Name : ";
+ S << "IGESGraph_DrawingUnits\n"
+ << "No. of property values : " << ent->NbPropertyValues() << "\n"
+ << " Units Flag : " << ent->Flag()
+ << " Units Name : ";
IGESData_DumpString(S,ent->Unit());
- S << " computed Value (in meters) : " << ent->UnitValue();
- S << Message_EndLine;
+ S << " computed Value (in meters) : " << ent->UnitValue()
+ << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a DrawingUnits. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_DrawingUnits)& entfrom, const Handle(IGESGraph_DrawingUnits)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGraph_DrawingUnits)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGraph_DrawingUnits)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESGraph_ToolHighLight::OwnDump
(const Handle(IGESGraph_HighLight)& ent, const IGESData_IGESDumper& /*dumper*/,
- const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
+ Standard_OStream& S, const Standard_Integer /*level*/) const
{
- S << "IGESGraph_HighLight" << Message_EndLine;
-
- S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
- S << "Highlight Status : " << ent->HighLightStatus() << Message_EndLine;
- S << Message_EndLine;
+ S << "IGESGraph_HighLight\n"
+ << "No. of property values : " << ent->NbPropertyValues() << "\n"
+ << "Highlight Status : " << ent->HighLightStatus() << "\n"
+ << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a HighLight. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_HighLight)& entfrom, const Handle(IGESGraph_HighLight)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGraph_HighLight)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGraph_HighLight)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESGraph_ToolIntercharacterSpacing::OwnDump
(const Handle(IGESGraph_IntercharacterSpacing)& ent, const IGESData_IGESDumper& /*dumper*/,
- const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
+ Standard_OStream& S, const Standard_Integer /*level*/) const
{
- S << "IGESGraph_IntercharacterSpacing" << Message_EndLine;
-
- S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
- S << "Intercharacter space in % of text height : " << ent->ISpace() << Message_EndLine;
- S << Message_EndLine;
+ S << "IGESGraph_IntercharacterSpacing\n"
+ << "No. of property values : " << ent->NbPropertyValues() << "\n"
+ << "Intercharacter space in % of text height : " << ent->ISpace() << "\n"
+ << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a IntercharacterSpacing. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_IntercharacterSpacing)& entfrom, const Handle(IGESGraph_IntercharacterSpacing)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGraph_IntercharacterSpacing)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGraph_IntercharacterSpacing)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
#include <TCollection_HAsciiString.hxx>
#include <TColStd_HArray1OfReal.hxx>
void IGESGraph_ToolLineFontDefPattern::OwnDump
(const Handle(IGESGraph_LineFontDefPattern)& ent, const IGESData_IGESDumper& /*dumper*/,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESGraph_LineFontDefPattern" << Message_EndLine;
-
- S << "Visible-Blank Segments : ";
+ S << "IGESGraph_LineFontDefPattern\n"
+ << "Visible-Blank Segments : ";
Standard_Integer nb = ent->NbSegments();
- IGESData_DumpVals(S ,level,1, nb,ent->Length);
- S <<Message_EndLine << "Display Pattern : ";
+ IGESData_DumpVals(S,level,1, nb,ent->Length);
+ S << "\nDisplay Pattern : ";
IGESData_DumpString(S,ent->DisplayPattern());
- S << Message_EndLine;
+ S << "\n";
if (level > 4) {
- S << " -> Which Segments are Visible (the others are Blank) : " << Message_EndLine;
+ S << " -> Which Segments are Visible (the others are Blank) :\n";
for (Standard_Integer I = 1; I <= nb; I ++) {
if (ent->IsVisible(I)) S << " " << I;
}
- S << Message_EndLine;
+ S << std::endl;
}
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a LineFontDefPattern. Called by various
//! Modules (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_LineFontDefPattern)& entfrom, const Handle(IGESGraph_LineFontDefPattern)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGraph_LineFontDefPattern)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGraph_LineFontDefPattern)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESGraph_ToolLineFontDefTemplate::OwnDump
(const Handle(IGESGraph_LineFontDefTemplate)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
- S << "IGESGraph_LineFontDefTemplate" << Message_EndLine;
-
- S << "Orientation : " << ent->Orientation() << Message_EndLine;
- S << "Subfigure Display Entity For Template Display : ";
+ S << "IGESGraph_LineFontDefTemplate\n"
+ << "Orientation : " << ent->Orientation() << "\n"
+ << "Subfigure Display Entity For Template Display : ";
dumper.Dump(ent->TemplateEntity(),S, tempSubLevel);
- S << Message_EndLine;
- S << "Length Between Successive Template Figure : " << ent->Distance()<<Message_EndLine;
- S << "Scale Factor for Subfigure : " << ent->Scale() << Message_EndLine;
- S << Message_EndLine;
+ S << "\n"
+ << "Length Between Successive Template Figure : " << ent->Distance()<< "\n"
+ << "Scale Factor for Subfigure : " << ent->Scale() << "\n"
+ << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a LineFontDefTemplate. Called by various
//! Modules (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_LineFontDefTemplate)& entfrom, const Handle(IGESGraph_LineFontDefTemplate)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGraph_LineFontDefTemplate)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGraph_LineFontDefTemplate)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESGraph_ToolLineFontPredefined::OwnDump
(const Handle(IGESGraph_LineFontPredefined)& ent, const IGESData_IGESDumper& /*dumper*/,
- const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
+ Standard_OStream& S, const Standard_Integer /*level*/) const
{
- S << "IGESGraph_LineFontPredefined" << Message_EndLine;
-
- S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
- S << "Line font pattern code : " << ent->LineFontPatternCode() << Message_EndLine;
- S << Message_EndLine;
+ S << "IGESGraph_LineFontPredefined\n"
+ << "No. of property values : " << ent->NbPropertyValues() << "\n"
+ << "Line font pattern code : " << ent->LineFontPatternCode() << "\n"
+ << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a LineFontPredefined. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_LineFontPredefined)& entfrom, const Handle(IGESGraph_LineFontPredefined)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGraph_LineFontPredefined)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGraph_LineFontPredefined)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESGraph_ToolNominalSize::OwnDump
(const Handle(IGESGraph_NominalSize)& ent, const IGESData_IGESDumper& /*dumper*/,
- const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
+ Standard_OStream& S, const Standard_Integer /*level*/) const
{
- S << "IGESGraph_NominalSize" << Message_EndLine;
-
- S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
- S << "Nominal size value : " << ent->NominalSizeValue() << Message_EndLine;
- S << "Nominal size name : ";
+ S << "IGESGraph_NominalSize\n"
+ << "No. of property values : " << ent->NbPropertyValues() << "\n"
+ << "Nominal size value : " << ent->NominalSizeValue() << "\n"
+ << "Nominal size name : ";
IGESData_DumpString(S,ent->NominalSizeName());
- S << Message_EndLine;
- S << "Name of relevant engineering standard : ";
+ S << "\n"
+ << "Name of relevant engineering standard : ";
IGESData_DumpString(S,ent->StandardName());
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a NominalSize. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_NominalSize)& entfrom, const Handle(IGESGraph_NominalSize)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGraph_NominalSize)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGraph_NominalSize)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESGraph_ToolPick::OwnDump
(const Handle(IGESGraph_Pick)& ent, const IGESData_IGESDumper& /*dumper*/,
- const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
+ Standard_OStream& S, const Standard_Integer /*level*/) const
{
- S << "IGESGraph_Pick" << Message_EndLine;
-
- S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
- S << "Pick flag : " << ent->PickFlag();
- S << (ent->PickFlag() == 0 ? " NO" : " YES" );
- S << Message_EndLine;
+ S << "IGESGraph_Pick\n"
+ << "No. of property values : " << ent->NbPropertyValues() << "\n"
+ << "Pick flag : " << ent->PickFlag()
+ << (ent->PickFlag() == 0 ? " NO" : " YES" )
+ << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a Pick. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_Pick)& entfrom, const Handle(IGESGraph_Pick)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGraph_Pick)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGraph_Pick)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESGraph_ToolTextDisplayTemplate::OwnDump
(const Handle(IGESGraph_TextDisplayTemplate)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
- S << "IGESGraph_TextDisplayTemplate" << Message_EndLine;
-
- S << "Character box width : " << ent->BoxWidth() << " ";
- S << "Character box height : " << ent->BoxHeight() << Message_EndLine;
+ S << "IGESGraph_TextDisplayTemplate\n"
+ << "Character box width : " << ent->BoxWidth() << " "
+ << "Character box height : " << ent->BoxHeight() << "\n";
if ( ent->IsFontEntity() )
{
S << "Font Entity : ";
}
else
S << "Font code : " << ent->FontCode();
- S << Message_EndLine;
- S << "Slant angle : " << ent->SlantAngle() << " ";
- S << "Rotation angle : " << ent->RotationAngle() << Message_EndLine;
- S << "Mirror flag : " << ent->MirrorFlag() << " ";
- S << "Rotate flag : " << ent->RotateFlag() << Message_EndLine;
+
+ S << "\n"
+ << "Slant angle : " << ent->SlantAngle() << " "
+ << "Rotation angle : " << ent->RotationAngle() << "\n"
+ << "Mirror flag : " << ent->MirrorFlag() << " "
+ << "Rotate flag : " << ent->RotateFlag() << "\n";
if ( ent->FormNumber() == 0 )
S << "Lower Left Corner coordinates : ";
else
S << "Increments from coordinates : ";
IGESData_DumpXYZL(S,level, ent->StartingCorner(), ent->Location());
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a TextDisplayTemplate. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_TextDisplayTemplate)& entfrom, const Handle(IGESGraph_TextDisplayTemplate)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGraph_TextDisplayTemplate)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGraph_TextDisplayTemplate)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESGraph_ToolTextFontDef::OwnDump
(const Handle(IGESGraph_TextFontDef)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
Standard_Integer nbchars = ent->NbCharacters();
- S << "IGESGraph_TextFontDef" << Message_EndLine;
-
- S << "Font Code : " << ent->FontCode() << Message_EndLine;
- S << "Font Name : ";
+ S << "IGESGraph_TextFontDef\n"
+ << "Font Code : " << ent->FontCode() << "\n"
+ << "Font Name : ";
IGESData_DumpString(S,ent->FontName());
- S << Message_EndLine;
+ S << "\n";
if ( ent->IsSupersededFontEntity() ) {
S << "Text Definition Entity : ";
dumper.Dump(ent->SupersededFontEntity(),S, sublevel);
}
else S << "Superseding Font Number : " << ent->SupersededFontCode();
- S << Message_EndLine;
- S << "No. of Grid Units eqvt to 1 Text Height : " << ent->Scale() << Message_EndLine;
- S << "ASCII Codes : " << Message_EndLine
- << "Grid Locations of next character origins : " << Message_EndLine
- << "Pen Motions : " << Message_EndLine
- << "Pen Positions : " << Message_EndLine
- << "Grid Locations the pen moves to : ";
- S << "Count = " << nbchars << Message_EndLine;
+ S << "\n"
+ << "No. of Grid Units eqvt to 1 Text Height : " << ent->Scale() << "\n"
+ << "ASCII Codes :\n"
+ << "Grid Locations of next character origins :\n"
+ << "Pen Motions :\n"
+ << "Pen Positions :\n"
+ << "Grid Locations the pen moves to : "
+ << "Count = " << nbchars << "\n";
IGESData_DumpVals(S,-level,1,nbchars,ent->ASCIICode);
- S << Message_EndLine;
+ S << "\n";
if (level > 4 )
{
Handle(TColgp_HArray1OfXY) arrXY;
for (I = 1; I <= nbchars; I++)
{
Standard_Integer IX,IY;
- S << "[" << I << "]: ";
- S << "ASCII Code : " << ent->ASCIICode(I) << Message_EndLine;
- S << "Grid Location of next character's origin : ";
+ S << "[" << I << "]: "
+ << "ASCII Code : " << ent->ASCIICode(I) << "\n"
+ << "Grid Location of next character's origin : ";
ent->NextCharOrigin(I,IX,IY);
S << "X=" << IX << " Y=" << IY;
nbmotions = ent->NbPenMotions(I);
S << " No. of Pen Motions : " << nbmotions;
- if (level <= 5) S << " [ ask level > 5 for Details ]" << Message_EndLine;
+ if (level <= 5) S << " [ ask level > 5 for Details ]\n";
else {
- S << Message_EndLine;
+ S << "\n";
for (J = 1; J <= nbmotions; J++)
{
- S << "Pen up(1) / down(0) flag : " << (Standard_Integer)ent->IsPenUp(I,J);
- S << " Next Pen Position : ";
+ S << "Pen up(1) / down(0) flag : " << (Standard_Integer)ent->IsPenUp(I,J)
+ << " Next Pen Position : ";
ent->NextPenPosition(I,J, IX,IY);
- S << " X="<<IX<<" Y="<<IY;
- S << Message_EndLine;
+ S << " X="<<IX<<" Y="<<IY << "\n";
}
}
}
}
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a TextFontDef. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_TextFontDef)& entfrom, const Handle(IGESGraph_TextFontDef)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGraph_TextFontDef)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGraph_TextFontDef)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
IGESGraph_ToolUniformRectGrid::IGESGraph_ToolUniformRectGrid () { }
void IGESGraph_ToolUniformRectGrid::OwnDump
(const Handle(IGESGraph_UniformRectGrid)& ent, const IGESData_IGESDumper& /*dumper*/,
- const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
+ Standard_OStream& S, const Standard_Integer /*level*/) const
{
- S << "IGESGraph_UniformRectGrid" << Message_EndLine;
-
- S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
- S << "Grid : " << ( ent->IsFinite() ? "Finite" : "Infinite");
- S << " - Composed of " << ( ent->IsLine() ? "Lines" : "Points");
- S << " - " << ( ent->IsWeighted() ? "Weighted" : "Unweighted") << Message_EndLine;
- S << "Grid Point : ";
+ S << "IGESGraph_UniformRectGrid\n"
+ << "No. of property values : " << ent->NbPropertyValues() << "\n"
+ << "Grid : " << ( ent->IsFinite() ? "Finite" : "Infinite")
+ << " - Composed of " << ( ent->IsLine() ? "Lines" : "Points")
+ << " - " << ( ent->IsWeighted() ? "Weighted" : "Unweighted") << "\n"
+ << "Grid Point : ";
IGESData_DumpXY(S, ent->GridPoint());
S << " Grid Spacing : ";
- IGESData_DumpXY(S, ent->GridSpacing()); S << Message_EndLine;
+ IGESData_DumpXY(S, ent->GridSpacing()); S << "\n";
if (ent->IsFinite())
S << "No. of points/lines in direction : X : " << ent->NbPointsX()
- << " - Y : " << ent->NbPointsY() << Message_EndLine;
+ << " - Y : " << ent->NbPointsY() << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a UniformRectGrid. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_UniformRectGrid)& entfrom, const Handle(IGESGraph_UniformRectGrid)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESGraph_UniformRectGrid)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESGraph_UniformRectGrid)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
std::cout<<sets->NbEntities(i)<<" ent.s:"<<std::endl;
if (listmode == 0) continue;
iter = sets->Entities(i);
- WS->ListEntities (iter,0);
+ WS->ListEntities (iter, 0, std::cout);
}
std::cout <<" -- Remaining Entities (not yet sorted) :"
<<sets->NbDuplicated(0,Standard_False)<<std::endl;
if (listmode < 2) return IFSelect_RetVoid;
iter = sets->Duplicated(0,Standard_False);
- WS->ListEntities(iter,0);
+ WS->ListEntities (iter, 0, std::cout);
return IFSelect_RetVoid;
}
#include <IGESSelect_CounterOfLevelNumber.hxx>
#include <Interface_InterfaceModel.hxx>
#include <Interface_Macros.hxx>
-#include <Message_Messenger.hxx>
-#include <Standard_Transient.hxx>
-#include <Standard_Type.hxx>
#include <TCollection_HAsciiString.hxx>
#include <stdio.h>
void IGESSelect_CounterOfLevelNumber::PrintCount
- (const Handle(Message_Messenger)& S) const
+ (Standard_OStream& S) const
{
- IFSelect_SignatureList::PrintCount(S);
- S<<" Highest value : " << thehigh << Message_EndLine;
- if (thenblists > 0) S<<"REMARK for LEVEL LIST : Entities are counted in"
- <<" <LEVEL LIST>\n, and in each Level value of their list"<<Message_EndLine;
+ IFSelect_SignatureList::PrintCount (S);
+ S <<" Highest value : " << thehigh << std::endl;
+ if (thenblists > 0) S <<"REMARK for LEVEL LIST : Entities are counted in"
+ <<" <LEVEL LIST>\n, and in each Level value of their list"<<std::endl;
}
#ifndef _IGESSelect_CounterOfLevelNumber_HeaderFile
#define _IGESSelect_CounterOfLevelNumber_HeaderFile
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <Standard_Integer.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <IFSelect_SignCounter.hxx>
-#include <Standard_Boolean.hxx>
#include <TColStd_HSequenceOfInteger.hxx>
-class Standard_Transient;
+
class Interface_InterfaceModel;
class TCollection_HAsciiString;
-class Message_Messenger;
-
class IGESSelect_CounterOfLevelNumber;
DEFINE_STANDARD_HANDLE(IGESSelect_CounterOfLevelNumber, IFSelect_SignCounter)
//! Prints the counts of items (not the list) then the Highest
//! Level Number recorded
- Standard_EXPORT virtual void PrintCount (const Handle(Message_Messenger)& S) const Standard_OVERRIDE;
+ Standard_EXPORT virtual void PrintCount (Standard_OStream& S) const Standard_OVERRIDE;
Handle(Interface_InterfaceModel)& model,
const Handle(Interface_Protocol)& protocol) const
{
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
Handle(IGESData_IGESModel) igesmod = new IGESData_IGESModel;
DeclareAndCast(IGESData_Protocol,prot,protocol);
char* pname=(char*) name;
Standard_Integer status = IGESFile_Read (pname,igesmod,prot);
- if (status < 0) sout<<"File not found : "<<name<<Message_EndLine;
- if (status > 0) sout<<"Error when reading file : "<<name<<Message_EndLine;
+ if (status < 0) sout<<"File not found : "<<name<<std::endl;
+ if (status > 0) sout<<"Error when reading file : "<<name<<std::endl;
if (status == 0) model = igesmod;
else model.Nullify();
return status;
Standard_Boolean IGESSelect_WorkLibrary::WriteFile
(IFSelect_ContextWrite& ctx) const
{
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
// Preparation
DeclareAndCast(IGESData_IGESModel,igesmod,ctx.Model());
DeclareAndCast(IGESData_Protocol,prot,ctx.Protocol());
OSD_OpenStream(fout,ctx.FileName(),std::ios::out );
if (!fout) {
ctx.CCheck(0)->AddFail("IGES File could not be created");
- sout<<" - IGES File could not be created : " << ctx.FileName() << Message_EndLine; return 0;
+ sout<<" - IGES File could not be created : " << ctx.FileName() << std::endl; return 0;
}
sout<<" IGES File Name : "<<ctx.FileName();
IGESData_IGESWriter VW(igesmod);
VW.SendModel(prot);
sout<<" Write ";
if (themodefnes) VW.WriteMode() = 10;
- Standard_Boolean status = VW.Print(fout); sout<<" Done"<<Message_EndLine;
+ Standard_Boolean status = VW.Print(fout); sout<<" Done"<<std::endl;
errno = 0;
fout.close();
status = fout.good() && status && !errno;
if(errno)
- sout << strerror(errno) << Message_EndLine;
+ sout << strerror(errno) << std::endl;
return status;
}
(const Handle(Interface_InterfaceModel)& model,
const Handle(Interface_Protocol)& protocol,
const Handle(Standard_Transient)& entity,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
DeclareAndCast(IGESData_IGESModel,igesmod,model);
DeclareAndCast(IGESData_Protocol,igespro,protocol);
Standard_Integer num = igesmod->Number(igesent);
if (num == 0) return;
- S<<" --- Entity "<<num;
+ S <<" --- Entity "<<num;
Standard_Boolean iserr = model->IsRedefinedContent(num);
Handle(Standard_Transient) con;
if (iserr) con = model->ReportEntity(num)->Content();
- if (entity.IsNull()) { S<<" Null"<<Message_EndLine; return ; }
+ if (entity.IsNull()) { S <<" Null"<<std::endl; return ; }
// On attaque le dump : d abord cas de l Erreur
if (iserr) {
S << " ERRONEOUS, Content, Type cdl : ";
if (!con.IsNull()) S << con->DynamicType()->Name();
- else S << "(undefined)" << Message_EndLine;
+ else S << "(undefined)" << std::endl;
igesent = GetCasted(IGESData_IGESEntity,con);
con.Nullify();
Handle(Interface_Check) check = model->ReportEntity(num)->Check();
dump.Dump(igesent,S,level,(level-1)/3);
}
catch (Standard_Failure const&) {
- S << " ** Dump Interrupt **" << Message_EndLine;
+ S << " ** Dump Interrupt **" << std::endl;
}
}
class IFSelect_ContextWrite;
class IGESData_Protocol;
class Standard_Transient;
-class Message_Messenger;
-
class IGESSelect_WorkLibrary;
DEFINE_STANDARD_HANDLE(IGESSelect_WorkLibrary, IFSelect_WorkLibrary)
//! Dumps an IGES Entity with an IGES Dumper. <level> is the one
//! used by IGESDumper.
- Standard_EXPORT void DumpEntity (const Handle(Interface_InterfaceModel)& model, const Handle(Interface_Protocol)& protocol, const Handle(Standard_Transient)& entity, const Handle(Message_Messenger)& S, const Standard_Integer level) const Standard_OVERRIDE;
+ Standard_EXPORT virtual void DumpEntity (const Handle(Interface_InterfaceModel)& model, const Handle(Interface_Protocol)& protocol, const Handle(Standard_Transient)& entity, Standard_OStream& S, const Standard_Integer level) const Standard_OVERRIDE;
#include <IGESSolid_Torus.hxx>
#include <IGESSolid_VertexList.hxx>
#include <Interface_Macros.hxx>
-#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(IGESSolid_SpecificModule,IGESData_SpecificModule)
void IGESSolid_SpecificModule::OwnDump
(const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent,
- const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S,
+ const IGESData_IGESDumper& dumper, Standard_OStream& S,
const Standard_Integer own) const
{
switch (CN) {
#include <Standard_Integer.hxx>
class IGESData_IGESEntity;
class IGESData_IGESDumper;
-class Message_Messenger;
-
class IGESSolid_SpecificModule;
DEFINE_STANDARD_HANDLE(IGESSolid_SpecificModule, IGESData_SpecificModule)
Standard_EXPORT IGESSolid_SpecificModule();
//! Specific Dump (own parameters) for IGESSolid
- Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const Standard_OVERRIDE;
+ Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const Standard_OVERRIDE;
void IGESSolid_ToolBlock::OwnDump
(const Handle(IGESSolid_Block)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESSolid_Block" << Message_EndLine;
-
- S << "Size : ";
+ S << "IGESSolid_Block\n"
+ << "Size : ";
IGESData_DumpXYZ(S, ent->Size());
- S << Message_EndLine << "Corner : ";
+ S << "\nCorner : ";
IGESData_DumpXYZL(S,level, ent->Corner(), ent->Location());
- S << Message_EndLine << "XAxis : ";
+ S << "\nXAxis : ";
IGESData_DumpXYZL(S,level, ent->XAxis(), ent->VectorLocation());
- S << Message_EndLine << "ZAxis : ";
+ S << "\nZAxis : ";
IGESData_DumpXYZL(S,level, ent->ZAxis(), ent->VectorLocation());
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a Block. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESSolid_Block)& entfrom, const Handle(IGESSolid_Block)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESSolid_Block)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESSolid_Block)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESSolid_ToolBooleanTree::OwnDump
(const Handle(IGESSolid_BooleanTree)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer i, length = ent->Length();
- S << "IGESSolid_Boolean Tree" << Message_EndLine;
-
- S << "Length of the post-order notation :" << length << Message_EndLine;
-
+ S << "IGESSolid_Boolean Tree\n"
+ << "Length of the post-order notation :" << length << "\n";
if (level > 4)
{
- S << "Post-order notation of the Boolean Tree :" << Message_EndLine;
+ S << "Post-order notation of the Boolean Tree :\n";
for (i = 1; i <= length; i++)
{
if (ent->IsOperand(i))
{
S << "[" << i << "] Operand : ";
dumper.Dump (ent->Operand(i),S, 1);
- S << Message_EndLine;
+ S << "\n";
}
else
{
Standard_Integer opcode = ent->Operation(i);
S << "[" << i << "] Operator : " << opcode;
if (opcode == 1) S << " (Union)";
- else if (opcode == 2) S << " (Intersection)" << Message_EndLine;
- else if (opcode == 3) S << " (Difference)" << Message_EndLine;
- else S << " (incorrect value)" << Message_EndLine;
+ else if (opcode == 2) S << " (Intersection)\n";
+ else if (opcode == 3) S << " (Difference)\n";
+ else S << " (incorrect value)\n";
}
}
}
-// S << std::endl;
+// aSender << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a BooleanTree. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESSolid_BooleanTree)& entfrom, const Handle(IGESSolid_BooleanTree)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESSolid_BooleanTree)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESSolid_BooleanTree)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESSolid_ToolConeFrustum::OwnDump
(const Handle(IGESSolid_ConeFrustum)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESSolid_ConeFrustum" << Message_EndLine;
-
- S << "Height : " << ent->Height() << " ";
- S << "Larger face Radius : " << ent->LargerRadius() << " ";
- S << "Smaller face Radius : " << ent->SmallerRadius() << Message_EndLine;
- S << "Face Center : ";
+ S << "IGESSolid_ConeFrustum\n"
+ << "Height : " << ent->Height() << " "
+ << "Larger face Radius : " << ent->LargerRadius() << " "
+ << "Smaller face Radius : " << ent->SmallerRadius() << "\n"
+ << "Face Center : ";
IGESData_DumpXYZL(S,level, ent->FaceCenter(), ent->Location());
- S << Message_EndLine << "Axis : ";
+ S << "\nAxis : ";
IGESData_DumpXYZL(S,level, ent->Axis(), ent->VectorLocation());
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a ConeFrustum. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESSolid_ConeFrustum)& entfrom, const Handle(IGESSolid_ConeFrustum)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESSolid_ConeFrustum)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESSolid_ConeFrustum)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESSolid_ToolConicalSurface::OwnDump
(const Handle(IGESSolid_ConicalSurface)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESSolid_ConicalSurface" << Message_EndLine;
+ S << "IGESSolid_ConicalSurface\n";
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
S << "Point on axis : ";
dumper.Dump(ent->LocationPoint(),S, sublevel);
- S << Message_EndLine;
- S << "Axis direction : ";
+ S << "\n"
+ << "Axis direction : ";
dumper.Dump(ent->Axis(),S, sublevel);
- S << Message_EndLine;
- S << "Radius : " << ent->Radius() << " ";
- S << "Semi-angle : " << ent->SemiAngle() << Message_EndLine;
+ S << "\n"
+ << "Radius : " << ent->Radius() << " "
+ << "Semi-angle : " << ent->SemiAngle() << "\n";
if (ent->IsParametrised())
{
- S << "Surface is Parametrised - Reference direction : " << Message_EndLine;
+ S << "Surface is Parametrised - Reference direction :\n";
dumper.Dump(ent->ReferenceDir(),S, sublevel);
- S << Message_EndLine;
+ S << std::endl;
}
- else S << "Surface is UnParametrised" << Message_EndLine;
+ else S << "Surface is UnParametrised" << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a ConicalSurface. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESSolid_ConicalSurface)& entfrom, const Handle(IGESSolid_ConicalSurface)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESSolid_ConicalSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESSolid_ConicalSurface)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESSolid_ToolCylinder::OwnDump
(const Handle(IGESSolid_Cylinder)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
// Standard_Boolean locprint = (ent->HasTransf() && level >=6);
// gp_Pnt TCenter = ent->TransformedFaceCenter();
// gp_Dir TAxis = ent->TransformedAxis();
- S << "IGESSolid_Cylinder" << Message_EndLine;
-
- S << "Height : " << ent->Height() << " ";
- S << "Radius : " << ent->Radius() << Message_EndLine;
- S << "Center : ";
+ S << "IGESSolid_Cylinder\n"
+ << "Height : " << ent->Height() << " "
+ << "Radius : " << ent->Radius() << "\n"
+ << "Center : ";
IGESData_DumpXYZL(S,level, ent->FaceCenter(), ent->Location());
- S << Message_EndLine << "Axis : ";
+ S << "\nAxis : ";
IGESData_DumpXYZL(S,level, ent->Axis(), ent->VectorLocation());
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a Cylinder. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESSolid_Cylinder)& entfrom, const Handle(IGESSolid_Cylinder)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESSolid_Cylinder)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESSolid_Cylinder)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESSolid_ToolCylindricalSurface::OwnDump
(const Handle(IGESSolid_CylindricalSurface)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESSolid_CylindricalSurface" << Message_EndLine;
+ S << "IGESSolid_CylindricalSurface\n";
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
S << "Point on axis : ";
dumper.Dump(ent->LocationPoint(),S, sublevel);
- S << Message_EndLine;
- S << "Axis direction : ";
+ S << "\n"
+ << "Axis direction : ";
dumper.Dump(ent->Axis(),S, sublevel);
- S << Message_EndLine;
- S << "Radius : " << ent->Radius() << Message_EndLine;
+ S << "\n"
+ << "Radius : " << ent->Radius() << "\n";
if (ent->IsParametrised())
{
S << "Surface is Parametrised - Reference direction : ";
dumper.Dump(ent->ReferenceDir(),S, sublevel);
- S << Message_EndLine;
+ S << std::endl;
}
- else S << "Surface is UnParametrised" << Message_EndLine;
+ else S << "Surface is UnParametrised" << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a CylindricalSurface. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESSolid_CylindricalSurface)& entfrom, const Handle(IGESSolid_CylindricalSurface)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESSolid_CylindricalSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESSolid_CylindricalSurface)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESSolid_ToolEdgeList::OwnDump(const Handle(IGESSolid_EdgeList)& ent,
const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S,
+ Standard_OStream& S,
const Standard_Integer level) const
{
Standard_Integer i, length = ent->NbEdges();
- S << "IGESSolid_EdgeList" << Message_EndLine;
- S << "Number of edge tuples : " << length << Message_EndLine;
+ S << "IGESSolid_EdgeList\n"
+ << "Number of edge tuples : " << length << "\n";
switch (level)
{
case 4 :
- S << "Curves : ";
- S << "Start Vertex List : ";
- S << "Start Vertex Index : ";
- IGESData_DumpVals(S ,level,1, length,ent->StartVertexIndex);
- S << Message_EndLine;
- S << "End Vertex List : ";
- S << "End Vertex Index : ";
- IGESData_DumpVals(S ,level,1, length,ent->EndVertexIndex);
- S << Message_EndLine;
+ S << "Curves : "
+ << "Start Vertex List : "
+ << "Start Vertex Index : ";
+ IGESData_DumpVals(S,level,1, length,ent->StartVertexIndex);
+ S << "\n"
+ << "End Vertex List : "
+ << "End Vertex Index : ";
+ IGESData_DumpVals(S,level,1, length,ent->EndVertexIndex);
+ S << "\n";
break;
case 5 :
case 6 :
- S<<" Curve - Vertices. Start : (VertexList,Index) End : (VertexList,Index)"<<Message_EndLine;
+ S <<" Curve - Vertices. Start : (VertexList,Index) End : (VertexList,Index)\n";
for (i = 1; i <= length; i ++)
{
//[123]:Curve : #1234 - Vertices. Start = (#5678 , 3467) End = (#1234 , 4664)
dumper.Dump (ent->Curve(i),S, level-5);
S <<" - Vertices. Start : (";
dumper.Dump (ent->StartVertexList(i),S, 0);
- S << " , " << ent->StartVertexIndex(i);
- S << ") End : (";
+ S << " , " << ent->StartVertexIndex(i)
+ << ") End : (";
dumper.Dump (ent->EndVertexList(i),S, 0);
- S << " , " << ent->EndVertexIndex(i);
- S << ")" << Message_EndLine;
+ S << " , " << ent->EndVertexIndex(i)
+ << ")" << "\n";
}
break;
default :
break;
}
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a EdgeList. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESSolid_EdgeList)& entfrom, const Handle(IGESSolid_EdgeList)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESSolid_EdgeList)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESSolid_EdgeList)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESSolid_ToolEllipsoid::OwnDump
(const Handle(IGESSolid_Ellipsoid)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESSolid_Ellipsoid" << Message_EndLine;
-
- S << "Size : ";
+ S << "IGESSolid_Ellipsoid\n"
+ << "Size : ";
IGESData_DumpXYZ(S, ent->Size());
- S << Message_EndLine << "Center : ";
+ S << "\nCenter : ";
IGESData_DumpXYZL(S,level, ent->Center(), ent->Location());
- S << Message_EndLine << "XAxis : ";
+ S << "\nXAxis : ";
IGESData_DumpXYZL(S,level, ent->XAxis(), ent->VectorLocation());
- S << Message_EndLine << "ZAxis : ";
+ S << "\nZAxis : ";
IGESData_DumpXYZL(S,level, ent->ZAxis(), ent->VectorLocation());
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a Ellipsoid. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESSolid_Ellipsoid)& entfrom, const Handle(IGESSolid_Ellipsoid)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESSolid_Ellipsoid)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESSolid_Ellipsoid)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESSolid_ToolFace::OwnDump(const Handle(IGESSolid_Face)& ent,
const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S,
+ Standard_OStream& S,
const Standard_Integer level) const
{
- S << "IGESSolid_Face" << Message_EndLine;
+ S << "IGESSolid_Face\n";
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
S << "Surface : ";
dumper.Dump(ent->Surface(),S, sublevel);
- S << Message_EndLine;
- if (ent->HasOuterLoop()) S << "Outer loop is present (First one)" << Message_EndLine;
- else S << "Outer loop is not present" << Message_EndLine;
+ S << "\n";
+ if (ent->HasOuterLoop()) S << "Outer loop is present (First one)\n";
+ else S << "Outer loop is not present\n";
S << "Loops : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbLoops(),ent->Loop);
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a Face. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESSolid_Face)& entfrom, const Handle(IGESSolid_Face)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESSolid_Face)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESSolid_Face)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
#include <Message_Msg.hxx>
#include <Standard_DomainError.hxx>
#include <TColStd_HArray1OfInteger.hxx>
void IGESSolid_ToolLoop::OwnDump(const Handle(IGESSolid_Loop)& ent,
const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S,
+ Standard_OStream& S,
const Standard_Integer level) const
{
Standard_Integer i, j;
Standard_Integer nbedges = ent->NbEdges();
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
- S << "IGESSolid_Loop" << Message_EndLine;
-
- S << "Edge types : " << Message_EndLine;
- S << "Edges : " << Message_EndLine;
- S << "List index : " << Message_EndLine;
- S << "Orientation flags : " << Message_EndLine;
- S << "Parametric flags : ";
+ S << "IGESSolid_Loop\n"
+ << "Edge types :\n"
+ << "Edges :\n"
+ << "List index :\n"
+ << "Orientation flags :\n"
+ << "Parametric flags : ";
IGESData_DumpEntities(S,dumper,-level,1, nbedges,ent->Edge);
- S << Message_EndLine;
+ S << "\n";
if (level > 4)
{
S << "[ ";
for (i = 1; i <= nbedges; i ++)
{
Standard_Integer nbc = ent->NbParameterCurves(i);
- S << "[" << i << "]: ";
- S << "Edge type : " << ent->EdgeType(i) << " ";
- S << "Edge : ";
+ S << "[" << i << "]: "
+ << "Edge type : " << ent->EdgeType(i) << " "
+ << "Edge : ";
dumper.Dump (ent->Edge(i),S, sublevel);
S << " - Index : " << ent->ListIndex(i)
<< ", Orientation flag : " << ( ent->Orientation(i) ? "Positive" : "Negative" )
S << ":\n [ ";
for (j = 1; j <= nbc; j ++)
{
- S << "[" << j << "]: ";
- S << "Isoparametric flag : "
- << ( ent->IsIsoparametric(i,j) ? "True" : "False" ) << " ";
- S << "Parametric curve : ";
+ S << "[" << j << "]: "
+ << "Isoparametric flag : "
+ << ( ent->IsIsoparametric(i,j) ? "True" : "False" ) << " "
+ << "Parametric curve : ";
dumper.Dump (ent->ParametricCurve(i,j),S, sublevel);
- S << Message_EndLine;
+ S << "\n";
}
S << " ]";
}
}
- S << Message_EndLine;
+ S << "\n";
}
S << " ]";
}
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a Loop. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESSolid_Loop)& entfrom, const Handle(IGESSolid_Loop)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESSolid_Loop)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESSolid_Loop)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
#include <Message_Msg.hxx>
#include <Standard_DomainError.hxx>
#include <TColStd_HArray1OfInteger.hxx>
void IGESSolid_ToolManifoldSolid::OwnDump
(const Handle(IGESSolid_ManifoldSolid)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESSolid_ManifoldSolid" << Message_EndLine;
+ S << "IGESSolid_ManifoldSolid\n";
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
S << "Shell : ";
dumper.Dump(ent->Shell(),S, sublevel);
- S << Message_EndLine;
+ S << "\n";
if (ent->OrientationFlag())
- S << "Orientation agrees with the underlying surface" << Message_EndLine;
+ S << "Orientation agrees with the underlying surface\n";
else
- S << "Orientation does not agrees with the underlying surface" << Message_EndLine;
- S << "Void shells :" << Message_EndLine << "Orientation flags : ";
+ S << "Orientation does not agrees with the underlying surface\n";
+ S << "Void shells :\nOrientation flags : ";
IGESData_DumpEntities(S,dumper,-level,1, ent->NbVoidShells(),ent->VoidShell);
- S << Message_EndLine;
+ S << std::endl;
if (level > 4)
{
- S << "[ " << Message_EndLine;
+ S << "[\n";
if (ent->NbVoidShells() > 0)
{
Standard_Integer upper = ent->NbVoidShells();
for (Standard_Integer i = 1; i <= upper; i ++)
{
- S << "[" << i << "]: ";
- S << "Void shell : ";
+ S << "[" << i << "]: "
+ << "Void shell : ";
dumper.Dump (ent->VoidShell(i),S, sublevel);
S << " - Orientation flag : ";
- if (ent->VoidOrientationFlag(i)) S << "True" << Message_EndLine;
- else S << "False" << Message_EndLine;
+ if (ent->VoidOrientationFlag(i)) S << "True\n";
+ else S << "False\n";
}
}
- S << " ]" << Message_EndLine;
+ S << " ]\n";
}
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a ManifoldSolid. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESSolid_ManifoldSolid)& entfrom, const Handle(IGESSolid_ManifoldSolid)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESSolid_ManifoldSolid)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESSolid_ManifoldSolid)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESSolid_ToolPlaneSurface::OwnDump(const Handle(IGESSolid_PlaneSurface)& ent,
const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S,
+ Standard_OStream& S,
const Standard_Integer level) const
{
- S << "IGESSolid_PlaneSurface" << Message_EndLine;
+ S << "IGESSolid_PlaneSurface\n";
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
S << "Point on axis : ";
dumper.Dump(ent->LocationPoint(),S, sublevel);
- S << Message_EndLine;
- S << "Normal direction : ";
+ S << "\n"
+ << "Normal direction : ";
dumper.Dump(ent->Normal(),S, sublevel);
- S << Message_EndLine;
+ S << "\n";
if (ent->IsParametrised())
{
S << "Surface is Parametrised - Reference direction : ";
dumper.Dump(ent->ReferenceDir(),S, sublevel);
- S << Message_EndLine;
+ S << std::endl;
}
- else S << "Surface is UnParametrised" << Message_EndLine;
+ else S << "Surface is UnParametrised" << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a PlaneSurface. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESSolid_PlaneSurface)& entfrom, const Handle(IGESSolid_PlaneSurface)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESSolid_PlaneSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESSolid_PlaneSurface)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESSolid_ToolRightAngularWedge::OwnDump
(const Handle(IGESSolid_RightAngularWedge)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESSolid_RightAngularWedge" << Message_EndLine;
-
- S << "Size : ";
+ S << "IGESSolid_RightAngularWedge\n"
+ << "Size : ";
IGESData_DumpXYZ(S, ent->Size()); S << " ";
- S << "XSmall : " << ent->XSmallLength() << Message_EndLine;
- S << "Corner : ";
+ S << "XSmall : " << ent->XSmallLength() << "\n"
+ << "Corner : ";
IGESData_DumpXYZL(S,level, ent->Corner(), ent->Location());
- S << Message_EndLine << "XAxis : ";
+ S << "\nXAxis : ";
IGESData_DumpXYZL(S,level, ent->XAxis(), ent->VectorLocation());
- S << Message_EndLine << "ZAxis : ";
+ S << "\nZAxis : ";
IGESData_DumpXYZL(S,level, ent->ZAxis(), ent->VectorLocation());
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a RightAngularWedge. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESSolid_RightAngularWedge)& entfrom, const Handle(IGESSolid_RightAngularWedge)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESSolid_RightAngularWedge)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESSolid_RightAngularWedge)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESSolid_ToolSelectedComponent::OwnDump
(const Handle(IGESSolid_SelectedComponent)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESSolid_SelectedComponent" << Message_EndLine;
+ S << "IGESSolid_SelectedComponent\n";
// the heading for boolean tree is in BooleanTree OwnDump
- S << "Boolean Tree Entity : " << Message_EndLine;
+ S << "Boolean Tree Entity :\n";
dumper.Dump(ent->Component(),S, (level <= 4) ? 0 : 1);
S << "Seleted Point : ";
IGESData_DumpXYZL(S,level, ent->SelectPoint(), ent->Location());
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a SelectedComponent. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESSolid_SelectedComponent)& entfrom, const Handle(IGESSolid_SelectedComponent)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESSolid_SelectedComponent)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESSolid_SelectedComponent)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESSolid_ToolShell::OwnDump(const Handle(IGESSolid_Shell)& ent,
const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S,
+ Standard_OStream& S,
const Standard_Integer level) const
{
- S << "IGESSolid_Shell" << Message_EndLine;
+ S << "IGESSolid_Shell\n";
Standard_Integer upper = ent->NbFaces();
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
- S << "Faces : " << Message_EndLine << "Orientation flags : ";
+ S << "Faces :\nOrientation flags : ";
IGESData_DumpEntities(S,dumper,-level,1, ent->NbFaces(),ent->Face);
- S << Message_EndLine;
+ S << "\n";
if (level > 4)
{
- S << "[" << Message_EndLine;
+ S << "[\n";
for (Standard_Integer i = 1; i <= upper; i ++)
{
- S << "[" << i << "]: ";
- S << "Face : ";
+ S << "[" << i << "]: "
+ << "Face : ";
dumper.Dump (ent->Face(i),S, sublevel);
S << " - Orientation flag : ";
- if (ent->Orientation(i)) S << "True" << Message_EndLine;
- else S << "False" << Message_EndLine;
+ if (ent->Orientation(i)) S << "True\n";
+ else S << "False\n";
}
}
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a Shell. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESSolid_Shell)& entfrom, const Handle(IGESSolid_Shell)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESSolid_Shell)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESSolid_Shell)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESSolid_ToolSolidAssembly::OwnDump
(const Handle(IGESSolid_SolidAssembly)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
// Standard_Integer upper = ent->NbItems();
-
- S << "IGESSolid_SolidAssembly" << Message_EndLine;
-
- S << "Items : ";
+ S << "IGESSolid_SolidAssembly\n"
+ << "Items : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbItems(),ent->Item);
- S << Message_EndLine;
- S << "Matrices : ";
+ S << "\n"
+ << "Matrices : ";
IGESData_DumpEntities(S,dumper ,level,1, ent->NbItems(),ent->TransfMatrix);
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a SolidAssembly. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESSolid_SolidAssembly)& entfrom, const Handle(IGESSolid_SolidAssembly)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESSolid_SolidAssembly)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESSolid_SolidAssembly)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESSolid_ToolSolidInstance::OwnDump
(const Handle(IGESSolid_SolidInstance)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESSolid_SolidInstance" << Message_EndLine;
-
- S << "Solid entity : ";
+ S << "IGESSolid_SolidInstance\n"
+ << "Solid entity : ";
dumper.Dump(ent->Entity(),S, (level <= 4) ? 0 : 1);
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a SolidInstance. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESSolid_SolidInstance)& entfrom, const Handle(IGESSolid_SolidInstance)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESSolid_SolidInstance)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESSolid_SolidInstance)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESSolid_ToolSolidOfLinearExtrusion::OwnDump
(const Handle(IGESSolid_SolidOfLinearExtrusion)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESSolid_SolidOfLinearExtrusion" << Message_EndLine;
-
- S << "Curve entity : ";
+ S << "IGESSolid_SolidOfLinearExtrusion\n"
+ << "Curve entity : ";
dumper.Dump(ent->Curve(),S, (level <= 4) ? 0 : 1);
- S << Message_EndLine;
- S << "Extrusion length : " << ent->ExtrusionLength() << Message_EndLine;
- S << "Extrusion direction : ";
+ S << "\n"
+ << "Extrusion length : " << ent->ExtrusionLength() << "\n"
+ << "Extrusion direction : ";
IGESData_DumpXYZL(S,level, ent->ExtrusionDirection(), ent->VectorLocation());
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a SolidOfLinearExtrusion. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESSolid_SolidOfLinearExtrusion)& entfrom, const Handle(IGESSolid_SolidOfLinearExtrusion)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESSolid_SolidOfLinearExtrusion)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESSolid_SolidOfLinearExtrusion)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESSolid_ToolSolidOfRevolution::OwnDump
(const Handle(IGESSolid_SolidOfRevolution)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESSolid_SolidOfRevolution" << Message_EndLine;
-
- S << "Curve entity :";
+ S << "IGESSolid_SolidOfRevolution\n"
+ << "Curve entity :";
dumper.Dump(ent->Curve(),S, (level <= 4) ? 0 : 1);
- S << Message_EndLine;
- S << "Fraction of rotation : " << ent->Fraction() << Message_EndLine;
- S << "Axis Point : ";
+ S << "\n"
+ << "Fraction of rotation : " << ent->Fraction() << "\n"
+ << "Axis Point : ";
IGESData_DumpXYZL(S,level, ent->AxisPoint(), ent->Location());
- S << Message_EndLine << "Axis direction : ";
+ S << "\nAxis direction : ";
IGESData_DumpXYZL(S,level, ent->Axis(), ent->VectorLocation());
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a SolidOfRevolution. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESSolid_SolidOfRevolution)& entfrom, const Handle(IGESSolid_SolidOfRevolution)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESSolid_SolidOfRevolution)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESSolid_SolidOfRevolution)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESSolid_ToolSphere::OwnDump
(const Handle(IGESSolid_Sphere)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESSolid_Sphere" << Message_EndLine;
-
- S << "Radius : " << ent->Radius() << Message_EndLine;
- S << "Center : ";
+ S << "IGESSolid_Sphere\n"
+ << "Radius : " << ent->Radius() << "\n"
+ << "Center : ";
IGESData_DumpXYZL(S,level, ent->Center(), ent->Location());
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a Sphere. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESSolid_Sphere)& entfrom, const Handle(IGESSolid_Sphere)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESSolid_Sphere)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESSolid_Sphere)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESSolid_ToolSphericalSurface::OwnDump
(const Handle(IGESSolid_SphericalSurface)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESSolid_SphericalSurface" << Message_EndLine;
+ S << "IGESSolid_SphericalSurface\n";
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
S << "Center : ";
dumper.Dump(ent->Center(),S, sublevel);
- S << Message_EndLine;
- S << "Radius : " << ent->Radius() << Message_EndLine;
+ S << "\n"
+ << "Radius : " << ent->Radius() << "\n";
if (ent->IsParametrised())
{
- S << "Surface is Parametrised" << Message_EndLine;
- S << "Axis direction : ";
+ S << "Surface is Parametrised\n"
+ << "Axis direction : ";
dumper.Dump(ent->Axis(),S, sublevel);
- S << Message_EndLine;
- S << "Reference direction : ";
+ S << "\n"
+ << "Reference direction : ";
dumper.Dump(ent->ReferenceDir(),S, sublevel);
- S << Message_EndLine;
+ S << std::endl;
}
- else S << "Surface is UnParametrised" << Message_EndLine;
+ else S << "Surface is UnParametrised" << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a SphericalSurface. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESSolid_SphericalSurface)& entfrom, const Handle(IGESSolid_SphericalSurface)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESSolid_SphericalSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESSolid_SphericalSurface)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
IGESSolid_ToolToroidalSurface::IGESSolid_ToolToroidalSurface () { }
void IGESSolid_ToolToroidalSurface::OwnDump
(const Handle(IGESSolid_ToroidalSurface)& ent, const IGESData_IGESDumper& dumper,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESSolid_ToroidalSurface" << Message_EndLine;
+ S << "IGESSolid_ToroidalSurface\n";
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
S << "Center : ";
dumper.Dump(ent->Center(),S, sublevel);
- S << Message_EndLine;
- S << "Axis direction : ";
+ S << "\n"
+ << "Axis direction : ";
dumper.Dump(ent->Axis(),S, sublevel);
- S << Message_EndLine;
- S << "Major Radius : " << ent->MajorRadius() << " ";
- S << "Minor Radius : " << ent->MinorRadius() << Message_EndLine;
+ S << "\n"
+ << "Major Radius : " << ent->MajorRadius() << " "
+ << "Minor Radius : " << ent->MinorRadius() << "\n";
if (ent->IsParametrised())
{
S << "Surface is Parametrised - Reference direction : ";
dumper.Dump(ent->ReferenceDir(),S, sublevel);
- S << Message_EndLine;
+ S << std::endl;
}
- else S << "Surface is UnParametrised" << Message_EndLine;
+ else S << "Surface is UnParametrised" << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a ToroidalSurface. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESSolid_ToroidalSurface)& entfrom, const Handle(IGESSolid_ToroidalSurface)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESSolid_ToroidalSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESSolid_ToroidalSurface)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESSolid_ToolTorus::OwnDump
(const Handle(IGESSolid_Torus)& ent, const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
- S << "IGESSolid_Torus" << Message_EndLine;
-
- S << "Radius of revolution : " << ent->MajorRadius() << " ";
- S << "Radius of the disc : " << ent->DiscRadius() << Message_EndLine;
- S << "Center Point : ";
+ S << "IGESSolid_Torus\n"
+ << "Radius of revolution : " << ent->MajorRadius() << " "
+ << "Radius of the disc : " << ent->DiscRadius() << "\n"
+ << "Center Point : ";
IGESData_DumpXYZL(S,level, ent->AxisPoint(), ent->Location());
- S << Message_EndLine << "Axis direction : ";
+ S << "\nAxis direction : ";
IGESData_DumpXYZL(S,level, ent->Axis(), ent->VectorLocation());
- S << Message_EndLine;
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a Torus. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESSolid_Torus)& entfrom, const Handle(IGESSolid_Torus)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESSolid_Torus)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESSolid_Torus)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
void IGESSolid_ToolVertexList::OwnDump(const Handle(IGESSolid_VertexList)& ent,
const IGESData_IGESDumper& /* dumper */,
- const Handle(Message_Messenger)& S,
+ Standard_OStream& S,
const Standard_Integer level) const
{
- S << "IGESSolid_VertexList" << Message_EndLine;
-
- S << "Vertices : ";
- IGESData_DumpListXYZL(S ,level,1, ent->NbVertices(),ent->Vertex,ent->Location());
- S << Message_EndLine;
+ S << "IGESSolid_VertexList\n"
+ << "Vertices : ";
+ IGESData_DumpListXYZL(S,level,1, ent->NbVertices(),ent->Vertex,ent->Location());
+ S << std::endl;
}
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
-class Message_Messenger;
-
//! Tool to work on a VertexList. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
Standard_EXPORT void OwnCopy (const Handle(IGESSolid_VertexList)& entfrom, const Handle(IGESSolid_VertexList)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
- Standard_EXPORT void OwnDump (const Handle(IGESSolid_VertexList)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+ Standard_EXPORT void OwnDump (const Handle(IGESSolid_VertexList)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
if (unitfactor != 1.)
{
if ( myTP->TraceLevel() > 2 )
- myTP->Messenger() << "UnitFactor = "<< unitfactor << Message_EndLine;
+ myTP->Messenger()->SendInfo() << "UnitFactor = "<< unitfactor << std::endl;
myUnitFactor = unitfactor;
}
UpdateMinMaxTol();
{
Interface_CheckTool cht (theModel,protocol);
Interface_CheckIterator chl = cht.CompleteCheckList();
- if (withprint && !theProc.IsNull())
- cht.Print(chl, theProc->Messenger());
+ if (withprint
+ && !theProc.IsNull()
+ && !theProc->Messenger().IsNull())
+ {
+ Message_Messenger::StreamBuffer aBuffer = theProc->Messenger()->SendInfo();
+ cht.Print(chl, aBuffer);
+ }
return chl.IsEmpty(Standard_True);
}
Handle(Message_Messenger) anOutput = Message::DefaultMessenger();
if (!myPipelines->IsBound(aShapeID))
{
- anOutput << "Warning: there is no VTK pipeline registered for highlighted shape" << Message_EndLine;
+ anOutput->SendWarning() << "Warning: there is no VTK pipeline registered for highlighted shape" << std::endl;
continue;
}
Handle(Message_Messenger) anOutput = Message::DefaultMessenger();
if (!myPipelines->IsBound (aShapeID))
{
- anOutput << "Warning: there is no VTK pipeline registered for picked shape" << Message_EndLine;
+ anOutput->SendWarning() << "Warning: there is no VTK pipeline registered for picked shape" << std::endl;
continue;
}
if (aSelectable.IsNull())
{
- anOutput << "Error: EntityOwner having null SelectableObject picked!";
+ anOutput->SendAlarm() << "Error: EntityOwner having null SelectableObject picked!";
continue;
}
Handle(IVtkOCC_Shape) aSelShape = aSelectable->GetShape();
if (aSelShape.IsNull())
{
- anOutput << "Error: SelectableObject with null OccShape pointer picked!";
+ anOutput->SendAlarm() << "Error: SelectableObject with null OccShape pointer picked!";
continue;
}
TopoDS_Shape aSubShape = anEntityOwner->Shape();
if (aTopLevelShape.IsNull())
{
- anOutput << "Error: OccShape with null top-level TopoDS_Shape picked!";
+ anOutput->SendAlarm() << "Error: OccShape with null top-level TopoDS_Shape picked!";
continue;
}
if (aSubShape.IsNull())
{
- anOutput << "Error: EntityOwner with null TopoDS_Shape picked!";
+ anOutput->SendAlarm() << "Error: EntityOwner with null TopoDS_Shape picked!";
continue;
}
//purpose :
//=======================================================================
-void Interface_Check::Print(const Handle(Message_Messenger)& S, const Standard_Integer level,
+void Interface_Check::Print(Standard_OStream& S, const Standard_Integer level,
const Standard_Integer final) const
{
Standard_Integer j, nb = NbFails();
// if (nb > 0) S<<" --> Fails : "<<nb<<std::endl;
for (j = 1; j <= nb; j ++) {
if (final >= 0)
- S<<CFail(j,Standard_True)<<"\n";
+ S <<CFail(j,Standard_True)<<"\n";
else
- S<<CFail(j,Standard_False)<<"\n";
+ S <<CFail(j,Standard_False)<<"\n";
// if (final == 0)
// if (Fail(j,Standard_True) != Fail(j,Standard_False))
// S<<"[original:"<<CFail(j,Standard_False)<<"]\n";
// if (nb > 0) S<<" --> Warnings : "<<nb<<std::endl;
for (j = 1; j <= nb; j ++) {
if (final >= 0)
- S<<CWarning(j,Standard_True)<<"\n";
+ S <<CWarning(j,Standard_True)<<"\n";
else
- S<<CWarning(j,Standard_False)<<"\n";
+ S <<CWarning(j,Standard_False)<<"\n";
// if (final == 0)
// if (Warning(j,Standard_True) != Warning(j,Standard_False))
// S<<"[original:"<<CWarning(j,Standard_False)<<"]\n";
// if (nb > 0) S<<" --> Infos : "<<nb<<std::endl;
for (j = 1; j <= nb; j ++) {
if (final >= 0)
- S<<CInfoMsg(j,Standard_True)<<"\n";
+ S <<CInfoMsg(j,Standard_True)<<"\n";
else
- S<<CInfoMsg(j,Standard_False)<<"\n";
+ S <<CInfoMsg(j,Standard_False)<<"\n";
// if (final == 0)
// if (InfoMsg(j,Standard_True) != InfoMsg(j,Standard_False))
// S<<"[original:"<<CInfoMsg(j,Standard_False)<<"]\n";
void Interface_Check::Trace(const Standard_Integer level,
const Standard_Integer final) const
{
- Print (Message::DefaultMessenger(), level, final);
+ Message_Messenger::StreamBuffer sout = Message::SendInfo(); // shouldn't it be changed to SendTrace()?
+ Print (sout, level, final);
}
class Standard_OutOfRange;
class Message_Msg;
class TCollection_HAsciiString;
-class Message_Messenger;
// resolve name collisions with X11 headers
#ifdef Status
//! <final> : if positive (D) prints final values of messages
//! if negative, prints originals
//! if null, prints both forms
- Standard_EXPORT void Print (const Handle(Message_Messenger)& S, const Standard_Integer level, const Standard_Integer final = 1) const;
+ Standard_EXPORT void Print (Standard_OStream& S, const Standard_Integer level, const Standard_Integer final = 1) const;
//! Prints the messages of the check to the default trace file
//! By default, according to the default standard level
#include <Interface_CheckIterator.hxx>
#include <Interface_InterfaceModel.hxx>
#include <Interface_IntVal.hxx>
-#include <Message_Messenger.hxx>
#include <Standard_NoSuchObject.hxx>
#include <Standard_Transient.hxx>
#include <TCollection_HAsciiString.hxx>
//purpose :
//=======================================================================
-void Interface_CheckIterator::Print(const Handle(Message_Messenger)& S,
+void Interface_CheckIterator::Print(Standard_OStream& S,
const Standard_Boolean failsonly,
const Standard_Integer final) const
{
//purpose :
//=======================================================================
-void Interface_CheckIterator::Print(const Handle(Message_Messenger)& S,
+void Interface_CheckIterator::Print(Standard_OStream& S,
const Handle(Interface_InterfaceModel)& model,
const Standard_Boolean failsonly,
const Standard_Integer /*final*/) const
// mesnum = mesnum0;
// if (yamod) mesnum = (nm0 > 0 ? mesnum1 : mesnum2);
- if (!titre) S<<" ** " << Name() << " **"<<Message_EndLine;
+ if (!titre) S <<" ** " << Name() << " **"<<std::endl;
titre = Standard_True;
- S<<"Check:"; if(nb > 9 && i < 10) S<<" "; if (nb > 99 && i < 100) S<<" ";
- S<<i;
- if (num < 0) S<<" -- Global Check"<<Message_EndLine;
- else if (num == 0) S<<" -- Entity n0 ??:";
+ S <<"Check:"; if(nb > 9 && i < 10) S <<" "; if (nb > 99 && i < 100) S <<" ";
+ S <<i;
+ if (num < 0) S <<" -- Global Check"<<std::endl;
+ else if (num == 0) S <<" -- Entity n0 ??:";
else {
- if (yamod) { S<<" -- Entity (n0:id) "; model->Print (ent,S); }
- else S<<" -- Entity n0 "<<num;
+ if (yamod) { S <<" -- Entity (n0:id) "; model->Print (ent, S); }
+ else S <<" -- Entity n0 "<<num;
// S<<" -- Entity n0 "<<num<<mesnum;
// if (yamod) model->PrintLabel(ent,S);
}
- if (num >= 0 && entnul) S<<" (unknown Type)"<<Message_EndLine;
+ if (num >= 0 && entnul) S <<" (unknown Type)"<<std::endl;
else if (num >= 0 && !entnul) {
- if (yamod) S<<" Type:"<<model->TypeName(ent)<<Message_EndLine;
- else S<<" Type:"<<ent->DynamicType()->Name()<<Message_EndLine;
+ if (yamod) S <<" Type:"<<model->TypeName(ent)<<std::endl;
+ else S <<" Type:"<<ent->DynamicType()->Name()<<std::endl;
}
nbch ++;
class Standard_NoSuchObject;
class Interface_Check;
class Standard_Transient;
-class Message_Messenger;
// resolve name collisions with X11 headers
#ifdef Status
//! If <final> > 0, prints only final messages
//! It uses the recorded Model if it is defined
//! Remark : Works apart from the iteration methods (no interference)
- Standard_EXPORT void Print (const Handle(Message_Messenger)& S, const Standard_Boolean failsonly, const Standard_Integer final = 0) const;
+ Standard_EXPORT void Print (Standard_OStream& S, const Standard_Boolean failsonly, const Standard_Integer final = 0) const;
//! Works as Print without a model, but for entities which have
//! no attached number (Number not positive), tries to compute
//! this Number from <model> and displays "original" or "computed"
- Standard_EXPORT void Print (const Handle(Message_Messenger)& S, const Handle(Interface_InterfaceModel)& model, const Standard_Boolean failsonly, const Standard_Integer final = 0) const;
+ Standard_EXPORT void Print (Standard_OStream& S, const Handle(Interface_InterfaceModel)& model, const Standard_Boolean failsonly, const Standard_Integer final = 0) const;
//! Clears data of iteration
Standard_EXPORT void Destroy();
#include <Interface_Protocol.hxx>
#include <Interface_ReportEntity.hxx>
#include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_Transient.hxx>
//=======================================================================
void Interface_CheckTool::Print(const Handle(Interface_Check)& ach,
- const Handle(Message_Messenger)& S) const
+ Standard_OStream& S) const
{
Standard_Integer i, nb;
nb = ach->NbFails();
if (nb > 0) S << " Fail Messages : " << nb << " :\n";
for (i = 1; i <= nb; i ++) {
- S << ach->Fail(i) << "\n";
+ S << ach->Fail(i)->String() << "\n";
}
nb = ach->NbWarnings();
if (nb > 0) S << " Warning Messages : " << nb << " :\n";
for (i = 1; i <= nb; i ++) {
- S << ach->Warning(i) << "\n";
+ S << ach->Warning(i)->String() << "\n";
}
}
//=======================================================================
void Interface_CheckTool::Print(const Interface_CheckIterator& list,
- const Handle(Message_Messenger)& S) const
+ Standard_OStream& S) const
{
Handle(Interface_InterfaceModel) model = theshare.Model();
list.Print(S,model,Standard_False);
class Standard_Transient;
class Interface_ShareTool;
class Interface_Check;
-class Message_Messenger;
class Interface_CheckIterator;
class Interface_EntityIterator;
Standard_EXPORT void FillCheck (const Handle(Standard_Transient)& ent, const Interface_ShareTool& sh, Handle(Interface_Check)& ach);
//! Utility method which Prints the content of a Check
- Standard_EXPORT void Print (const Handle(Interface_Check)& ach, const Handle(Message_Messenger)& S) const;
+ Standard_EXPORT void Print (const Handle(Interface_Check)& ach, Standard_OStream& S) const;
//! Simply Lists all the Checks and the Content (messages) and the
//! Entity, if there is, of each Check
//! (if all Checks are OK, nothing is Printed)
- Standard_EXPORT void Print (const Interface_CheckIterator& list, const Handle(Message_Messenger)& S) const;
+ Standard_EXPORT void Print (const Interface_CheckIterator& list, Standard_OStream& S) const;
//! Returns the Check associated to an Entity identified by
//! its Number in a Model.
thereports->SetValue(irep,rep);
if ( thetrace >= 2 && !Messenger().IsNull())
- ach->Print (Messenger(),2);
+ {
+ Message_Messenger::StreamBuffer sout = Messenger()->SendInfo();
+ ach->Print (sout,2);
+ }
}
// Rechargement ? si oui, dans une UnknownEntity fournie par le protocole
#include <Interface_Protocol.hxx>
#include <Interface_ReportEntity.hxx>
#include <Interface_SignType.hxx>
-#include <Message_Messenger.hxx>
#include <Standard_NoSuchObject.hxx>
#include <Standard_OutOfRange.hxx>
#include <Standard_Transient.hxx>
//=======================================================================
void Interface_InterfaceModel::Print(const Handle(Standard_Transient)& ent,
- const Handle(Message_Messenger)& S,
+ Standard_OStream& S,
const Standard_Integer mode) const
{
- if (ent.IsNull()) { S<<"NULL"; return; }
+ if (ent.IsNull()) { S << "NULL" ; return; }
Standard_Integer num = Number(ent);
- if (mode <= 0) S<<num;
- if (mode == 0) S<<":";
+ if (mode <= 0) S <<num;
+ if (mode == 0) S <<":";
if (mode >= 0) {
if (num > 0)
PrintToLog(ent,S);
// PrintLabel (ent,S);
- else S<<"??";
+ else S <<"??";
}
}
//=======================================================================
void Interface_InterfaceModel::PrintToLog(const Handle(Standard_Transient)& ent,
- const Handle(Message_Messenger)& S) const
+ Standard_OStream& S) const
{
PrintLabel (ent,S);
}
class Interface_CheckIterator;
class Interface_GeneralLib;
class Interface_EntityIterator;
-class Message_Messenger;
class Interface_InterfaceModel;
//! Dumps Header in a short, easy to read, form, onto a Stream
//! <level> allows to print more or less parts of the header,
//! if necessary. 0 for basic print
- Standard_EXPORT virtual void DumpHeader (const Handle(Message_Messenger)& S, const Standard_Integer level = 0) const = 0;
+ Standard_EXPORT virtual void DumpHeader (Standard_OStream& S, const Standard_Integer level = 0) const = 0;
//! Prints identification of a given entity in <me>, in order to
//! be printed in a list or phrase
//! <mode> = 0 (D) : prints its number plus '/' plus PrintLabel
//! If <ent> == <me>, simply prints "Global"
//! If <ent> is unknown, prints "??/its type"
- Standard_EXPORT void Print (const Handle(Standard_Transient)& ent, const Handle(Message_Messenger)& s, const Standard_Integer mode = 0) const;
+ Standard_EXPORT void Print (const Handle(Standard_Transient)& ent, Standard_OStream& s, const Standard_Integer mode = 0) const;
//! Prints label specific to each norm, for a given entity.
//! Must only print label itself, in order to be included in a
//! phrase. Can call the result of StringLabel, but not obliged.
- Standard_EXPORT virtual void PrintLabel (const Handle(Standard_Transient)& ent, const Handle(Message_Messenger)& S) const = 0;
+ Standard_EXPORT virtual void PrintLabel (const Handle(Standard_Transient)& ent, Standard_OStream& S) const = 0;
//! Prints label specific to each norm in log format, for
//! a given entity.
//! By default, just calls PrintLabel, can be redefined
- Standard_EXPORT virtual void PrintToLog (const Handle(Standard_Transient)& ent, const Handle(Message_Messenger)& S) const;
+ Standard_EXPORT virtual void PrintToLog (const Handle(Standard_Transient)& ent, Standard_OStream& S) const;
//! Returns a string with the label attached to a given entity.
//! Warning : While this string may be edited on the spot, if it is a read
return list;
}
- void Interface_ShareTool::Print
- (const Interface_EntityIterator& iter, const Handle(Message_Messenger)& S) const
+void Interface_ShareTool::Print (const Interface_EntityIterator& iter, Standard_OStream& S) const
{
S << " Nb.Entities : " << iter.NbEntities() << " : ";
for (iter.Start(); iter.More(); iter.Next()) {
Handle(Standard_Transient) ent = iter.Value();
- S << " n0/id:"; Model()->Print(ent,S);
+ S << " n0/id:";
+ Model()->Print (ent, S);
}
- S<<Message_EndLine;
+ S <<std::endl;
}
#ifndef _Interface_ShareTool_HeaderFile
#define _Interface_ShareTool_HeaderFile
-#include <Standard.hxx>
-#include <Standard_DefineAlloc.hxx>
-#include <Standard_Handle.hxx>
-
-#include <Standard_Boolean.hxx>
-#include <Standard_Integer.hxx>
#include <Standard_Type.hxx>
+
class Interface_HGraph;
class Standard_DomainError;
class Interface_InterfaceError;
class Interface_Protocol;
class Interface_Graph;
class Interface_EntityIterator;
-class Standard_Transient;
-class Message_Messenger;
-
//! Builds the Graph of Dependancies, from the General Service
//! "Shared" -> builds for each Entity of a Model, the Shared and
//! Utility method which Prints the content of an iterator
//! (by their Numbers)
- Standard_EXPORT void Print (const Interface_EntityIterator& iter, const Handle(Message_Messenger)& S) const;
+ Standard_EXPORT void Print (const Interface_EntityIterator& iter,Standard_OStream& S) const;
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
+#include <Interface_Static.hxx>
#include <Interface_InterfaceError.hxx>
-#include <Interface_Static.hxx>
-#include <Message_Messenger.hxx>
#include <OSD_Path.hxx>
#include <Standard_Transient.hxx>
#include <Standard_Type.hxx>
// ## Print ##
-void Interface_Static::PrintStatic (const Handle(Message_Messenger)& S) const
+void Interface_Static::PrintStatic (Standard_OStream& S) const
{
- S<<"--- Static Value : "<<Name()<<" Family:"<<Family();
+ S <<"--- Static Value : "<<Name()<<" Family:"<<Family();
Print (S);
if (!thewild.IsNull())
- S<<" -- Attached to wild-card : "<<thewild->Name()<<Message_EndLine;
- S<<"--- Actual status : "<<(theupdate ? "" : "original")<<" Value : ";
+ S <<" -- Attached to wild-card : "<<thewild->Name()<<std::endl;
+ S <<"--- Actual status : "<<(theupdate ? "" : "original")<<" Value : ";
- if (thesatisf) S<<" -- Specific Function for Satisfies : "<<thesatisn.ToCString()<<Message_EndLine;
+ if (thesatisf) S <<" -- Specific Function for Satisfies : "<<thesatisn.ToCString()<<std::endl;
}
class TCollection_HAsciiString;
class Standard_Transient;
class Interface_InterfaceError;
-class Message_Messenger;
-
class Interface_Static;
DEFINE_STANDARD_HANDLE(Interface_Static, Interface_TypedValue)
//! - Current status (empty string if it was updated or
//! if it is the original one)
//! - Value
- Standard_EXPORT void PrintStatic (const Handle(Message_Messenger)& S) const;
+ Standard_EXPORT void PrintStatic (Standard_OStream& S) const;
//! Returns the family. It can be : a resource name for applis,
//! an internal name between : $e (environment variables),
myStream.flush();
if (doForce || myStream.rdbuf()->in_avail() > 0)
{
- myMessenger->Send (myStream.str().c_str(), myGravity);
+ if (myMessenger)
+ {
+ myMessenger->Send(myStream.str().c_str(), myGravity);
+ }
myStream.str(std::string()); // empty the buffer for possible reuse
}
}
//! Access to the stream object
Standard_SStream& Stream () { return myStream; }
+ //! Cast to OStream&
+ operator Standard_OStream& () { return myStream; }
+
+ //! Access to the messenger
+ Message_Messenger* Messenger () { return myMessenger; }
+
private:
friend class Message_Messenger;
};
-// CString
-inline const Handle(Message_Messenger)& operator<< (const Handle(Message_Messenger)& theMessenger,
- const Standard_CString theStr)
-{
- theMessenger->Send (theStr, Message_Info, Standard_False);
- return theMessenger;
-}
-
-// AsciiString
-inline const Handle(Message_Messenger)& operator<< (const Handle(Message_Messenger)& theMessenger,
- const TCollection_AsciiString& theStr)
-{
- theMessenger->Send (theStr, Message_Info, Standard_False);
- return theMessenger;
-}
-
-// HAsciiString
-inline const Handle(Message_Messenger)& operator<< (const Handle(Message_Messenger)& theMessenger,
- const Handle(TCollection_HAsciiString)& theStr)
-{
- theMessenger->Send (theStr->String(), Message_Info, Standard_False);
- return theMessenger;
-}
-
-// ExtendedString
-inline const Handle(Message_Messenger)& operator<< (const Handle(Message_Messenger)& theMessenger,
- const TCollection_ExtendedString& theStr)
-{
- theMessenger->Send (theStr, Message_Info, Standard_False);
- return theMessenger;
-}
-
-// HExtendedString
-inline const Handle(Message_Messenger)& operator<< (const Handle(Message_Messenger)& theMessenger,
- const Handle(TCollection_HExtendedString)& theStr)
-{
- theMessenger->Send (theStr->String(), Message_Info, Standard_False);
- return theMessenger;
-}
-
-// Integer
-inline const Handle(Message_Messenger)& operator<< (const Handle(Message_Messenger)& theMessenger,
- const Standard_Integer theVal)
-{
- TCollection_AsciiString aStr (theVal);
- theMessenger->Send (aStr, Message_Info, Standard_False);
- return theMessenger;
-}
-
-// Real
-inline const Handle(Message_Messenger)& operator<< (const Handle(Message_Messenger)& theMessenger,
- const Standard_Real theVal)
-{
- TCollection_AsciiString aStr (theVal);
- theMessenger->Send (aStr, Message_Info, Standard_False);
- return theMessenger;
-}
-
-// Stream
-inline const Handle(Message_Messenger)& operator<< (const Handle(Message_Messenger)& theMessenger,
- const Standard_SStream& theStream)
-{
- theMessenger->Send (theStream.str().c_str(), Message_Info, Standard_False);
- return theMessenger;
-}
-
-// manipulators
-inline const Handle(Message_Messenger)&
- operator << (const Handle(Message_Messenger)& theMessenger,
- const Handle(Message_Messenger)& (*pman) (const Handle(Message_Messenger)&))
-{
- return pman (theMessenger);
-}
-
-// Message_EndLine
-inline const Handle(Message_Messenger)& Message_EndLine (const Handle(Message_Messenger)& theMessenger)
-{
- theMessenger->Send ("", Message_Info, Standard_True);
- return theMessenger;
-}
-
#endif // _Message_Messenger_HeaderFile
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
+#include <MoniTool_TypedValue.hxx>
-#include <Message_Messenger.hxx>
#include <MoniTool_Element.hxx>
-#include <MoniTool_TypedValue.hxx>
#include <OSD_Path.hxx>
#include <Standard_ConstructionError.hxx>
#include <Standard_Transient.hxx>
// ## Print ##
- void MoniTool_TypedValue::Print (const Handle(Message_Messenger)& S) const
+ void MoniTool_TypedValue::Print (Standard_OStream& S) const
{
- S<<"--- Typed Value : "<<Name();
- if (thelabel.Length() > 0) S<<" Label : "<<Label();
- S<<Message_EndLine<<"--- Type : "<<Definition()<<Message_EndLine<<"--- Value : ";
+ S <<"--- Typed Value : "<<Name();
+ if (thelabel.Length() > 0) S <<" Label : "<<Label();
+ S <<std::endl<<"--- Type : "<<Definition()<<std::endl<<"--- Value : ";
PrintValue (S);
- S<<Message_EndLine;
+ S <<std::endl;
- if (thesatisf) S<<" -- Specific Function for Satisfies : "<<thesatisn.ToCString()<<Message_EndLine;
+ if (thesatisf) S <<" -- Specific Function for Satisfies : "<<thesatisn.ToCString()<<std::endl;
}
- void MoniTool_TypedValue::PrintValue (const Handle(Message_Messenger)& S) const
+ void MoniTool_TypedValue::PrintValue (Standard_OStream& S) const
{
if (IsSetValue()) {
if (thetype == MoniTool_ValueIdent)
- S<<" (type) "<<theoval->DynamicType()->Name();
+ S <<" (type) "<<theoval->DynamicType()->Name();
if (!thehval.IsNull())
- S<<(thetype == MoniTool_ValueIdent ? " : " : "")<<thehval->ToCString();
+ S <<(thetype == MoniTool_ValueIdent ? " : " : "")<<thehval->ToCString();
if (HasInterpret()) {
- S<<" (";
+ S <<" (";
Handle(TCollection_HAsciiString) str = Interpret (thehval,Standard_True);
- if (!str.IsNull() && str != thehval) S<<"Native:"<<str->ToCString();
+ if (!str.IsNull() && str != thehval) S <<"Native:"<<str->ToCString();
str = Interpret (thehval,Standard_False);
- if (!str.IsNull() && str != thehval) S<<" Coded:"<<str->ToCString();
- S<<")";
+ if (!str.IsNull() && str != thehval) S <<" Coded:"<<str->ToCString();
+ S <<")";
}
}
- else S<<"(not set)";
+ else S <<"(not set)";
}
class Standard_Transient;
class Standard_ConstructionError;
class TCollection_AsciiString;
-class Message_Messenger;
-
class MoniTool_TypedValue;
DEFINE_STANDARD_HANDLE(MoniTool_TypedValue, Standard_Transient)
Standard_EXPORT void SetDefinition (const Standard_CString deftext);
//! Prints definition, specification, and actual status and value
- Standard_EXPORT virtual void Print (const Handle(Message_Messenger)& S) const;
+ Standard_EXPORT virtual void Print (Standard_OStream& S) const;
//! Prints only the Value
- Standard_EXPORT void PrintValue (const Handle(Message_Messenger)& S) const;
+ Standard_EXPORT void PrintValue (Standard_OStream& S) const;
//! Completes the definition of a TypedValue by command <initext>,
//! once created with its type
Standard_Integer nb =
FindEntities ( FP, oneShape, Loc, seqRI );
if ( nb <=0 )
- FP->Messenger() << "Warning: Cannot find RI for " << oneShape.TShape()->DynamicType()->Name() << Message_EndLine;
+ FP->Messenger()->SendInfo() << "Warning: Cannot find RI for " << oneShape.TShape()->DynamicType()->Name() << std::endl;
}
if ( seqRI.Length() <= 0 ) continue;
if (L.FindAttribute(XCAFDoc::InvisibleGUID(), aUAttr)) {
descr = new TCollection_HAsciiString ("invisible");
#ifdef OCCT_DEBUG
- FP->Messenger() << "\tLayer \"" << hName->String().ToCString() << "\" is invisible"<<Message_EndLine;
+ std::cout << "\tLayer \"" << hName->String().ToCString() << "\" is invisible"<<std::endl;
#endif
isLinv = Standard_True;
}
FindEntities ( FP, Sh, L, seqRI );
#ifdef OCCT_DEBUG
if ( seqRI.Length() <=0 )
- FP->Messenger() << "Warning: Cannot find RI for " << Sh.TShape()->DynamicType()->Name() << Message_EndLine;
+ std::cout << "Warning: Cannot find RI for " << Sh.TShape()->DynamicType()->Name() << std::endl;
#endif
item = Handle(StepRepr_RepresentationItem)::DownCast(seqRI(1));
//get overridden styled item
TColStd_SequenceOfTransient aSeqRI;
FindEntities( FP, theShape, aLoc, aSeqRI );
if ( aSeqRI.Length() <= 0 ) {
- FP->Messenger() << "Warning: Cannot find RI for "<<theShape.TShape()->DynamicType()->Name()<<Message_EndLine;
+ FP->Messenger()->SendInfo() << "Warning: Cannot find RI for "<<theShape.TShape()->DynamicType()->Name()<<std::endl;
return NULL;
}
aShape = XCAFDoc_ShapeTool::GetShape(theShapeL.Value(i));
FindEntities(FP, aShape, aLoc, aSeqRI);
if (aSeqRI.Length() <= 0) {
- FP->Messenger() << "Warning: Cannot find RI for " << aShape.TShape()->DynamicType()->Name() << Message_EndLine;
+ FP->Messenger()->SendInfo() << "Warning: Cannot find RI for " << aShape.TShape()->DynamicType()->Name() << std::endl;
continue;
}
anEnt = aSeqRI.Value(1);
TColStd_SequenceOfTransient seqRI;
FindEntities( FP, aShape, Loc, seqRI );
if ( seqRI.Length() <= 0 ) {
- FP->Messenger() << "Warning: Cannot find RI for "<<aShape.TShape()->DynamicType()->Name()<<Message_EndLine;
+ FP->Messenger()->SendInfo() << "Warning: Cannot find RI for "<<aShape.TShape()->DynamicType()->Name()<<std::endl;
continue;
}
Handle(StepRepr_ProductDefinitionShape) PDS;
TColStd_SequenceOfTransient seqRI;
FindEntities( FP, aShape, Loc, seqRI );
if ( seqRI.Length() <= 0 ) {
- FP->Messenger() << "Warning: Cannot find RI for "<<aShape.TShape()->DynamicType()->Name()<<Message_EndLine;
+ FP->Messenger()->SendInfo() << "Warning: Cannot find RI for "<<aShape.TShape()->DynamicType()->Name()<<std::endl;
continue;
}
Handle(StepRepr_ProductDefinitionShape) PDS;
Handle(StepRepr_ShapeAspect) SA = CD.ShapeAspect();
if ( SA.IsNull() ) {
#ifdef OCCT_DEBUG
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
sout << "Error: Cannot find target entity (SA) for geometric_validation_property ";
- Model()->PrintLabel ( PD, sout );
- sout << Message_EndLine;
+ Model()->PrintLabel (PD, sout);
+ sout << std::endl;
#endif
return ProdDef;
}
}
#ifdef OCCT_DEBUG
if ( ProdDef.IsNull() ) {
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
sout << "Error: Cannot find target entity (SDR) for geometric_validation_property ";
- Model()->PrintLabel ( PD, sout );
- sout << Message_EndLine;
+ Model()->PrintLabel (PD, sout);
+ sout << std::endl;
}
#endif
return ProdDef;
//}
#ifdef OCCT_DEBUG
if ( S.IsNull() ) {
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
sout << "Warning: Entity ";
- Model()->PrintLabel ( ProdDef, sout );
- sout << " is not mapped to shape" << Message_EndLine;
+ Model()->PrintLabel (ProdDef, sout);
+ sout << " is not mapped to shape" << std::endl;
}
#endif
return S;
const Handle(Transfer_TransientProcess)& TP,
const Standard_Boolean theUseTrsf)
{
- Handle(Message_Messenger) sout = TP->Messenger();
+ Message_Messenger::StreamBuffer sout = TP->Messenger()->SendInfo();
Handle(TransferBRep_ShapeBinder) shbinder;
TopoDS_Compound Cund;
#ifdef TRANSLOG
if (TP->TraceLevel() > 1)
- sout<<" -- Actor : Ent.n0 "<<TP->Model()->Number(PD)<<" -> Shared Ent.no"<<TP->Model()->Number(NAUO)<<Message_EndLine;
+ sout<<" -- Actor : Ent.n0 "<<TP->Model()->Number(PD)<<" -> Shared Ent.no"<<TP->Model()->Number(NAUO)<<std::endl;
#endif
Handle(Transfer_Binder) binder;
if (!TP->IsBound(NAUO)) binder = TransferEntity(NAUO,TP);
Standard_Integer nb = sr->NbItems();
// Used in XSAlgo::AlgoContainer()->ProcessShape (ssv; 13.11.2010)
Standard_Integer nbTPitems = TP->NbMapped();
- Handle(Message_Messenger) sout = TP->Messenger();
+ Message_Messenger::StreamBuffer sout = TP->Messenger()->SendInfo();
#ifdef TRANSLOG
if (TP->TraceLevel() > 2)
- sout<<" -- Actor : case ShapeRepr. NbItems="<<nb<<Message_EndLine;
+ sout<<" -- Actor : case ShapeRepr. NbItems="<<nb<<std::endl;
#endif
// Compute unit convertion factors and geometric Accuracy
//for (i = 1; i <= nb ; i ++) {
#ifdef TRANSLOG
if (TP->TraceLevel() > 2)
- sout<<" -- Actor, shape_representation.item n0. "<<i<<Message_EndLine;
+ sout<<" -- Actor, shape_representation.item n0. "<<i<<std::endl;
#endif
Handle(StepRepr_RepresentationItem) anitem = sr->ItemsValue(i);
if(anitem.IsNull())
Handle(TransferBRep_ShapeBinder) STEPControl_ActorRead::OldWay(const Handle(Standard_Transient)& start,
const Handle(Transfer_TransientProcess)& TP)
{
- Handle(Message_Messenger) sout = TP->Messenger();
+ Message_Messenger::StreamBuffer sout = TP->Messenger()->SendInfo();
const Interface_Graph& graph = TP->Graph();
Handle(TransferBRep_ShapeBinder) shbinder;
DeclareAndCast(StepShape_ShapeDefinitionRepresentation,sdr,start);
#ifdef TRANSLOG
if (TP->TraceLevel() > 2)
- sout<<" -- Actor : case shape_definition_representation."<<Message_EndLine;
+ sout<<" -- Actor : case shape_definition_representation."<<std::endl;
#endif
Handle(Transfer_Binder) binder = TP->Find(rep);
if (binder.IsNull()) binder = TP->Transferring(rep);
// if (anitem.IsNull()) continue;
#ifdef TRANSLOG
if (TP->TraceLevel() > 1)
- sout<<" -- Actor : Ent.n0 "<<TP->Model()->Number(start)<<" -> Shared Ent.no"<<TP->Model()->Number(anitem)<<Message_EndLine;
+ sout<<" -- Actor : Ent.n0 "<<TP->Model()->Number(start)<<" -> Shared Ent.no"<<TP->Model()->Number(anitem)<<std::endl;
#endif
if (!TP->IsBound(anitem)) binder = TP->Transferring(anitem);
const Handle(Transfer_TransientProcess)& TP,
const Standard_Boolean isManifold)
{
- Handle(Message_Messenger) sout = TP->Messenger();
+ Message_Messenger::StreamBuffer sout = TP->Messenger()->SendInfo();
Handle(TransferBRep_ShapeBinder) shbinder;
Standard_Boolean found = Standard_False;
StepToTopoDS_Builder myShapeBuilder;
OSD_Timer chrono;
if (TP->TraceLevel() > 2)
sout << "Begin transfer STEP -> CASCADE, Type "
- << start->DynamicType()->Name() << Message_EndLine;
+ << start->DynamicType()->Name() << std::endl;
chrono.Start();
#endif
#ifdef TRANSLOG
chrono.Stop();
if (TP->TraceLevel() > 2)
- sout<<"End transfer STEP -> CASCADE :" << (found ? "OK" : " : no result")<<Message_EndLine;
+ sout<<"End transfer STEP -> CASCADE :" << (found ? "OK" : " : no result")<<std::endl;
if (TP->TraceLevel() > 2)
chrono.Show();
#endif
if (start.IsNull()) return NullResult();
XSAlgo::AlgoContainer()->PrepareForTransfer();
- Handle(Message_Messenger) sout = TP->Messenger();
+ Message_Messenger::StreamBuffer sout = TP->Messenger()->SendInfo();
#ifdef TRANSLOG
// POUR MISE AU POINT, a supprimer ensuite
if (TP->TraceLevel() > 1)
- sout<<" -- Actor : Transfer Ent.n0 "<<TP->Model()->Number(start)<<" Type "<<start->DynamicType()->Name()<<Message_EndLine;
+ sout<<" -- Actor : Transfer Ent.n0 "<<TP->Model()->Number(start)<<" Type "<<start->DynamicType()->Name()<<std::endl;
#endif
Handle(TransferBRep_ShapeBinder) shbinder;
// Assign uncertainty
#ifdef TRANSLOG
if (TP->TraceLevel() > 1)
- TP->Messenger() <<" Cc1ToTopoDS : Length Unit = "<<myUnit.LengthFactor()<<" Tolerance CASCADE = "<<myPrecision<<Message_EndLine;
+ TP->Messenger()->SendInfo() <<" Cc1ToTopoDS : Length Unit = "<<myUnit.LengthFactor()<<" Tolerance CASCADE = "<<myPrecision<<std::endl;
#endif
}
Standard_Boolean StepData_StepDumper::Dump
- (const Handle(Message_Messenger)& S, const Handle(Standard_Transient)& ent,
+ (Standard_OStream& S, const Handle(Standard_Transient)& ent,
const Standard_Integer level)
{
Standard_Integer i, nb = themodel->NbEntities();
TColStd_SequenceOfAsciiString listypes;
if (!module->ComplexType(CN,listypes))
S << "(Complex Type : ask level > 0) cdl = "
- << ent->DynamicType()->Name() << " (...);" << Message_EndLine;
+ << ent->DynamicType()->Name() << " (...);" << std::endl;
else {
Standard_Integer n = listypes.Length();
for (i = 1; i <= n; i ++) S << listypes.Value(i) << " (...)";
- S << Message_EndLine;
+ S << std::endl;
}
}
- else S << module->StepType(CN) << " (...);" << Message_EndLine;
+ else S << module->StepType(CN) << " (...);" << std::endl;
}
else S << "(Unrecognized Type for protocol) cdl = "
- << ent->DynamicType()->Name() << " (...);" << Message_EndLine;
- if (nlab > 0) S << "/* Ident in file for "<<num<<" : #"<<nlab<<" */"<<Message_EndLine;
+ << ent->DynamicType()->Name() << " (...);" << std::endl;
+ if (nlab > 0) S << "/* Ident in file for "<<num<<" : #"<<nlab<<" */"<<std::endl;
}
else if (level == 1) {
}
else {
Handle(Standard_Transient) anent;
-// S << " -- Dumping Entity n0 " << num << " --" << std::endl;
+// S<< " -- Dumping Entity n0 " << num << " --" << std::endl;
// ... Envoi ...
TColStd_Array1OfInteger tab(0,nb); tab.Init(0);
tab.SetValue(num,1);
else if (nlab > 0) nbi ++;
}
if (nbe > 0) {
-// S <<" -- Displayed nums:"<<nbe<<" with ident=num:"<<nbq<<" , distinct proper ident:"<<nbi<<"\n";
+// S<<" -- Displayed nums:"<<nbe<<" with ident=num:"<<nbq<<" , distinct proper ident:"<<nbi<<"\n";
if (nbu > 0) {
- S<<" (no ident): ";
+ S <<" (no ident): ";
for (i = 1; i <= nb; i ++)
- { if (ids.Value(i) >= 0) continue; S<<" #"<<i; }
- S<<Message_EndLine;
+ { if (ids.Value(i) >= 0) continue; S <<" #"<<i; }
+ S <<std::endl;
}
if (nbq > 0) {
- S<<" (ident = num): ";
- for (i = 1; i <= nb; i ++) { if (ids.Value(i) == i) S<<" #"<<i; }
- S<<Message_EndLine;
+ S <<" (ident = num): ";
+ for (i = 1; i <= nb; i ++) { if (ids.Value(i) == i) S <<" #"<<i; }
+ S <<std::endl;
}
if (nbi < 0) { // on n affiche plus num:#id , on envoie un petit help
Standard_Integer nbl = 0, nbr = 0, nbr0 = 0, nbc = 0;
char unid[30];
-// S<<" (proper ident): #num #ident"<<std::endl;
- S<<" (proper ident): num:#ident num:#ident ..."<<Message_EndLine;
+// S <<" (proper ident): #num #ident"<<std::endl;
+ S <<" (proper ident): num:#ident num:#ident ..."<<std::endl;
for (i = 1; i <= nb; i ++) {
if (ids.Value(i) <= 0 || ids.Value(i) == i) continue;
sprintf (unid,"%d:#%d",i,ids.Value(i));
nbc = (Standard_Integer) strlen (unid); nbr = ((80-nbc) %4) +2;
nbl += nbc;
- if (nbl+nbr0 > 79) { nbl = nbc; S<<Message_EndLine; }
+ if (nbl+nbr0 > 79) { nbl = nbc; S <<std::endl; }
else { nbl += nbr0; for (; nbr0 > 0; nbr0 --) S << " "; }
- S<<unid;
+ S <<unid;
nbr0 = nbr;
// if (nbl+nbc > 79) { S<<std::endl<<unid; nbl = 0; }
// S<<" "<<i<<" ->#"<<ids.Value(i);
// nbl ++; if (nbl > 5) { nbl = nbr = 0; S<<std::endl; }
}
- if (nbl > 0) S<<Message_EndLine;
+ if (nbl > 0) S <<std::endl;
}
- if (nbi > 0) S<<"In dump, iii:#jjj means : entity rank iii has step ident #jjj"<<Message_EndLine;
-// S <<" -- Dumping data, entity "<<num<<" level "<<level<<" :"<<std::endl;
+ if (nbi > 0) S <<"In dump, iii:#jjj means : entity rank iii has step ident #jjj"<<std::endl;
+// S<<" -- Dumping data, entity "<<num<<" level "<<level<<" :"<<std::endl;
}
if (level > 0)
{
- Standard_SStream aStream;
- thewriter.Print(aStream);
- S << aStream;
+ thewriter.Print (S);
}
return Standard_True;
}
Standard_Boolean StepData_StepDumper::Dump
- (const Handle(Message_Messenger)& S, const Standard_Integer num,
+ (Standard_OStream& S, const Standard_Integer num,
const Standard_Integer level)
{
if (num <= 0 || num > themodel->NbEntities()) return Standard_False;
class Interface_InterfaceMismatch;
class StepData_Protocol;
class StepData_StepWriter;
-class Message_Messenger;
-class Standard_Transient;
-
//! Provides a way to dump entities processed through STEP, with
//! these features :
//!
//! For levels 1,2,3, the numbers displayed (form #nnn) are the
//! numbers of the corresponding entities in the Model
- Standard_EXPORT Standard_Boolean Dump (const Handle(Message_Messenger)& S, const Handle(Standard_Transient)& ent, const Standard_Integer level);
+ Standard_EXPORT Standard_Boolean Dump (Standard_OStream& S, const Handle(Standard_Transient)& ent, const Standard_Integer level);
//! Works as Dump with a Transient, but directly takes the
//! entity designated by its number in the Model
//! Returns False, also if <num> is out of range
- Standard_EXPORT Standard_Boolean Dump (const Handle(Message_Messenger)& S, const Standard_Integer num, const Standard_Integer level);
+ Standard_EXPORT Standard_Boolean Dump (Standard_OStream& S, const Standard_Integer num, const Standard_Integer level);
#include <Interface_InterfaceModel.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
#include <Standard_NoSuchObject.hxx>
#include <Standard_Transient.hxx>
#include <Standard_Type.hxx>
}
-void StepData_StepModel::DumpHeader
-(const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
+void StepData_StepModel::DumpHeader (Standard_OStream& S, const Standard_Integer /*level*/) const
{
// NB : level n est pas utilise
Handle(StepData_Protocol) stepro = StepData::HeaderProtocol();
Standard_Boolean iapro = !stepro.IsNull();
- if (!iapro) S<<" -- WARNING : StepModel DumpHeader, Protocol not defined\n";
+ if (!iapro) S <<" -- WARNING : StepModel DumpHeader, Protocol not defined\n";
Interface_EntityIterator iter = Header();
Standard_Integer nb = iter.NbEntities();
S << " " << iter.Value()->DynamicType()->Name() << "\n";
}
if (!iapro || nb == 0) return;
- S << " -- -- STEP MODEL HEADER CONTENT -- --" << Message_EndLine;
+ S << " -- -- STEP MODEL HEADER CONTENT -- --" << "\n";
S << " -- Dumped with Protocol : " << stepro->DynamicType()->Name()
- << " --"<<Message_EndLine;
+ << " --\n";
- Standard_SStream aSStream;
Handle(StepData_StepModel) me (this);
StepData_StepWriter SW(me);
SW.SendModel(stepro,Standard_True); // envoi HEADER seul
- SW.Print(aSStream);
- S << aSStream.str().c_str();
+ SW.Print(S);
}
}
void StepData_StepModel::PrintLabel
-(const Handle(Standard_Transient)& ent, const Handle(Message_Messenger)& S) const
+(const Handle(Standard_Transient)& ent, Standard_OStream& S) const
{
Standard_Integer num = (theidnums.IsNull() ? 0 : Number(ent));
Standard_Integer nid = (!num ? 0 : theidnums->Value(num));
- if (nid > 0) S<<"#"<<nid;
- else if (num > 0) S<<"(#"<<num<<")";
- else S<<"(#0..)";
+ if (nid > 0) S <<"#"<<nid;
+ else if (num > 0) S <<"(#"<<num<<")";
+ else S <<"(#0..)";
}
Handle(TCollection_HAsciiString) StepData_StepModel::StringLabel
#ifndef _StepData_StepModel_HeaderFile
#define _StepData_StepModel_HeaderFile
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
#include <Interface_EntityList.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <Interface_InterfaceModel.hxx>
-#include <Standard_Integer.hxx>
-#include <Standard_Boolean.hxx>
-#include <Standard_Type.hxx>
+
class Standard_NoSuchObject;
class Standard_Transient;
class Interface_InterfaceModel;
class Interface_EntityIterator;
class Interface_Check;
-class Message_Messenger;
class TCollection_HAsciiString;
-
class StepData_StepModel;
DEFINE_STANDARD_HANDLE(StepData_StepModel, Interface_InterfaceModel)
//! prints its Type. Else sends the Header under the form of
//! HEADER Section of an Ascii Step File
//! <level> is not used because Header is not so big
- Standard_EXPORT void DumpHeader (const Handle(Message_Messenger)& S, const Standard_Integer level = 0) const Standard_OVERRIDE;
+ Standard_EXPORT void DumpHeader (Standard_OStream& S, const Standard_Integer level = 0) const Standard_OVERRIDE;
//! erases specific labels, i.e. clears the map (entity-ident)
Standard_EXPORT void ClearLabels() Standard_OVERRIDE;
//! Prints label specific to STEP norm for a given entity, i.e.
//! if a LabelIdent has been recorded, its value with '#', else
//! the number in the model with '#' and between ()
- Standard_EXPORT void PrintLabel (const Handle(Standard_Transient)& ent, const Handle(Message_Messenger)& S) const Standard_OVERRIDE;
+ Standard_EXPORT void PrintLabel (const Handle(Standard_Transient)& ent, Standard_OStream& S) const Standard_OVERRIDE;
//! Returns a string with the label attached to a given entity,
//! same form as for PrintLabel
while (theidents(prev) <= 0) {
prev--; if (prev <= 0) break;
}
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
sout << " *** Error on Record " << num << " (on " << NbRecords()
<< " -> " << num * 100 / NbRecords() << " % in File) ***";
if (prev > 0) sout << " Ident #" << theidents(prev);
- sout << "\n" << errm << Message_EndLine;
+ sout << "\n" << errm << std::endl;
#endif
thecheck->AddWarning(errm.ToCString(), "Complex Type incorrect : ");
}
void StepData_StepReaderData::SetEntityNumbers(const Standard_Boolean withmap)
{
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
// Passe initiale : Resolution directe par Map
// si tout passe (pas de collision), OK. Sinon, autres passes a prevoir
// On resoud du meme coup les sous-listes
if (letype == Interface_ParamSub) {
Standard_Integer numsub = FP.EntityNumber();
if (numsub > thelastn) {
- sout << "Bad Sub.N0, Record " << num << " Param " << na << ":$" << numsub << Message_EndLine;
+ sout << "Bad Sub.N0, Record " << num << " Param " << na << ":$" << numsub << std::endl;
continue;
}
FP.SetEntityNumber(subn(numsub));
// ... Et sortir message un peu plus complet
sout << "*** ERR StepReaderData *** Pour Entite #" << ident
<< "\n Type:" << RecordType(num)
- << " Param.n0 " << na << ": #" << id << " Non trouve" << Message_EndLine;
+ << " Param.n0 " << na << ": #" << id << " Non trouve" << std::endl;
} // FIN Mapping
} // FIN Traitement Reference
} // FIN Boucle Parametres
char ligne[80];
sprintf(ligne, "Ident defined SEVERAL TIMES : #%d", ident);
thecheck->AddFail(ligne, "Ident defined SEVERAL TIMES : #%d");
- sout << "StepReaderData:SetEntityNumbers, " << ligne << Message_EndLine;
+ sout << "StepReaderData:SetEntityNumbers, " << ligne << std::endl;
}
if (indm(indmap) > 0) indm(indmap) = -indm(indmap); // Pas pour Map
// Cas Normal pour la Map
sout << "*** ERR StepReaderData *** Pour Entite " << nument
<< ", a " << (nr * 100) / nbseq << "% de DATA : #" << ident
<< "\n Type:" << RecordType(num)
- << " Param.n0 " << na << ": #" << id << " Non trouve" << Message_EndLine;
+ << " Param.n0 " << na << ": #" << id << " Non trouve" << std::endl;
FP.SetEntityNumber(0); // -> Reference non resolue
}
}
SetEntities();
}
catch(Standard_Failure const& anException) {
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
sout << " Exception Raised during Preparation :\n";
sout << anException.GetMessageString();
sout << "\n Now, trying to continue, but with presomption of failure\n";
void StepData_StepReaderTool::BeginRead
(const Handle(Interface_InterfaceModel)& amodel)
{
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
DeclareAndCast(StepData_StepModel,model,amodel);
DeclareAndCast(StepData_StepReaderData,stepdat,Data());
Handle(Interface_Check) mch = model->GlobalCheck();
Standard_Integer nbmess = ach->NbWarnings();
sout<<nbmess<<" Warnings on Reading Header Entity N0."<<i<<":";
- if (!ent.IsNull()) sout << ent->DynamicType()->Name() << Message_EndLine;
+ if (!ent.IsNull()) sout << ent->DynamicType()->Name() << std::endl;
for (Standard_Integer nf = 1; nf <= nbmess; nf ++)
sout << ach->CWarning(nf) << "\n";
}
Handle(Interface_Check) mch = model->GlobalCheck();
Standard_Integer nbmess = ach->NbFails();
sout << " Errors on Reading Header Entity N0."<<i<<":";
- if (!ent.IsNull()) sout << ent->DynamicType()->Name() << Message_EndLine;
+ if (!ent.IsNull()) sout << ent->DynamicType()->Name() << std::endl;
for (Standard_Integer nf = 1; nf <= nbmess; nf ++)
sout << ach->CFail(nf) << "\n";
}
const Handle(StepData_FileRecognizer)& recodata)
{
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
char *ficnom = nomfic ; // because const (non reconnu par C)
checkread->Clear();
OSD_Timer c ;
c.Reset () ;
c.Start();
- sout << " ... Step File Reading : " << ficnom << "" << Message_EndLine;
+ sout << " ... Step File Reading : " << ficnom << "" << std::endl;
#endif
try {
}
catch (Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
- sout << " ... Exception Raised while reading Step File : " << ficnom << ":\n" << Message_EndLine;
+ sout << " ... Exception Raised while reading Step File : " << ficnom << ":\n" << std::endl;
sout << anException.GetMessageString();
- sout << " ..." << Message_EndLine;
+ sout << " ..." << std::endl;
#endif
(void)anException;
lir_file_fin(3);
// Continue reading of file despite of possible fails
//if (checkread->HasFailed()) { lir_file_fin(3); stepread_endinput (newin,ficnom); return 1; }
#ifdef CHRONOMESURE
- sout << " ... STEP File Read ... " << Message_EndLine;
+ sout << " ... STEP File Read ... " << std::endl;
c.Show();
#endif
// on a undirec pret pour la suite
#ifdef CHRONOMESURE
- sout << " ... Step File loaded ... " << Message_EndLine;
+ sout << " ... Step File loaded ... " << std::endl;
c.Show();
sout << " "<< undirec->NbRecords () <<
- " records (entities,sub-lists,scopes), "<< nbpar << " parameters\n" << Message_EndLine;
+ " records (entities,sub-lists,scopes), "<< nbpar << " parameters\n" << std::endl;
#endif
// Analyse : par StepReaderTool
readtool.Clear();
undirec.Nullify();
#ifdef CHRONOMESURE
- sout << " ... Objets analysed ... " << Message_EndLine;
+ sout << " ... Objets analysed ... " << std::endl;
c.Show();
n = stepmodel->NbEntities() ;
- sout << " STEP Loading done : " << n << " Entities" << Message_EndLine;
+ sout << " STEP Loading done : " << n << " Entities" << std::endl;
#endif
stepread_endinput (newin,ficnom); return 0 ;
void StepFile_Interrupt (char* mess)
{
#ifdef OCCT_DEBUG
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
- sout << " **** StepFile Error : " << mess << " ****" << Message_EndLine;
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
+ sout << " **** StepFile Error : " << mess << " ****" << std::endl;
#endif
checkread->AddFail(mess);
}
(IFSelect_ContextWrite& ctx) const
{
// Preparation
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
DeclareAndCast(StepData_StepModel,stepmodel,ctx.Model());
DeclareAndCast(StepData_Protocol,stepro,ctx.Protocol());
if (stepmodel.IsNull() || stepro.IsNull()) return Standard_False;
if (!fout || !fout.is_open()) {
ctx.CCheck(0)->AddFail("Step File could not be created");
- sout<<" Step File could not be created : " << ctx.FileName() << Message_EndLine; return 0;
+ sout<<" Step File could not be created : " << ctx.FileName() << std::endl; return 0;
}
sout << " Step File Name : "<<ctx.FileName();
StepData_StepWriter SW(stepmodel);
ctx.CCheck(chl.Number())->GetMessages(chl.Value());
sout<<" Write ";
Standard_Boolean isGood = SW.Print(fout);
- sout<<" Done"<<Message_EndLine;
+ sout<<" Done"<<std::endl;
errno = 0;
fout.close();
isGood = fout.good() && isGood && !errno;
if(errno)
- sout << strerror(errno) << Message_EndLine;
+ sout << strerror(errno) << std::endl;
return isGood;
}
(const Handle(Interface_InterfaceModel)& model,
const Handle(Interface_Protocol)& protocol,
const Handle(Standard_Transient)& entity,
- const Handle(Message_Messenger)& S, const Standard_Integer level) const
+ Standard_OStream& S, const Standard_Integer level) const
{
Standard_Integer nument = model->Number(entity);
if (nument <= 0 || nument > model->NbEntities()) return;
Standard_Boolean iserr = model->IsRedefinedContent(nument);
Handle(Standard_Transient) ent, con; ent = entity;
- S<<" --- (STEP) Entity "; model->Print(entity,S);
+ S <<" --- (STEP) Entity "; model->Print(entity, S);
if (iserr) con = model->ReportEntity(nument)->Content();
- if (entity.IsNull()) { S<<" Null"<<Message_EndLine; return; }
+ if (entity.IsNull()) { S <<" Null"<<std::endl; return; }
// On attaque le dump : d abord cas de l Erreur
- S << " Type cdl : " << entity->DynamicType()->Name() << Message_EndLine;
+ S << " Type cdl : " << entity->DynamicType()->Name() << std::endl;
if (iserr)
- S<<" *** NOT WELL LOADED : CONTENT FROM FILE ***"<<Message_EndLine;
+ S <<" *** NOT WELL LOADED : CONTENT FROM FILE ***"<<std::endl;
else if (model->IsUnknownEntity(nument))
- S<<" *** UNKNOWN TYPE ***"<<Message_EndLine;
+ S <<" *** UNKNOWN TYPE ***"<<std::endl;
StepData_StepDumper dump(GetCasted(StepData_StepModel,model),
GetCasted(StepData_Protocol,protocol),thelabmode);
class IFSelect_ContextWrite;
class Interface_EntityIterator;
class Interface_CopyTool;
-class Standard_Transient;
-class Message_Messenger;
-
class StepSelect_WorkLibrary;
DEFINE_STANDARD_HANDLE(StepSelect_WorkLibrary, IFSelect_WorkLibrary)
//! Level 0 just displays type; level 1 displays the entity itself
//! and level 2 displays the entity plus its shared ones (one
//! sub-level : immediately shared entities)
- Standard_EXPORT void DumpEntity (const Handle(Interface_InterfaceModel)& model, const Handle(Interface_Protocol)& protocol, const Handle(Standard_Transient)& entity, const Handle(Message_Messenger)& S, const Standard_Integer level) const Standard_OVERRIDE;
+ Standard_EXPORT virtual void DumpEntity (const Handle(Interface_InterfaceModel)& model, const Handle(Interface_Protocol)& protocol, const Handle(Standard_Transient)& entity, Standard_OStream& S, const Standard_Integer level) const Standard_OVERRIDE;
(const Handle(StepShape_ManifoldSolidBrep)& aManifoldSolid,
const Handle(Transfer_TransientProcess)& TP)
{
- Handle(Message_Messenger) sout = TP->Messenger();
+ Message_Messenger::StreamBuffer sout = TP->Messenger()->SendInfo();
// Initialisation of the Tool
StepToTopoDS_Tool myTool;
if ( TP->TraceLevel() > 2 )
{
- sout << "Geometric Statitics : " << Message_EndLine;
- sout << " Surface Continuity : - C0 : " << myTool.C0Surf() << Message_EndLine;
- sout << " - C1 : " << myTool.C1Surf() << Message_EndLine;
- sout << " - C2 : " << myTool.C2Surf() << Message_EndLine;
- sout << " Curve Continuity : - C0 : " << myTool.C0Cur3() << Message_EndLine;
- sout << " - C1 : " << myTool.C1Cur3() << Message_EndLine;
- sout << " - C2 : " << myTool.C2Cur3() << Message_EndLine;
- sout << " PCurve Continuity : - C0 : " << myTool.C0Cur2() << Message_EndLine;
- sout << " - C1 : " << myTool.C1Cur2() << Message_EndLine;
- sout << " - C2 : " << myTool.C2Cur2() << Message_EndLine;
+ sout << "Geometric Statitics : " << std::endl;
+ sout << " Surface Continuity : - C0 : " << myTool.C0Surf() << std::endl;
+ sout << " - C1 : " << myTool.C1Surf() << std::endl;
+ sout << " - C2 : " << myTool.C2Surf() << std::endl;
+ sout << " Curve Continuity : - C0 : " << myTool.C0Cur3() << std::endl;
+ sout << " - C1 : " << myTool.C1Cur3() << std::endl;
+ sout << " - C2 : " << myTool.C2Cur3() << std::endl;
+ sout << " PCurve Continuity : - C0 : " << myTool.C0Cur2() << std::endl;
+ sout << " - C1 : " << myTool.C1Cur2() << std::endl;
+ sout << " - C2 : " << myTool.C2Cur2() << std::endl;
}
//:S4136 ShapeFix::SameParameter (S,Standard_False);
(const Handle(StepShape_BrepWithVoids)& aBRepWithVoids,
const Handle(Transfer_TransientProcess)& TP)
{
- Handle(Message_Messenger) sout = TP->Messenger();
+ Message_Messenger::StreamBuffer sout = TP->Messenger()->SendInfo();
// Initialisation of the Tool
StepToTopoDS_Tool myTool;
StepToTopoDS_DataMapOfTRI aMap;
if ( TP->TraceLevel() > 2 )
{
- sout << "Geometric Statitics : " << Message_EndLine;
- sout << " Surface Continuity : - C0 : " << myTool.C0Surf() << Message_EndLine;
- sout << " - C1 : " << myTool.C1Surf() << Message_EndLine;
- sout << " - C2 : " << myTool.C2Surf() << Message_EndLine;
- sout << " Curve Continuity : - C0 : " << myTool.C0Cur3() << Message_EndLine;
- sout << " - C1 : " << myTool.C1Cur3() << Message_EndLine;
- sout << " - C2 : " << myTool.C2Cur3() << Message_EndLine;
- sout << " PCurve Continuity : - C0 : " << myTool.C0Cur2() << Message_EndLine;
- sout << " - C1 : " << myTool.C1Cur2() << Message_EndLine;
- sout << " - C2 : " << myTool.C2Cur2() << Message_EndLine;
+ sout << "Geometric Statitics : " << std::endl;
+ sout << " Surface Continuity : - C0 : " << myTool.C0Surf() << std::endl;
+ sout << " - C1 : " << myTool.C1Surf() << std::endl;
+ sout << " - C2 : " << myTool.C2Surf() << std::endl;
+ sout << " Curve Continuity : - C0 : " << myTool.C0Cur3() << std::endl;
+ sout << " - C1 : " << myTool.C1Cur3() << std::endl;
+ sout << " - C2 : " << myTool.C2Cur3() << std::endl;
+ sout << " PCurve Continuity : - C0 : " << myTool.C0Cur2() << std::endl;
+ sout << " - C1 : " << myTool.C1Cur2() << std::endl;
+ sout << " - C2 : " << myTool.C2Cur2() << std::endl;
}
//:S4136 ShapeFix::SameParameter (S,Standard_False);
const Handle(Transfer_TransientProcess)& TP,
StepToTopoDS_NMTool& NMTool)
{
- Handle(Message_Messenger) sout = TP->Messenger();
+ Message_Messenger::StreamBuffer sout = TP->Messenger()->SendInfo();
// Initialisation of the Tool
StepToTopoDS_Tool myTool;
if ( TP->TraceLevel() > 2 )
{
- sout << "Geometric Statitics : " << Message_EndLine;
- sout << " Surface Continuity : - C0 : " << myTool.C0Surf() << Message_EndLine;
- sout << " - C1 : " << myTool.C1Surf() << Message_EndLine;
- sout << " - C2 : " << myTool.C2Surf() << Message_EndLine;
- sout << " Curve Continuity : - C0 : " << myTool.C0Cur3() << Message_EndLine;
- sout << " - C1 : " << myTool.C1Cur3() << Message_EndLine;
- sout << " - C2 : " << myTool.C2Cur3() << Message_EndLine;
- sout << " PCurve Continuity : - C0 : " << myTool.C0Cur2() << Message_EndLine;
- sout << " - C1 : " << myTool.C1Cur2() << Message_EndLine;
- sout << " - C2 : " << myTool.C2Cur2() << Message_EndLine;
+ sout << "Geometric Statitics : " << std::endl;
+ sout << " Surface Continuity : - C0 : " << myTool.C0Surf() << std::endl;
+ sout << " - C1 : " << myTool.C1Surf() << std::endl;
+ sout << " - C2 : " << myTool.C2Surf() << std::endl;
+ sout << " Curve Continuity : - C0 : " << myTool.C0Cur3() << std::endl;
+ sout << " - C1 : " << myTool.C1Cur3() << std::endl;
+ sout << " - C2 : " << myTool.C2Cur3() << std::endl;
+ sout << " PCurve Continuity : - C0 : " << myTool.C0Cur2() << std::endl;
+ sout << " - C1 : " << myTool.C1Cur2() << std::endl;
+ sout << " - C2 : " << myTool.C2Cur2() << std::endl;
}
//:S4136 ShapeFix::SameParameter (S,Standard_False);
aGeomCrv = StepToGeom::MakeCurve(aCrv);
}
catch (Standard_Failure const& anException) {
- Handle(Message_Messenger) sout = TP->Messenger();
+ Message_Messenger::StreamBuffer sout = TP->Messenger()->SendInfo();
sout << "StepToTopoDS, GeometricSet, elem " << i << " of " << nbElem << ": exception ";
- sout << anException.GetMessageString() << Message_EndLine;
+ sout << anException.GetMessageString() << std::endl;
}
if (!aGeomCrv.IsNull()) {
BRepBuilderAPI_MakeEdge anEdge(aGeomCrv, aGeomCrv->FirstParameter(), aGeomCrv->LastParameter());
#include <Interface_Check.hxx>
#include <Interface_InterfaceModel.hxx>
#include <Interface_MSG.hxx>
-#include <Message_Messenger.hxx>
-#include <Standard_Transient.hxx>
-#include <Standard_Type.hxx>
#include <Transfer_Binder.hxx>
#include <Transfer_Finder.hxx>
#include <Transfer_FinderProcess.hxx>
}
- void Transfer_FinderProcess::PrintTrace
- (const Handle(Transfer_Finder)& start, const Handle(Message_Messenger)& S) const
- { if (!start.IsNull()) S<<" Type:"<<start->ValueTypeName(); }
+void Transfer_FinderProcess::PrintTrace (const Handle(Transfer_Finder)& start, Standard_OStream& S) const
+{
+ if (!start.IsNull()) S << " Type:" << start->ValueTypeName();
+}
- void Transfer_FinderProcess::PrintStats
- (const Standard_Integer mode, const Handle(Message_Messenger)& S) const
+void Transfer_FinderProcess::PrintStats (const Standard_Integer mode, Standard_OStream& S) const
{
S<<"\n*******************************************************************\n";
if (mode == 1) { // Statistiques de base
- S << "******** Basic Statistics ********"<<Message_EndLine;
+ S<< "******** Basic Statistics ********"<<std::endl;
Standard_Integer nbr = 0, nbe = 0, nbw = 0;
Standard_Integer i, max = NbMapped(), nbroots = NbRoots();
- S << "**** Nb Final Results : "<<nbroots<<Message_EndLine;
+ S<< "**** Nb Final Results : "<< nbroots <<std::endl;
for (i = 1; i <= max; i ++) {
const Handle(Transfer_Binder)& binder = MapItem(i);
}
}
if (nbr > nbroots)
- S<<"**** ( Itermediate Results : "<<nbr-nbroots<<" )\n";
+ S<<"**** ( Itermediate Results : "<<nbr-nbroots <<" )\n";
if (nbe > 0)
S<<"**** Errors on :"<<Interface_MSG::Blanks(nbe,4)<<nbe<<" Entities\n";
if (nbw > 0)
S<<"**** Warnings on : "<<Interface_MSG::Blanks(nbw,4)<<nbw<<" Entities\n";
S<<"*******************************************************************";
}
- S<<Message_EndLine;
+ S<<std::endl;
}
class Interface_InterfaceModel;
class Transfer_TransientMapper;
class Transfer_Finder;
-class Message_Messenger;
class Transfer_FinderProcess;
DEFINE_STANDARD_HANDLE(Transfer_FinderProcess, Transfer_ProcessForFinder)
Standard_EXPORT Handle(Transfer_TransientMapper) TransientMapper (const Handle(Standard_Transient)& obj) const;
//! Specific printing to trace a Finder (by its method ValueType)
- Standard_EXPORT virtual void PrintTrace (const Handle(Transfer_Finder)& start, const Handle(Message_Messenger)& S) const Standard_OVERRIDE;
+ Standard_EXPORT virtual void PrintTrace (const Handle(Transfer_Finder)& start, Standard_OStream& S) const Standard_OVERRIDE;
//! Prints statistics on a given output, according mode
- Standard_EXPORT void PrintStats (const Standard_Integer mode, const Handle(Message_Messenger)& S) const;
+ Standard_EXPORT void PrintStats (const Standard_Integer mode, Standard_OStream& S) const;
DEFINE_STANDARD_RTTIEXT(Transfer_FinderProcess,Transfer_ProcessForFinder)
//! Prints a short information on a starting object. By default
//! prints its Dynamic Type. Can be redefined
- Standard_EXPORT virtual void PrintTrace (const Handle(Transfer_Finder)& start, const Handle(Message_Messenger)& S) const;
+ Standard_EXPORT virtual void PrintTrace (const Handle(Transfer_Finder)& start, Standard_OStream& S) const;
//! Returns True if we are surely in a DeadLoop. Evaluation is not
//! exact, it is a "majorant" which must be computed fast.
#include <TColStd_HSequenceOfTransient.hxx>
class Message_Messenger;
-class Standard_Transient;
class Transfer_Binder;
class Transfer_ActorOfProcessForTransient;
class Message_ProgressIndicator;
//! Prints a short information on a starting object. By default
//! prints its Dynamic Type. Can be redefined
- Standard_EXPORT virtual void PrintTrace (const Handle(Standard_Transient)& start, const Handle(Message_Messenger)& S) const;
+ Standard_EXPORT virtual void PrintTrace (const Handle(Standard_Transient)& start, Standard_OStream& S) const;
//! Returns True if we are surely in a DeadLoop. Evaluation is not
//! exact, it is a "majorant" which must be computed fast.
// Alimente la trace : Regle causant (user messages)
if (thetrace > 0) {
StartTrace (binder,start,thelevel,6);
- themessenger << amsg.Value();
+ Message_Messenger::StreamBuffer aSender = themessenger->SendInfo();
+ aSender << amsg.Value();
if (amsg.IsEdited()&&thetrace>2)
- themessenger << " [from: " << amsg.Original() << "]";
- themessenger << Message_EndLine;
+ aSender << " [from: " << amsg.Original() << "]";
+ aSender << std::endl;
}
}
binder->AddFail (mess,orig);
if (thetrace > 0) {
StartTrace (binder,start,thelevel,1);
- themessenger << " --> Fail : " << mess;
- if (orig[0] != '\0'&&thetrace>2) themessenger << " [from: " << orig << "]";
- themessenger << Message_EndLine;
+ Message_Messenger::StreamBuffer aSender = themessenger->SendFail();
+ aSender << " --> Fail : " << mess;
+ if (orig[0] != '\0'&&thetrace>2) aSender << " [from: " << orig << "]";
+ aSender << std::endl;
}
}
binder->AddWarning(mess,orig);
if (thetrace > 1) {
StartTrace (binder,start,thelevel,2);
- themessenger << " --> Warning : " << mess;
- if (orig[0] != '\0'&&thetrace>2) themessenger << " [from: " << orig << "]";
- themessenger << Message_EndLine;
+ Message_Messenger::StreamBuffer aSender = themessenger->SendWarning();
+ aSender << " --> Warning : " << mess;
+ if (orig[0] != '\0'&&thetrace>2) aSender << " [from: " << orig << "]";
+ aSender << std::endl;
}
}
// .... Etat Initial : peut-etre deja fait ... ou infaisable !
+ Message_Messenger::StreamBuffer aSender = themessenger->SendInfo();
//if (!former.IsNull()) {
Transfer_StatusExec statex = former->StatusExec();
switch (statex) {
break;
case Transfer_StatusDone : // Transfert deja fait
//#ifdef TRANSLOG
- themessenger << " .. and Transfer done" << Message_EndLine;
+ aSender << " .. and Transfer done" << std::endl;
//#endif
// if (former->HasResult()) former->SetAlreadyUsed();
return former;
return former;
case Transfer_StatusError : // pas propre, ca ...
if (thetrace) {
- themessenger << " *** Transfer in Error Status :" << Message_EndLine;
+ aSender << " *** Transfer in Error Status :" << std::endl;
StartTrace (former, start, thelevel,0);
// (*themessenger->Out()) << flush;
}
throw Transfer_TransferFailure("TransferProcess : Transfer in Error Status");
case Transfer_StatusLoop : // la boucle est bouclee ...
if (thetrace) {
- themessenger << " *** Transfer Head of Dead Loop :" << Message_EndLine;
+ aSender << " *** Transfer Head of Dead Loop :" << std::endl;
StartTrace (former, start, thelevel,0);
// (*themessenger->Out()) << flush;
}
Handle(Transfer_Binder) binder;
Standard_Boolean newbind = Standard_False;
if (theerrh) {
+ Message_Messenger::StreamBuffer aSender = themessenger->SendInfo();
+
// Transfert sous protection pour les exceptions (pour notification en fait)
Standard_Integer oldlev = thelevel;
try {
// ... Exceptions a Rattraper : elles ne se ressemblent pas toutes ... !
catch (Transfer_TransferDeadLoop const&) {
if (binder.IsNull()) {
- themessenger << " *** Dead Loop with no Result" << Message_EndLine;
+ aSender << " *** Dead Loop with no Result" << std::endl;
if (thetrace) StartTrace (binder, start, thelevel-1,0);
binder = new Transfer_VoidBinder;
Bind (start,binder); newbind = Standard_True;
} else if (binder->StatusExec() == Transfer_StatusLoop) {
if (thetrace) {
- themessenger << " *** Dead Loop : Finding head of Loop :" << Message_EndLine;
+ aSender << " *** Dead Loop : Finding head of Loop :" << std::endl;
StartTrace (binder, start, thelevel-1,0);
}
else StartTrace (binder, start,thelevel-1,4);
// Autrement dit, on change d exception (on est sorti de la boucle)
} else {
if (thetrace) {
- themessenger << " *** Dead Loop : Actor in Loop :" << Message_EndLine;
+ aSender << " *** Dead Loop : Actor in Loop :" << std::endl;
StartTrace (binder, start, thelevel-1,0);
}
}
}
catch (Standard_Failure const& anException) {
if (binder.IsNull()) {
- themessenger << " *** Exception Raised with no Result" << Message_EndLine;
+ aSender << " *** Exception Raised with no Result" << std::endl;
binder = new Transfer_VoidBinder;
Bind (start,binder); newbind = Standard_True;
}
binder->AddFail("Transfer stopped by exception raising");
if (thetrace) {
- themessenger << " *** Raised : " << anException.GetMessageString() << Message_EndLine;
+ aSender << " *** Raised : " << anException.GetMessageString() << std::endl;
StartTrace (binder, start, thelevel-1,4);
}
thelevel = oldlev;
}
if (binder.IsNull()) {
// if (thetrace) {
-// themessenger << "Transfer has produced no Result" <<endl;
+// aSender << "Transfer has produced no Result" <<endl;
// StartTrace (binder, start, thelevel-1,0); sout << flush;
// }
if (thelevel > 0) thelevel --;
const Standard_Integer level,
const Standard_Integer mode) const
{
+ Message_Messenger::StreamBuffer aSender = themessenger->SendInfo();
// ### Fail (Roots:50) -- Start start->DynamicType()
// ### Fail (Roots:50) -- Start id:#label.. Type:start->DynamicType()
if (thetrace > 3) { // Internal to be switch when searching bug (trace >= 4)
- if (mode == 1) themessenger << " ### Fail";
- if (mode == 2) themessenger << " ### Warning";
- if (mode == 3) themessenger << " ### New Root n0 " << theroots.Extent();
- if (mode == 4) themessenger << " ### Exception";
- if (mode == 5) themessenger << " ### Substitution";
- if (mode == 6) themessenger << " ### Information";
+ if (mode == 1) aSender << " ### Fail";
+ if (mode == 2) aSender << " ### Warning";
+ if (mode == 3) aSender << " ### New Root n0 " << theroots.Extent();
+ if (mode == 4) aSender << " ### Exception";
+ if (mode == 5) aSender << " ### Substitution";
+ if (mode == 6) aSender << " ### Information";
if (level > 1)
- themessenger << " (nested)"; // " at nesting Level:"<<level;
+ aSender << " (nested)"; // " at nesting Level:"<<level;
if (mode >= 0 && mode != 3)
- themessenger << " at " << theroots.Extent() << " Roots";
+ aSender << " at " << theroots.Extent() << " Roots";
}
- if (!start.IsNull()) PrintTrace (start,themessenger);
+ if (!start.IsNull()) PrintTrace (start,aSender);
//// sout << endl;
if (!binder.IsNull()) { // old: if IsNull sout <<endl<< " --- Not Bound";
if (bnd->Status() != Transfer_StatusVoid) {
// --- Result Type: binder->ResultType() --- Binder : binder->DynamicType();
if (!hasres)
- themessenger << "\n --- Result Type : ";
+ aSender << "\n --- Result Type : ";
else
- themessenger << " , ";
- themessenger << bnd->ResultTypeName();
+ aSender << " , ";
+ aSender << bnd->ResultTypeName();
// CKY 9-JAN-1999: waiting for XSTEP Kernel message (not IGES_2075)
/* Message_Msg Msg2075("IGES_2075");
Msg2075.AddString(bnd->ResultTypeName());
bnd = bnd->NextResult();
}
if (!hasres && mode > 2) {
- themessenger << "\n --- No Result recorded";
+ aSender << "\n --- No Result recorded";
// CKY 9-JAN-1999 : waiting for XSTEP Kernel message
// (not IGES_2075, no reference to specifically TopoDS_Shape)
/* Message_Msg Msg2075("IGES_2075");
}
//old if (isused) sout << " -- (Already Used in another Transfer)";
}
- themessenger << Message_EndLine;
+ aSender << std::endl;
}
//purpose :
//=======================================================================
-void Transfer_TransferProcess::PrintTrace(const TheStart& start,
- const Handle(Message_Messenger)& S) const
+void Transfer_TransferProcess::PrintTrace(const TheStart& start, Standard_OStream& S) const
{
if (!start.IsNull()) S <<" Type:" << start->DynamicType()->Name();
}
//=======================================================================
void Transfer_TransientProcess::PrintTrace
- (const Handle(Standard_Transient)& start, const Handle(Message_Messenger)& S) const
+ (const Handle(Standard_Transient)& start, Standard_OStream& S) const
{
if (!start.IsNull()) {
- S << "Entity ";
if (!themodel.IsNull()) {
- themodel->Print (start,S,1);
+ S << "Entity ";
+ themodel->Print (start, S, 1);
// S<<"id "; themodel->Print (start,S);
// S<<" Type:"<<themodel->TypeName (start);
}
- else S<<" Type:"<< Interface_InterfaceModel::ClassName(start->DynamicType()->Name());
+ else S<<"Entity Type:"<< Interface_InterfaceModel::ClassName(start->DynamicType()->Name());
// << start (handle) ??
}
}
//=======================================================================
void Transfer_TransientProcess::PrintStats(const Standard_Integer /*mode*/,
- const Handle(Message_Messenger)& S) const
+ Standard_OStream& S) const
{
S<<"\n*******************************************************************\n";
// if (mode == 1) { // Statistiques de base
- S << "******** Basic Statistics ********"<<Message_EndLine;
+ S<< "******** Basic Statistics ********"<<std::endl;
Handle(Interface_InterfaceModel) model = Model();
- if (model.IsNull()) S<<"**** Model unknown"<<Message_EndLine;
+ if (model.IsNull()) S<<"**** Model unknown"<<std::endl;
else
- S<<"**** Nb Entities : "<<model->NbEntities()<<Message_EndLine;
+ S<<"**** Nb Entities : "<<model->NbEntities()<<std::endl;
Standard_Integer nbr = 0, nbe = 0, nbw = 0;
Standard_Integer i, max = NbMapped(), nbroots = NbRoots();
- S << "**** Nb Final Results : "<<nbroots<<Message_EndLine;
+ S<< "**** Nb Final Results : "<<nbroots<<std::endl;
for (i = 1; i <= max; i ++) {
const Handle(Transfer_Binder)& binder = MapItem(i);
S<<"**** Warnings on : "<<Interface_MSG::Blanks(nbw,4)<<nbw<<" Entities\n";
S<<"*******************************************************************";
// }
- S<<Message_EndLine;
+ S<<std::endl;
}
class Interface_InterfaceModel;
class Interface_HGraph;
class Interface_Graph;
-class Message_Messenger;
class Interface_EntityIterator;
-
class Transfer_TransientProcess;
DEFINE_STANDARD_HANDLE(Transfer_TransientProcess, Transfer_ProcessForTransient)
//! Specific printing to trace an entity : prints label and type
//! (if model is set)
- Standard_EXPORT virtual void PrintTrace (const Handle(Standard_Transient)& start, const Handle(Message_Messenger)& S) const Standard_OVERRIDE;
+ Standard_EXPORT virtual void PrintTrace (const Handle(Standard_Transient)& start, Standard_OStream& S) const Standard_OVERRIDE;
//! Specific number of a starting object for check-list : Number
//! in model
Standard_EXPORT Standard_Boolean IsDataFail (const Handle(Standard_Transient)& ent) const;
//! Prints statistics on a given output, according mode
- Standard_EXPORT void PrintStats (const Standard_Integer mode, const Handle(Message_Messenger)& S) const;
+ Standard_EXPORT void PrintStats (const Standard_Integer mode, Standard_OStream& S) const;
Standard_EXPORT Handle(TColStd_HSequenceOfTransient) RootsForTransfer();
{
Interface_CheckTool cht (theModel,theProto);
Interface_CheckIterator chl = cht.CompleteCheckList();
- if ( withprint && ! theProc.IsNull() )
- chl.Print (theProc->Messenger(), theModel, Standard_False);
+ if (withprint
+ && !theProc.IsNull()
+ && !theProc->Messenger().IsNull())
+ {
+ Message_Messenger::StreamBuffer aBuffer = theProc->Messenger()->SendInfo();
+ chl.Print (aBuffer, theModel, Standard_False);
+ }
return chl.IsEmpty(Standard_True);
}
Transfer_TransferOutput TP (theProc,theModel);
if (theProc->TraceLevel() > 1) {
- Handle(Message_Messenger) sout = theProc->Messenger();
+ Message_Messenger::StreamBuffer sout = theProc->Messenger()->SendInfo();
sout<<"-- Transfer(Read) : ";
- theModel->Print (ent,sout);
- sout<<Message_EndLine;
+ theModel->Print (ent, sout);
+ sout<<std::endl;
}
TP.Transfer(ent);
theProc->SetRoot(ent);
if (list.IsNull()) return;
Transfer_TransferOutput TP (theProc,theModel);
Standard_Integer i, nb = list->Length();
- Handle(Message_Messenger) sout = theProc->Messenger();
+ Message_Messenger::StreamBuffer sout = theProc->Messenger()->SendInfo();
if (theProc->TraceLevel() > 1)
- sout<<"-- Transfer(Read-List) : "<<nb<<" Items"<<Message_EndLine;
+ sout<<"-- Transfer(Read-List) : "<<nb<<" Items"<<std::endl;
for (i = 1; i <= nb; i ++) {
Handle(Standard_Transient) ent = list->Value(i);
if (theModel->Number(ent) == 0) continue;
if (theProc->TraceLevel() > 1)
{
- sout<<"-- Transfer(Read-List), Item "<<i<<" : ";
- theModel->Print (ent,sout);
- sout<<Message_EndLine;
+ sout<<"-- Transfer(Read-List), Item "<<i<<" : ";
+ theModel->Print (ent, sout);
+ sout<<std::endl;
}
TP.Transfer(ent);
theProc->SetRoot(ent);
{
Interface_CheckIterator chl;
if (!theProc.IsNull()) chl = theProc->CheckList(Standard_False);
- if (withprint && ! theProc.IsNull())
- chl.Print (theProc->Messenger(), theModel, Standard_False);
+ if (withprint
+ && !theProc.IsNull()
+ && !theProc->Messenger().IsNull())
+ {
+ Message_Messenger::StreamBuffer aBuffer = theProc->Messenger()->SendInfo();
+ chl.Print (aBuffer, theModel, Standard_False);
+ }
return chl.IsEmpty(Standard_True);
}
const Standard_CString arg2 = pilot->Arg(2);
const Standard_CString arg3 = pilot->Arg(3);
const Handle(Transfer_TransientProcess) &TP = XSControl::Session(pilot)->TransferReader()->TransientProcess();
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (TP.IsNull()) { sout<<"No Transfer Read"<<Message_EndLine; return IFSelect_RetError;}
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
+ if (TP.IsNull()) { sout<<"No Transfer Read"<<std::endl; return IFSelect_RetError;}
// **** tpdraw ****
if (argc < 2) {
- sout<<"Donner [mode facultatif : item ou root] , NUMERO , nom DRAW facultatif"<<Message_EndLine;
- sout<<" mode si present : item ou root, sinon n0 d entite modele"<<Message_EndLine;
+ sout<<"Donner [mode facultatif : item ou root] , NUMERO , nom DRAW facultatif"<<std::endl;
+ sout<<" mode si present : item ou root, sinon n0 d entite modele"<<std::endl;
sout<<" NUMERO entier : d entite, d item transfert ou de root transfert\n"
- << " ou * pour dire tous"<<Message_EndLine;
+ << " ou * pour dire tous"<<std::endl;
return IFSelect_RetError;
}
Standard_Integer mode = 0, num=0;
else if (arg1[0] == 'r') mode = 2;
Standard_Boolean tout = Standard_False;
if (mode == 0) {
- if (argc < 2) { sout<<"Donner au moins un NUMERO ou *"<<Message_EndLine; return IFSelect_RetError; }
+ if (argc < 2) { sout<<"Donner au moins un NUMERO ou *"<<std::endl; return IFSelect_RetError; }
if (arg1[0] == '*') tout = Standard_True;
else num = IFSelect_Functions::GiveEntityNumber(XSControl::Session(pilot),arg1);
} else {
Handle(Interface_InterfaceModel) model = TP->Model();
if (model.IsNull()) {
if (mode == 0) {
- sout<<"Pas de modele, preciser n0 d item de transfert"<<Message_EndLine;
+ sout<<"Pas de modele, preciser n0 d item de transfert"<<std::endl;
return IFSelect_RetError;
}
}
if (mode == 2) { sout<<"Racine de transfert"; max = TP->NbRoots(); }
if (tout) {
n1 = 1; n2 = max;
- sout<<", listage de 1 a "<<max<<Message_EndLine;
+ sout<<", listage de 1 a "<<max<<std::endl;
}
else if (num <= 0 || num > max) {
- sout<<" - Num="<<num<<" hors limite (de 1 a "<<max<<")"<<Message_EndLine;
+ sout<<" - Num="<<num<<" hors limite (de 1 a "<<max<<")"<<std::endl;
return IFSelect_RetError;
} else {
n1 = n2 = num; nbvar = -1; // nbvar : 1ere shape simple = pas de n0
- sout<<", n0 "<<num<<Message_EndLine;
+ sout<<", n0 "<<num<<std::endl;
}
for (i = n1; i <= n2; i ++) {
if (index > 0) binder = TP->MapItem (index);
if (binder.IsNull()) index = 0;
if (index == 0) {
- if (!tout) sout<<"Entite n0 "<<num<<" : non repertoriee"<<Message_EndLine;
+ if (!tout) sout<<"Entite n0 "<<num<<" : non repertoriee"<<std::endl;
continue;
}
if (!binder->HasResult()) {
- if (!tout) sout<<"Entite n0 "<<num<<" : pas de resultat"<<Message_EndLine;
+ if (!tout) sout<<"Entite n0 "<<num<<" : pas de resultat"<<std::endl;
continue;
}
sh = TransferBRep::ShapeResult (binder);
if (!sh.IsNull()) {
//sh = shb->Result();
nbvar ++;
- if (sh.IsNull()) { sout<<" (no Shape recorded)"<<Message_EndLine; continue; }
+ if (sh.IsNull()) { sout<<" (no Shape recorded)"<<std::endl; continue; }
if (tout) sout<<"[ "<<i<<" ]:";
if (num == 0) sout<<" pas dans le modele";
else sout<<" ent.n0 "<<num;
else if (argc > 2 && mode == 0) sprintf (nomvar,"%s_%d",arg2,nbvar);
else sprintf (nomvar,"tp_%d",i);
}
- sout<<" -> 1 DRAW Shape: "<<nomvar<<Message_EndLine;
+ sout<<" -> 1 DRAW Shape: "<<nomvar<<std::endl;
XSControl::Vars(pilot)->SetShape(nomvar,sh);
continue;
}
sout<<" -> "<<nbs<<" DRAW Shapes :";
for (Standard_Integer j = 1; j <= nbs; j ++) {
sh = slb->Shape(j); if (nbvar < 0) nbvar = 0; nbvar ++;
- if (sh.IsNull()) { sout<<" (no Shape recorded)"<<Message_EndLine; continue; }
+ if (sh.IsNull()) { sout<<" (no Shape recorded)"<<std::endl; continue; }
if (argc > 3 && mode > 0) sprintf (nomvar,"%s_%d",arg3,nbvar);
else if (argc > 2 && mode == 0) sprintf (nomvar,"%s_%d",arg2,nbvar);
else sprintf (nomvar,"tp_%d_%d",i,nbvar);
sout<<" "<<nomvar;
XSControl::Vars(pilot)->SetShape(nomvar,sh);
}
- sout<<Message_EndLine;
+ sout<<std::endl;
continue;
}
DeclareAndCast(Transfer_SimpleBinderOfTransient,trb,binder);
if (!trb.IsNull()) {
Handle(Standard_Transient) resu = trb->Result();
if (resu.IsNull()) {
- sout<<"Entite n0 "<<num<<" : pas de resultat"<<Message_EndLine;
+ sout<<"Entite n0 "<<num<<" : pas de resultat"<<std::endl;
continue;
}
DeclareAndCast(Geom_Geometry,geom,resu);
sout<<"Entite n0 "<<num<<" : resultat "<<resu->DynamicType()->Name();
- if (geom.IsNull()) { sout<<Message_EndLine; continue; }
+ if (geom.IsNull()) { sout<<std::endl; continue; }
nbvar ++;
if (nbvar == 0) {
if (argc > 3 && mode > 0) sprintf (nomvar,"%s",arg3);
}
char* nomv = nomvar;
XSControl::Vars(pilot)->Set (nomv,geom);
- sout<<" -> DRAW Geom : "<<nomvar<<Message_EndLine;
+ sout<<" -> DRAW Geom : "<<nomvar<<std::endl;
continue;
}
if (sh.IsNull() && trb.IsNull())
- if (!tout) sout<<"Entite n0 "<<num<<" : resultat pas une Shape mais "<<binder->ResultTypeName()<<Message_EndLine;
+ if (!tout) sout<<"Entite n0 "<<num<<" : resultat pas une Shape mais "<<binder->ResultTypeName()<<std::endl;
}
- if (sh.IsNull()) sout<<" (No Shape)"<<Message_EndLine;
+ if (sh.IsNull()) sout<<" (No Shape)"<<std::endl;
return IFSelect_RetDone;
}
Standard_Integer argc = pilot->NbWords();
const Standard_CString arg1 = pilot->Arg(1);
const Handle(Transfer_TransientProcess) &TP = XSControl::Session(pilot)->TransferReader()->TransientProcess();
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (TP.IsNull()) { sout<<"No Transfer Read"<<Message_EndLine; return IFSelect_RetError;}
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
+ if (TP.IsNull()) { sout<<"No Transfer Read"<<std::endl; return IFSelect_RetError;}
// **** tpcompound ****
- if (argc < 2) { sout<<"Give a NAME for the Compound + optional givelist, else roots are taken"<<Message_EndLine; return IFSelect_RetError; }
+ if (argc < 2) { sout<<"Give a NAME for the Compound + optional givelist, else roots are taken"<<std::endl; return IFSelect_RetError; }
Handle(TopTools_HSequenceOfShape) list;
if (argc == 2) list = TransferBRep::Shapes(TP);
else {
Handle(TColStd_HSequenceOfTransient) lise = IFSelect_Functions::GiveList(pilot->Session(),pilot->CommandPart(2));
- if (lise.IsNull()) { sout<<"Not a valid entity list : "<<pilot->CommandPart(2)<<Message_EndLine; return IFSelect_RetError; }
+ if (lise.IsNull()) { sout<<"Not a valid entity list : "<<pilot->CommandPart(2)<<std::endl; return IFSelect_RetError; }
list = TransferBRep::Shapes (TP,lise);
sout<<lise->Length()<<" Entities, ";
}
- if (list.IsNull()) { sout<<"No Shape listed"<<Message_EndLine; return IFSelect_RetError; }
+ if (list.IsNull()) { sout<<"No Shape listed"<<std::endl; return IFSelect_RetError; }
Standard_Integer nb = list->Length();
- sout<<nb<<" Shape(s) listed"<<Message_EndLine;
+ sout<<nb<<" Shape(s) listed"<<std::endl;
TopoDS_Compound C;
BRep_Builder B;
B.MakeCompound(C);
Standard_Boolean cassave = (pilot->Word(0).Location(1,'s',1,5) > 0);
TCollection_AsciiString nomsh, noms;
const Handle(XSControl_TransferReader) &TR = XSControl::Session(pilot)->TransferReader();
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (TR.IsNull()) { sout<<" manque init"<<Message_EndLine; return IFSelect_RetError; }
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
+ if (TR.IsNull()) { sout<<" manque init"<<std::endl; return IFSelect_RetError; }
const Handle(Interface_InterfaceModel) &mdl = TR->Model();
- if (mdl.IsNull()) { sout<<" modele absent"<<Message_EndLine; return IFSelect_RetError; }
+ if (mdl.IsNull()) { sout<<" modele absent"<<std::endl; return IFSelect_RetError; }
Standard_Integer num = (argc > 1 ? IFSelect_Functions::GiveEntityNumber(XSControl::Session(pilot),arg1) : 0);
if (argc > 1) nomsh = arg1;
else nomsh = cascomp ? "TREAD_COMP" : "TREAD_LIST";
- if (cassave) sout<<" save shapes -> current directory"<<Message_EndLine;
+ if (cassave) sout<<" save shapes -> current directory"<<std::endl;
if (num == 0 || cascomp) {
TopoDS_Compound C; // pour cas compound
B.MakeCompound(C);
const Handle(TopTools_HSequenceOfShape) &list = TR->ShapeResultList(Standard_True);
- sout<<" TOUS RESULTATS par ShapeResultList, soit "<<list->Length()<<Message_EndLine;
+ sout<<" TOUS RESULTATS par ShapeResultList, soit "<<list->Length()<<std::endl;
for (Standard_Integer i = 1, nb = list->Length(); i <= nb; ++i)
{
noms = nomsh + "_" + i;
- if ( (i%1000) == 0) sout<<"("<<i<<")"<<Message_EndLine;
+ if ( (i%1000) == 0) sout<<"("<<i<<")"<<std::endl;
else if ( (i%100) == 0) sout<<"*";
else if ( (i%10) == 0) sout<<"0";
else sout<<".";
else if (!cascomp && cassave) BRepTools::Write (list->Value(i), noms.ToCString());
else if (cascomp) B.Add (C,list->Value(i));
}
- sout<<Message_EndLine;
+ sout<<std::endl;
if (cascomp && !cassave) XSControl::Vars(pilot)->SetShape (nomsh.ToCString(), C);
else if (cascomp && cassave) BRepTools::Write (C, nomsh.ToCString());
} else {
- if (num < 1 || num > mdl->NbEntities()) { sout<<" incorrect:"<<arg1<<Message_EndLine; return IFSelect_RetError; }
+ if (num < 1 || num > mdl->NbEntities()) { sout<<" incorrect:"<<arg1<<std::endl; return IFSelect_RetError; }
TopoDS_Shape sh = TR->ShapeResult(mdl->Value(num));
- if (sh.IsNull()) { sout<<" Pas de resultat pour "<<arg1<<Message_EndLine; return IFSelect_RetError; }
+ if (sh.IsNull()) { sout<<" Pas de resultat pour "<<arg1<<std::endl; return IFSelect_RetError; }
if (argc > 2) nomsh = arg2;
else nomsh = TCollection_AsciiString ("TREAD_") + num;
if (!cascomp && !cassave) XSControl::Vars(pilot)->SetShape (nomsh.ToCString(), sh);
else if (!cascomp && cassave) BRepTools::Write (sh, nomsh.ToCString());
- else sout<<"Option non comprise"<<Message_EndLine;
+ else sout<<"Option non comprise"<<std::endl;
}
return IFSelect_RetDone;
}
Standard_Integer argc = pilot->NbWords();
const Standard_CString arg1 = pilot->Arg(1);
// **** fromshape (tread) ****
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
if (argc < 2) {
- sout<<"Give name of a DRAW Shape"<<Message_EndLine;
+ sout<<"Give name of a DRAW Shape"<<std::endl;
return IFSelect_RetError;
}
const char* a1 = (char *)arg1;
TopoDS_Shape Shape = XSControl::Vars(pilot)->GetShape(a1);
if (Shape.IsNull()) {
- sout<<"Not a DRAW Shape:"<<arg1<<Message_EndLine;
+ sout<<"Not a DRAW Shape:"<<arg1<<std::endl;
return IFSelect_RetError;
}
Standard_Boolean yena = Standard_False;
if (TP.IsNull()) {
if ( silent )
sout << "Shape "<<arg1<<" : ";
- sout<<"no map"<<Message_EndLine;
+ sout<<"no map"<<std::endl;
}
else {
TopoDS_Shape S0 = Shape;
// skl 11.05.2004
// if Shape is a compound try to make "fromshape" for its subshapes
if(Shape.ShapeType()==TopAbs_COMPOUND) {
- sout<<Message_EndLine<<"Subshapes imported from entities:";
+ sout<<std::endl<<"Subshapes imported from entities:";
TopoDS_Iterator Iter(Shape);
for (; Iter.More(); Iter.Next()) {
TopoDS_Shape subsh = Iter.Value();
}
}
else {
- sout<<"imported from entity ";
- XSControl::Session(pilot)->Model()->Print(ent,sout);
- if ( silent ) sout << " in file " << XSControl::Session(pilot)->LoadedFile() << Message_EndLine;
+ sout<<"imported from entity ";
+ XSControl::Session(pilot)->Model()->Print (ent, sout);
+ if ( silent ) sout << " in file " << XSControl::Session(pilot)->LoadedFile() << std::endl;
}
- if ( ! silent ) sout<<Message_EndLine;
+ if ( ! silent ) sout<<std::endl;
}
// ET EN EXPORT ?
if (!fnd.IsNull()) ent = FP->FindTransient (fnd);
if (!ent.IsNull()) {
sout<<"Shape "<<arg1<<": exported to entity ";
- XSControl::Session(pilot)->Model()->Print(ent,sout);
+ XSControl::Session(pilot)->Model()->Print (ent, sout);
if ( silent ) sout << " in file " << XSControl::Session(pilot)->LoadedFile();
- sout<<Message_EndLine;
+ sout<<std::endl;
}
// abv 31.08.00: treat case of splitted shape (several results)
// it is supposed that results are of the same type and lie in one-level comp
Standard_Integer i = 1, nb = TransientListBinder->NbTransients();
if (nb > 0) sout<<"Shape "<<arg1<<": exported to entities ";
for (; i<=nb; i++) {
- XSControl::Session(pilot)->Model()->Print( TransientListBinder->Transient(i), sout );
+ XSControl::Session(pilot)->Model()->Print( TransientListBinder->Transient(i), sout);
if (i < nb) sout<<", ";
}
if (nb > 0) {
if ( silent ) sout << " in file " << XSControl::Session(pilot)->LoadedFile();
- sout<<Message_EndLine;
+ sout<<std::endl;
}
}
/* else {
}
}
}
- if (!yena) sout<<"No transfer (either import or export) recorded"<<Message_EndLine;
+ if (!yena) sout<<"No transfer (either import or export) recorded"<<std::endl;
return IFSelect_RetVoid;
}
const Handle(XSControl_TransferReader) &TR = XSControl::Session(pilot)->TransferReader();
Handle(Transfer_TransientProcess) TP;
if (!TR.IsNull()) TP = TR->TransientProcess();
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (TP.IsNull()) { sout<<"no transfer map"<<Message_EndLine; return IFSelect_RetVoid; }
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
+ if (TP.IsNull()) { sout<<"no transfer map"<<std::endl; return IFSelect_RetVoid; }
if (argc < 2) {
- sout<<"Give name of a DRAW Shape + optional shape type v-e-w-f(D)-s"<<Message_EndLine;
+ sout<<"Give name of a DRAW Shape + optional shape type v-e-w-f(D)-s"<<std::endl;
return IFSelect_RetError;
}
const char* a1 = (const char *)arg1;
TopoDS_Shape Shape = XSControl::Vars(pilot)->GetShape(a1);
- if (Shape.IsNull()) { sout<<"Not a DRAW Shape:"<<arg1<<Message_EndLine; return IFSelect_RetError; }
+ if (Shape.IsNull()) { sout<<"Not a DRAW Shape:"<<arg1<<std::endl; return IFSelect_RetError; }
sout<<"Shape "<<arg1<<" : ";
Handle(TColStd_HSequenceOfTransient) list =
XSControl_ConnectedShapes::AdjacentEntities (Shape,TP,TopAbs_FACE);
Standard_Integer i, nb = list->Length();
- sout<<nb<<" Entities produced Connected Shapes :"<<Message_EndLine;
+ sout<<nb<<" Entities produced Connected Shapes :"<<std::endl;
const Handle(Interface_InterfaceModel) &model = XSControl::Session(pilot)->Model();
sout<<"(";
for (i = 1; i <= nb; i ++) {
if (i > 1) sout<<",";
sout<<model->Number(list->Value(i));
}
- sout<<")"<<Message_EndLine;
+ sout<<")"<<std::endl;
return IFSelect_RetDone;
}
Handle(XSControl_WorkSession) WS = XSControl::Session(pilot);
Standard_Integer argc = pilot->NbWords();
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
if (argc < 4) {
- sout<<"Give : filename or . for current model; varname or . to take fileroot\n GiveList, * for all transferrable roots"<<Message_EndLine;
+ sout<<"Give : filename or . for current model; varname or . to take fileroot\n GiveList, * for all transferrable roots"<<std::endl;
return IFSelect_RetError;
}
const Standard_CString arg1 = pilot->Arg(1);
TCollection_AsciiString fnom,rnom;
Standard_Boolean modfic = XSControl_FuncShape::FileAndVar
(WS,arg1,arg2,"IMPORT",fnom,rnom);
- if (modfic) sout<<" File to read : "<<fnom<<Message_EndLine;
- else sout<<" Model taken from the session : "<<fnom<<Message_EndLine;
- sout<<" -- Names of variables BREP-DRAW prefixed by : "<<rnom<<Message_EndLine;
+ if (modfic) sout<<" File to read : "<<fnom<<std::endl;
+ else sout<<" Model taken from the session : "<<fnom<<std::endl;
+ sout<<" -- Names of variables BREP-DRAW prefixed by : "<<rnom<<std::endl;
// keep the current command, because sub-commands will be called
TCollection_AsciiString compart = pilot->CommandPart (3);
comload.AssignCat(arg1);
IFSelect_ReturnStatus status = pilot->Execute(comload);
if (status != IFSelect_RetDone)
- { sout<<"Abandon import"<<Message_EndLine; return status; }
+ { sout<<"Abandon import"<<std::endl; return status; }
} else {
- sout<<"Currently Loaded Model"<<Message_EndLine;
+ sout<<"Currently Loaded Model"<<std::endl;
}
// Selecting Entities
sout<<"List given by "<<compart.ToCString()<<" : ";
list = WS->GiveList (compart.ToCString());
}
- if (list.IsNull()) { sout<<"No list defined. Abandon"<<Message_EndLine; return IFSelect_RetError; }
+ if (list.IsNull()) { sout<<"No list defined. Abandon"<<std::endl; return IFSelect_RetError; }
Standard_Integer nbl = list->Length();
- sout<<"Nb entities selected : "<<nbl<<Message_EndLine;
+ sout<<"Nb entities selected : "<<nbl<<std::endl;
// Starting Transfer
WS->InitTransferReader (0);
const Handle(XSControl_TransferReader) &TR = WS->TransferReader();
- if (TR.IsNull()) { sout<<" init not done or failed"<<Message_EndLine; return IFSelect_RetError; }
+ if (TR.IsNull()) { sout<<" init not done or failed"<<std::endl; return IFSelect_RetError; }
TR->BeginTransfer();
// Transferring
Standard_Integer nbt = TR->TransferList(list);
- sout<<"Nb Entities Selected : "<<nbl<<" have given "<<nbt<<" results"<<Message_EndLine;
+ sout<<"Nb Entities Selected : "<<nbl<<" have given "<<nbt<<" results"<<std::endl;
// Filling VARS. one compound (trimpcomp) or one shape per ent (trimport)
Standard_Boolean iscomp = (pilot->Arg(0)[5] == 'c');
BRep_Builder B;
B.MakeCompound (C);
Handle(Interface_InterfaceModel) mdl = TR->Model();
- if (mdl.IsNull()) { sout<<" modele absent"<<Message_EndLine; return IFSelect_RetError; }
+ if (mdl.IsNull()) { sout<<" modele absent"<<std::endl; return IFSelect_RetError; }
for (Standard_Integer il= 1; il <= nbl; il ++) {
Handle(Standard_Transient) ent = list->Value(il);
sh = TR->ShapeResult(ent);
XSControl::Vars(pilot)->SetShape(nomsh,sh);
}
}
- if (nbs == 0) sout<<"No Shape produced"<<Message_EndLine;
+ if (nbs == 0) sout<<"No Shape produced"<<std::endl;
else if (nbs == 1) {
- sout<<"One Shape produced, named "<<rnom.ToCString()<<Message_EndLine;
+ sout<<"One Shape produced, named "<<rnom.ToCString()<<std::endl;
XSControl::Vars(pilot)->SetShape(rnom.ToCString(),sh);
} else if (iscomp) {
- sout<<"One compound made of "<<nbs<<" Shapes, named "<<rnom.ToCString()<<Message_EndLine;
+ sout<<"One compound made of "<<nbs<<" Shapes, named "<<rnom.ToCString()<<std::endl;
XSControl::Vars(pilot)->SetShape(rnom.ToCString(),C);
} else { // several individual shapes
- sout<<nbs<<" Shapes, named "<<rnom.ToCString()<<"_1 to "<<rnom.ToCString()<<"_"<<nbs<<Message_EndLine;
+ sout<<nbs<<" Shapes, named "<<rnom.ToCString()<<"_1 to "<<rnom.ToCString()<<"_"<<nbs<<std::endl;
}
return IFSelect_RetDone;
Standard_Integer argc = pilot->NbWords();
const Standard_CString arg1 = pilot->Arg(1);
// **** twrite ****
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
Handle(XSControl_TransferWriter) TW = XSControl::Session(pilot)->TransferWriter();
- if (argc < 2) { sout<<" donner nom de shape draw"<<Message_EndLine; return IFSelect_RetError; }
- sout<<"Attention, on alimente le modele courant ..."<<Message_EndLine;
+ if (argc < 2) { sout<<" donner nom de shape draw"<<std::endl; return IFSelect_RetError; }
+ sout<<"Attention, on alimente le modele courant ..."<<std::endl;
// Shape
for (Standard_Integer i = 1; i < argc; i ++) {
const char* ai = (const char *)pilot->Arg(i);
TopoDS_Shape Shape = XSControl::Vars(pilot)->GetShape(ai);
- if (Shape.IsNull()) { sout<<"pas un nom de shape draw:"<<arg1<<Message_EndLine; continue; }
+ if (Shape.IsNull()) { sout<<"pas un nom de shape draw:"<<arg1<<std::endl; continue; }
sout<<"Pour Shape : "<<ai;
Standard_Integer stat = TW->TransferWriteShape (XSControl::Session(pilot)->Model(),Shape);
- sout<<" Transfer Write Status = "<<stat<<Message_EndLine;
+ sout<<" Transfer Write Status = "<<stat<<std::endl;
}
pilot->Session()->ComputeGraph();
// Transient ? (Geom) : ignore
// name = "**" -> tous les transferts du TP : VRAIMENT TOUS
// name = "." -> reperage graphique (not yet impl)
// name = nom(n1-n2) avec n1,n2 entiers : les variables de nom nomn1 a nomn2
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
if (list.IsNull()) list = new TopTools_HSequenceOfShape();
if (name[0] == '*' && (name[1] == '\0' || (name[1] == '*' && name[2] == '\0'))) {
const Handle(Transfer_TransientProcess) &TP = session->TransferReader()->TransientProcess();
- if (TP.IsNull()) { sout<<"last transfer : unknown"<<Message_EndLine;return 0; }
+ if (TP.IsNull()) { sout<<"last transfer : unknown"<<std::endl;return 0; }
Handle(TopTools_HSequenceOfShape) li = TransferBRep::Shapes(TP,(name[1] == '\0'));
if (li.IsNull()) return 0;
list->Append (li);
list->Append(Shape);
nbsh ++;
}
- sout<<" -> taken "<<nbsh<<" Shapes"<<Message_EndLine;
+ sout<<" -> taken "<<nbsh<<" Shapes"<<std::endl;
return nbsh;
}
const char* a1 = (const char *)name;
TopoDS_Shape Shape = session->Vars()->GetShape(a1);
- if (Shape.IsNull()) { sout<<"not a shape draw:"<<a1<<Message_EndLine; return 0; }
+ if (Shape.IsNull()) { sout<<"not a shape draw:"<<a1<<std::endl; return 0; }
list->Append(Shape);
return 1;
}
// **** xinit ****
if (argc > 1) return (XSControl::Session(pilot)->SelectNorm(arg1) ?
IFSelect_RetDone : IFSelect_RetFail);
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
- sout<<"Selected Norm:"<<XSControl::Session(pilot)->SelectedNorm()<<Message_EndLine;
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
+ sout<<"Selected Norm:"<<XSControl::Session(pilot)->SelectedNorm()<<std::endl;
return IFSelect_RetVoid;
}
// **** xnorm ****
Handle(XSControl_WorkSession) WS = XSControl::Session(pilot);
Handle(XSControl_Controller) control = WS->NormAdaptor();
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
if (argc == 1)
- sout<<"Current Norm. xnorm newnorm to change"<<Message_EndLine;
- else sout<<"Current Norm :"<<Message_EndLine;
- if (control.IsNull()) sout<<"no norm currently defined"<<Message_EndLine;
+ sout<<"Current Norm. xnorm newnorm to change"<<std::endl;
+ else sout<<"Current Norm :"<<std::endl;
+ if (control.IsNull()) sout<<"no norm currently defined"<<std::endl;
else
- sout<<" Long Name (complete) : "<<control->Name(Standard_False)<<Message_EndLine
- << " Short name (resource) : "<<control->Name(Standard_True)<<Message_EndLine;
+ sout<<" Long Name (complete) : "<<control->Name(Standard_False)<<std::endl
+ << " Short name (resource) : "<<control->Name(Standard_True)<<std::endl;
if (argc == 1) return IFSelect_RetVoid;
control = XSControl_Controller::Recorded(arg1);
if (control.IsNull()) {
- sout<<" No norm named : "<<arg1<<Message_EndLine;
+ sout<<" No norm named : "<<arg1<<std::endl;
return IFSelect_RetError;
}
WS->SetController(control);
- sout<<"new norm : "<<control->Name()<<Message_EndLine;
+ sout<<"new norm : "<<control->Name()<<std::endl;
return IFSelect_RetDone;
}
{
// **** newmodel ****
if (!XSControl::Session(pilot)->NewModel().IsNull()) return IFSelect_RetDone;
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
- sout<<"No new Model produced"<<Message_EndLine;
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
+ sout<<"No new Model produced"<<std::endl;
return IFSelect_RetFail;
}
const Standard_Boolean modew = (pilot->Word(0).Value(2) == 'w');
const Handle(Transfer_FinderProcess) &FP = XSControl::Session(pilot)->TransferWriter()->FinderProcess();
const Handle(Transfer_TransientProcess) &TP = XSControl::Session(pilot)->TransferReader()->TransientProcess();
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (modew) { if(!FP.IsNull()) FP->Clear(); else sout<<"No Transfer Write"<<Message_EndLine; }
- else { if(!TP.IsNull()) TP->Clear(); else sout<<"No Transfer Read"<<Message_EndLine; }
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
+ if (modew) { if(!FP.IsNull()) FP->Clear(); else sout<<"No Transfer Write"<<std::endl; }
+ else { if(!TP.IsNull()) TP->Clear(); else sout<<"No Transfer Read"<<std::endl; }
return IFSelect_RetDone;
}
const Standard_CString arg1 = pilot->Arg(1);
//const Standard_CString arg2 = pilot->Arg(2);
const Handle(Transfer_TransientProcess) &TP = XSControl::Session(pilot)->TransferReader()->TransientProcess();
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (TP.IsNull()) { sout<<"No Transfer Read"<<Message_EndLine; return IFSelect_RetError;}
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
+ if (TP.IsNull()) { sout<<"No Transfer Read"<<std::endl; return IFSelect_RetError;}
// **** tpstat ****
Standard_Integer mod1 = -1;
}
}
// A present help eventuel
- if (mod1 < -1) sout<<"Unknown Mode"<<Message_EndLine;
+ if (mod1 < -1) sout<<"Unknown Mode"<<std::endl;
if (mod1 < 0) {
sout<<"Modes available :\n"
<<"g : general c : checks (count) C (list)\n"
<<" L : list per couple type entity/result\n"
<<" *n *s *b *t *r *l *L : idem on ALL recorded items\n"
<<" ?n ?s ?b ?t ... : idem on abnormal items\n"
- <<" n select : n applied on a selection idem for s b t r l"<<Message_EndLine;
+ <<" n select : n applied on a selection idem for s b t r l"<<std::endl;
if (mod1 < -1) return IFSelect_RetError;
return IFSelect_RetVoid;
}
XSControl_TransferReader::PrintStatsOnList (TP,list,mod1,mod2);
// TP->PrintStats (1,sout);
}
- else sout<<"TransferRead : not defined"<<Message_EndLine;
+ else sout<<"TransferRead : not defined"<<std::endl;
return IFSelect_RetVoid;
}
const Standard_CString arg1 = pilot->Arg(1);
const Handle(Transfer_TransientProcess) &TP = XSControl::Session(pilot)->TransferReader()->TransientProcess();
// **** tpent ****
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (TP.IsNull()) { sout<<"No Transfer Read"<<Message_EndLine; return IFSelect_RetError;}
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
+ if (TP.IsNull()) { sout<<"No Transfer Read"<<std::endl; return IFSelect_RetError;}
Handle(Interface_InterfaceModel) model = TP->Model();
if (model.IsNull()) return IFSelect_RetFail;
- if (argc < 2) { sout<<"Give ENTITY NUMBER (IN MODEL TransferProcess)"<<Message_EndLine; return IFSelect_RetError; }
+ if (argc < 2) { sout<<"Give ENTITY NUMBER (IN MODEL TransferProcess)"<<std::endl; return IFSelect_RetError; }
Standard_Integer num = atoi(arg1);
- if (num <= 0 || num > model->NbEntities()) { sout<<"Number not in [1 - "<<model->NbEntities()<<"]"<<Message_EndLine; return IFSelect_RetError; }
+ if (num <= 0 || num > model->NbEntities()) { sout<<"Number not in [1 - "<<model->NbEntities()<<"]"<<std::endl; return IFSelect_RetError; }
Handle(Standard_Transient) ent = model->Value(num);
Standard_Integer index = TP->MapIndex (ent);
- if (index == 0) sout<<"Entity "<<num<<" not recorded in transfer"<<Message_EndLine;
+ if (index == 0) sout<<"Entity "<<num<<" not recorded in transfer"<<std::endl;
else XSControl::Session(pilot)->PrintTransferStatus (index,Standard_False,sout);
return IFSelect_RetVoid;
}
Standard_Integer argc = pilot->NbWords();
const Standard_CString arg1 = pilot->Arg(1);
// **** tpitem/tproot/twitem/twroot ****
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (argc < 2) { sout<<"Give ITEM NUMBER (in TransferProcess)"<<Message_EndLine; return IFSelect_RetError; }
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
+ if (argc < 2) { sout<<"Give ITEM NUMBER (in TransferProcess)"<<std::endl; return IFSelect_RetError; }
Standard_Integer num = atoi(arg1);
if (pilot->Word(0).Value(3) == 'r') num = -num;
Standard_Boolean modew = Standard_False;
Handle(Transfer_Finder) finder;
Handle(Standard_Transient) ent;
if (!XSControl::Session(pilot)->PrintTransferStatus(num,modew,sout))
- sout<<" - Num="<<num<<" incorrect"<<Message_EndLine;
+ {
+ sout<<" - Num="<<num<<" incorrect"<<std::endl;
+ }
return IFSelect_RetVoid;
}
const Handle(Interface_InterfaceModel) &mdl = XSControl::Session(pilot)->Model();
const Handle(XSControl_TransferReader) &TR = XSControl::Session(pilot)->TransferReader();
Handle(Standard_Transient) ent;
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
if (mdl.IsNull() || TR.IsNull() || TP.IsNull())
- { sout<<" init not done"<<Message_EndLine; return IFSelect_RetError; }
+ { sout<<" init not done"<<std::endl; return IFSelect_RetError; }
if (!tous) num = atoi(arg1);
// Enregistrer les racines
if (tous) {
Standard_Integer nb = TP->NbRoots();
- sout<<" Recording "<<nb<<" Roots"<<Message_EndLine;
+ sout<<" Recording "<<nb<<" Roots"<<std::endl;
for (Standard_Integer i = 1; i <= nb; i ++) {
ent = TP->Root(i);
- if (TR->RecordResult (ent)) sout<<" Root n0."<<i<<Message_EndLine;
- else sout<<" Root n0."<<i<<" not recorded"<<Message_EndLine;
+ if (TR->RecordResult (ent)) sout<<" Root n0."<<i<<std::endl;
+ else sout<<" Root n0."<<i<<" not recorded"<<std::endl;
}
} else {
- if (num < 1 || num > mdl->NbEntities()) sout<<"incorrect number:"<<num<<Message_EndLine;
- else if (TR->RecordResult(mdl->Value(num))) sout<<" Entity n0."<<num<<Message_EndLine;
- else sout<<" Entity n0."<<num<<" not recorded"<<Message_EndLine;
+ if (num < 1 || num > mdl->NbEntities()) sout<<"incorrect number:"<<num<<std::endl;
+ else if (TR->RecordResult(mdl->Value(num))) sout<<" Entity n0."<<num<<std::endl;
+ else sout<<" Entity n0."<<num<<" not recorded"<<std::endl;
}
return IFSelect_RetDone;
}
{
Standard_Integer argc = pilot->NbWords();
const Standard_CString arg1 = pilot->Arg(1);
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
// **** trstat : TransferReader ****
const Handle(XSControl_TransferReader) &TR = XSControl::Session(pilot)->TransferReader();
- if (TR.IsNull()) { sout<<" init not done"<<Message_EndLine; return IFSelect_RetError; }
+ if (TR.IsNull()) { sout<<" init not done"<<std::endl; return IFSelect_RetError; }
Handle(Interface_InterfaceModel) mdl = TR->Model();
- if (mdl.IsNull()) { sout<<" No model"<<Message_EndLine; return IFSelect_RetError; }
- sout<<" Statistics : FileName : "<<TR->FileName()<<Message_EndLine;
+ if (mdl.IsNull()) { sout<<" No model"<<std::endl; return IFSelect_RetError; }
+ sout<<" Statistics : FileName : "<<TR->FileName()<<std::endl;
if (argc == 1) {
// stats generales
- TR->PrintStats(10,0);
+ TR->PrintStats (sout, 10, 0);
} else {
// stats unitaires
Standard_Integer num = atoi(arg1);
- if (num < 1 || num > mdl->NbEntities()) { sout<<" incorrect number:"<<arg1<<Message_EndLine; return IFSelect_RetError; }
+ if (num < 1 || num > mdl->NbEntities()) { sout<<" incorrect number:"<<arg1<<std::endl; return IFSelect_RetError; }
Handle(Standard_Transient) ent = mdl->Value(num);
- if (!TR->IsRecorded(ent)) { sout<<" Entity "<<num<<" not recorded"<<Message_EndLine; return IFSelect_RetError; }
+ if (!TR->IsRecorded(ent)) { sout<<" Entity "<<num<<" not recorded"<<std::endl; return IFSelect_RetError; }
Handle(Transfer_ResultFromModel) RM = TR->FinalResult(ent);
Handle(TColStd_HSequenceOfTransient) list = TR->CheckedList(ent);
Standard_Integer i, nb = list->Length();
if (nb > 0) sout<<" Entities implied by Check/Result :"<<nb<<" i.e.:";
- for (i = 1; i <= nb; i ++) { sout<<" "; mdl->Print(list->Value(i),sout); }
- sout<<Message_EndLine;
- if (RM.IsNull()) { sout<<" no other info"<<Message_EndLine; return IFSelect_RetVoid; }
+ for (i = 1; i <= nb; i ++) { sout<<" "; mdl->Print(list->Value(i), sout); }
+ sout<<std::endl;
+ if (RM.IsNull()) { sout<<" no other info"<<std::endl; return IFSelect_RetVoid; }
Interface_CheckIterator chl = RM->CheckList(Standard_False);
- pilot->Session()->PrintCheckList(chl,Standard_False,IFSelect_EntitiesByItem);
+ pilot->Session()->PrintCheckList (sout, chl, Standard_False, IFSelect_EntitiesByItem);
}
return IFSelect_RetVoid;
}
XSControl::Session(pilot)->InitTransferReader (0);
TR = XSControl::Session(pilot)->TransferReader();
if (TR.IsNull()) {
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
- sout<<" init not done or failed"<<Message_EndLine;
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
+ sout<<" init not done or failed"<<std::endl;
return IFSelect_RetError;
}
}
Standard_Integer argc = pilot->NbWords();
//const Standard_CString arg1 = pilot->Arg(1);
// **** tread : TransferReader ****
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
const Handle(XSControl_TransferReader) &TR = XSControl::Session(pilot)->TransferReader();
- if (TR.IsNull()) { sout<<" init not done"<<Message_EndLine; return IFSelect_RetError; }
+ if (TR.IsNull()) { sout<<" init not done"<<std::endl; return IFSelect_RetError; }
const Handle(Interface_InterfaceModel) &mdl = TR->Model();
- if (mdl.IsNull()) { sout<<" No model"<<Message_EndLine; return IFSelect_RetError; }
+ if (mdl.IsNull()) { sout<<" No model"<<std::endl; return IFSelect_RetError; }
if (argc < 2) {
// DeclareAndCast(IFSelect_Selection,sel,pilot->Session()->NamedItem("xst-model-roots"));
Handle(Standard_Transient) sel = pilot->Session()->NamedItem("xst-model-roots");
- if (sel.IsNull()) { sout<<"Select Roots absent"<<Message_EndLine; return IFSelect_RetError; }
+ if (sel.IsNull()) { sout<<"Select Roots absent"<<std::endl; return IFSelect_RetError; }
Handle(TColStd_HSequenceOfTransient) list = pilot->Session()->GiveList(sel);
- sout<<" Transferring all roots i.e. : "<<TR->TransferList(list)<<Message_EndLine;
+ sout<<" Transferring all roots i.e. : "<<TR->TransferList(list)<<std::endl;
} else {
Handle(TColStd_HSequenceOfTransient) list =
IFSelect_Functions::GiveList(pilot->Session(),pilot->CommandPart(1));
- sout<<" Transfer of "<<list->Length()<<" entities"<<Message_EndLine;
+ sout<<" Transfer of "<<list->Length()<<" entities"<<std::endl;
Standard_Integer nb = TR->TransferList(list);
- sout<<" Gives "<<nb<<" results"<<Message_EndLine;
+ sout<<" Gives "<<nb<<" results"<<std::endl;
}
return IFSelect_RetDone;
}
{
// **** TReader -> TProcess ****
const Handle(XSControl_TransferReader) &TR = XSControl::Session(pilot)->TransferReader();
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
- if (TR.IsNull()) sout<<" No TransferReader"<<Message_EndLine;
- else if (TR->TransientProcess().IsNull()) sout<<" Transfer Reader without Process"<<Message_EndLine;
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
+ if (TR.IsNull()) sout<<" No TransferReader"<<std::endl;
+ else if (TR->TransientProcess().IsNull()) sout<<" Transfer Reader without Process"<<std::endl;
return IFSelect_RetVoid;
}
Handle(XSControl_TransferWriter) TW = XSControl::Session(pilot)->TransferWriter();
Handle(XSControl_Controller) control = XSControl::Session(pilot)->NormAdaptor();
Standard_Integer modemin,modemax;
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
if (control->ModeWriteBounds (modemin,modemax)) {
- sout<<"Write Mode : allowed values "<<modemin<<" to "<<modemax<<Message_EndLine;
+ sout<<"Write Mode : allowed values "<<modemin<<" to "<<modemax<<std::endl;
for (Standard_Integer modd = modemin; modd <= modemax; modd ++) {
- sout<<modd<<" : "<<control->ModeWriteHelp (modd)<<Message_EndLine;
+ sout<<modd<<" : "<<control->ModeWriteHelp (modd)<<std::endl;
}
}
- sout<<"Write Mode : actual = "<<TW->TransferMode()<<Message_EndLine;
+ sout<<"Write Mode : actual = "<<TW->TransferMode()<<std::endl;
if (argc <= 1) return IFSelect_RetVoid;
Standard_Integer mod = atoi(arg1);
- sout<<"New value -> "<<arg1<<Message_EndLine;
+ sout<<"New value -> "<<arg1<<std::endl;
TW->SetTransferMode(mod);
- if (!control->IsModeWrite (mod)) sout<<"Warning : this new value is not supported"<<Message_EndLine;
+ if (!control->IsModeWrite (mod)) sout<<"Warning : this new value is not supported"<<std::endl;
return IFSelect_RetDone;
}
const Handle(Transfer_FinderProcess) &FP = XSControl::Session(pilot)->TransferWriter()->FinderProcess();
// **** twstat ****
// Pour Write
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
if (!FP.IsNull()) {
sout<<"TransferWrite:";
// XSControl_TransferWriter::PrintStatsProcess (FP,mod1,mod2);
FP->PrintStats (1,sout);
}
- else sout<<"TransferWrite: not defined"<<Message_EndLine;
+ else sout<<"TransferWrite: not defined"<<std::endl;
return IFSelect_RetVoid;
}
#include <Interface_InterfaceModel.hxx>
#include <Interface_ShareFlags.hxx>
#include <Interface_Static.hxx>
+#include <Message.hxx>
+#include <Message_Messenger.hxx>
#include <Message_ProgressSentry.hxx>
#include <ShapeExtend_Explorer.hxx>
#include <Standard_Transient.hxx>
return C;
}
-
//=======================================================================
//function : PrintCheckLoad
-//purpose :
+//purpose :
//=======================================================================
+void XSControl_Reader::PrintCheckLoad (Standard_OStream& theStream,
+ const Standard_Boolean failsonly,
+ const IFSelect_PrintCount mode) const
+{
+ thesession->PrintCheckList (theStream, thesession->ModelCheckList(),failsonly, mode);
+}
+//=======================================================================
+//function : PrintCheckLoad
+//purpose :
+//=======================================================================
void XSControl_Reader::PrintCheckLoad (const Standard_Boolean failsonly,
const IFSelect_PrintCount mode) const
{
- thesession->PrintCheckList (thesession->ModelCheckList(),failsonly, mode);
+ Message_Messenger::StreamBuffer aBuffer = Message::SendInfo();
+ PrintCheckLoad (aBuffer, failsonly, mode);
}
-
//=======================================================================
//function : PrintCheckTransfer
-//purpose :
+//purpose :
//=======================================================================
+void XSControl_Reader::PrintCheckTransfer(Standard_OStream& theStream,
+ const Standard_Boolean failsonly,
+ const IFSelect_PrintCount mode) const
+{
+ thesession->PrintCheckList (theStream, thesession->TransferReader()->LastCheckList(), failsonly, mode);
+}
+//=======================================================================
+//function : PrintCheckTransfer
+//purpose :
+//=======================================================================
void XSControl_Reader::PrintCheckTransfer(const Standard_Boolean failsonly,
const IFSelect_PrintCount mode) const
{
- thesession->PrintCheckList (thesession->TransferReader()->LastCheckList(),failsonly, mode);
+ Message_Messenger::StreamBuffer aBuffer = Message::SendInfo();
+ PrintCheckTransfer(aBuffer, failsonly, mode);
}
-
//=======================================================================
//function : PrintStatsTransfer
-//purpose :
+//purpose :
//=======================================================================
+void XSControl_Reader::PrintStatsTransfer (Standard_OStream& theStream,
+ const Standard_Integer what,
+ const Standard_Integer mode) const
+{
+ thesession->TransferReader()->PrintStats (theStream, what,mode);
+}
+//=======================================================================
+//function : PrintStatsTransfer
+//purpose :
+//=======================================================================
void XSControl_Reader::PrintStatsTransfer (const Standard_Integer what,
const Standard_Integer mode) const
{
- thesession->TransferReader()->PrintStats (what,mode);
+ Message_Messenger::StreamBuffer aBuffer = Message::SendInfo();
+ PrintStatsTransfer (aBuffer, what, mode);
}
-
//=======================================================================
//function : GetStatsTransfer
//purpose :
//! mode = 1 : per message, just gives count of entities per check
//! mode = 2 : also gives entity numbers
Standard_EXPORT void PrintCheckLoad (const Standard_Boolean failsonly, const IFSelect_PrintCount mode) const;
+
+ //! Prints the check list attached to loaded data.
+ Standard_EXPORT void PrintCheckLoad (Standard_OStream& theStream, const Standard_Boolean failsonly, const IFSelect_PrintCount mode) const;
//! Displays check results for the
//! last translation of IGES or STEP entities to Open CASCADE
//! false. mode determines the contents and the order of the
//! messages according to the terms of the IFSelect_PrintCount enumeration.
Standard_EXPORT void PrintCheckTransfer (const Standard_Boolean failsonly, const IFSelect_PrintCount mode) const;
+
+ //! Displays check results for the last translation of IGES or STEP entities to Open CASCADE entities.
+ Standard_EXPORT void PrintCheckTransfer (Standard_OStream& theStream, const Standard_Boolean failsonly, const IFSelect_PrintCount mode) const;
//! Displays the statistics for
//! the last translation. what defines the kind of
//! - if mode is 2 the list of entities per warning is returned.
//! If mode is not set, only the list of all entities per warning is given.
Standard_EXPORT void PrintStatsTransfer (const Standard_Integer what, const Standard_Integer mode = 0) const;
+
+ //! Displays the statistics for the last translation.
+ Standard_EXPORT void PrintStatsTransfer (Standard_OStream& theStream, const Standard_Integer what, const Standard_Integer mode = 0) const;
//! Gives statistics about Transfer
Standard_EXPORT void GetStatsTransfer (const Handle(TColStd_HSequenceOfTransient)& list, Standard_Integer& nbMapped, Standard_Integer& nbWithResult, Standard_Integer& nbWithFail) const;
#include <XSControl_Controller.hxx>
#include <XSControl_TransferReader.hxx>
#include <XSControl_Utils.hxx>
+#include <Message.hxx>
#include <stdio.h>
IMPLEMENT_STANDARD_RTTIEXT(XSControl_TransferReader,Standard_Transient)
if (myTP.IsNull()) { if (!BeginTransfer()) return 0; }
- Handle(Message_Messenger) sout = myTP->Messenger();
+ Message_Messenger::StreamBuffer sout = myTP->Messenger()->SendInfo();
Standard_Integer level = myTP->TraceLevel();
Standard_Integer num = myModel->Number(ent);
Handle(TCollection_HAsciiString) lab = myModel->StringLabel(ent);
sout<<"\n*******************************************************************\n";
- sout << "****** Transferring one Entity ******"<<Message_EndLine;
+ sout << "****** Transferring one Entity ******"<<std::endl;
if (!lab.IsNull())
sout<<"****** N0 in file : "<<Interface_MSG::Blanks(num,5)<<num
<<" Ident : "<<lab->ToCString()
if (myTP.IsNull()) { if (!BeginTransfer()) return 0; }
- Handle(Message_Messenger) sout = myTP->Messenger();
Standard_Integer level = myTP->TraceLevel();
Transfer_TransferOutput TP (myTP,myModel);
// Pour le log-file
if (level > 0) {
+ Message_Messenger::StreamBuffer sout = myTP->Messenger()->SendInfo();
sout<<"\n*******************************************************************\n";
- sout << "****** Transferring a list of "<<Interface_MSG::Blanks(nb,5)<<" Entities ******"<<Message_EndLine;
+ sout << "****** Transferring a list of "<<Interface_MSG::Blanks(nb,5)<<" Entities ******"<<std::endl;
sout<<"\n*******************************************************************\n";
Handle(IFSelect_SignatureList) sl = new IFSelect_SignatureList;
{
if (myModel != G.Model()) return -1;
if (!BeginTransfer()) return -1;
- Handle(Message_Messenger) sout = myTP->Messenger();
Standard_Integer level = myTP->TraceLevel();
Transfer_TransferOutput TP (myTP,myModel);
if (level > 0) {
Interface_EntityIterator roots = G.RootEntities();
Standard_Integer nb = roots.NbEntities();
+ Message_Messenger::StreamBuffer sout = myTP->Messenger()->SendInfo();
sout<<"\n*******************************************************************\n";
- sout << "****** Transferring the "<<Interface_MSG::Blanks(nb,5)<<" Root Entities ******"<<Message_EndLine;
+ sout << "****** Transferring the "<<Interface_MSG::Blanks(nb,5)<<" Root Entities ******"<<std::endl;
sout<<"\n*******************************************************************\n";
Handle(IFSelect_SignatureList) sl = new IFSelect_SignatureList;
for (roots.Start(); roots.More(); roots.Next())
//purpose :
//=======================================================================
-void XSControl_TransferReader::PrintStats
- (const Standard_Integer what, const Standard_Integer mode) const
+void XSControl_TransferReader::PrintStats (Standard_OStream& sout,
+ const Standard_Integer what,
+ const Standard_Integer mode) const
{
- Handle(Message_Messenger) sout = myTP->Messenger();
// A ameliorer ... !
sout<<"\n*******************************************************************\n";
- sout << "****** Statistics on Transfer (Read) ******"<<Message_EndLine;
+ sout << "****** Statistics on Transfer (Read) ******"<<std::endl;
sout<<"\n*******************************************************************\n";
- if (what > 10) { sout<<" *** Not yet implemented"<<Message_EndLine; return; }
+ if (what > 10) { sout<<" *** Not yet implemented"<<std::endl; return; }
if (what < 10) {
- sout << "****** Data recorded on Last Transfer ******"<<Message_EndLine;
+ sout << "****** Data recorded on Last Transfer ******"<<std::endl;
PrintStatsProcess (myTP,what,mode);
}
// reste what = 10 : on liste les racines des final results
- sout << "****** Final Results ******"<<Message_EndLine;
- if (myModel.IsNull()) { sout<<"**** Model unknown"<<Message_EndLine; return; }
+ sout << "****** Final Results ******"<<std::endl;
+ if (myModel.IsNull()) { sout<<"**** Model unknown"<<std::endl; return; }
Handle(TColStd_HSequenceOfTransient) list = RecordedList();
Standard_Integer i, nb = list->Length();
Handle(IFSelect_SignatureList) counter;
if (mode == 0) { sout<<" "<<myModel->Number(ent); continue; }
if (mode == 1 || mode == 2) {
sout<<"[ "<<Interface_MSG::Blanks (i,6)<<" ]:";
- myModel->Print (ent,sout);
+ myModel->Print (ent, sout);
sout<<" Type:"<<myModel->TypeName(ent,Standard_False);
}
if (mode >= 3 && mode <= 6) {
counter->Add (ent,myModel->TypeName(ent,Standard_False));
}
}
- if (!counter.IsNull()) counter->PrintList(sout,myModel,pcm);
+ if (!counter.IsNull()) counter->PrintList (sout, myModel, pcm);
- sout<<Message_EndLine;
+ sout<<std::endl;
}
const Standard_Integer nb, const Standard_Integer nl)
{
if (nb <= 0 || nl == 0) return;
- sout<<"****** "<<mess<<": ";
- if (nb == nl) sout<<"100 %"<<Message_EndLine;
- else if (nb*100/nl == 0) sout<<"< 1 %"<<Message_EndLine;
- else sout<<(nb*100/nl < 10 ? " " : " ")<<nb*100/nl<<" %"<<Message_EndLine;
+ Message_Messenger::StreamBuffer aSender = sout->SendInfo();
+ aSender<<"****** "<<mess<<": ";
+ if (nb == nl) aSender<<"100 %"<<std::endl;
+ else if (nb*100/nl == 0) aSender<<"< 1 %"<<std::endl;
+ else aSender<<(nb*100/nl < 10 ? " " : " ")<<nb*100/nl<<" %"<<std::endl;
}
const Standard_Integer what,
const Standard_Integer mode)
{
- Handle(Message_Messenger) sout = TP->Messenger();
+ Message_Messenger::StreamBuffer sout = TP->Messenger()->SendInfo();
+
char mess[250];
if (TP.IsNull()) return;
if (what == 0) { TP->PrintStats(0,sout); return; }
sout<<"\n*******************************************************************\n";
- sout << "****** Statistics on Transfer Process (Read) ******"<<Message_EndLine;
+ sout << "****** Statistics on Transfer Process (Read) ******"<<std::endl;
if (what == 1) sout << "****** Individual Transfers (Roots) ******\n";
if (what == 2) sout << "****** All recorded data about Transfer ******\n";
if (what == 3) sout << "****** Abnormal records ******\n";
IFSelect_PrintCount pcm = IFSelect_CountByItem;
if (mode == 6) pcm = IFSelect_ListByItem;
- sout <<"**** Entities in Model : "<<model->NbEntities()<<Message_EndLine;
- sout <<"**** Nb Items (Transfer) : "<<nb<<Message_EndLine;
+ sout <<"**** Entities in Model : "<<model->NbEntities()<<std::endl;
+ sout <<"**** Nb Items (Transfer) : "<<nb<<std::endl;
if (!nolist)
- sout<<"**** Nb Items (Listed) : "<<nl<<Message_EndLine;
+ sout<<"**** Nb Items (Listed) : "<<nl<<std::endl;
for (itrp.Start(); itrp.More(); itrp.Next()) {
nbi ++;
if (notrec) counter->Add(ent,"(not recorded)");
else if (mode == 1 || mode == 2) {
sout<<"["<<Interface_MSG::Blanks (nbi,4)<<nbi<<" ]:";
- model->Print (ent,sout);
- sout<<" "<<model->TypeName(ent,Standard_False)<<" (not recorded)"<<Message_EndLine;
+ model->Print (ent, sout);
+ sout<<" "<<model->TypeName(ent,Standard_False)<<" (not recorded)"<<std::endl;
continue;
}
}
// mode : 0 list num; 1 : num+label + type + result (abrege); 2 : complet
if (mode == 1 || mode == 2) {
sout<<"["<<Interface_MSG::Blanks (i,4)<<i<<" ]:";
- model->Print (ent,sout);
+ model->Print (ent, sout);
sout<<" "<<model->TypeName(ent,Standard_False);
- sout<<" Result:"<<mess<<Message_EndLine;
+ sout<<" Result:"<<mess<<std::endl;
if (mode == 1) continue;
const Handle(Interface_Check)& ch = binder->Check();
if (newnbw > 0) {
sout<<" - Warnings : "<<newnbw<<":\n";
- for (newi = 1; newi <= newnbw; newi ++) sout<<ch->CWarning(newi)<<Message_EndLine;
+ for (newi = 1; newi <= newnbw; newi ++) sout<<ch->CWarning(newi)<<std::endl;
}
if (newnbf > 0) {
sout<<" - Fails : "<<newnbf<<":\n";
- for (newi = 1; newi <= newnbf; newi ++) sout<<ch->CFail(newi)<<Message_EndLine;
+ for (newi = 1; newi <= newnbf; newi ++) sout<<ch->CFail(newi)<<std::endl;
}
continue;
}
// Fin de l iteration
}
- if (!counter.IsNull()) counter->PrintList(sout,model,pcm);
- else sout<<Message_EndLine;
+ if (!counter.IsNull()) counter->PrintList (sout, model, pcm);
+ else sout<<std::endl;
// Pourcentages
if (mode != 3 && nbi > 0) {
- sout << "****** Percentages according Transfer Status ******"<<Message_EndLine;
- PrintPercent (sout,"Result ",nbr+nbrw,nl);
- PrintPercent (sout,"Result + FAIL ",nbrf,nl);
- PrintPercent (sout,"FAIL, no Result ",nbf,nl);
- PrintPercent (sout,"Just Warning ",nbw,nl);
- PrintPercent (sout,"Nothing Recorded",nbnr,nl);
+ sout << "****** Percentages according Transfer Status ******"<<std::endl;
+ PrintPercent (TP->Messenger(),"Result ",nbr+nbrw,nl);
+ PrintPercent (TP->Messenger(),"Result + FAIL ",nbrf,nl);
+ PrintPercent (TP->Messenger(),"FAIL, no Result ",nbf,nl);
+ PrintPercent (TP->Messenger(),"Just Warning ",nbw,nl);
+ PrintPercent (TP->Messenger(),"Nothing Recorded",nbnr,nl);
/* if (nbr+nbrw > 0)
sout<<"****** Result : "<< (nbr+nbrw)*100/nl<<" %"<<std::endl;
if (nbrf > 0)
Interface_CheckIterator chl = TP->CheckList(Standard_False);
chl.SetName("** TRANSFER READ CHECK **");
- if (mode == 0) chl.Print (sout,model,(what == 5));
+ if (mode == 0)
+ {
+ chl.Print (sout, model, (what == 5));
+ }
else {
IFSelect_PrintCount pcm = IFSelect_CountByItem;
if (mode == 2) pcm = IFSelect_ListByItem;
Handle(IFSelect_CheckCounter) counter = new IFSelect_CheckCounter(Standard_True);
counter->Analyse (chl,model,Standard_True,(what == 5));
- counter->PrintList (sout,model,pcm);
+ counter->PrintList (sout, model, pcm);
}
}
//! Prints statistics on current Trace File, according <what> and
//! <mode>. See PrintStatsProcess for details
- Standard_EXPORT void PrintStats (const Standard_Integer theWhat, const Standard_Integer theMode = 0) const;
+ Standard_EXPORT void PrintStats (Standard_OStream& theStream, const Standard_Integer theWhat, const Standard_Integer theMode = 0) const;
//! Returns the CheckList resulting from last TransferRead
//! i.e. from TransientProcess itself, recorded from last Clear
void XSControl_TransferWriter::PrintStats (const Standard_Integer , const Standard_Integer ) const
{
- Handle(Message_Messenger) sout = myTransferWriter->Messenger();
+ Message_Messenger::StreamBuffer sout = myTransferWriter->Messenger()->SendInfo();
// A ameliorer ... !
sout<<"\n*******************************************************************\n";
- sout << "****** Statistics on Transfer (Write) ******"<<Message_EndLine;
+ sout << "****** Statistics on Transfer (Write) ******"<<std::endl;
sout<<"\n*******************************************************************\n";
sout << "****** Transfer Mode = "<<myTransferMode;
Standard_CString modehelp = myController->ModeWriteHelp (myTransferMode);
if (modehelp && modehelp[0] != 0) sout<<" I.E. "<<modehelp;
- sout<<" ******"<<Message_EndLine;
+ sout<<" ******"<<std::endl;
}
Handle(Transfer_ActorOfFinderProcess) nulact;
myTransferWriter->SetActor (nulact);
Handle(Standard_Transient) resultat;
- Handle(Message_Messenger) sout = myTransferWriter->Messenger();
+ Message_Messenger::StreamBuffer sout = myTransferWriter->Messenger()->SendInfo();
try {
OCC_CATCH_SIGNALS
PrintStats(myTransferMode);
sout << "****** Transferring Transient, CDL Type = ";
- sout<<obj->DynamicType()->Name()<<" ******"<<Message_EndLine;
+ sout<<obj->DynamicType()->Name()<<" ******"<<std::endl;
status = myController->TransferWriteTransient
(obj,myTransferWriter,model,myTransferMode);
}
catch(Standard_Failure const& anException) {
sout<<"**** **** TransferWriteShape, EXCEPTION : ";
sout<<anException.GetMessageString();
- sout<<Message_EndLine;
+ sout<<std::endl;
status = IFSelect_RetFail;
}
return status;
Handle(Transfer_ActorOfFinderProcess) nulact;
myTransferWriter->SetActor (nulact);
Handle(Standard_Transient) resultat;
- Handle(Message_Messenger) sout = myTransferWriter->Messenger();
+ Message_Messenger::StreamBuffer sout = myTransferWriter->Messenger()->SendInfo();
try {
OCC_CATCH_SIGNALS
PrintStats(myTransferMode);
sout << "****** Transferring Shape, ShapeType = " << shape.ShapeType();
- sout<<" ******"<<Message_EndLine;
+ sout<<" ******"<<std::endl;
status = myController->TransferWriteShape
(shape,myTransferWriter,model,myTransferMode);
}
catch(Standard_Failure const& anException) {
sout<<"**** **** TransferWriteShape, EXCEPTION : ";
sout<<anException.GetMessageString();
- sout<<Message_EndLine;
+ sout<<std::endl;
status = IFSelect_RetFail;
}
return status;
void XSControl_Utils::TraceLine (const Standard_CString line) const
{
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
- sout<<line<<Message_EndLine;
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
+ sout<<line<<std::endl;
}
void XSControl_Utils::TraceLines (const Handle(Standard_Transient)& lines) const
{
- Handle(Message_Messenger) sout = Message::DefaultMessenger();
+ Message_Messenger::StreamBuffer sout = Message::SendInfo();
Standard_Integer i,nb;
DeclareAndCast(TColStd_HSequenceOfHAsciiString,linha,lines);
if (!linha.IsNull()) {
nb = linha->Length();
for (i = 1; i <= nb; i ++)
- if (!linha->Value(i).IsNull()) sout<<linha->Value(i)->ToCString()<<Message_EndLine;
+ if (!linha->Value(i).IsNull()) sout<<linha->Value(i)->ToCString()<<std::endl;
return;
}
DeclareAndCast(TColStd_HSequenceOfAsciiString,lina,lines);
if (!lina.IsNull()) {
nb = lina->Length();
for (i = 1; i <= nb; i ++)
- sout<<lina->Value(i).ToCString()<<Message_EndLine;
+ sout<<lina->Value(i).ToCString()<<std::endl;
return;
}
DeclareAndCast(TColStd_HSequenceOfHExtendedString,linhe,lines);
nb = linhe->Length();
for (i = 1; i <= nb; i ++)
if (!linhe->Value(i).IsNull())
- sout << linhe->Value(i) << Message_EndLine;
+ sout << linhe->Value(i)->String() << std::endl;
return;
}
DeclareAndCast(TColStd_HSequenceOfExtendedString,linee,lines);
if (!linee.IsNull()) {
nb = linee->Length();
for (i = 1; i <= nb; i ++)
- sout << linee->Value(i) << Message_EndLine;
+ sout << linee->Value(i) << std::endl;
return;
}
DeclareAndCast(TCollection_HAsciiString,lin1a,lines);
- if (!lin1a.IsNull()) sout<<lin1a;
+ if (!lin1a.IsNull()) sout<<lin1a->String();
DeclareAndCast(TCollection_HExtendedString,lin1e,lines);
- if (!lin1e.IsNull()) sout<<lin1e;
+ if (!lin1e.IsNull()) sout<<lin1e->String();
}
Standard_Boolean XSControl_WorkSession::PrintTransferStatus(const Standard_Integer num,
const Standard_Boolean wri,
- const Handle(Message_Messenger)& S) const
+ Standard_OStream& S) const
{
const Handle(Transfer_FinderProcess) &FP = myTransferWriter->FinderProcess();
Handle(Transfer_TransientProcess) TP = myTransferReader->TransientProcess();
{
S<<" ** Transfer Root n0."<<ne;
}
- S<<Message_EndLine;
+ S<<std::endl;
ent = FP->FindTransient(finder);
- S<<" -> Type "<<finder->DynamicType()->Name()<<Message_EndLine;
+ S<<" -> Type "<<finder->DynamicType()->Name()<<std::endl;
FP->StartTrace (binder,finder,0,0); // pb sout/S
if (!ent.IsNull()) {
S<<" ** Resultat Transient, type "<<ent->DynamicType()->Name();
const Handle(Interface_InterfaceModel) &model = Model();
if (!model.IsNull())
- { S<<" In output Model, Entity "; model->Print(ent,S); }
- S<<Message_EndLine;
+ { S<<" In output Model, Entity "; model->Print(ent, S); }
+ S<<std::endl;
}
}
{
S<<" ** Transfer Root n0."<<ne;
}
- S<<Message_EndLine;
- if (!model.IsNull()) { S<<" In Model, Entity "; model->Print(ent,S); }
+ S<<std::endl;
+ if (!model.IsNull()) { S<<" In Model, Entity "; model->Print(ent, S); }
binder = TP->MapItem (ne);
- S<<Message_EndLine;
+ S<<std::endl;
TP->StartTrace (binder,ent,0,0);
}
Standard_Integer i,nbw = ch->NbWarnings(), nbf = ch->NbFails();
if (nbw > 0) {
S<<" - Warnings : "<<nbw<<" :\n";
- for (i = 1; i <= nbw; i ++) S<<ch->CWarning(i)<<Message_EndLine;
+ for (i = 1; i <= nbw; i ++) S<<ch->CWarning(i)<<std::endl;
}
if (nbf > 0) {
S<<" - Fails : "<<nbf<<" :\n";
- for (i = 1; i <= nbf; i ++) S<<ch->CFail(i)<<Message_EndLine;
+ for (i = 1; i <= nbf; i ++) S<<ch->CFail(i)<<std::endl;
}
}
return Standard_True;
//! the Mapped n0 <num>, from MapWriter if <wri> is True, or
//! from MapReader if <wri> is False
//! Returns True when done, False else (i.e. num out of range)
- Standard_EXPORT Standard_Boolean PrintTransferStatus (const Standard_Integer theNum, const Standard_Boolean theWri, const Handle(Message_Messenger)& theS) const;
+ Standard_EXPORT Standard_Boolean PrintTransferStatus (const Standard_Integer theNum, const Standard_Boolean theWri, Standard_OStream& theS) const;
//! Sets a Transfer Reader, by internal ways, according mode :
//! 0 recreates it clear, 1 clears it (does not recreate)
Handle(Interface_InterfaceModel) model = XSDRAW::Model();
if (model.IsNull()) { std::cout<<"(No model) Type:"<<ent->DynamicType()->Name()<<std::endl; return 0; }
std::cout<<" Num/Id :";
- model->Print (ent, Message::DefaultMessenger(), 0);
+ model->Print (ent, std::cout, 0);
std::cout<<" -- Recorded Type:"<<model->TypeName (ent)<<std::endl;
return model->Number(ent);
}
}
TColStd_MapIteratorOfMapOfTransient itmap;
+ Standard_SStream aTmpStream;
for(itmap.Initialize(aMap); itmap.More(); itmap.Next()) {
- XSDRAW::Model()->Print (itmap.Key(), Message::DefaultMessenger());
- di << " ";
+ XSDRAW::Model()->Print (itmap.Key(), aTmpStream);
+ aTmpStream << " ";
}
+ di << aTmpStream.str().c_str();
di << "\n";
di << "\nNumber:"<< nbFaces << "\n";
totFaces += nbFaces;
di<<"NbRootsForTransfer="<<num<<" :\n";
for (i = 1; i <= num; i ++) {
di<<"Root."<<i<<", Ent. ";
- sr.Model()->Print (sr.RootForTransfer(i), Message::DefaultMessenger());
+ Standard_SStream aTmpStream;
+ sr.Model()->Print (sr.RootForTransfer(i), aTmpStream);
+ di << aTmpStream.str().c_str();
di<<" Type:"<<sr.RootForTransfer(i)->DynamicType()->Name()<<"\n";
}