OpenStudio'ism would be 

boost::optional<openstudio::contam::sim::LinkFlow> lfr = openstudio::contam::sim::LinkFlow::load(inputPath);