0031501: Foundation Classes, Message_Printer - remove theToPutEndl argument -- prepar...
[occt.git] / src / IGESBasic / IGESBasic_ToolExternalRefFileIndex.cxx
old mode 100755 (executable)
new mode 100644 (file)
index cbc6478..c353213
@@ -1,21 +1,41 @@
-//--------------------------------------------------------------------
+// Created by: CKY / Contract Toubro-Larsen
+// Copyright (c) 1993-1999 Matra Datavision
+// Copyright (c) 1999-2014 OPEN CASCADE SAS
+//
+// This file is part of Open CASCADE Technology software library.
 //
-//  File Name : IGESBasic_ExternalRefFileIndex.cxx
-//  Date      :
-//  Author    : CKY / Contract Toubro-Larsen
-//  Copyright : MATRA-DATAVISION 1993
+// This library is free software; you can redistribute it and/or modify it under
+// the terms of the GNU Lesser General Public License version 2.1 as published
+// by the Free Software Foundation, with special exception defined in the file
+// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
+// distribution for complete text of the license and disclaimer of any warranty.
 //
+// Alternatively, this file may be used under the terms of Open CASCADE
+// commercial license or contractual agreement.
+
+//--------------------------------------------------------------------
 //--------------------------------------------------------------------
 
-#include <IGESBasic_ToolExternalRefFileIndex.ixx>
-#include <IGESData_ParamCursor.hxx>
-#include <IGESData_IGESEntity.hxx>
-#include <TCollection_HAsciiString.hxx>
+#include <IGESBasic_ExternalRefFileIndex.hxx>
+#include <IGESBasic_ToolExternalRefFileIndex.hxx>
+#include <IGESData_DirChecker.hxx>
+#include <IGESData_Dump.hxx>
 #include <IGESData_HArray1OfIGESEntity.hxx>
+#include <IGESData_IGESDumper.hxx>
+#include <IGESData_IGESEntity.hxx>
+#include <IGESData_IGESReaderData.hxx>
+#include <IGESData_IGESWriter.hxx>
+#include <IGESData_ParamCursor.hxx>
+#include <IGESData_ParamReader.hxx>
+#include <Interface_Check.hxx>
+#include <Interface_CopyTool.hxx>
+#include <Interface_EntityIterator.hxx>
 #include <Interface_HArray1OfHAsciiString.hxx>
-#include <IGESData_Dump.hxx>
 #include <Interface_Macros.hxx>
-
+#include <Interface_ShareTool.hxx>
+#include <Message_Messenger.hxx>
+#include <Standard_DomainError.hxx>
+#include <TCollection_HAsciiString.hxx>
 
 IGESBasic_ToolExternalRefFileIndex::IGESBasic_ToolExternalRefFileIndex ()  {  }
 
@@ -112,23 +132,23 @@ void  IGESBasic_ToolExternalRefFileIndex::OwnCheck
 
 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" << endl;
-  S << "External Reference Names : " << endl;
-  S << "Internal Entities : ";
+  S << "IGESBasic_ExternalRefFileIndex\n"
+    << "External Reference Names :\n"
+    << "Internal Entities : ";
   IGESData_DumpEntities(S,dumper,-level,1, ent->NbEntries(),ent->Entity);
-  S << endl;
+  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 << endl;
+       S << "\n";
       }
-  S << endl;
+  S << std::endl;
 }