9#ifndef LLDB_INTERPRETER_OPTIONVALUESTRING_H
10#define LLDB_INTERPRETER_OPTIONVALUESTRING_H
32 if (value && value[0]) {
39 if (current_value && current_value[0])
41 if (default_value && default_value[0])
46 void *baton =
nullptr)
48 if (value && value[0]) {
57 if (current_value && current_value[0])
59 if (default_value && default_value[0])
70 uint32_t dump_mask)
override;
107 if (value && value[0])
A class that implements CRTP-based "virtual constructor" idiom.
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
void SetValidator(ValidatorCallback validator, void *baton=nullptr)
bool IsCurrentValueEmpty() const
const char * GetDefaultValue() const
OptionValueString(const char *current_value, const char *default_value)
void SetDefaultValue(const char *value)
OptionValue::Type GetType() const override
OptionValueString(const char *value, ValidatorCallback validator, void *baton=nullptr)
~OptionValueString() override=default
Status SetValueFromString(llvm::StringRef value, VarSetOperationType op=eVarSetOperationAssign) override
llvm::StringRef GetDefaultValueAsRef() const
@ eOptionEncodeCharacterEscapeSequences
OptionValueString(const char *value)
llvm::StringRef GetCurrentValueAsRef() const
const char * GetCurrentValue() const
ValidatorCallback m_validator
std::string m_current_value
OptionValueString()=default
const Flags & GetOptions() const
OptionValueString(ValidatorCallback validator, void *baton=nullptr)
Status AppendToCurrentValue(const char *value)
llvm::json::Value ToJSON(const ExecutionContext *exe_ctx) override
Status SetCurrentValue(llvm::StringRef value)
void DumpValue(const ExecutionContext *exe_ctx, Stream &strm, uint32_t dump_mask) override
const char * operator=(const char *value)
std::string m_default_value
Status(* ValidatorCallback)(const char *string, void *baton)
bool IsDefaultValueEmpty() const
OptionValueString(const char *current_value, const char *default_value, ValidatorCallback validator, void *baton=nullptr)
A stream class that can stream formatted output to a file.
A class that represents a running process on the host machine.
TableValidator< 0 > validator
VarSetOperationType
Settable state variable types.