From David Callu,

"bug fix to reflect the wchar_t in Value and Value.cpp I add the toWString() function.
in Type and Type.cpp I just add two function to get a map of propertyList and a map of methodList
i need this map in my editor a i think it's could be util to put this functionnality in osgIntrospection,
This commit is contained in:
Robert Osfield
2006-09-01 12:52:15 +00:00
parent 96e1630cc7
commit 616097e465
10 changed files with 211 additions and 14 deletions

View File

@@ -207,6 +207,16 @@ void Type::getAllProperties(PropertyInfoList& props) const
}
}
void Type::getPropertiesMap(PropertyInfoMap& props) const
{
check_defined();
props[this] = _props;
for (TypeList::const_iterator i=_base.begin(); i!=_base.end(); ++i)
{
(*i)->getPropertiesMap(props);
}
}
void Type::getAllMethods(MethodInfoList& methods) const
{
check_defined();
@@ -217,6 +227,16 @@ void Type::getAllMethods(MethodInfoList& methods) const
}
}
void Type::getMethodsMap(MethodInfoMap& methods) const
{
check_defined();
methods[this] = _methods;
for (TypeList::const_iterator i=_base.begin(); i!=_base.end(); ++i)
{
(*i)->getMethodsMap(methods);
}
}
Value Type::createInstance(ValueList& args) const
{
if (isAbstract())