]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/include/lldb/API/SBStructuredData.h
Merge llvm, clang, lld, lldb, compiler-rt and libc++ r301441, and update
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / include / lldb / API / SBStructuredData.h
1 //===-- SBStructuredData.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 SBStructuredData_h
11 #define SBStructuredData_h
12
13 #include "lldb/API/SBDefines.h"
14 #include "lldb/API/SBModule.h"
15
16 namespace lldb {
17
18 class SBStructuredData {
19 public:
20   SBStructuredData();
21
22   SBStructuredData(const lldb::SBStructuredData &rhs);
23
24   SBStructuredData(const lldb::EventSP &event_sp);
25
26   ~SBStructuredData();
27
28   lldb::SBStructuredData &operator=(const lldb::SBStructuredData &rhs);
29
30   bool IsValid() const;
31
32   lldb::SBError SetFromJSON(lldb::SBStream &stream);
33
34   void Clear();
35
36   lldb::SBError GetAsJSON(lldb::SBStream &stream) const;
37
38   lldb::SBError GetDescription(lldb::SBStream &stream) const;
39
40 protected:
41   friend class SBTraceOptions;
42
43   StructuredDataImplUP m_impl_up;
44 };
45 }
46
47 #endif /* SBStructuredData_h */