SipccSdpParser.h (895B)
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* vim: set ts=2 et sw=2 tw=80: */ 3 /* This Source Code Form is subject to the terms of the Mozilla Public 4 * License, v. 2.0. If a copy of the MPL was not distributed with this file, 5 * You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 7 #ifndef _SIPCCSDPPARSER_H_ 8 #define _SIPCCSDPPARSER_H_ 9 10 #include <string> 11 12 #include "mozilla/UniquePtr.h" 13 #include "sdp/Sdp.h" 14 #include "sdp/SdpParser.h" 15 16 namespace mozilla { 17 18 class SipccSdpParser final : public SdpParser { 19 static const std::string& ParserName(); 20 21 public: 22 SipccSdpParser() = default; 23 virtual ~SipccSdpParser() = default; 24 25 const std::string& Name() const override { return ParserName(); } 26 27 UniquePtr<SdpParser::Results> Parse(const std::string& aText) override; 28 29 static bool IsNamed(const std::string& aName); 30 }; 31 32 } // namespace mozilla 33 34 #endif