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"
23 class LLDB_API SBEvent
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 SBTarget;
82 friend class SBThread;
83 friend class SBWatchpoint;
89 reset (lldb::EventSP &event_sp);
92 reset (lldb_private::Event* event);
99 mutable lldb::EventSP m_event_sp;
100 mutable lldb_private::Event *m_opaque_ptr;
105 #endif // LLDB_SBEvent_h_