libmusicbrainz3
3.0.2
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
mbxmlparser.h
Go to the documentation of this file.
1
/*
2
* MusicBrainz -- The Internet music metadatabase
3
*
4
* Copyright (C) 2006 Lukas Lalinsky
5
*
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Lesser General Public
8
* License as published by the Free Software Foundation; either
9
* version 2.1 of the License, or (at your option) any later version.
10
*
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
15
*
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with this library; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19
*
20
* $Id: mbxmlparser.h 8466 2006-09-05 08:59:44Z luks $
21
*/
22
23
#ifndef __MUSICBRAINZ3_MBXMLPARSER_H__
24
#define __MUSICBRAINZ3_MBXMLPARSER_H__
25
26
#include <exception>
27
#include <
musicbrainz3/musicbrainz.h
>
28
#include <
musicbrainz3/factory.h
>
29
#include <
musicbrainz3/metadata.h
>
30
31
namespace
MusicBrainz
32
{
33
37
class
MB_API
ParseError
:
public
Exception
38
{
39
public
:
40
ParseError
(
const
std::string &msg = std::string()) :
Exception
(msg) {}
41
};
42
43
50
class
MB_API
MbXmlParser
51
{
52
public
:
53
57
MbXmlParser
(
/*IFactory factory = DefaultFactory()*/
);
58
62
virtual
~
MbXmlParser
();
63
76
Metadata
*parse(
const
std::string &data);
77
78
private
:
79
80
class
MbXmlParserPrivate;
81
MbXmlParserPrivate *d;
82
};
83
84
}
85
86
#endif
include
musicbrainz3
mbxmlparser.h
Generated on Sat Nov 1 2014 23:39:07 for libmusicbrainz3 by
1.8.1.2