Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-13 09:16:08

0001 // Created on: 2007-07-31
0002 // Created by: OCC Team
0003 // Copyright (c) 2007-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _Draw_Printer_HeaderFile
0017 #define _Draw_Printer_HeaderFile
0018 
0019 #include <Message_Printer.hxx>
0020 #include <Draw_Interpretor.hxx>
0021 
0022 //! Implementation of Printer class with output
0023 //! (Message_Messenge) directed to Draw_Interpretor
0024 class Draw_Printer : public Message_Printer
0025 {
0026   DEFINE_STANDARD_RTTIEXT(Draw_Printer, Message_Printer)
0027 public:
0028   //! Creates a printer connected to the interpreter.
0029   Standard_EXPORT Draw_Printer(Draw_Interpretor& theTcl);
0030 
0031 protected:
0032   //! Send a string message with specified trace level.
0033   Standard_EXPORT void send(const TCollection_AsciiString& theString,
0034                             const Message_Gravity          theGravity) const override;
0035 
0036 private:
0037   Draw_Interpretor* myTcl;
0038 };
0039 
0040 #endif // _Draw_Printer_HeaderFile