/* * Copyright (c) 2012 Yoann Blein * Licensed under the simplified BSD license. * See Documentation/Licenses/BSD-simplified.txt for more information. */ #pragma once #include #include #include namespace Swift { class PayloadParserFactoryCollection; class JingleRTPDescriptionParser : public GenericPayloadParser { public: JingleRTPDescriptionParser(PayloadParserFactoryCollection* factories); virtual void handleStartElement(const std::string& element, const std::string&, const AttributeMap& attributes); virtual void handleEndElement(const std::string& element, const std::string& ns); virtual void handleCharacterData(const std::string& data); private: static JingleRTPDescription::MediaType mediaTypeFromString(const std::string& media); private: PayloadParserFactoryCollection* factories; int level; boost::shared_ptr currentPayloadParser; bool parsingBandwidth; std::string bandwidthType; std::string bandwidthValue; }; }