From Mike Wittman, "Here is the next in the series of changes I'm making to OSG introspection to support the attributes needed for C# bindings. This change adds virtual/pure virtual attributes to MethodInfo and an explicit attribute to ConstructorInfo using the implementation strategy that David Callu recommended a few months back (thanks David!). This change updates both genwrapper and osgIntrospection, and assumes the osgIntrospection reference support that's still pending in your submission queue."
This commit is contained in:
@@ -120,6 +120,10 @@ void print_types()
|
||||
|
||||
std::cout << "\t ";
|
||||
|
||||
// display if the method is virtual
|
||||
if (mi.isVirtual())
|
||||
std::cout << "virtual ";
|
||||
|
||||
// display the method's return type if defined
|
||||
if (mi.getReturnType().isDefined())
|
||||
std::cout << mi.getReturnType().getQualifiedName() << " ";
|
||||
@@ -159,6 +163,8 @@ void print_types()
|
||||
std::cout << ")";
|
||||
if (mi.isConst())
|
||||
std::cout << " const";
|
||||
if (mi.isPureVirtual())
|
||||
std::cout << " = 0";
|
||||
std::cout << "\n";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user