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 // OptionGroupUUID 23 //------------------------------------------------------------------------- 24 25 class OptionGroupUUID : public OptionGroup 26 { 27 public: 28 29 OptionGroupUUID (); 30 31 virtual 32 ~OptionGroupUUID (); 33 34 35 virtual uint32_t 36 GetNumDefinitions (); 37 38 virtual const OptionDefinition* 39 GetDefinitions (); 40 41 virtual Error 42 SetOptionValue (CommandInterpreter &interpreter, 43 uint32_t option_idx, 44 const char *option_value); 45 46 virtual void 47 OptionParsingStarting (CommandInterpreter &interpreter); 48 49 const OptionValueUUID & GetOptionValue()50 GetOptionValue () const 51 { 52 return m_uuid; 53 } 54 55 protected: 56 OptionValueUUID m_uuid; 57 }; 58 59 } // namespace lldb_private 60 61 #endif // liblldb_OptionGroupUUID_h_ 62