Johnny Chen | 5cb6cab | 2011-07-19 22:41:47 +0000 | [diff] [blame] | 1 | //===-- SWIG Interface for SBBroadcaster ------------------------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | namespace lldb { |
| 11 | |
Johnny Chen | f3b8992 | 2011-07-20 22:29:58 +0000 | [diff] [blame] | 12 | %feature("docstring", |
| 13 | "Represents an entity which can broadcast events. A default broadcaster is |
| 14 | associated with an SBCommandInterpreter, SBProcess, and SBTarget. For |
| 15 | example, use |
| 16 | |
| 17 | broadcaster = process.GetBroadcaster() |
| 18 | |
| 19 | to retrieve the process's broadcaster. |
| 20 | |
| 21 | See also SBEvent for example usage of interacting with a broadcaster." |
| 22 | ) SBBroadcaster; |
Johnny Chen | 5cb6cab | 2011-07-19 22:41:47 +0000 | [diff] [blame] | 23 | class SBBroadcaster |
| 24 | { |
| 25 | public: |
| 26 | SBBroadcaster (); |
| 27 | |
| 28 | SBBroadcaster (const char *name); |
| 29 | |
| 30 | SBBroadcaster (const SBBroadcaster &rhs); |
| 31 | |
| 32 | ~SBBroadcaster(); |
| 33 | |
| 34 | bool |
| 35 | IsValid () const; |
| 36 | |
| 37 | void |
| 38 | Clear (); |
| 39 | |
| 40 | void |
| 41 | BroadcastEventByType (uint32_t event_type, bool unique = false); |
| 42 | |
| 43 | void |
| 44 | BroadcastEvent (const lldb::SBEvent &event, bool unique = false); |
| 45 | |
| 46 | void |
| 47 | AddInitialEventsToListener (const lldb::SBListener &listener, uint32_t requested_events); |
| 48 | |
| 49 | uint32_t |
| 50 | AddListener (const lldb::SBListener &listener, uint32_t event_mask); |
| 51 | |
| 52 | const char * |
| 53 | GetName () const; |
| 54 | |
| 55 | bool |
| 56 | EventTypeHasListeners (uint32_t event_type); |
| 57 | |
| 58 | bool |
| 59 | RemoveListener (const lldb::SBListener &listener, uint32_t event_mask = UINT32_MAX); |
| 60 | }; |
| 61 | |
| 62 | } // namespace lldb |