summaryrefslogtreecommitdiffstats
path: root/lldb/tools/lldb-mi/MICmnLLDBBroadcaster.h
blob: 326b6769fcb71009cac0dbb079319b3f44016897 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//===-- MICmnLLDBBroadcaster.h ----------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#pragma once

// In-house headers:
#include "MICmnBase.h"
#include "MIUtilSingletonBase.h"
#include "lldb/API/SBBroadcaster.h"

//++
//============================================================================
// Details: MI derived class from LLDB SBBroadcaster API.
//
//          *** This class (files) is a place holder until we know we need it or
//          *** not
//
//          A singleton class.
//--
class CMICmnLLDBBroadcaster : public CMICmnBase,
                              public lldb::SBBroadcaster,
                              public MI::ISingleton<CMICmnLLDBBroadcaster> {
  friend MI::ISingleton<CMICmnLLDBBroadcaster>;

  // Methods:
public:
  bool Initialize() override;
  bool Shutdown() override;
  // Methods:
private:
  /* ctor */ CMICmnLLDBBroadcaster();
  /* ctor */ CMICmnLLDBBroadcaster(const CMICmnLLDBBroadcaster &);
  void operator=(const CMICmnLLDBBroadcaster &);

  // Overridden:
private:
  // From CMICmnBase
  /* dtor */ ~CMICmnLLDBBroadcaster() override;
};
OpenPOWER on IntegriCloud