示例#1
0
bool Solver::read_results() {

    try {

        DataReader dr;

        dr.readAll(gyro::RESULT_FILE, *result_data);

        load(*result_data);

        msg = "Successfully finished!";
    }
    catch (ios_base::failure& ) {

        msg += "failed to read the output of the solver!";
        return FAILED;
    }
    catch (exception& e) {

        msg += "unexpected error ";
        msg += e.what();
        return FAILED;
    }

    return SUCCESS;
}