LLDB
mainline
llvm-project
lldb
include
lldb
Interpreter
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
12
#include "
lldb/Interpreter/OptionValue.h
"
13
#include "
lldb/Target/PathMappingList.h
"
14
15
namespace
lldb_private
{
16
17
class
OptionValuePathMappings
18
:
public
Cloneable
<OptionValuePathMappings, OptionValue> {
19
public
:
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
Status
33
SetValueFromString
(llvm::StringRef value,
34
VarSetOperationType
op =
eVarSetOperationAssign
)
override
;
35
36
void
Clear
()
override
{
37
m_path_mappings
.
Clear
(
m_notify_changes
);
38
m_value_was_set
=
false
;
39
}
40
41
bool
IsAggregateValue
()
const override
{
return
true
; }
42
43
// Subclass specific functions
44
45
PathMappingList
&
GetCurrentValue
() {
return
m_path_mappings
; }
46
47
const
PathMappingList
&
GetCurrentValue
()
const
{
return
m_path_mappings
; }
48
49
protected
:
50
PathMappingList
m_path_mappings
;
51
bool
m_notify_changes
;
52
};
53
54
}
// namespace lldb_private
55
56
#endif // LLDB_INTERPRETER_OPTIONVALUEPATHMAPPINGS_H
lldb_private::OptionValuePathMappings::GetType
OptionValue::Type GetType() const override
Definition:
OptionValuePathMappings.h:27
lldb_private::OptionValuePathMappings::~OptionValuePathMappings
~OptionValuePathMappings() override=default
lldb_private::ExecutionContext
Definition:
ExecutionContext.h:292
lldb_private::OptionValuePathMappings::Clear
void Clear() override
Definition:
OptionValuePathMappings.h:36
lldb_private::OptionValue::eTypePathMap
@ eTypePathMap
Definition:
OptionValue.h:40
lldb_private::Stream
Definition:
Stream.h:28
lldb_private::Cloneable
Definition:
Cloneable.h:40
OptionValue.h
lldb_private::VarSetOperationType
VarSetOperationType
Settable state variable types.
Definition:
lldb-private-enumerations.h:83
lldb_private::OptionValuePathMappings::DumpValue
void DumpValue(const ExecutionContext *exe_ctx, Stream &strm, uint32_t dump_mask) override
Definition:
OptionValuePathMappings.cpp:26
lldb_private::OptionValuePathMappings::OptionValuePathMappings
OptionValuePathMappings(bool notify_changes)
Definition:
OptionValuePathMappings.h:20
lldb_private::OptionValuePathMappings::SetValueFromString
Status SetValueFromString(llvm::StringRef value, VarSetOperationType op=eVarSetOperationAssign) override
Definition:
OptionValuePathMappings.cpp:37
lldb_private::OptionValuePathMappings::m_path_mappings
PathMappingList m_path_mappings
Definition:
OptionValuePathMappings.h:50
lldb_private::OptionValuePathMappings::IsAggregateValue
bool IsAggregateValue() const override
Definition:
OptionValuePathMappings.h:41
lldb_private::Status
Definition:
Status.h:44
lldb_private::OptionValue::Type
Type
Definition:
OptionValue.h:26
uint32_t
lldb_private::PathMappingList
Definition:
PathMappingList.h:19
lldb_private::OptionValue::m_value_was_set
bool m_value_was_set
Definition:
OptionValue.h:331
lldb_private::OptionValuePathMappings::m_notify_changes
bool m_notify_changes
Definition:
OptionValuePathMappings.h:51
lldb_private::OptionValuePathMappings
Definition:
OptionValuePathMappings.h:17
lldb_private
A class that represents a running process on the host machine.
Definition:
SBCommandInterpreterRunOptions.h:16
lldb_private::OptionValuePathMappings::GetCurrentValue
PathMappingList & GetCurrentValue()
Definition:
OptionValuePathMappings.h:45
lldb_private::PathMappingList::Clear
void Clear(bool notify)
Definition:
PathMappingList.cpp:134
PathMappingList.h
lldb_private::OptionValuePathMappings::GetCurrentValue
const PathMappingList & GetCurrentValue() const
Definition:
OptionValuePathMappings.h:47
lldb_private::eVarSetOperationAssign
@ eVarSetOperationAssign
Definition:
lldb-private-enumerations.h:90
Generated on Wed Jul 20 2022 21:29:14 for LLDB by
1.8.17