diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:26:05 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:26:05 +0000 |
commit | 14f1b3e8826ce43b978db93a62d1166055db5394 (patch) | |
tree | 0a00ad8d3498783fe0193f3b656bca17c4c8697d /include/lldb/API/SBStructuredData.h | |
parent | 4ee8c119c71a06dcad1e0fecc8c675e480e59337 (diff) | |
download | src-14f1b3e8826ce43b978db93a62d1166055db5394.tar.gz src-14f1b3e8826ce43b978db93a62d1166055db5394.zip |
Vendor import of lldb trunk r290819:vendor/lldb/lldb-trunk-r290819
Notes
Notes:
svn path=/vendor/lldb/dist/; revision=311128
svn path=/vendor/lldb/lldb-trunk-r290819/; revision=311129; tag=vendor/lldb/lldb-trunk-r290819
Diffstat (limited to 'include/lldb/API/SBStructuredData.h')
-rw-r--r-- | include/lldb/API/SBStructuredData.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/include/lldb/API/SBStructuredData.h b/include/lldb/API/SBStructuredData.h new file mode 100644 index 000000000000..9f0203bb245a --- /dev/null +++ b/include/lldb/API/SBStructuredData.h @@ -0,0 +1,45 @@ +//===-- SBStructuredData.h --------------------------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#ifndef SBStructuredData_h +#define SBStructuredData_h + +#include "lldb/API/SBDefines.h" +#include "lldb/API/SBModule.h" + +class StructuredDataImpl; + +namespace lldb { + +class SBStructuredData { +public: + SBStructuredData(); + + SBStructuredData(const lldb::SBStructuredData &rhs); + + SBStructuredData(const lldb::EventSP &event_sp); + + ~SBStructuredData(); + + lldb::SBStructuredData &operator=(const lldb::SBStructuredData &rhs); + + bool IsValid() const; + + void Clear(); + + lldb::SBError GetAsJSON(lldb::SBStream &stream) const; + + lldb::SBError GetDescription(lldb::SBStream &stream) const; + +private: + std::unique_ptr<StructuredDataImpl> m_impl_up; +}; +} + +#endif /* SBStructuredData_h */ |