1 //===-- SBTypeFormat.h --------------------------------------------*- C++
4 // The LLVM Compiler Infrastructure
6 // This file is distributed under the University of Illinois Open Source
7 // License. See LICENSE.TXT for details.
9 //===----------------------------------------------------------------------===//
11 #ifndef LLDB_SBTypeFormat_h_
12 #define LLDB_SBTypeFormat_h_
14 #include "lldb/API/SBDefines.h"
18 class LLDB_API SBTypeFormat {
22 SBTypeFormat(lldb::Format format,
23 uint32_t options = 0); // see lldb::eTypeOption values
25 SBTypeFormat(const char *type,
26 uint32_t options = 0); // see lldb::eTypeOption values
28 SBTypeFormat(const lldb::SBTypeFormat &rhs);
34 lldb::Format GetFormat();
36 const char *GetTypeName();
38 uint32_t GetOptions();
40 void SetFormat(lldb::Format);
42 void SetTypeName(const char *);
44 void SetOptions(uint32_t);
46 bool GetDescription(lldb::SBStream &description,
47 lldb::DescriptionLevel description_level);
49 lldb::SBTypeFormat &operator=(const lldb::SBTypeFormat &rhs);
51 bool IsEqualTo(lldb::SBTypeFormat &rhs);
53 bool operator==(lldb::SBTypeFormat &rhs);
55 bool operator!=(lldb::SBTypeFormat &rhs);
58 friend class SBDebugger;
59 friend class SBTypeCategory;
62 lldb::TypeFormatImplSP GetSP();
64 void SetSP(const lldb::TypeFormatImplSP &typeformat_impl_sp);
66 lldb::TypeFormatImplSP m_opaque_sp;
68 SBTypeFormat(const lldb::TypeFormatImplSP &);
70 enum class Type { eTypeKeepSame, eTypeFormat, eTypeEnum };
72 bool CopyOnWrite_Impl(Type);
77 #endif // LLDB_SBTypeFormat_h_