summaryrefslogtreecommitdiff
path: root/inc/Message.hxx
blob: 8a4a0a53b1ecd46770629643007a2d744c5a13d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _Message_HeaderFile
#define _Message_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif

#ifndef _Handle_Message_Messenger_HeaderFile
#include <Handle_Message_Messenger.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
class Message_Messenger;
class TCollection_AsciiString;
class Message_Msg;
class Message_MsgFile;
class Message_Messenger;
class Message_Algorithm;
class Message_Printer;
class Message_PrinterOStream;
class Message_ListOfMsg;
class Message_SequenceOfPrinters;
class Message_ProgressIndicator;
class Message_ProgressScale;
class Message_ProgressSentry;
class Message_SequenceOfProgressScale;
class Message_ListNodeOfListOfMsg;
class Message_ListIteratorOfListOfMsg;
class Message_SequenceNodeOfSequenceOfPrinters;
class Message_SequenceNodeOfSequenceOfProgressScale;


//! Defines <br>
//!          - tools to work with messages <br>
//!          - basic tools intended for progress indication <br>
class Message  {
public:

  void* operator new(size_t,void* anAddress) 
  {
    return anAddress;
  }
  void* operator new(size_t size) 
  {
    return Standard::Allocate(size); 
  }
  void  operator delete(void *anAddress) 
  {
    if (anAddress) Standard::Free((Standard_Address&)anAddress); 
  }

  //! Defines default messenger for OCCT applications. <br>
//!          This is global static instance of the messenger. <br>
//!          By default, it contains single printer directed to cout. <br>
//!          It can be customized according to the application needs. <br>
  Standard_EXPORT   static const Handle_Message_Messenger& DefaultMessenger() ;
  //! Returns the string filled with values of hours, minutes and seconds. <br>
//! Example: <br>
//!          1. (5, 12, 26.3345) returns "05h:12m:26.33s", <br>
//!          2. (0,  6, 34.496 ) returns "06m:34.50s", <br>
//!          3. (0,  0,  4.5   ) returns "4.50s" <br>
  Standard_EXPORT   static  TCollection_AsciiString FillTime(const Standard_Integer Hour,const Standard_Integer Minute,const Standard_Real Second) ;





protected:





private:




friend class Message_Msg;
friend class Message_MsgFile;
friend class Message_Messenger;
friend class Message_Algorithm;
friend class Message_Printer;
friend class Message_PrinterOStream;
friend class Message_ListOfMsg;
friend class Message_SequenceOfPrinters;
friend class Message_ProgressIndicator;
friend class Message_ProgressScale;
friend class Message_ProgressSentry;
friend class Message_SequenceOfProgressScale;
friend class Message_ListNodeOfListOfMsg;
friend class Message_ListIteratorOfListOfMsg;
friend class Message_SequenceNodeOfSequenceOfPrinters;
friend class Message_SequenceNodeOfSequenceOfProgressScale;

};





// other Inline functions and methods (like "C++: function call" methods)


#endif