40 int readFile(
const QString& fileName)
override;
42 bool readFile(std::string
const& fname)
override
44 return readFile(QString(fname.c_str())) != 0;
48 bool write()
override;
53 std::vector<GeoLib::Point*>& stations,
54 const std::string& station_file_name);
58 QDomElement &boreholeTag,
Definition of the XMLInterface class.
Container class for geometric objects.
Reads and writes Observation Sites to and from XML files.
void readStratigraphy(const QDomNode &stratRoot, GeoLib::StationBorehole *borehole)
Reads the stratigraphy of a borehole from an xml-file.
bool readFile(std::string const &fname) override
bool write() override
Writes the object to the internal stream. This method must be implemented by a subclass....
void readStations(const QDomNode &stationsRoot, std::vector< GeoLib::Point * > &stations, const std::string &station_file_name)
Reads GeoLib::Station- or StationBorehole-objects from an xml-file.
XmlStnInterface(GeoLib::GEOObjects &geo_objs)
int readFile(const QString &fileName) override
Reads an xml-file containing station object definitions into the GEOObjects used in the constructor (...
void writeBoreholeData(QDomDocument &doc, QDomElement &boreholeTag, GeoLib::StationBorehole *borehole) const
Writes borehole-specific data to a station-xml-file.
GeoLib::GEOObjects & _geo_objs
A borehole as a geometric object.
TemplateElement< PointRule1 > Point
Base class for writing any information to and from XML files.