MCPcopy Create free account
hub / github.com/Notgnoshi/generative / GraphReader

Class GraphReader

generative/include/generative/io/graph-reader.h:9–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8namespace generative::io {
9class GraphReader
10{
11public:
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
22protected:
23 std::istream& m_input;
24 const geos::geom::GeometryFactory& m_factory;
25 geos::io::WKTReader m_reader;
26};
27} // namespace generative::io

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected