LLDB
mainline
llvm-project
lldb
include
lldb
Interpreter
OptionGroupOutputFile.h
Go to the documentation of this file.
1
//===-- OptionGroupOutputFile.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_OPTIONGROUPOUTPUTFILE_H
10
#define LLDB_INTERPRETER_OPTIONGROUPOUTPUTFILE_H
11
12
#include "
lldb/Interpreter/OptionValueBoolean.h
"
13
#include "
lldb/Interpreter/OptionValueFileSpec.h
"
14
#include "
lldb/Interpreter/Options.h
"
15
16
namespace
lldb_private
{
17
// OptionGroupOutputFile
18
19
class
OptionGroupOutputFile
:
public
OptionGroup
{
20
public
:
21
OptionGroupOutputFile
();
22
23
~OptionGroupOutputFile
()
override
=
default
;
24
25
llvm::ArrayRef<OptionDefinition>
GetDefinitions
()
override
;
26
27
Status
SetOptionValue
(uint32_t option_idx, llvm::StringRef option_value,
28
ExecutionContext
*execution_context)
override
;
29
30
void
OptionParsingStarting
(
ExecutionContext
*execution_context)
override
;
31
32
const
OptionValueFileSpec
&
GetFile
() {
return
m_file
; }
33
34
const
OptionValueBoolean
&
GetAppend
() {
return
m_append
; }
35
36
bool
AnyOptionWasSet
()
const
{
37
return
m_file
.
OptionWasSet
() ||
m_append
.
OptionWasSet
();
38
}
39
40
protected
:
41
OptionValueFileSpec
m_file
;
42
OptionValueBoolean
m_append
;
43
};
44
45
}
// namespace lldb_private
46
47
#endif
// LLDB_INTERPRETER_OPTIONGROUPOUTPUTFILE_H
OptionValueBoolean.h
OptionValueFileSpec.h
Options.h
lldb_private::ExecutionContext
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
Definition:
ExecutionContext.h:292
lldb_private::OptionGroupOutputFile
Definition:
OptionGroupOutputFile.h:19
lldb_private::OptionGroupOutputFile::OptionParsingStarting
void OptionParsingStarting(ExecutionContext *execution_context) override
Definition:
OptionGroupOutputFile.cpp:56
lldb_private::OptionGroupOutputFile::GetDefinitions
llvm::ArrayRef< OptionDefinition > GetDefinitions() override
Definition:
OptionGroupOutputFile.cpp:29
lldb_private::OptionGroupOutputFile::SetOptionValue
Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_value, ExecutionContext *execution_context) override
Definition:
OptionGroupOutputFile.cpp:34
lldb_private::OptionGroupOutputFile::AnyOptionWasSet
bool AnyOptionWasSet() const
Definition:
OptionGroupOutputFile.h:36
lldb_private::OptionGroupOutputFile::GetFile
const OptionValueFileSpec & GetFile()
Definition:
OptionGroupOutputFile.h:32
lldb_private::OptionGroupOutputFile::m_append
OptionValueBoolean m_append
Definition:
OptionGroupOutputFile.h:42
lldb_private::OptionGroupOutputFile::m_file
OptionValueFileSpec m_file
Definition:
OptionGroupOutputFile.h:41
lldb_private::OptionGroupOutputFile::GetAppend
const OptionValueBoolean & GetAppend()
Definition:
OptionGroupOutputFile.h:34
lldb_private::OptionGroupOutputFile::OptionGroupOutputFile
OptionGroupOutputFile()
Definition:
OptionGroupOutputFile.cpp:16
lldb_private::OptionGroupOutputFile::~OptionGroupOutputFile
~OptionGroupOutputFile() override=default
lldb_private::OptionGroup
Definition:
Options.h:234
lldb_private::OptionValueBoolean
Definition:
OptionValueBoolean.h:16
lldb_private::OptionValueFileSpec
Definition:
OptionValueFileSpec.h:20
lldb_private::OptionValue::OptionWasSet
bool OptionWasSet() const
Definition:
OptionValue.h:253
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
Generated on Sun Oct 6 2024 00:12:51 for LLDB by
1.9.6