• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

mbxmlparser.h

Go to the documentation of this file.
00001 /*
00002  * MusicBrainz -- The Internet music metadatabase
00003  *
00004  * Copyright (C) 2006 Lukas Lalinsky
00005  *  
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or (at your option) any later version.
00010  * 
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  * 
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
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(/*IFactory factory = DefaultFactory()*/);
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

Generated on Mon Oct 18 2010 for libmusicbrainz3 by  doxygen 1.7.1