1 // Copyright (c) 2014 OPEN CASCADE SAS
3 // This file is part of Open CASCADE Technology software library.
5 // This library is free software; you can redistribute it and/or modify it under
6 // the terms of the GNU Lesser General Public License version 2.1 as published
7 // by the Free Software Foundation, with special exception defined in the file
8 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9 // distribution for complete text of the license and disclaimer of any warranty.
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
14 #ifndef OcctJni_MsgPrinter_H
15 #define OcctJni_MsgPrinter_H
17 #include <Message_Printer.hxx>
21 // Class providing connection between messenger interfaces in C++ and Java layers.
22 class OcctJni_MsgPrinter : public Message_Printer
26 //! Default constructor
27 OcctJni_MsgPrinter (JNIEnv* theJEnv,
31 ~OcctJni_MsgPrinter();
33 //! Redirection to TCollection_AsciiString method
34 virtual void Send (const TCollection_ExtendedString& theString,
35 const Message_Gravity theGravity,
36 const Standard_Boolean theToPutEndl) const;
38 //! Redirection to TCollection_AsciiString method
39 virtual void Send (const Standard_CString& theString,
40 const Message_Gravity theGravity,
41 const Standard_Boolean theToPutEndl) const;
43 //! Main printing method
44 virtual void Send (const TCollection_AsciiString& theString,
45 const Message_Gravity theGravity,
46 const Standard_Boolean theToPutEndl) const;
56 DEFINE_STANDARD_RTTIEXT(OcctJni_MsgPrinter,Message_Printer)
60 DEFINE_STANDARD_HANDLE(OcctJni_MsgPrinter, Message_Printer)
62 #endif // OcctJni_MsgPrinter_H