LLDB mainline
Public Member Functions | Static Public Member Functions | Public Attributes | Private Types | Static Private Member Functions | Static Private Attributes | List of all members
lldb_private::BreakpointOptions::CommandData Struct Reference

#include <BreakpointOptions.h>

Inheritance diagram for lldb_private::BreakpointOptions::CommandData:
Inheritance graph
[legend]

Public Member Functions

 CommandData ()=default
 
 CommandData (const StringList &user_source, lldb::ScriptLanguage interp)
 
virtual ~CommandData ()=default
 
StructuredData::ObjectSP SerializeToStructuredData ()
 

Static Public Member Functions

static const char * GetSerializationKey ()
 
static std::unique_ptr< CommandDataCreateFromStructuredData (const StructuredData::Dictionary &options_dict, Status &error)
 

Public Attributes

StringList user_source
 
std::string script_source
 
enum lldb::ScriptLanguage interpreter
 
bool stop_on_error = true
 

Private Types

enum class  OptionNames : uint32_t { UserSource = 0 , Interpreter , StopOnError , LastOptionName }
 

Static Private Member Functions

static const char * GetKey (OptionNames enum_value)
 

Static Private Attributes

static const char * g_option_names [static_cast< uint32_t >(OptionNames::LastOptionName)]
 

Detailed Description

Definition at line 45 of file BreakpointOptions.h.

Member Enumeration Documentation

◆ OptionNames

enum class lldb_private::BreakpointOptions::CommandData::OptionNames : uint32_t
strongprivate
Enumerator
UserSource 
Interpreter 
StopOnError 
LastOptionName 

Definition at line 69 of file BreakpointOptions.h.

Constructor & Destructor Documentation

◆ CommandData() [1/2]

lldb_private::BreakpointOptions::CommandData::CommandData ( )
default

◆ CommandData() [2/2]

lldb_private::BreakpointOptions::CommandData::CommandData ( const StringList user_source,
lldb::ScriptLanguage  interp 
)
inline

Definition at line 48 of file BreakpointOptions.h.

◆ ~CommandData()

virtual lldb_private::BreakpointOptions::CommandData::~CommandData ( )
virtualdefault

Member Function Documentation

◆ CreateFromStructuredData()

std::unique_ptr< BreakpointOptions::CommandData > BreakpointOptions::CommandData::CreateFromStructuredData ( const StructuredData::Dictionary options_dict,
Status error 
)
static

◆ GetKey()

static const char * lldb_private::BreakpointOptions::CommandData::GetKey ( OptionNames  enum_value)
inlinestaticprivate

Definition at line 79 of file BreakpointOptions.h.

References g_option_names.

Referenced by SerializeToStructuredData().

◆ GetSerializationKey()

static const char * lldb_private::BreakpointOptions::CommandData::GetSerializationKey ( )
inlinestatic

◆ SerializeToStructuredData()

StructuredData::ObjectSP BreakpointOptions::CommandData::SerializeToStructuredData ( )

Member Data Documentation

◆ g_option_names

const char * BreakpointOptions::CommandData::g_option_names
staticprivate
Initial value:
{
"UserSource", "ScriptSource", "StopOnError"}

Definition at line 77 of file BreakpointOptions.h.

Referenced by GetKey().

◆ interpreter

enum lldb::ScriptLanguage lldb_private::BreakpointOptions::CommandData::interpreter

◆ script_source

std::string lldb_private::BreakpointOptions::CommandData::script_source

Definition at line 62 of file BreakpointOptions.h.

Referenced by SerializeToStructuredData().

◆ stop_on_error

bool lldb_private::BreakpointOptions::CommandData::stop_on_error = true

◆ user_source

StringList lldb_private::BreakpointOptions::CommandData::user_source

The documentation for this struct was generated from the following files: