1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
#pragma once
#include <parser/gmlobjectparser.h>
namespace citygml {
class Envelope;
class FeatureObject;
/**
* @brief abstract base class for all CityGMLElementParser's that parse citygml elements which inherit from gml:AbstractFeatureCollectionType
*/
class GMLFeatureCollectionElementParser : public GMLObjectElementParser {
public:
GMLFeatureCollectionElementParser(CityGMLDocumentParser& documentParser, CityGMLFactory& factory, std::shared_ptr<CityGMLLogger> logger);
protected:
// CityGMLElementParser interface
virtual bool parseChildElementStartTag(const NodeType::XMLNode& node, Attributes& attributes) override;
virtual bool parseChildElementEndTag(const NodeType::XMLNode& node, const std::string& characters) override;
virtual FeatureObject* getFeatureObject() = 0;
// GMLObjectElementParser interface
virtual Object* getObject() override;
const Envelope& getEnvelope() const;
bool getSourceSRSOverride() const;
private:
Envelope* m_bounds;
bool m_sourceSRSOverride;
};
}
|