Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:24

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 class Draw_Printer;
0023 DEFINE_STANDARD_HANDLE(Draw_Printer, Message_Printer)
0024 
0025 //! Implementation of Printer class with output
0026 //! (Message_Messenge) directed to Draw_Interpretor
0027 class Draw_Printer : public Message_Printer
0028 {
0029   DEFINE_STANDARD_RTTIEXT(Draw_Printer, Message_Printer)
0030 public:
0031 
0032   //! Creates a printer connected to the interpretor.
0033   Standard_EXPORT Draw_Printer (Draw_Interpretor& theTcl);
0034 
0035 protected:
0036 
0037   //! Send a string message with specified trace level.
0038   Standard_EXPORT virtual void send (const TCollection_AsciiString& theString,
0039                                      const Message_Gravity theGravity) const Standard_OVERRIDE;
0040 
0041 private:
0042 
0043   Draw_Interpretor* myTcl;
0044 
0045 };
0046 
0047 #endif // _Draw_Printer_HeaderFile