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_MUSICBRAINZ_H__
00024 #define __MUSICBRAINZ3_MUSICBRAINZ_H__
00025
00026 #include <musicbrainz3/defines.h>
00027
00028 #include <exception>
00029 #include <string>
00030
00031 namespace MusicBrainz
00032 {
00033
00034 class MB_API Exception : public std::exception
00035 {
00036 public:
00037 Exception(const std::string &msg = std::string()) : msg(msg) {}
00038 virtual ~Exception() throw() {}
00039 const char *what() const throw() { return msg.c_str(); }
00040 private:
00041 std::string msg;
00042 };
00043
00044 class MB_API ValueError : public Exception
00045 {
00046 public:
00047 ValueError(const std::string &msg = std::string()) : Exception(msg) {}
00048 };
00049
00053 static const std::string VARIOUS_ARTISTS_ID = "http://musicbrainz.org/artist/89ad4ac3-39f7-470e-963a-56509c546377";
00054
00058 static const std::string NS_MMD_1 = "http://musicbrainz.org/ns/mmd-1.0#";
00059
00063 static const std::string NS_REL_1 = "http://musicbrainz.org/ns/rel-1.0#";
00064
00068 static const std::string NS_EXT_1 = "http://musicbrainz.org/ns/ext-1.0#";
00069
00070 }
00071
00072 #endif