| 70 | |
| 71 | |
| 72 | void FauxReader::prepared(PointTableRef table) |
| 73 | { |
| 74 | if (!m_countArg->set() && m_mode != Mode::Grid) |
| 75 | throwError("Argument 'count' needs a value and none was provided."); |
| 76 | if (m_numReturns > 10) |
| 77 | throwError("Option 'number_of_returns' must be in the range [0,10]."); |
| 78 | |
| 79 | if (!(m_mode == Mode::Normal || m_mode == Mode::Uniform)) |
| 80 | { |
| 81 | if (m_seedArg->set()) |
| 82 | { |
| 83 | std::ostringstream out; |
| 84 | out << "Option 'seed' not supported with mode '" << m_mode << "'."; |
| 85 | throwError(out.str()); |
| 86 | } |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | |
| 91 | void FauxReader::initialize() |