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:
@@ -226,6 +226,28 @@ namespace osgIntrospection
|
||||
}
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
struct WAtomicValueReflector: ValueReflector<T>
|
||||
{
|
||||
typedef typename ValueReflector<T>::instance_creator_type instance_creator_type;
|
||||
|
||||
WAtomicValueReflector(const std::string& name, const std::string& ns)
|
||||
: ValueReflector<T>(name, ns)
|
||||
{
|
||||
setReaderWriter(new StdWReaderWriter<T>);
|
||||
setComparator(new PartialOrderComparator<T>);
|
||||
addConstructor(new TypedConstructorInfo0<T, instance_creator_type>(ParameterInfoList()));
|
||||
}
|
||||
|
||||
WAtomicValueReflector(const std::string& qname)
|
||||
: ValueReflector<T>(qname)
|
||||
{
|
||||
setReaderWriter(new StdWReaderWriter<T>);
|
||||
setComparator(new PartialOrderComparator<T>);
|
||||
addConstructor(new TypedConstructorInfo0<T, instance_creator_type>(ParameterInfoList()));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/// This reflector is a ValueReflector that should be used to define
|
||||
/// enumerations. It assigns an EnumReaderWriter by default.
|
||||
|
||||
Reference in New Issue
Block a user