| 7 | |
| 8 | namespace generative::io { |
| 9 | class GraphReader |
| 10 | { |
| 11 | public: |
| 12 | GraphReader(std::istream& input, const geos::geom::GeometryFactory& factory) : |
| 13 | m_input(input), m_factory(factory), m_reader(factory) |
| 14 | { |
| 15 | } |
| 16 | virtual ~GraphReader() = default; |
| 17 | |
| 18 | //! @brief Read a graph from the given istream. |
| 19 | virtual generative::noding::GeometryGraph read() noexcept = 0; |
| 20 | virtual void read(const std::string& line) noexcept = 0; |
| 21 | |
| 22 | protected: |
| 23 | std::istream& m_input; |
| 24 | const geos::geom::GeometryFactory& m_factory; |
| 25 | geos::io::WKTReader m_reader; |
| 26 | }; |
| 27 | } // namespace generative::io |
nothing calls this directly
no outgoing calls
no test coverage detected