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>

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

Public Member Functions

 CommandData ()
 
 CommandData (const StringList &user_source, lldb::ScriptLanguage interp)
 
 ~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
 

Private Types

enum  OptionNames : uint32_t { OptionNames::UserSource = 0, OptionNames::Interpreter, OptionNames::StopOnError, OptionNames::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

Enumerator
UserSource 
Interpreter 
StopOnError 
LastOptionName 

Definition at line 71 of file BreakpointOptions.h.

Constructor & Destructor Documentation

◆ CommandData() [1/2]

lldb_private::BreakpointOptions::CommandData::CommandData ( )
inline

Definition at line 46 of file BreakpointOptions.h.

◆ CommandData() [2/2]

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

Definition at line 50 of file BreakpointOptions.h.

References ~CommandData().

◆ ~CommandData()

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

Referenced by CommandData().

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 81 of file BreakpointOptions.h.

References g_option_names.

◆ 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 79 of file BreakpointOptions.h.

Referenced by GetKey(), and lldb_private::BreakpointOptions::GetKey().

◆ interpreter

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

◆ script_source

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

Definition at line 65 of file BreakpointOptions.h.

◆ stop_on_error

bool lldb_private::BreakpointOptions::CommandData::stop_on_error

◆ user_source

StringList lldb_private::BreakpointOptions::CommandData::user_source

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