File indexing completed on 2026-07-27 09:44:46
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _TopoDS_AlertAttribute_HeaderFile
0017 #define _TopoDS_AlertAttribute_HeaderFile
0018
0019 #include <Message_AttributeStream.hxx>
0020 #include <Message_Messenger.hxx>
0021 #include <Message_Report.hxx>
0022
0023 #include <TopoDS_Shape.hxx>
0024
0025 class Message_Messenger;
0026
0027
0028 class TopoDS_AlertAttribute : public Message_AttributeStream
0029 {
0030 DEFINE_STANDARD_RTTIEXT(TopoDS_AlertAttribute, Message_AttributeStream)
0031 public:
0032
0033 Standard_EXPORT TopoDS_AlertAttribute(
0034 const TopoDS_Shape& theShape,
0035 const TCollection_AsciiString& theName = TCollection_AsciiString());
0036
0037
0038 const TopoDS_Shape& GetShape() const { return myShape; }
0039
0040 public:
0041
0042 Standard_EXPORT static void Send(const Handle(Message_Messenger)& theMessenger,
0043 const TopoDS_Shape& theShape);
0044
0045
0046 Standard_EXPORT void DumpJson(Standard_OStream& theOStream,
0047 Standard_Integer theDepth = -1) const Standard_OVERRIDE;
0048
0049 private:
0050 TopoDS_Shape myShape;
0051 };
0052
0053 inline const Handle(Message_Messenger)& operator<<(const Handle(Message_Messenger)& theMessenger,
0054 const TopoDS_Shape& theShape)
0055 {
0056 TopoDS_AlertAttribute::Send(theMessenger, theShape);
0057 return theMessenger;
0058 }
0059
0060 #endif