1 //===-- SBEvent.h -----------------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLDB_SBEvent_h_
11 #define LLDB_SBEvent_h_
13 #include "lldb/API/SBDefines.h"
28 SBEvent (const lldb::SBEvent &rhs);
30 // Make an event that contains a C string.
31 SBEvent (uint32_t event, const char *cstr, uint32_t cstr_len);
33 SBEvent (lldb::EventSP &event_sp);
35 SBEvent (lldb_private::Event *event_sp);
40 operator = (const lldb::SBEvent &rhs);
52 GetBroadcaster () const;
55 GetBroadcasterClass () const;
58 BroadcasterMatchesPtr (const lldb::SBBroadcaster *broadcaster);
61 BroadcasterMatchesRef (const lldb::SBBroadcaster &broadcaster);
67 GetCStringFromEvent (const lldb::SBEvent &event);
70 GetDescription (lldb::SBStream &description);
73 GetDescription (lldb::SBStream &description) const;
76 friend class SBListener;
77 friend class SBBroadcaster;
78 friend class SBBreakpoint;
79 friend class SBDebugger;
80 friend class SBProcess;
81 friend class SBThread;
82 friend class SBWatchpoint;
88 reset (lldb::EventSP &event_sp);
91 reset (lldb_private::Event* event);
98 mutable lldb::EventSP m_event_sp;
99 mutable lldb_private::Event *m_opaque_ptr;
104 #endif // LLDB_SBEvent_h_