It feels like this is very dependent on the way that sdp_line_types is ordered - is it better to change this switch to a series of "else if (sdp_line_types[ii].compare("o") == 0)"?