OptionValueFileSpecList.h [plain text]
#ifndef liblldb_OptionValueFileSpecList_h_
#define liblldb_OptionValueFileSpecList_h_
#include "lldb/Core/FileSpecList.h"
#include "lldb/Interpreter/OptionValue.h"
namespace lldb_private {
class OptionValueFileSpecList : public OptionValue
{
public:
OptionValueFileSpecList () :
OptionValue(),
m_current_value ()
{
}
OptionValueFileSpecList (const FileSpecList ¤t_value) :
OptionValue(),
m_current_value (current_value)
{
}
virtual
~OptionValueFileSpecList()
{
}
virtual OptionValue::Type
GetType () const
{
return eTypeFileSpecList;
}
virtual void
DumpValue (const ExecutionContext *exe_ctx, Stream &strm, uint32_t dump_mask);
virtual Error
SetValueFromCString (const char *value,
VarSetOperationType op = eVarSetOperationAssign);
virtual bool
Clear ()
{
m_current_value.Clear();
m_value_was_set = false;
return true;
}
virtual lldb::OptionValueSP
DeepCopy () const;
virtual bool
IsAggregateValue () const
{
return true;
}
FileSpecList &
GetCurrentValue()
{
return m_current_value;
}
const FileSpecList &
GetCurrentValue() const
{
return m_current_value;
}
void
SetCurrentValue (const FileSpecList &value)
{
m_current_value = value;
}
protected:
FileSpecList m_current_value;
};
}
#endif // liblldb_OptionValueFileSpecList_h_