| 4 | namespace internal { |
| 5 | |
| 6 | void Table::addColumn(const std::string column) { |
| 7 | if (rows.empty()) { |
| 8 | columns.push_back(column); |
| 9 | } else { |
| 10 | throw std::runtime_error("Cannot alter columns after rows have been added"); |
| 11 | } |
| 12 | } |
| 13 | |
| 14 | void Table::addRow(const row_type& row) { |
| 15 | const basic_type::size_type colSize = columns.size(); |
no outgoing calls