00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef _exotkTrace_QueueOfLogMessage_HeaderFile
00016 #define _exotkTrace_QueueOfLogMessage_HeaderFile
00017
00018 #ifndef _Standard_Address_HeaderFile
00019 #include <Standard_Address.hxx>
00020 #endif
00021 #ifndef _Standard_Integer_HeaderFile
00022 #include <Standard_Integer.hxx>
00023 #endif
00024 #ifndef _Handle_exotkTrace_QueueNodeOfQueueOfLogMessage_HeaderFile
00025 #include <Handle_exotkTrace_QueueNodeOfQueueOfLogMessage.hxx>
00026 #endif
00027 #ifndef _Standard_Boolean_HeaderFile
00028 #include <Standard_Boolean.hxx>
00029 #endif
00030 class Standard_NoSuchLogMessage;
00031 class exotkTrace_LogMessage;
00032 class exotkTrace_QueueNodeOfQueueOfLogMessage;
00033
00034
00035 #ifndef _Standard_Macro_HeaderFile
00036 #include <Standard_Macro.hxx>
00037 #endif
00038
00039 class exotkTrace_QueueOfLogMessage {
00040
00041 public:
00042 inline void* operator new(size_t,void* anAddress)
00043 {
00044 return anAddress;
00045 }
00046 inline void* operator new(size_t size)
00047 {
00048 return Standard::Allocate(size);
00049 }
00050 inline void operator delete(void *anAddress)
00051 {
00052 if (anAddress) Standard::Free((Standard_Address&)anAddress);
00053 }
00054
00055
00056
00057 Standard_EXPORT exotkTrace_QueueOfLogMessage();
00058 Standard_EXPORT const exotkTrace_QueueOfLogMessage& Assign(const exotkTrace_QueueOfLogMessage& Other) ;
00059 const exotkTrace_QueueOfLogMessage& operator =(const exotkTrace_QueueOfLogMessage& Other)
00060 {
00061 return Assign(Other);
00062 }
00063
00064 Standard_EXPORT inline Standard_Integer Length() const;
00065 Standard_EXPORT inline Standard_Boolean IsEmpty() const;
00066 Standard_EXPORT const exotkTrace_LogMessage& Front() const;
00067 Standard_EXPORT void Clear() ;
00068 ~exotkTrace_QueueOfLogMessage()
00069 {
00070 Clear();
00071 }
00072
00073 Standard_EXPORT void Push(const exotkTrace_LogMessage& T) ;
00074 Standard_EXPORT void Pop() ;
00075 Standard_EXPORT exotkTrace_LogMessage& ChangeFront() ;
00076
00077
00078
00079
00080
00081 protected:
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091 private:
00092
00093
00094
00095 Standard_EXPORT exotkTrace_QueueOfLogMessage(const exotkTrace_QueueOfLogMessage& Other);
00096
00097
00098
00099
00100 Standard_Address myFront;
00101 Standard_Address myEnd;
00102 Standard_Integer myLength;
00103
00104
00105 };
00106
00107 #define Item exotkTrace_LogMessage
00108 #define Item_hxx <exotkTrace_LogMessage.hxx>
00109 #define TCollection_QueueNode exotkTrace_QueueNodeOfQueueOfLogMessage
00110 #define TCollection_QueueNode_hxx <exotkTrace_QueueNodeOfQueueOfLogMessage.hxx>
00111 #define Handle_TCollection_QueueNode Handle_exotkTrace_QueueNodeOfQueueOfLogMessage
00112 #define TCollection_QueueNode_Type_() exotkTrace_QueueNodeOfQueueOfLogMessage_Type_()
00113 #define TCollection_Queue exotkTrace_QueueOfLogMessage
00114 #define TCollection_Queue_hxx <exotkTrace_QueueOfLogMessage.hxx>
00115
00116 #include <TCollection_Queue.lxx>
00117
00118 #undef Item
00119 #undef Item_hxx
00120 #undef TCollection_QueueNode
00121 #undef TCollection_QueueNode_hxx
00122 #undef Handle_TCollection_QueueNode
00123 #undef TCollection_QueueNode_Type_
00124 #undef TCollection_Queue
00125 #undef TCollection_Queue_hxx
00126
00127
00128
00129
00130
00131
00132 #endif