|
|
|||
File indexing completed on 2026-10-25 09:25:45
0001 // Copyright (c) 2019 OPEN CASCADE SAS 0002 // 0003 // This file is part of Open CASCADE Technology software library. 0004 // 0005 // This library is free software; you can redistribute it and/or modify it under 0006 // the terms of the GNU Lesser General Public License version 2.1 as published 0007 // by the Free Software Foundation, with special exception defined in the file 0008 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 0009 // distribution for complete text of the license and disclaimer of any warranty. 0010 // 0011 // Alternatively, this file may be used under the terms of Open CASCADE 0012 // commercial license or contractual agreement. 0013 0014 #ifndef _Message_PrinterSystemLog_HeaderFile 0015 #define _Message_PrinterSystemLog_HeaderFile 0016 0017 #include <Message_Printer.hxx> 0018 #include <TCollection_AsciiString.hxx> 0019 0020 //! Implementation of a message printer associated with system log. 0021 //! Implemented for the following systems: 0022 //! - Windows, through ReportEventW(). 0023 //! - Android, through __android_log_write(). 0024 //! - UNIX/Linux, through syslog(). 0025 class Message_PrinterSystemLog : public Message_Printer 0026 { 0027 DEFINE_STANDARD_RTTIEXT(Message_PrinterSystemLog, Message_Printer) 0028 public: 0029 //! Main constructor. 0030 Standard_EXPORT Message_PrinterSystemLog(const TCollection_AsciiString& theEventSourceName, 0031 const Message_Gravity theTraceLevel = Message_Info); 0032 0033 //! Destructor. 0034 Standard_EXPORT ~Message_PrinterSystemLog() override; 0035 0036 protected: 0037 //! Puts a message to the system log. 0038 Standard_EXPORT void send(const TCollection_AsciiString& theString, 0039 const Message_Gravity theGravity) const override; 0040 0041 private: 0042 TCollection_AsciiString myEventSourceName; 0043 #ifdef _WIN32 0044 void* myEventSource; 0045 #endif 0046 }; 0047 0048 #endif // _Message_PrinterSystemLog_HeaderFile
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|