Пример #1
0
Vector<GeoPoint> Column<Vector<GeoPoint>>::parse_datum(const Datum &datum) {
  switch (datum.type()) {
    case GRNXX_NA: {
      return Vector<GeoPoint>::na();
    }
    case GRNXX_GEO_POINT_VECTOR: {
      return datum.as_geo_point_vector();
    }
    default: {
      throw "Wrong data type";  // TODO
    }
  }
}