working
port to netbeans
Templates inlined in header files