Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef __MUSICBRAINZ3_MBXMLPARSER_H__
00024 #define __MUSICBRAINZ3_MBXMLPARSER_H__
00025
00026 #include <exception>
00027 #include <musicbrainz3/musicbrainz.h>
00028 #include <musicbrainz3/factory.h>
00029 #include <musicbrainz3/metadata.h>
00030
00031 namespace MusicBrainz
00032 {
00033
00037 class MB_API ParseError : public Exception
00038 {
00039 public:
00040 ParseError(const std::string &msg = std::string()) : Exception(msg) {}
00041 };
00042
00043
00050 class MB_API MbXmlParser
00051 {
00052 public:
00053
00057 MbXmlParser();
00058
00062 virtual ~MbXmlParser();
00063
00076 Metadata *parse(const std::string &data);
00077
00078 private:
00079
00080 class MbXmlParserPrivate;
00081 MbXmlParserPrivate *d;
00082 };
00083
00084 }
00085
00086 #endif