LLDB mainline
OptionValuePathMappings.h
Go to the documentation of this file.
1//===-- OptionValuePathMappings.h -------------------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLDB_INTERPRETER_OPTIONVALUEPATHMAPPINGS_H
10#define LLDB_INTERPRETER_OPTIONVALUEPATHMAPPINGS_H
11
14
15namespace lldb_private {
16
18 : public Cloneable<OptionValuePathMappings, OptionValue> {
19public:
20 OptionValuePathMappings(bool notify_changes)
21 : m_notify_changes(notify_changes) {}
22
23 ~OptionValuePathMappings() override = default;
24
25 // Virtual subclass pure virtual overrides
26
27 OptionValue::Type GetType() const override { return eTypePathMap; }
28
29 void DumpValue(const ExecutionContext *exe_ctx, Stream &strm,
30 uint32_t dump_mask) override;
31
32 llvm::json::Value ToJSON(const ExecutionContext *exe_ctx) override;
33
34 Status
35 SetValueFromString(llvm::StringRef value,
37
38 void Clear() override {
40 m_value_was_set = false;
41 }
42
43 bool IsAggregateValue() const override { return true; }
44
45 // Subclass specific functions
46
48
50
51protected:
54};
55
56} // namespace lldb_private
57
58#endif // LLDB_INTERPRETER_OPTIONVALUEPATHMAPPINGS_H
A class that implements CRTP-based "virtual constructor" idiom.
Definition: Cloneable.h:40
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
llvm::json::Value ToJSON(const ExecutionContext *exe_ctx) override
~OptionValuePathMappings() override=default
const PathMappingList & GetCurrentValue() const
OptionValue::Type GetType() const override
Status SetValueFromString(llvm::StringRef value, VarSetOperationType op=eVarSetOperationAssign) override
void DumpValue(const ExecutionContext *exe_ctx, Stream &strm, uint32_t dump_mask) override
An error handling class.
Definition: Status.h:44
A stream class that can stream formatted output to a file.
Definition: Stream.h:28
A class that represents a running process on the host machine.
VarSetOperationType
Settable state variable types.