Exemplo n.º 1
0
Float Column<Float>::parse_datum(const Datum &datum) {
  switch (datum.type()) {
    case GRNXX_NA: {
      return Float::na();
    }
    case GRNXX_FLOAT: {
      return datum.as_float();
    }
    default: {
      throw "Wrong data type";  // TODO
    }
  }
}