17#include <boost/property_tree/ptree_fwd.hpp>
42 bool readFile(
const std::string& fname)
override;
45 bool write()
override;
50 std::vector<GeoLib::Point*>& points,
51 std::map<std::string, std::size_t>& pnt_names);
55 std::vector<GeoLib::Polyline*>& polylines,
56 std::vector<GeoLib::Point*>
const& points,
57 const std::vector<std::size_t>& pnt_id_map,
58 std::map<std::string, std::size_t>& ply_names);
62 std::vector<GeoLib::Surface*>& surfaces,
63 std::vector<GeoLib::Point*>
const& points,
64 const std::vector<std::size_t>& pnt_id_map,
65 std::map<std::string, std::size_t>& sfc_names);
Definition of the XMLInterface class.
Container class for geometric objects.
bool write() override
Writes the object to the internal stream. This method must be implemented by a subclass....
GeoLib::GEOObjects & _geo_objects
void readPolylines(BaseLib::ConfigTree const &polylinesRoot, std::vector< GeoLib::Polyline * > &polylines, std::vector< GeoLib::Point * > const &points, const std::vector< std::size_t > &pnt_id_map, std::map< std::string, std::size_t > &ply_names)
Reads GeoLib::Polyline-objects from an xml-file.
void addPolylinesToPropertyTree(boost::property_tree::ptree &geometry_set)
~BoostXmlGmlInterface() override=default
void readPoints(BaseLib::ConfigTree const &pointsRoot, std::vector< GeoLib::Point * > &points, std::map< std::string, std::size_t > &pnt_names)
Reads GeoLib::Point-objects from an xml-file.
void readSurfaces(BaseLib::ConfigTree const &surfacesRoot, std::vector< GeoLib::Surface * > &surfaces, std::vector< GeoLib::Point * > const &points, const std::vector< std::size_t > &pnt_id_map, std::map< std::string, std::size_t > &sfc_names)
Reads GeoLib::Surface-objects from an xml-file.
bool readFile(const std::string &fname) override
Reads an xml-file containing OGS geometry.
void addSurfacesToPropertyTree(boost::property_tree::ptree &geometry_set)
std::map< std::size_t, std::size_t > _idx_map
BoostXmlGmlInterface(GeoLib::GEOObjects &geo_objs)
TemplateElement< PointRule1 > Point
Base class for writing any information to and from XML files.