]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/include/lldb/Interpreter/OptionGroupUUID.h
MFV r301238:
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / include / lldb / Interpreter / OptionGroupUUID.h
1 //===-- OptionGroupUUID.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 #ifndef liblldb_OptionGroupUUID_h_
11 #define liblldb_OptionGroupUUID_h_
12
13 // C Includes
14 // C++ Includes
15 // Other libraries and framework includes
16 // Project includes
17 #include "lldb/Interpreter/Options.h"
18 #include "lldb/Interpreter/OptionValueUUID.h"
19
20 namespace lldb_private {
21
22 //-------------------------------------------------------------------------
23 // OptionGroupUUID
24 //-------------------------------------------------------------------------
25
26 class OptionGroupUUID : public OptionGroup
27 {
28 public:
29     OptionGroupUUID ();
30     
31     ~OptionGroupUUID() override;
32
33     uint32_t
34     GetNumDefinitions() override;
35     
36     const OptionDefinition*
37     GetDefinitions() override;
38     
39     Error
40     SetOptionValue(CommandInterpreter &interpreter,
41                    uint32_t option_idx,
42                    const char *option_value) override;
43     
44     void
45     OptionParsingStarting(CommandInterpreter &interpreter) override;
46     
47     const OptionValueUUID &
48     GetOptionValue () const
49     {
50         return m_uuid;
51     }
52
53 protected:
54     OptionValueUUID m_uuid;
55 };
56
57 } // namespace lldb_private
58
59 #endif // liblldb_OptionGroupUUID_h_