]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/tools/lldb-mi/MICmdCmdSupportList.h
Import libucl 20170219
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / tools / lldb-mi / MICmdCmdSupportList.h
1 //===-- MICmdCmdSupportList.h -----------------------------------*- 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 // Overview:    CMICmdCmdSupportListFeatures            interface.
11 //
12 //              To implement new MI commands derive a new command class from the command base
13 //              class. To enable the new command for interpretation add the new command class
14 //              to the command factory. The files of relevance are:
15 //                  MICmdCommands.cpp
16 //                  MICmdBase.h / .cpp
17 //                  MICmdCmd.h / .cpp
18 //              For an introduction to adding a new command see CMICmdCmdSupportInfoMiCmdQuery
19 //              command class as an example.
20
21 #pragma once
22
23 // In-house headers:
24 #include "MICmdBase.h"
25
26 //++ ============================================================================
27 // Details: MI command class. MI commands derived from the command base class.
28 //          *this class implements MI command "list-features".
29 //          This command does not follow the MI documentation exactly.
30 //--
31 class CMICmdCmdSupportListFeatures : public CMICmdBase
32 {
33     // Statics:
34   public:
35     // Required by the CMICmdFactory when registering *this command
36     static CMICmdBase *CreateSelf();
37
38     // Methods:
39   public:
40     /* ctor */ CMICmdCmdSupportListFeatures();
41
42     // Overridden:
43   public:
44     // From CMICmdInvoker::ICmd
45     bool Execute() override;
46     bool Acknowledge() override;
47     // From CMICmnBase
48     /* dtor */ ~CMICmdCmdSupportListFeatures() override;
49 };