File indexing completed on 2026-09-25 09:21:39
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 #include <TCollection_AsciiString.hxx>
0023
0024 #include <TopoDS_Shape.hxx>
0025
0026 class Message_Messenger;
0027
0028
0029 class TopoDS_AlertAttribute : public Message_AttributeStream
0030 {
0031 DEFINE_STANDARD_RTTIEXT(TopoDS_AlertAttribute, Message_AttributeStream)
0032 public:
0033
0034 Standard_EXPORT TopoDS_AlertAttribute(
0035 const TopoDS_Shape& theShape,
0036 const TCollection_AsciiString& theName = TCollection_AsciiString::EmptyString());
0037
0038
0039 const TopoDS_Shape& GetShape() const { return myShape; }
0040
0041 public:
0042
0043 Standard_EXPORT static void Send(const occ::handle<Message_Messenger>& theMessenger,
0044 const TopoDS_Shape& theShape);
0045
0046
0047 Standard_EXPORT void DumpJson(Standard_OStream& theOStream, int theDepth = -1) const override;
0048
0049 private:
0050 TopoDS_Shape myShape;
0051 };
0052
0053 inline const occ::handle<Message_Messenger>& operator<<(
0054 const occ::handle<Message_Messenger>& theMessenger,
0055 const TopoDS_Shape& theShape)
0056 {
0057 TopoDS_AlertAttribute::Send(theMessenger, theShape);
0058 return theMessenger;
0059 }
0060
0061 #endif