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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user