OptionGroupValueObjectDisplay.h revision 902b5beee960a8861867f06588c12ac6eb55eb9d
1//===-- OptionGroupValueObjectDisplay.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_OptionGroupValueObjectDisplay_h_ 11#define liblldb_OptionGroupValueObjectDisplay_h_ 12 13// C Includes 14// C++ Includes 15// Other libraries and framework includes 16// Project includes 17#include "lldb/Interpreter/Options.h" 18 19namespace lldb_private { 20 21//------------------------------------------------------------------------- 22// OptionGroupValueObjectDisplay 23//------------------------------------------------------------------------- 24 25class OptionGroupValueObjectDisplay : public OptionGroup 26{ 27public: 28 29 OptionGroupValueObjectDisplay (); 30 31 virtual 32 ~OptionGroupValueObjectDisplay (); 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 bool 50 AnyOptionWasSet () const 51 { 52 return show_types == true || 53 no_summary_depth != 0 || 54 show_location == true || 55 flat_output == true || 56 use_objc == true || 57 max_depth != UINT32_MAX || 58 ptr_depth != 0 || 59 use_synth == false || 60 be_raw == true || 61 ignore_cap == true; 62 } 63 64 bool show_types; 65 uint32_t no_summary_depth; 66 bool show_location; 67 bool flat_output; 68 bool use_objc; 69 uint32_t max_depth; 70 uint32_t ptr_depth; 71 lldb::DynamicValueType use_dynamic; 72 bool use_synth; 73 bool be_raw; 74 bool ignore_cap; 75}; 76 77} // namespace lldb_private 78 79#endif // liblldb_OptionGroupValueObjectDisplay_h_ 80