#!/usr/bin/env python
import boost_python_and_ref_ptr as bprp
class DerivedNode( bprp.Node ):
def __init__( self ):
super( DerivedNode, self ).__init__()
def apply( self, vb ):
print " ( python ) Hi my name is", vb.name
node = DerivedNode()
visitorBase = bprp.VisitorBase()
derivedVisitor = bprp.DerivedVisitor()
bprp.check_their_identification( node, visitorBase )
bprp.check_their_identification( node, derivedVisitor )