42 bool readFile(
const std::string& fname)
override;
46 bool write()
override;
51 std::vector<GeoLib::Point*>& points,
52 std::map<std::string, std::size_t>& pnt_names);
56 std::vector<GeoLib::Polyline*>& polylines,
57 std::vector<GeoLib::Point*>
const& points,
58 const std::vector<std::size_t>& pnt_id_map,
59 std::map<std::string, std::size_t>& ply_names);
63 std::vector<GeoLib::Surface*>& surfaces,
64 std::vector<GeoLib::Point*>
const& points,
65 const std::vector<std::size_t>& pnt_id_map,
66 std::map<std::string, std::size_t>& sfc_names);
Definition of the XMLInterface class.
boost::property_tree::ptree PTree
The tree being wrapped by this class.
Container class for geometric objects.
bool write() override
Required method for writing geometry. This is not implemented here, use the Qt class for writing.
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.
~BoostXmlGmlInterface() override=default
void addPolylinesToPropertyTree(BaseLib::ConfigTree::PTree &geometry_set)
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.
void addSurfacesToPropertyTree(BaseLib::ConfigTree::PTree &geometry_set)
bool readFile(const std::string &fname) override
Reads an xml-file containing OGS geometry.
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.