i cant see how its possible but would like to make sure

i am using an xml parser to set up a game scene
but need to be able to do

engine->createModel<CmodelBasic>()

engine->createModel<CmodelEnemy>()

the only way i can see how to do this is with a massive if else statement's

if (paserString == "CmodelBasic" )
engine->createModel<CmodelBasic>();


is there a better cleaner way to do this