LLDB
mainline
llvm-project
lldb
include
lldb
Interpreter
OptionGroupUInt64.h
Go to the documentation of this file.
1
//===-- OptionGroupUInt64.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_OPTIONGROUPUINT64_H
10
#define LLDB_INTERPRETER_OPTIONGROUPUINT64_H
11
12
#include "
lldb/Interpreter/OptionValueUInt64.h
"
13
#include "
lldb/Interpreter/Options.h
"
14
15
namespace
lldb_private
{
16
17
// OptionGroupUInt64
18
19
class
OptionGroupUInt64
:
public
OptionGroup
{
20
public
:
21
OptionGroupUInt64
(uint32_t usage_mask,
bool
required,
const
char
*long_option,
22
int
short_option, uint32_t completion_type,
23
lldb::CommandArgumentType
argument_type,
24
const
char
*usage_text, uint64_t default_value);
25
26
~OptionGroupUInt64
()
override
=
default
;
27
28
llvm::ArrayRef<OptionDefinition>
GetDefinitions
()
override
{
29
return
llvm::ArrayRef<OptionDefinition>(&
m_option_definition
, 1);
30
}
31
32
Status
SetOptionValue
(uint32_t option_idx, llvm::StringRef option_value,
33
ExecutionContext
*execution_context)
override
;
34
35
void
OptionParsingStarting
(
ExecutionContext
*execution_context)
override
;
36
37
OptionValueUInt64
&
GetOptionValue
() {
return
m_value
; }
38
39
const
OptionValueUInt64
&
GetOptionValue
()
const
{
return
m_value
; }
40
41
protected
:
42
OptionValueUInt64
m_value
;
43
OptionDefinition
m_option_definition
;
44
};
45
46
}
// namespace lldb_private
47
48
#endif
// LLDB_INTERPRETER_OPTIONGROUPUINT64_H
OptionValueUInt64.h
Options.h
lldb_private::ExecutionContext
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
Definition:
ExecutionContext.h:292
lldb_private::OptionGroupUInt64
Definition:
OptionGroupUInt64.h:19
lldb_private::OptionGroupUInt64::OptionParsingStarting
void OptionParsingStarting(ExecutionContext *execution_context) override
Definition:
OptionGroupUInt64.cpp:42
lldb_private::OptionGroupUInt64::~OptionGroupUInt64
~OptionGroupUInt64() override=default
lldb_private::OptionGroupUInt64::SetOptionValue
Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_value, ExecutionContext *execution_context) override
Definition:
OptionGroupUInt64.cpp:35
lldb_private::OptionGroupUInt64::GetOptionValue
OptionValueUInt64 & GetOptionValue()
Definition:
OptionGroupUInt64.h:37
lldb_private::OptionGroupUInt64::m_option_definition
OptionDefinition m_option_definition
Definition:
OptionGroupUInt64.h:43
lldb_private::OptionGroupUInt64::GetOptionValue
const OptionValueUInt64 & GetOptionValue() const
Definition:
OptionGroupUInt64.h:39
lldb_private::OptionGroupUInt64::GetDefinitions
llvm::ArrayRef< OptionDefinition > GetDefinitions() override
Definition:
OptionGroupUInt64.h:28
lldb_private::OptionGroupUInt64::m_value
OptionValueUInt64 m_value
Definition:
OptionGroupUInt64.h:42
lldb_private::OptionGroup
Definition:
Options.h:234
lldb_private::OptionValueUInt64
Definition:
OptionValueUInt64.h:17
lldb_private::Status
An error handling class.
Definition:
Status.h:44
lldb_private
A class that represents a running process on the host machine.
Definition:
SBAddressRange.h:14
lldb::CommandArgumentType
CommandArgumentType
Definition:
lldb-enumerations.h:558
lldb_private::OptionDefinition
Definition:
OptionDefinition.h:20
Generated on Tue Dec 3 2024 06:26:27 for LLDB by
1.9.6