More iteration on the new option value stuff. We now define an
OptionValueCollection class that can be subclassed to provide access to
internal settings that are stored as ObjectValue subclasses.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@129926 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Interpreter/NamedOptionValue.cpp b/source/Interpreter/NamedOptionValue.cpp
index fec7905..987ab47 100644
--- a/source/Interpreter/NamedOptionValue.cpp
+++ b/source/Interpreter/NamedOptionValue.cpp
@@ -81,11 +81,11 @@
//-------------------------------------------------------------------------
-// NamedOptionValue
+// OptionValueCollection
//-------------------------------------------------------------------------
void
-NamedOptionValue::GetQualifiedName (Stream &strm)
+OptionValueCollection::GetQualifiedName (Stream &strm)
{
if (m_parent)
{
@@ -95,41 +95,6 @@
strm << m_name;
}
-OptionValue::Type
-NamedOptionValue::GetValueType ()
-{
- if (m_value_sp)
- return m_value_sp->GetType();
- return OptionValue::eTypeInvalid;
-}
-
-bool
-NamedOptionValue::DumpValue (Stream &strm)
-{
- if (m_value_sp)
- {
- m_value_sp->DumpValue (strm);
- return true;
- }
- return false;
-}
-
-bool
-NamedOptionValue::SetValueFromCString (const char *value_cstr)
-{
- if (m_value_sp)
- return m_value_sp->SetValueFromCString (value_cstr);
- return false;
-}
-
-bool
-NamedOptionValue::ResetValueToDefault ()
-{
- if (m_value_sp)
- return m_value_sp->ResetValueToDefault ();
- return false;
-}
-
//-------------------------------------------------------------------------
// OptionValueBoolean