#pragma once #ifndef CSIPContentTypeParser_h #define CSIPContentTypeParser_h #include "CSIPAcceptRangeParser.h" namespace SIPParserFW { //class SIP_PARSER_DLL_DECLARATION_SPECIFIER CSIPContentTypeParser : protected CSIPAcceptRangeParser //Comment 2011-01-14 - dynamic_cast failed if we inherit derived class from base class protectedly class SIP_PARSER_DLL_DECLARATION_SPECIFIER CSIPContentTypeParser : public CSIPAcceptRangeParser { friend class CPoolObject<CSIPContentTypeParser> ; protected: CSIPContentTypeParser() ; CSIPContentTypeParser( const CSIPContentTypeParser &SIPContentTypeParser ) ; virtual ~CSIPContentTypeParser() ; CSIPContentTypeParser& operator=( const CSIPContentTypeParser &SIPContentTypeParser ) ; public: void Release() ; ASIPParser* Copy() ; FW_RETURN_TYPE Parse( const std::string &strStringToParse ) ; std::string ToString() const ; std::string GetHeaderName() const ; public: void SetMediaType( const std::string &strMediaType ) ; const std::string& GetMediaType() const ; void SetMediaSubType( const std::string &strMediaSubType ) ; const std::string& GetMediaSubType() const ; FW_RETURN_TYPE QuerySIPContentTypeParameters( CSIPParamListParser **pSIPContentTypeParameters ) ; CSIPParamListParser* GetSIPContentTypeParameters() ; public: static CSIPContentTypeParser* GetAvailable() ; private: void ReleaseParameters() ; void ReleaseCSIPContentTypeParserData() ; void CopyCSIPContentTypeParserData( const CSIPContentTypeParser &SIPContentTypeParser ) ; } ; inline CSIPParamListParser* CSIPContentTypeParser::GetSIPContentTypeParameters() { return GetSIPAcceptRangeParameters() ; } } // End namespace #endif
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)