Go to the documentation of this file.
9 #ifndef LLDB_UTILITY_EVENT_H
10 #define LLDB_UTILITY_EVENT_H
19 #include "llvm/ADT/StringRef.h"
80 void SetBytes(
const void *src,
size_t src_len);
109 static ConstString g_flavor(
"Process::ProcessEventData");
137 const lldb::StructuredDataPluginSP &plugin_sp);
152 void SetProcess(
const lldb::ProcessSP &process_sp);
166 static lldb::StructuredDataPluginSP
192 const lldb::EventDataSP &event_data_sp);
196 Event(
uint32_t event_type,
const lldb::EventDataSP &event_data_sp);
215 if (broadcaster_impl_sp)
216 return broadcaster_impl_sp->GetBroadcaster();
224 if (broadcaster_impl_sp)
225 return broadcaster_impl_sp->GetBroadcaster() == broadcaster;
258 #endif // LLDB_UTILITY_EVENT_H
const EventDataBytes & operator=(const EventDataBytes &)=delete
virtual ConstString GetFlavor() const =0
size_t GetByteSize() const
Predicate< bool > m_predicate
const void * GetBytes() const
void Dump(Stream *s) const override
void SetProcess(const lldb::ProcessSP &process_sp)
ConstString GetFlavor() const override
const Event & operator=(const Event &)=delete
EventDataStructuredData()
std::weak_ptr< BroadcasterImpl > BroadcasterImplWP
virtual Log * GetLogChannel()
static size_t GetByteSizeFromEvent(const Event *event_ptr)
static const EventDataBytes * GetEventDataFromEvent(const Event *event_ptr)
void SwapBytes(std::string &new_bytes)
static ConstString GetFlavorString()
const lldb::StructuredDataPluginSP & GetStructuredDataPlugin() const
void SetType(uint32_t new_type)
lldb::StructuredDataPluginSP m_plugin_sp
void Dump(Stream *s) const
void SetBytesFromCString(const char *cstr)
static StructuredData::ObjectSP GetObjectFromEvent(const Event *event_ptr)
lldb::ProcessSP m_process_sp
Broadcaster::BroadcasterImplWP m_broadcaster_wp
virtual void Dump(Stream *s) const
const EventDataStructuredData & operator=(const EventDataStructuredData &)=delete
std::shared_ptr< Object > ObjectSP
void Dump(Stream *s) const override
static ConstString GetFlavorString()
ConstString GetFlavor() const override
void SetBytes(const void *src, size_t src_len)
StructuredData::ObjectSP m_object_sp
string(SUBSTRING ${p} 10 -1 pStripped) if($
void SetStructuredDataPlugin(const lldb::StructuredDataPluginSP &plugin_sp)
BroadcasterImpl contains the actual Broadcaster implementation.
static lldb::StructuredDataPluginSP GetPluginFromEvent(const Event *event_ptr)
~EventDataReceipt() override=default
bool WaitForEventReceived(const Timeout< std::micro > &timeout=llvm::None)
std::shared_ptr< BroadcasterImpl > BroadcasterImplSP
~EventDataStructuredData() override
ConstString GetFlavor() const override
static const void * GetBytesFromEvent(const Event *event_ptr)
bool BroadcasterIs(Broadcaster *broadcaster)
bool WaitForValueEqualTo(T value, const Timeout< std::micro > &timeout=llvm::None)
Wait for m_value to be equal to value.
const EventData & operator=(const EventData &)=delete
const StructuredData::ObjectSP & GetObject() const
A class that represents a running process on the host machine.
@ eBroadcastAlways
Always send a broadcast when the value is modified.
Broadcaster * GetBroadcaster() const
static ConstString GetFlavorString()
~EventDataBytes() override
const lldb::ProcessSP & GetProcess() const
lldb::EventDataSP m_data_sp
void SetData(EventData *new_data)
static lldb::ProcessSP GetProcessFromEvent(const Event *event_ptr)
const EventData * GetData() const
static const EventDataStructuredData * GetEventDataFromEvent(const Event *event_ptr)
void SetObject(const StructuredData::ObjectSP &object_sp)
void SetValue(T value, PredicateBroadcastType broadcast_type)
Value set accessor.
void SetBroadcaster(Broadcaster *broadcaster)
void DoOnRemoval(Event *event_ptr) override
BroadcasterImplSP GetBroadcasterImpl()
This class handles one or more StructuredData::Dictionary entries that are raised for structured data...
virtual void DoOnRemoval(Event *event_ptr)