Merge lp:~logan/ubuntu/quantal/libmusicbrainz/new-upstream into lp:ubuntu/quantal/libmusicbrainz
- Quantal (12.10)
- new-upstream
- Merge into quantal
Proposed by
Logan Rosen
Status: | Merged |
---|---|
Merged at revision: | 3 |
Proposed branch: | lp:~logan/ubuntu/quantal/libmusicbrainz/new-upstream |
Merge into: | lp:ubuntu/quantal/libmusicbrainz |
Diff against target: |
17671 lines (+3088/-10035) 194 files modified
.gitignore (+9/-0) CMakeLists.txt (+5/-6) Doxyfile.cmake (+1/-1) NEWS.txt (+26/-0) README.md (+44/-0) README.txt (+0/-44) config.h.cmake (+0/-2) debian/changelog (+8/-0) debian/control (+2/-2) examples/.gitignore (+8/-0) examples/CMakeLists.txt (+8/-2) examples/cdlookup.cc (+1/-1) examples/cdlookup_c.c (+1/-1) examples/collections.cc (+1/-1) examples/search.cc (+1/-1) examples/search_c.c (+1/-1) include/musicbrainz4/.gitignore (+1/-0) include/musicbrainz4/Alias.h (+8/-3) include/musicbrainz4/AliasList.h (+1/-1) include/musicbrainz4/Annotation.h (+3/-3) include/musicbrainz4/AnnotationList.h (+1/-1) include/musicbrainz4/Artist.h (+32/-5) include/musicbrainz4/ArtistCredit.h (+3/-3) include/musicbrainz4/ArtistList.h (+1/-1) include/musicbrainz4/Attribute.h (+3/-3) include/musicbrainz4/AttributeList.h (+1/-1) include/musicbrainz4/CDStub.h (+3/-3) include/musicbrainz4/CDStubList.h (+1/-1) include/musicbrainz4/Collection.h (+3/-3) include/musicbrainz4/CollectionList.h (+1/-1) include/musicbrainz4/Disc.h (+3/-3) include/musicbrainz4/DiscList.h (+1/-1) include/musicbrainz4/Entity.h (+12/-24) include/musicbrainz4/FreeDBDisc.h (+3/-3) include/musicbrainz4/FreeDBDiscList.h (+1/-1) include/musicbrainz4/HTTPFetch.h (+1/-1) include/musicbrainz4/IPI.h (+63/-0) include/musicbrainz4/IPIList.h (+37/-0) include/musicbrainz4/ISRC.h (+3/-3) include/musicbrainz4/ISRCList.h (+1/-1) include/musicbrainz4/ISWC.h (+65/-0) include/musicbrainz4/ISWCList.h (+62/-0) include/musicbrainz4/Label.h (+32/-5) include/musicbrainz4/LabelInfo.h (+3/-3) include/musicbrainz4/LabelInfoList.h (+1/-1) include/musicbrainz4/LabelList.h (+1/-1) include/musicbrainz4/Lifespan.h (+4/-3) include/musicbrainz4/List.h (+3/-3) include/musicbrainz4/ListImpl.h (+5/-11) include/musicbrainz4/Medium.h (+3/-3) include/musicbrainz4/MediumList.h (+3/-3) include/musicbrainz4/Message.h (+3/-3) include/musicbrainz4/Metadata.h (+3/-3) include/musicbrainz4/NameCredit.h (+3/-3) include/musicbrainz4/NameCreditList.h (+1/-1) include/musicbrainz4/NonMBTrack.h (+3/-3) include/musicbrainz4/NonMBTrackList.h (+1/-1) include/musicbrainz4/PUID.h (+3/-3) include/musicbrainz4/PUIDList.h (+1/-1) include/musicbrainz4/Query.h (+22/-1) include/musicbrainz4/Rating.h (+3/-3) include/musicbrainz4/Recording.h (+17/-4) include/musicbrainz4/RecordingList.h (+1/-1) include/musicbrainz4/Relation.h (+3/-3) include/musicbrainz4/RelationList.h (+3/-3) include/musicbrainz4/RelationListList.h (+63/-0) include/musicbrainz4/Release.h (+17/-4) include/musicbrainz4/ReleaseGroup.h (+34/-5) include/musicbrainz4/ReleaseGroupList.h (+1/-1) include/musicbrainz4/ReleaseList.h (+1/-1) include/musicbrainz4/SecondaryType.h (+65/-0) include/musicbrainz4/SecondaryTypeList.h (+62/-0) include/musicbrainz4/Tag.h (+3/-3) include/musicbrainz4/TagList.h (+1/-1) include/musicbrainz4/TextRepresentation.h (+3/-3) include/musicbrainz4/Track.h (+4/-3) include/musicbrainz4/TrackList.h (+1/-1) include/musicbrainz4/UserRating.h (+3/-3) include/musicbrainz4/UserTag.h (+3/-3) include/musicbrainz4/UserTagList.h (+1/-1) include/musicbrainz4/Work.h (+34/-5) include/musicbrainz4/WorkList.h (+1/-1) include/musicbrainz4/defines.h (+42/-0) schema/musicbrainz_mmd-1.0.rng (+0/-585) schema/musicbrainz_mmd-1.0rc1.rng (+0/-478) schema/musicbrainz_mmd-1.0rc2.rng (+0/-518) schema/musicbrainz_mmd-1.0rc3.rng (+0/-518) schema/musicbrainz_mmd-1.0rc4.rng (+0/-539) schema/musicbrainz_mmd-1.0rc5.rng (+0/-585) schema/musicbrainz_mmd-1.1.rng (+0/-694) schema/musicbrainz_mmd-1.2.rng (+0/-736) schema/musicbrainz_mmd-1.3.rng (+0/-807) schema/musicbrainz_mmd-1.4.rng (+0/-911) schema/musicbrainz_mmd-2.0.rng (+0/-1537) src/.gitignore (+7/-0) src/Alias.cc (+58/-16) src/Annotation.cc (+9/-16) src/Artist.cc (+61/-41) src/ArtistCredit.cc (+6/-14) src/Attribute.cc (+6/-13) src/CDStub.cc (+11/-18) src/CMakeLists.txt (+10/-3) src/Collection.cc (+9/-15) src/Disc.cc (+9/-16) src/Entity.cc (+23/-14) src/FreeDBDisc.cc (+11/-19) src/HTTPFetch.cc (+4/-1) src/IPI.cc (+118/-0) src/ISRC.cc (+7/-14) src/ISWC.cc (+123/-0) src/ISWCList.cc (+101/-0) src/Label.cc (+59/-37) src/LabelInfo.cc (+8/-15) src/Lifespan.cc (+20/-15) src/List.cc (+6/-13) src/Medium.cc (+11/-18) src/MediumList.cc (+9/-10) src/Message.cc (+7/-14) src/Metadata.cc (+33/-40) src/NameCredit.cc (+8/-16) src/NonMBTrack.cc (+9/-16) src/PUID.cc (+7/-14) src/Query.cc (+26/-9) src/Rating.cc (+7/-14) src/Recording.cc (+34/-36) src/Relation.cc (+17/-24) src/RelationList.cc (+9/-10) src/RelationListList.cc (+148/-0) src/Release.cc (+37/-38) src/ReleaseGroup.cc (+68/-36) src/SecondaryType.cc (+124/-0) src/SecondaryTypeList.cc (+101/-0) src/Tag.cc (+8/-15) src/TextRepresentation.cc (+8/-15) src/Track.cc (+25/-18) src/UserRating.cc (+6/-13) src/UserTag.cc (+7/-14) src/Work.cc (+70/-39) src/c-int-medium-defines.inc (+2/-2) src/c-int-medium-source.inc (+2/-2) src/c-int-query-defines.inc (+2/-2) src/c-int-query-source.inc (+2/-2) src/c-int-release-defines.inc (+2/-2) src/c-int-release-source.inc (+2/-2) src/c-int-source-funcs.inc (+12/-3) src/cinterface.xml (+38/-10) src/make-c-interface.cc (+125/-4) test-data/README (+0/-13) test-data/invalid/artist/basic_1.xml (+0/-12) test-data/invalid/artist/basic_2.xml (+0/-12) test-data/invalid/artist/empty_2.xml (+0/-3) test-data/invalid/artist/empty_3.xml (+0/-7) test-data/invalid/artist/ratings_1.xml (+0/-6) test-data/invalid/artist/ratings_2.xml (+0/-6) test-data/invalid/artist/search_result_1.xml (+0/-11) test-data/invalid/artist/tags_1.xml (+0/-6) test-data/valid/artist/Tchaikovsky-1.xml (+0/-90) test-data/valid/artist/Tchaikovsky-2.xml (+0/-18) test-data/valid/artist/Tori_Amos_1.xml (+0/-8) test-data/valid/artist/Tori_Amos_2.xml (+0/-67) test-data/valid/artist/Tori_Amos_3.xml (+0/-25) test-data/valid/artist/Tori_Amos_4.xml (+0/-14) test-data/valid/artist/Tori_Amos_5.xml (+0/-13) test-data/valid/artist/empty_1.xml (+0/-7) test-data/valid/artist/empty_2.xml (+0/-11) test-data/valid/artist/search_result_1.xml (+0/-19) test-data/valid/label/Atlantic_Records_1.xml (+0/-9) test-data/valid/label/Atlantic_Records_2.xml (+0/-14) test-data/valid/label/Atlantic_Records_3.xml (+0/-17) test-data/valid/label/search_result_1.xml (+0/-14) test-data/valid/release-group/The_Cure_1.xml (+0/-36) test-data/valid/release-group/search_result_1.xml (+0/-23) test-data/valid/release/Highway_61_Revisited_1.xml (+0/-68) test-data/valid/release/Highway_61_Revisited_2.xml (+0/-18) test-data/valid/release/Little_Earthquakes_1.xml (+0/-24) test-data/valid/release/Little_Earthquakes_2.xml (+0/-73) test-data/valid/release/Mission_Impossible_2.xml (+0/-155) test-data/valid/release/Under_the_Pink_1.xml (+0/-16) test-data/valid/release/Under_the_Pink_2.xml (+0/-17) test-data/valid/release/Under_the_Pink_3.xml (+0/-16) test-data/valid/release/search_result_1.xml (+0/-29) test-data/valid/track/Silent_All_These_Years_1.xml (+0/-7) test-data/valid/track/Silent_All_These_Years_2.xml (+0/-21) test-data/valid/track/Silent_All_These_Years_3.xml (+0/-16) test-data/valid/track/Silent_All_These_Years_4.xml (+0/-33) test-data/valid/track/Silent_All_These_Years_5.xml (+0/-20) test-data/valid/track/Silent_All_These_Years_6.xml (+0/-16) test-data/valid/track/search_result_1.xml (+0/-45) test-data/valid/user/User_1.xml (+0/-15) tests/.gitignore (+5/-0) tests/CMakeLists.txt (+10/-2) tests/ctest.c (+190/-5) tests/mbtest.cc (+342/-121) valgrind.supp (+18/-2) |
To merge this branch: | bzr merge lp:~logan/ubuntu/quantal/libmusicbrainz/new-upstream |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel Holbach (community) | Approve | ||
Ubuntu branches | Pending | ||
Review via email: mp+111776@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
Revision history for this message
Logan Rosen (logan) wrote : | # |
I did that because Lintian was getting angry about how debian/compat is set to "9," but debian/control requires only version 7 or up of debhelper - the Lintian website recommended increasing the version in control to greater than or equal to the compatibility value.
Revision history for this message
Daniel Holbach (dholbach) wrote : | # |
Ok, that's fine then. :)
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === added file '.gitignore' | |||
2 | --- .gitignore 1970-01-01 00:00:00 +0000 | |||
3 | +++ .gitignore 2012-06-25 05:56:21 +0000 | |||
4 | @@ -0,0 +1,9 @@ | |||
5 | 1 | CMakeCache.txt | ||
6 | 2 | CMakeFiles/ | ||
7 | 3 | Doxyfile | ||
8 | 4 | Makefile | ||
9 | 5 | cmake_install.cmake | ||
10 | 6 | config.h | ||
11 | 7 | libmusicbrainz4.pc | ||
12 | 8 | docs/ | ||
13 | 9 | install_manifest.txt | ||
14 | 0 | 10 | ||
15 | === modified file 'CMakeLists.txt' | |||
16 | --- CMakeLists.txt 2012-02-01 17:18:10 +0000 | |||
17 | +++ CMakeLists.txt 2012-06-25 05:56:21 +0000 | |||
18 | @@ -1,15 +1,15 @@ | |||
19 | 1 | cmake_minimum_required(VERSION 2.6) | 1 | cmake_minimum_required(VERSION 2.6) |
20 | 2 | 2 | ||
21 | 3 | PROJECT(libmusicbrainz4) | 3 | PROJECT(libmusicbrainz4) |
23 | 4 | SET(PROJECT_VERSION 4.0.0) | 4 | SET(PROJECT_VERSION 4.0.3) |
24 | 5 | 5 | ||
25 | 6 | # 1. If the library source code has changed at all since the last update, then increment revision. | 6 | # 1. If the library source code has changed at all since the last update, then increment revision. |
26 | 7 | # 2. If any interfaces have been added, removed, or changed since the last update, increment current, and set revision to 0. | 7 | # 2. If any interfaces have been added, removed, or changed since the last update, increment current, and set revision to 0. |
27 | 8 | # 3. If any interfaces have been added since the last public release, then increment age. | 8 | # 3. If any interfaces have been added since the last public release, then increment age. |
28 | 9 | # 4. If any interfaces have been removed since the last public release, then set age to 0. | 9 | # 4. If any interfaces have been removed since the last public release, then set age to 0. |
32 | 10 | SET(musicbrainz4_SOVERSION_CURRENT 3) | 10 | SET(musicbrainz4_SOVERSION_CURRENT 5) |
33 | 11 | SET(musicbrainz4_SOVERSION_REVISION 0) | 11 | SET(musicbrainz4_SOVERSION_REVISION 1) |
34 | 12 | SET(musicbrainz4_SOVERSION_AGE 0) | 12 | SET(musicbrainz4_SOVERSION_AGE 2) |
35 | 13 | 13 | ||
36 | 14 | MATH(EXPR musicbrainz4_SOVERSION_MAJOR "${musicbrainz4_SOVERSION_CURRENT} - ${musicbrainz4_SOVERSION_AGE}") | 14 | MATH(EXPR musicbrainz4_SOVERSION_MAJOR "${musicbrainz4_SOVERSION_CURRENT} - ${musicbrainz4_SOVERSION_AGE}") |
37 | 15 | MATH(EXPR musicbrainz4_SOVERSION_MINOR "${musicbrainz4_SOVERSION_AGE}") | 15 | MATH(EXPR musicbrainz4_SOVERSION_MINOR "${musicbrainz4_SOVERSION_AGE}") |
38 | @@ -47,6 +47,5 @@ | |||
39 | 47 | 47 | ||
40 | 48 | ADD_CUSTOM_TARGET(dist | 48 | ADD_CUSTOM_TARGET(dist |
41 | 49 | rm -rf "libmusicbrainz-${PROJECT_VERSION}" | 49 | rm -rf "libmusicbrainz-${PROJECT_VERSION}" |
44 | 50 | COMMAND svn export http://svn.musicbrainz.org/libmusicbrainz/trunk "libmusicbrainz-${PROJECT_VERSION}" | 50 | COMMAND git archive --prefix="libmusicbrainz-${PROJECT_VERSION}/" release-${PROJECT_VERSION} | gzip -9 > libmusicbrainz-${PROJECT_VERSION}.tar.gz |
43 | 51 | COMMAND tar -zcvf "libmusicbrainz-${PROJECT_VERSION}.tar.gz" "libmusicbrainz-${PROJECT_VERSION}" | ||
45 | 52 | ) | 51 | ) |
46 | 53 | 52 | ||
47 | === modified file 'Doxyfile.cmake' | |||
48 | --- Doxyfile.cmake 2012-02-01 17:18:10 +0000 | |||
49 | +++ Doxyfile.cmake 2012-06-25 05:56:21 +0000 | |||
50 | @@ -16,5 +16,5 @@ | |||
51 | 16 | FULL_PATH_NAMES = NO | 16 | FULL_PATH_NAMES = NO |
52 | 17 | MACRO_EXPANSION = YES | 17 | MACRO_EXPANSION = YES |
53 | 18 | EXPAND_ONLY_PREDEF = YES | 18 | EXPAND_ONLY_PREDEF = YES |
55 | 19 | PREDEFINED = MB_API | 19 | PREDEFINED = LIBMB4_DEPRECATED(f)= |
56 | 20 | REPEAT_BRIEF = NO | 20 | REPEAT_BRIEF = NO |
57 | 21 | 21 | ||
58 | === modified file 'NEWS.txt' | |||
59 | --- NEWS.txt 2012-02-01 17:18:10 +0000 | |||
60 | +++ NEWS.txt 2012-06-25 05:56:21 +0000 | |||
61 | @@ -1,3 +1,29 @@ | |||
62 | 1 | Changes for libmusicbrainz 4.0.3 | ||
63 | 2 | -------------------------------- | ||
64 | 3 | |||
65 | 4 | - Fix LMB-32 - Correctly ignore unrecognised nodes | ||
66 | 5 | - Don't compile using -Werror when building from tarball | ||
67 | 6 | |||
68 | 7 | Changes for libmusicbrainz 4.0.2 | ||
69 | 8 | -------------------------------- | ||
70 | 9 | |||
71 | 10 | - Add extra attributes to Alias | ||
72 | 11 | - Add IPI lists to Artist and Label | ||
73 | 12 | - Add 'Ended' to Lifespan | ||
74 | 13 | - Add PrimaryType and SecondaryTypeList to ReleaseGroup | ||
75 | 14 | - Add text based track number to Track | ||
76 | 15 | - Add ISWC list to Work | ||
77 | 16 | - Debug builds show queries and responses on stderr | ||
78 | 17 | - Documentation updates | ||
79 | 18 | |||
80 | 19 | Changes for libmusicbrainz 4.0.1 | ||
81 | 20 | -------------------------------- | ||
82 | 21 | |||
83 | 22 | - Fixed bug LMB-30 - Unable to access all relation lists on objects with | ||
84 | 23 | multiple relation lists | ||
85 | 24 | - Fixed bug LMB-31 - mb_relationlist_get_targettype always returns | ||
86 | 25 | "target-type" | ||
87 | 26 | |||
88 | 1 | Changes for libmusicbrainz 4.0.0 | 27 | Changes for libmusicbrainz 4.0.0 |
89 | 2 | -------------------------------- | 28 | -------------------------------- |
90 | 3 | 29 | ||
91 | 4 | 30 | ||
92 | === added file 'README.md' | |||
93 | --- README.md 1970-01-01 00:00:00 +0000 | |||
94 | +++ README.md 2012-06-25 05:56:21 +0000 | |||
95 | @@ -0,0 +1,44 @@ | |||
96 | 1 | ============================ | ||
97 | 2 | MusicBrainz Client Library | ||
98 | 3 | ============================ | ||
99 | 4 | |||
100 | 5 | Documentation | ||
101 | 6 | ------------- | ||
102 | 7 | |||
103 | 8 | To get started quickly have a look at the examples directory which | ||
104 | 9 | contains various sample programs. API documentation can be generated | ||
105 | 10 | using [Doxygen] (http://www.stack.nl/~dimitri/doxygen/). The online version of | ||
106 | 11 | the API documentation can be found at: | ||
107 | 12 | |||
108 | 13 | http://metabrainz.github.com/libmusicbrainz/ | ||
109 | 14 | |||
110 | 15 | Compiling and Linking | ||
111 | 16 | --------------------- | ||
112 | 17 | |||
113 | 18 | This package provides a pkg-config script that returns the necessary compiler | ||
114 | 19 | and linker flags, as well as the version number. To build a small sample | ||
115 | 20 | program one would use: | ||
116 | 21 | |||
117 | 22 | g++ -o test_app test_app.cpp `pkg-config libmusicbrainz4 --cflags --libs` | ||
118 | 23 | |||
119 | 24 | If you don't want/can't use pkg-config and you are using the C API, make sure | ||
120 | 25 | you link in the C++ standard library: | ||
121 | 26 | |||
122 | 27 | gcc -o test_app test_app.c -lmusicbrainz4 -lm -lstdc++ | ||
123 | 28 | |||
124 | 29 | Contact | ||
125 | 30 | ------- | ||
126 | 31 | |||
127 | 32 | If you have any questions about this library, feel free to ask on the | ||
128 | 33 | MusicBrainz development mailing list: | ||
129 | 34 | |||
130 | 35 | http://lists.musicbrainz.org/mailman/listinfo/musicbrainz-devel | ||
131 | 36 | |||
132 | 37 | Please submit bug reports to the MusicBrainz bug tracking system: | ||
133 | 38 | |||
134 | 39 | http://tickets.musicbrainz.org/browse/LMB | ||
135 | 40 | |||
136 | 41 | You can find out more about the MusicBrainz project by visiting its | ||
137 | 42 | site: | ||
138 | 43 | |||
139 | 44 | http://musicbrainz.org/ | ||
140 | 0 | 45 | ||
141 | === removed file 'README.txt' | |||
142 | --- README.txt 2012-02-01 17:18:10 +0000 | |||
143 | +++ README.txt 1970-01-01 00:00:00 +0000 | |||
144 | @@ -1,44 +0,0 @@ | |||
145 | 1 | ============================ | ||
146 | 2 | MusicBrainz Client Library | ||
147 | 3 | ============================ | ||
148 | 4 | |||
149 | 5 | Documentation | ||
150 | 6 | ============= | ||
151 | 7 | |||
152 | 8 | To get started quickly have a look at the examples directory which | ||
153 | 9 | contains various sample programs. API documentation can be generated | ||
154 | 10 | using Doxygen (http://www.stack.nl/~dimitri/doxygen/). Online version of | ||
155 | 11 | the API documentation can be found at: | ||
156 | 12 | |||
157 | 13 | http://users.musicbrainz.org/~luks/docs/libmusicbrainz4/ | ||
158 | 14 | |||
159 | 15 | Compiling and Linking | ||
160 | 16 | ===================== | ||
161 | 17 | |||
162 | 18 | This package provides a pkg-config script that returns the necessary compiler | ||
163 | 19 | and linker flags, as well as the version number. To build a small sample | ||
164 | 20 | program one would use: | ||
165 | 21 | |||
166 | 22 | g++ -o test_app test_app.cpp `pkg-config libmusicbrainz4 --cflags --libs` | ||
167 | 23 | |||
168 | 24 | If you don't want/can't use pkg-config and you are using the C API, make sure | ||
169 | 25 | you link in the C++ standard library: | ||
170 | 26 | |||
171 | 27 | gcc -o test_app test_app.c -lmusicbrainz4 -lm -lstdc++ | ||
172 | 28 | |||
173 | 29 | Contact | ||
174 | 30 | ======= | ||
175 | 31 | |||
176 | 32 | If you have any questions about this library, feel free to ask on the | ||
177 | 33 | MusicBrainz development mailing list: | ||
178 | 34 | |||
179 | 35 | http://lists.musicbrainz.org/mailman/listinfo/musicbrainz-devel | ||
180 | 36 | |||
181 | 37 | Please submit bug reports to the MusicBrainz bug tracking system: | ||
182 | 38 | |||
183 | 39 | http://tickets.musicbrainz.org/ | ||
184 | 40 | |||
185 | 41 | You can find out more about the MusicBrainz project by visiting its | ||
186 | 42 | site: | ||
187 | 43 | |||
188 | 44 | http://musicbrainz.org/ | ||
189 | 45 | 0 | ||
190 | === modified file 'config.h.cmake' | |||
191 | --- config.h.cmake 2012-02-01 17:18:10 +0000 | |||
192 | +++ config.h.cmake 2012-06-25 05:56:21 +0000 | |||
193 | @@ -4,6 +4,4 @@ | |||
194 | 4 | #define PACKAGE "${PROJECT_NAME}" | 4 | #define PACKAGE "${PROJECT_NAME}" |
195 | 5 | #define VERSION "${PROJECT_VERSION}" | 5 | #define VERSION "${PROJECT_VERSION}" |
196 | 6 | 6 | ||
197 | 7 | #cmakedefine DISCID_FOUND | ||
198 | 8 | |||
199 | 9 | #endif | 7 | #endif |
200 | 10 | 8 | ||
201 | === modified file 'debian/changelog' | |||
202 | --- debian/changelog 2012-02-01 17:18:10 +0000 | |||
203 | +++ debian/changelog 2012-06-25 05:56:21 +0000 | |||
204 | @@ -1,3 +1,11 @@ | |||
205 | 1 | libmusicbrainz (4.0.3-0ubuntu1) quantal; urgency=low | ||
206 | 2 | |||
207 | 3 | * New upstream release (LP: #1005075). | ||
208 | 4 | * Bump Standards-Version to 3.9.3. | ||
209 | 5 | * Bump Build-Depends for debhelper to >= 9. | ||
210 | 6 | |||
211 | 7 | -- Logan Rosen <logatronico@gmail.com> Mon, 25 Jun 2012 01:45:21 -0400 | ||
212 | 8 | |||
213 | 1 | libmusicbrainz (4.0.0-0ubuntu1) precise; urgency=low | 9 | libmusicbrainz (4.0.0-0ubuntu1) precise; urgency=low |
214 | 2 | 10 | ||
215 | 3 | * Merge from unreleased Debian git. | 11 | * Merge from unreleased Debian git. |
216 | 4 | 12 | ||
217 | === modified file 'debian/control' | |||
218 | --- debian/control 2012-02-01 17:18:10 +0000 | |||
219 | +++ debian/control 2012-06-25 05:56:21 +0000 | |||
220 | @@ -1,11 +1,11 @@ | |||
221 | 1 | Source: libmusicbrainz | 1 | Source: libmusicbrainz |
222 | 2 | Priority: extra | 2 | Priority: extra |
223 | 3 | Maintainer: Timo Aaltonen <tjaalton@ubuntu.com> | 3 | Maintainer: Timo Aaltonen <tjaalton@ubuntu.com> |
225 | 4 | Build-Depends: debhelper (>= 8.1.3~), | 4 | Build-Depends: debhelper (>= 9), |
226 | 5 | cmake, | 5 | cmake, |
227 | 6 | libneon27-gnutls-dev| libneon-dev, | 6 | libneon27-gnutls-dev| libneon-dev, |
228 | 7 | doxygen, | 7 | doxygen, |
230 | 8 | Standards-Version: 3.9.2 | 8 | Standards-Version: 3.9.3 |
231 | 9 | Section: libs | 9 | Section: libs |
232 | 10 | Homepage: http://musicbrainz.org/doc/libmusicbrainz | 10 | Homepage: http://musicbrainz.org/doc/libmusicbrainz |
233 | 11 | Vcs-Git: git://git.debian.org/collab-maint/libmusicbrainz.git | 11 | Vcs-Git: git://git.debian.org/collab-maint/libmusicbrainz.git |
234 | 12 | 12 | ||
235 | === added file 'examples/.gitignore' | |||
236 | --- examples/.gitignore 1970-01-01 00:00:00 +0000 | |||
237 | +++ examples/.gitignore 2012-06-25 05:56:21 +0000 | |||
238 | @@ -0,0 +1,8 @@ | |||
239 | 1 | CMakeFiles/ | ||
240 | 2 | Makefile | ||
241 | 3 | cdlookup | ||
242 | 4 | cdlookup_c | ||
243 | 5 | cmake_install.cmake | ||
244 | 6 | collections | ||
245 | 7 | search | ||
246 | 8 | search_c | ||
247 | 0 | 9 | ||
248 | === modified file 'examples/CMakeLists.txt' | |||
249 | --- examples/CMakeLists.txt 2012-02-01 17:18:10 +0000 | |||
250 | +++ examples/CMakeLists.txt 2012-06-25 05:56:21 +0000 | |||
251 | @@ -8,10 +8,16 @@ | |||
252 | 8 | ADD_EXECUTABLE(collections collections.cc) | 8 | ADD_EXECUTABLE(collections collections.cc) |
253 | 9 | 9 | ||
254 | 10 | IF(CMAKE_COMPILER_IS_GNUCXX) | 10 | IF(CMAKE_COMPILER_IS_GNUCXX) |
256 | 11 | SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror -Wextra -pedantic-errors") | 11 | SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic-errors") |
257 | 12 | IF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/../.git) | ||
258 | 13 | SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror") | ||
259 | 14 | ENDIF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/../.git) | ||
260 | 12 | ENDIF(CMAKE_COMPILER_IS_GNUCXX) | 15 | ENDIF(CMAKE_COMPILER_IS_GNUCXX) |
261 | 13 | 16 | ||
262 | 14 | IF(CMAKE_COMPILER_IS_GNUCC) | 17 | IF(CMAKE_COMPILER_IS_GNUCC) |
264 | 15 | SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -Wextra -pedantic-errors") | 18 | SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -pedantic-errors") |
265 | 19 | IF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/../.git) | ||
266 | 20 | SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror") | ||
267 | 21 | ENDIF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/../.git) | ||
268 | 16 | ENDIF(CMAKE_COMPILER_IS_GNUCC) | 22 | ENDIF(CMAKE_COMPILER_IS_GNUCC) |
269 | 17 | 23 | ||
270 | 18 | 24 | ||
271 | === modified file 'examples/cdlookup.cc' | |||
272 | --- examples/cdlookup.cc 2012-02-01 17:18:10 +0000 | |||
273 | +++ examples/cdlookup.cc 2012-06-25 05:56:21 +0000 | |||
274 | @@ -18,7 +18,7 @@ | |||
275 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
276 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
277 | 20 | 20 | ||
279 | 21 | $Id: cdlookup.cc 13266 2011-08-25 12:56:47Z adhawkins $ | 21 | $Id$ |
280 | 22 | 22 | ||
281 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
282 | 24 | 24 | ||
283 | 25 | 25 | ||
284 | === modified file 'examples/cdlookup_c.c' | |||
285 | --- examples/cdlookup_c.c 2012-02-01 17:18:10 +0000 | |||
286 | +++ examples/cdlookup_c.c 2012-06-25 05:56:21 +0000 | |||
287 | @@ -10,7 +10,7 @@ | |||
288 | 10 | modify it under the terms of v2 of the GNU Lesser General Public | 10 | modify it under the terms of v2 of the GNU Lesser General Public |
289 | 11 | License as published by the Free Software Foundation. | 11 | License as published by the Free Software Foundation. |
290 | 12 | 12 | ||
292 | 13 | Flactag is distributed in the hope that it will be useful, | 13 | libmusicbrainz4 is distributed in the hope that it will be useful, |
293 | 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
294 | 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
295 | 16 | Lesser General Public License for more details. | 16 | Lesser General Public License for more details. |
296 | 17 | 17 | ||
297 | === modified file 'examples/collections.cc' | |||
298 | --- examples/collections.cc 2012-02-01 17:18:10 +0000 | |||
299 | +++ examples/collections.cc 2012-06-25 05:56:21 +0000 | |||
300 | @@ -18,7 +18,7 @@ | |||
301 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
302 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
303 | 20 | 20 | ||
305 | 21 | $Id: collections.cc 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
306 | 22 | 22 | ||
307 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
308 | 24 | 24 | ||
309 | 25 | 25 | ||
310 | === modified file 'examples/search.cc' | |||
311 | --- examples/search.cc 2012-02-01 17:18:10 +0000 | |||
312 | +++ examples/search.cc 2012-06-25 05:56:21 +0000 | |||
313 | @@ -18,7 +18,7 @@ | |||
314 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
315 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
316 | 20 | 20 | ||
318 | 21 | $Id: search.cc 13254 2011-08-09 09:29:20Z adhawkins $ | 21 | $Id$ |
319 | 22 | 22 | ||
320 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
321 | 24 | 24 | ||
322 | 25 | 25 | ||
323 | === modified file 'examples/search_c.c' | |||
324 | --- examples/search_c.c 2012-02-01 17:18:10 +0000 | |||
325 | +++ examples/search_c.c 2012-06-25 05:56:21 +0000 | |||
326 | @@ -10,7 +10,7 @@ | |||
327 | 10 | modify it under the terms of v2 of the GNU Lesser General Public | 10 | modify it under the terms of v2 of the GNU Lesser General Public |
328 | 11 | License as published by the Free Software Foundation. | 11 | License as published by the Free Software Foundation. |
329 | 12 | 12 | ||
331 | 13 | Flactag is distributed in the hope that it will be useful, | 13 | libmusicbrainz4 is distributed in the hope that it will be useful, |
332 | 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
333 | 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
334 | 16 | Lesser General Public License for more details. | 16 | Lesser General Public License for more details. |
335 | 17 | 17 | ||
336 | === added file 'include/musicbrainz4/.gitignore' | |||
337 | --- include/musicbrainz4/.gitignore 1970-01-01 00:00:00 +0000 | |||
338 | +++ include/musicbrainz4/.gitignore 2012-06-25 05:56:21 +0000 | |||
339 | @@ -0,0 +1,1 @@ | |||
340 | 1 | mb4_c.h | ||
341 | 0 | 2 | ||
342 | === modified file 'include/musicbrainz4/Alias.h' | |||
343 | --- include/musicbrainz4/Alias.h 2012-02-01 17:18:10 +0000 | |||
344 | +++ include/musicbrainz4/Alias.h 2012-06-25 05:56:21 +0000 | |||
345 | @@ -18,7 +18,7 @@ | |||
346 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
347 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
348 | 20 | 20 | ||
350 | 21 | $Id: Alias.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
351 | 22 | 22 | ||
352 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
353 | 24 | 24 | ||
354 | @@ -48,13 +48,18 @@ | |||
355 | 48 | 48 | ||
356 | 49 | std::string Locale() const; | 49 | std::string Locale() const; |
357 | 50 | std::string Text() const; | 50 | std::string Text() const; |
358 | 51 | std::string SortName() const; | ||
359 | 52 | std::string Type() const; | ||
360 | 53 | std::string Primary() const; | ||
361 | 54 | std::string BeginDate() const; | ||
362 | 55 | std::string EndDate() const; | ||
363 | 51 | 56 | ||
364 | 52 | virtual std::ostream& Serialise(std::ostream& os) const; | 57 | virtual std::ostream& Serialise(std::ostream& os) const; |
365 | 53 | static std::string GetElementName(); | 58 | static std::string GetElementName(); |
366 | 54 | 59 | ||
367 | 55 | protected: | 60 | protected: |
370 | 56 | virtual bool ParseAttribute(const std::string& Name, const std::string& Value); | 61 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); |
371 | 57 | virtual bool ParseElement(const XMLNode& Node); | 62 | virtual void ParseElement(const XMLNode& Node); |
372 | 58 | 63 | ||
373 | 59 | private: | 64 | private: |
374 | 60 | CAliasPrivate * const m_d; | 65 | CAliasPrivate * const m_d; |
375 | 61 | 66 | ||
376 | === modified file 'include/musicbrainz4/AliasList.h' | |||
377 | --- include/musicbrainz4/AliasList.h 2012-02-01 17:18:10 +0000 | |||
378 | +++ include/musicbrainz4/AliasList.h 2012-06-25 05:56:21 +0000 | |||
379 | @@ -18,7 +18,7 @@ | |||
380 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
381 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
382 | 20 | 20 | ||
384 | 21 | $Id: AliasList.h 13254 2011-08-09 09:29:20Z adhawkins $ | 21 | $Id$ |
385 | 22 | 22 | ||
386 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
387 | 24 | 24 | ||
388 | 25 | 25 | ||
389 | === modified file 'include/musicbrainz4/Annotation.h' | |||
390 | --- include/musicbrainz4/Annotation.h 2012-02-01 17:18:10 +0000 | |||
391 | +++ include/musicbrainz4/Annotation.h 2012-06-25 05:56:21 +0000 | |||
392 | @@ -18,7 +18,7 @@ | |||
393 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
394 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
395 | 20 | 20 | ||
397 | 21 | $Id: Annotation.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
398 | 22 | 22 | ||
399 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
400 | 24 | 24 | ||
401 | @@ -55,8 +55,8 @@ | |||
402 | 55 | static std::string GetElementName(); | 55 | static std::string GetElementName(); |
403 | 56 | 56 | ||
404 | 57 | protected: | 57 | protected: |
407 | 58 | virtual bool ParseAttribute(const std::string& Name, const std::string& Value); | 58 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); |
408 | 59 | virtual bool ParseElement(const XMLNode& Node); | 59 | virtual void ParseElement(const XMLNode& Node); |
409 | 60 | 60 | ||
410 | 61 | private: | 61 | private: |
411 | 62 | CAnnotationPrivate * const m_d; | 62 | CAnnotationPrivate * const m_d; |
412 | 63 | 63 | ||
413 | === modified file 'include/musicbrainz4/AnnotationList.h' | |||
414 | --- include/musicbrainz4/AnnotationList.h 2012-02-01 17:18:10 +0000 | |||
415 | +++ include/musicbrainz4/AnnotationList.h 2012-06-25 05:56:21 +0000 | |||
416 | @@ -18,7 +18,7 @@ | |||
417 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
418 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
419 | 20 | 20 | ||
421 | 21 | $Id: AnnotationList.h 13254 2011-08-09 09:29:20Z adhawkins $ | 21 | $Id$ |
422 | 22 | 22 | ||
423 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
424 | 24 | 24 | ||
425 | 25 | 25 | ||
426 | === modified file 'include/musicbrainz4/Artist.h' | |||
427 | --- include/musicbrainz4/Artist.h 2012-02-01 17:18:10 +0000 | |||
428 | +++ include/musicbrainz4/Artist.h 2012-06-25 05:56:21 +0000 | |||
429 | @@ -18,7 +18,7 @@ | |||
430 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
431 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
432 | 20 | 20 | ||
434 | 21 | $Id: Artist.h 13265 2011-08-25 12:53:44Z adhawkins $ | 21 | $Id$ |
435 | 22 | 22 | ||
436 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
437 | 24 | 24 | ||
438 | @@ -29,6 +29,7 @@ | |||
439 | 29 | #include <iostream> | 29 | #include <iostream> |
440 | 30 | 30 | ||
441 | 31 | #include "musicbrainz4/Entity.h" | 31 | #include "musicbrainz4/Entity.h" |
442 | 32 | #include "musicbrainz4/IPIList.h" | ||
443 | 32 | #include "musicbrainz4/ReleaseList.h" | 33 | #include "musicbrainz4/ReleaseList.h" |
444 | 33 | #include "musicbrainz4/AliasList.h" | 34 | #include "musicbrainz4/AliasList.h" |
445 | 34 | #include "musicbrainz4/RecordingList.h" | 35 | #include "musicbrainz4/RecordingList.h" |
446 | @@ -65,7 +66,20 @@ | |||
447 | 65 | std::string Gender() const; | 66 | std::string Gender() const; |
448 | 66 | std::string Country() const; | 67 | std::string Country() const; |
449 | 67 | std::string Disambiguation() const; | 68 | std::string Disambiguation() const; |
451 | 68 | std::string IPI() const; | 69 | |
452 | 70 | /** | ||
453 | 71 | * @deprecated Returns one of the IPIs for this artist | ||
454 | 72 | * | ||
455 | 73 | * Returns one of the IPIs for this artist. To return all | ||
456 | 74 | * IPIs, see MusicBrainz4::CArtist::IPIList | ||
457 | 75 | * | ||
458 | 76 | * <b>This method is deprecated, please use MusicBrainz4::CArtist::IPIList</b> | ||
459 | 77 | * | ||
460 | 78 | * @return One of the IPIs for this artist | ||
461 | 79 | */ | ||
462 | 80 | |||
463 | 81 | LIBMB4_DEPRECATED(MusicBrainz4::CArtist::IPIList) std::string IPI() const; | ||
464 | 82 | CIPIList *IPIList() const; | ||
465 | 69 | CLifespan *Lifespan() const; | 83 | CLifespan *Lifespan() const; |
466 | 70 | CAliasList *AliasList() const; | 84 | CAliasList *AliasList() const; |
467 | 71 | CRecordingList *RecordingList() const; | 85 | CRecordingList *RecordingList() const; |
468 | @@ -73,7 +87,20 @@ | |||
469 | 73 | CReleaseGroupList *ReleaseGroupList() const; | 87 | CReleaseGroupList *ReleaseGroupList() const; |
470 | 74 | CLabelList *LabelList() const; | 88 | CLabelList *LabelList() const; |
471 | 75 | CWorkList *WorkList() const; | 89 | CWorkList *WorkList() const; |
473 | 76 | CRelationList *RelationList() const; | 90 | |
474 | 91 | /** | ||
475 | 92 | * @deprecated Returns the <b>last</b> relation list for this artist | ||
476 | 93 | * | ||
477 | 94 | * Returns the <b>last</b> relation list for this artist. To return all | ||
478 | 95 | * relation lists, see MusicBrainz4::CArtist::RelationListList | ||
479 | 96 | * | ||
480 | 97 | * <b>This method is deprecated, please use MusicBrainz4::CArtist::RelationListList</b> | ||
481 | 98 | * | ||
482 | 99 | * @return The <b>last</b> relation list for this artist | ||
483 | 100 | */ | ||
484 | 101 | |||
485 | 102 | LIBMB4_DEPRECATED(MusicBrainz4::CArtist::RelationListList) CRelationList *RelationList() const; | ||
486 | 103 | CRelationListList *RelationListList() const; | ||
487 | 77 | CTagList *TagList() const; | 104 | CTagList *TagList() const; |
488 | 78 | CUserTagList *UserTagList() const; | 105 | CUserTagList *UserTagList() const; |
489 | 79 | CRating *Rating() const; | 106 | CRating *Rating() const; |
490 | @@ -83,8 +110,8 @@ | |||
491 | 83 | static std::string GetElementName(); | 110 | static std::string GetElementName(); |
492 | 84 | 111 | ||
493 | 85 | protected: | 112 | protected: |
496 | 86 | virtual bool ParseAttribute(const std::string& Name, const std::string& Value); | 113 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); |
497 | 87 | virtual bool ParseElement(const XMLNode& Node); | 114 | virtual void ParseElement(const XMLNode& Node); |
498 | 88 | 115 | ||
499 | 89 | private: | 116 | private: |
500 | 90 | void Cleanup(); | 117 | void Cleanup(); |
501 | 91 | 118 | ||
502 | === modified file 'include/musicbrainz4/ArtistCredit.h' | |||
503 | --- include/musicbrainz4/ArtistCredit.h 2012-02-01 17:18:10 +0000 | |||
504 | +++ include/musicbrainz4/ArtistCredit.h 2012-06-25 05:56:21 +0000 | |||
505 | @@ -18,7 +18,7 @@ | |||
506 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
507 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
508 | 20 | 20 | ||
510 | 21 | $Id: ArtistCredit.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
511 | 22 | 22 | ||
512 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
513 | 24 | 24 | ||
514 | @@ -52,8 +52,8 @@ | |||
515 | 52 | static std::string GetElementName(); | 52 | static std::string GetElementName(); |
516 | 53 | 53 | ||
517 | 54 | protected: | 54 | protected: |
520 | 55 | virtual bool ParseAttribute(const std::string& Name, const std::string& Value); | 55 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); |
521 | 56 | virtual bool ParseElement(const XMLNode& Node); | 56 | virtual void ParseElement(const XMLNode& Node); |
522 | 57 | 57 | ||
523 | 58 | private: | 58 | private: |
524 | 59 | void Cleanup(); | 59 | void Cleanup(); |
525 | 60 | 60 | ||
526 | === modified file 'include/musicbrainz4/ArtistList.h' | |||
527 | --- include/musicbrainz4/ArtistList.h 2012-02-01 17:18:10 +0000 | |||
528 | +++ include/musicbrainz4/ArtistList.h 2012-06-25 05:56:21 +0000 | |||
529 | @@ -18,7 +18,7 @@ | |||
530 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
531 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
532 | 20 | 20 | ||
534 | 21 | $Id: ArtistList.h 13254 2011-08-09 09:29:20Z adhawkins $ | 21 | $Id$ |
535 | 22 | 22 | ||
536 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
537 | 24 | 24 | ||
538 | 25 | 25 | ||
539 | === modified file 'include/musicbrainz4/Attribute.h' | |||
540 | --- include/musicbrainz4/Attribute.h 2012-02-01 17:18:10 +0000 | |||
541 | +++ include/musicbrainz4/Attribute.h 2012-06-25 05:56:21 +0000 | |||
542 | @@ -18,7 +18,7 @@ | |||
543 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
544 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
545 | 20 | 20 | ||
547 | 21 | $Id: Attribute.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
548 | 22 | 22 | ||
549 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
550 | 24 | 24 | ||
551 | @@ -52,8 +52,8 @@ | |||
552 | 52 | static std::string GetElementName(); | 52 | static std::string GetElementName(); |
553 | 53 | 53 | ||
554 | 54 | protected: | 54 | protected: |
557 | 55 | virtual bool ParseAttribute(const std::string& Name, const std::string& Value); | 55 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); |
558 | 56 | virtual bool ParseElement(const XMLNode& Node); | 56 | virtual void ParseElement(const XMLNode& Node); |
559 | 57 | 57 | ||
560 | 58 | private: | 58 | private: |
561 | 59 | CAttributePrivate * const m_d; | 59 | CAttributePrivate * const m_d; |
562 | 60 | 60 | ||
563 | === modified file 'include/musicbrainz4/AttributeList.h' | |||
564 | --- include/musicbrainz4/AttributeList.h 2012-02-01 17:18:10 +0000 | |||
565 | +++ include/musicbrainz4/AttributeList.h 2012-06-25 05:56:21 +0000 | |||
566 | @@ -18,7 +18,7 @@ | |||
567 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
568 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
569 | 20 | 20 | ||
571 | 21 | $Id: AttributeList.h 13254 2011-08-09 09:29:20Z adhawkins $ | 21 | $Id$ |
572 | 22 | 22 | ||
573 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
574 | 24 | 24 | ||
575 | 25 | 25 | ||
576 | === modified file 'include/musicbrainz4/CDStub.h' | |||
577 | --- include/musicbrainz4/CDStub.h 2012-02-01 17:18:10 +0000 | |||
578 | +++ include/musicbrainz4/CDStub.h 2012-06-25 05:56:21 +0000 | |||
579 | @@ -18,7 +18,7 @@ | |||
580 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
581 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
582 | 20 | 20 | ||
584 | 21 | $Id: CDStub.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
585 | 22 | 22 | ||
586 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
587 | 24 | 24 | ||
588 | @@ -58,8 +58,8 @@ | |||
589 | 58 | static std::string GetElementName(); | 58 | static std::string GetElementName(); |
590 | 59 | 59 | ||
591 | 60 | protected: | 60 | protected: |
594 | 61 | virtual bool ParseAttribute(const std::string& Name, const std::string& Value); | 61 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); |
595 | 62 | virtual bool ParseElement(const XMLNode& Node); | 62 | virtual void ParseElement(const XMLNode& Node); |
596 | 63 | 63 | ||
597 | 64 | private: | 64 | private: |
598 | 65 | void Cleanup(); | 65 | void Cleanup(); |
599 | 66 | 66 | ||
600 | === modified file 'include/musicbrainz4/CDStubList.h' | |||
601 | --- include/musicbrainz4/CDStubList.h 2012-02-01 17:18:10 +0000 | |||
602 | +++ include/musicbrainz4/CDStubList.h 2012-06-25 05:56:21 +0000 | |||
603 | @@ -18,7 +18,7 @@ | |||
604 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
605 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
606 | 20 | 20 | ||
608 | 21 | $Id: CDStubList.h 13254 2011-08-09 09:29:20Z adhawkins $ | 21 | $Id$ |
609 | 22 | 22 | ||
610 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
611 | 24 | 24 | ||
612 | 25 | 25 | ||
613 | === modified file 'include/musicbrainz4/Collection.h' | |||
614 | --- include/musicbrainz4/Collection.h 2012-02-01 17:18:10 +0000 | |||
615 | +++ include/musicbrainz4/Collection.h 2012-06-25 05:56:21 +0000 | |||
616 | @@ -18,7 +18,7 @@ | |||
617 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
618 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
619 | 20 | 20 | ||
621 | 21 | $Id: Collection.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
622 | 22 | 22 | ||
623 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
624 | 24 | 24 | ||
625 | @@ -53,8 +53,8 @@ | |||
626 | 53 | static std::string GetElementName(); | 53 | static std::string GetElementName(); |
627 | 54 | 54 | ||
628 | 55 | protected: | 55 | protected: |
631 | 56 | virtual bool ParseAttribute(const std::string& Name, const std::string& Value); | 56 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); |
632 | 57 | virtual bool ParseElement(const XMLNode& Node); | 57 | virtual void ParseElement(const XMLNode& Node); |
633 | 58 | 58 | ||
634 | 59 | private: | 59 | private: |
635 | 60 | void Cleanup(); | 60 | void Cleanup(); |
636 | 61 | 61 | ||
637 | === modified file 'include/musicbrainz4/CollectionList.h' | |||
638 | --- include/musicbrainz4/CollectionList.h 2012-02-01 17:18:10 +0000 | |||
639 | +++ include/musicbrainz4/CollectionList.h 2012-06-25 05:56:21 +0000 | |||
640 | @@ -18,7 +18,7 @@ | |||
641 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
642 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
643 | 20 | 20 | ||
645 | 21 | $Id: CollectionList.h 13254 2011-08-09 09:29:20Z adhawkins $ | 21 | $Id$ |
646 | 22 | 22 | ||
647 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
648 | 24 | 24 | ||
649 | 25 | 25 | ||
650 | === modified file 'include/musicbrainz4/Disc.h' | |||
651 | --- include/musicbrainz4/Disc.h 2012-02-01 17:18:10 +0000 | |||
652 | +++ include/musicbrainz4/Disc.h 2012-06-25 05:56:21 +0000 | |||
653 | @@ -18,7 +18,7 @@ | |||
654 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
655 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
656 | 20 | 20 | ||
658 | 21 | $Id: Disc.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
659 | 22 | 22 | ||
660 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
661 | 24 | 24 | ||
662 | @@ -57,8 +57,8 @@ | |||
663 | 57 | static std::string GetElementName(); | 57 | static std::string GetElementName(); |
664 | 58 | 58 | ||
665 | 59 | protected: | 59 | protected: |
668 | 60 | virtual bool ParseAttribute(const std::string& Name, const std::string& Value); | 60 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); |
669 | 61 | virtual bool ParseElement(const XMLNode& Node); | 61 | virtual void ParseElement(const XMLNode& Node); |
670 | 62 | 62 | ||
671 | 63 | private: | 63 | private: |
672 | 64 | void Cleanup(); | 64 | void Cleanup(); |
673 | 65 | 65 | ||
674 | === modified file 'include/musicbrainz4/DiscList.h' | |||
675 | --- include/musicbrainz4/DiscList.h 2012-02-01 17:18:10 +0000 | |||
676 | +++ include/musicbrainz4/DiscList.h 2012-06-25 05:56:21 +0000 | |||
677 | @@ -18,7 +18,7 @@ | |||
678 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
679 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
680 | 20 | 20 | ||
682 | 21 | $Id: DiscList.h 13254 2011-08-09 09:29:20Z adhawkins $ | 21 | $Id$ |
683 | 22 | 22 | ||
684 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
685 | 24 | 24 | ||
686 | 25 | 25 | ||
687 | === modified file 'include/musicbrainz4/Entity.h' | |||
688 | --- include/musicbrainz4/Entity.h 2012-02-01 17:18:10 +0000 | |||
689 | +++ include/musicbrainz4/Entity.h 2012-06-25 05:56:21 +0000 | |||
690 | @@ -18,7 +18,7 @@ | |||
691 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
692 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
693 | 20 | 20 | ||
695 | 21 | $Id: Entity.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
696 | 22 | 22 | ||
697 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
698 | 24 | 24 | ||
699 | @@ -36,6 +36,8 @@ | |||
700 | 36 | { | 36 | { |
701 | 37 | class CEntityPrivate; | 37 | class CEntityPrivate; |
702 | 38 | 38 | ||
703 | 39 | class CRelationListList; | ||
704 | 40 | |||
705 | 39 | class CEntity | 41 | class CEntity |
706 | 40 | { | 42 | { |
707 | 41 | public: | 43 | public: |
708 | @@ -46,7 +48,7 @@ | |||
709 | 46 | 48 | ||
710 | 47 | virtual CEntity *Clone()=0; | 49 | virtual CEntity *Clone()=0; |
711 | 48 | 50 | ||
713 | 49 | bool Parse(const XMLNode& Node); | 51 | void Parse(const XMLNode& Node); |
714 | 50 | 52 | ||
715 | 51 | std::map<std::string,std::string> ExtAttributes() const; | 53 | std::map<std::string,std::string> ExtAttributes() const; |
716 | 52 | std::map<std::string,std::string> ExtElements() const; | 54 | std::map<std::string,std::string> ExtElements() const; |
717 | @@ -55,19 +57,17 @@ | |||
718 | 55 | static std::string GetElementName(); | 57 | static std::string GetElementName(); |
719 | 56 | 58 | ||
720 | 57 | protected: | 59 | protected: |
721 | 60 | void ProcessRelationList(const XMLNode& Node, CRelationListList* & RetVal); | ||
722 | 61 | |||
723 | 58 | template<typename T> | 62 | template<typename T> |
725 | 59 | bool ProcessItem(const XMLNode& Node, T* & RetVal) | 63 | void ProcessItem(const XMLNode& Node, T* & RetVal) |
726 | 60 | { | 64 | { |
727 | 61 | RetVal=new T(Node); | 65 | RetVal=new T(Node); |
728 | 62 | |||
729 | 63 | return true; | ||
730 | 64 | } | 66 | } |
731 | 65 | 67 | ||
732 | 66 | template<class T> | 68 | template<class T> |
734 | 67 | bool ProcessItem(const XMLNode& Node, T& RetVal) | 69 | void ProcessItem(const XMLNode& Node, T& RetVal) |
735 | 68 | { | 70 | { |
736 | 69 | bool Ret=true; | ||
737 | 70 | |||
738 | 71 | std::stringstream os; | 71 | std::stringstream os; |
739 | 72 | if (Node.getText()) | 72 | if (Node.getText()) |
740 | 73 | os << (const char *)Node.getText(); | 73 | os << (const char *)Node.getText(); |
741 | @@ -75,51 +75,39 @@ | |||
742 | 75 | os >> RetVal; | 75 | os >> RetVal; |
743 | 76 | if (os.fail()) | 76 | if (os.fail()) |
744 | 77 | { | 77 | { |
745 | 78 | Ret=false; | ||
746 | 79 | std::cerr << "Error parsing value '"; | 78 | std::cerr << "Error parsing value '"; |
747 | 80 | if (Node.getText()) | 79 | if (Node.getText()) |
748 | 81 | std::cerr << Node.getText(); | 80 | std::cerr << Node.getText(); |
749 | 82 | std::cerr << "'" << std::endl; | 81 | std::cerr << "'" << std::endl; |
750 | 83 | } | 82 | } |
751 | 84 | |||
752 | 85 | return Ret; | ||
753 | 86 | } | 83 | } |
754 | 87 | 84 | ||
755 | 88 | template<typename T> | 85 | template<typename T> |
757 | 89 | bool ProcessItem(const std::string& Text, T& RetVal) | 86 | void ProcessItem(const std::string& Text, T& RetVal) |
758 | 90 | { | 87 | { |
759 | 91 | bool Ret=true; | ||
760 | 92 | |||
761 | 93 | std::stringstream os; | 88 | std::stringstream os; |
762 | 94 | os << Text; | 89 | os << Text; |
763 | 95 | 90 | ||
764 | 96 | os >> RetVal; | 91 | os >> RetVal; |
765 | 97 | if (os.fail()) | 92 | if (os.fail()) |
766 | 98 | { | 93 | { |
767 | 99 | Ret=false; | ||
768 | 100 | std::cerr << "Error parsing value '" << Text << "'" << std::endl; | 94 | std::cerr << "Error parsing value '" << Text << "'" << std::endl; |
769 | 101 | } | 95 | } |
770 | 102 | |||
771 | 103 | return Ret; | ||
772 | 104 | } | 96 | } |
773 | 105 | 97 | ||
775 | 106 | bool ProcessItem(const XMLNode& Node, std::string& RetVal) | 98 | void ProcessItem(const XMLNode& Node, std::string& RetVal) |
776 | 107 | { | 99 | { |
777 | 108 | if (Node.getText()) | 100 | if (Node.getText()) |
778 | 109 | RetVal=Node.getText(); | 101 | RetVal=Node.getText(); |
779 | 110 | |||
780 | 111 | return true; | ||
781 | 112 | |||
782 | 113 | } | 102 | } |
783 | 114 | 103 | ||
786 | 115 | virtual bool ParseAttribute(const std::string& Name, const std::string& Value)=0; | 104 | virtual void ParseAttribute(const std::string& Name, const std::string& Value)=0; |
787 | 116 | virtual bool ParseElement(const XMLNode& Node)=0; | 105 | virtual void ParseElement(const XMLNode& Node)=0; |
788 | 117 | 106 | ||
789 | 118 | private: | 107 | private: |
790 | 119 | CEntityPrivate *m_d; | 108 | CEntityPrivate *m_d; |
791 | 120 | 109 | ||
792 | 121 | void Cleanup(); | 110 | void Cleanup(); |
793 | 122 | |||
794 | 123 | }; | 111 | }; |
795 | 124 | } | 112 | } |
796 | 125 | 113 | ||
797 | 126 | 114 | ||
798 | === modified file 'include/musicbrainz4/FreeDBDisc.h' | |||
799 | --- include/musicbrainz4/FreeDBDisc.h 2012-02-01 17:18:10 +0000 | |||
800 | +++ include/musicbrainz4/FreeDBDisc.h 2012-06-25 05:56:21 +0000 | |||
801 | @@ -18,7 +18,7 @@ | |||
802 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
803 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
804 | 20 | 20 | ||
806 | 21 | $Id: FreeDBDisc.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
807 | 22 | 22 | ||
808 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
809 | 24 | 24 | ||
810 | @@ -58,8 +58,8 @@ | |||
811 | 58 | static std::string GetElementName(); | 58 | static std::string GetElementName(); |
812 | 59 | 59 | ||
813 | 60 | protected: | 60 | protected: |
816 | 61 | virtual bool ParseAttribute(const std::string& Name, const std::string& Value); | 61 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); |
817 | 62 | virtual bool ParseElement(const XMLNode& Node); | 62 | virtual void ParseElement(const XMLNode& Node); |
818 | 63 | 63 | ||
819 | 64 | private: | 64 | private: |
820 | 65 | void Cleanup(); | 65 | void Cleanup(); |
821 | 66 | 66 | ||
822 | === modified file 'include/musicbrainz4/FreeDBDiscList.h' | |||
823 | --- include/musicbrainz4/FreeDBDiscList.h 2012-02-01 17:18:10 +0000 | |||
824 | +++ include/musicbrainz4/FreeDBDiscList.h 2012-06-25 05:56:21 +0000 | |||
825 | @@ -18,7 +18,7 @@ | |||
826 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
827 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
828 | 20 | 20 | ||
830 | 21 | $Id: FreeDBDiscList.h 13254 2011-08-09 09:29:20Z adhawkins $ | 21 | $Id$ |
831 | 22 | 22 | ||
832 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
833 | 24 | 24 | ||
834 | 25 | 25 | ||
835 | === modified file 'include/musicbrainz4/HTTPFetch.h' | |||
836 | --- include/musicbrainz4/HTTPFetch.h 2012-02-01 17:18:10 +0000 | |||
837 | +++ include/musicbrainz4/HTTPFetch.h 2012-06-25 05:56:21 +0000 | |||
838 | @@ -18,7 +18,7 @@ | |||
839 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
840 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
841 | 20 | 20 | ||
843 | 21 | $Id: HTTPFetch.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
844 | 22 | 22 | ||
845 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
846 | 24 | 24 | ||
847 | 25 | 25 | ||
848 | === added file 'include/musicbrainz4/IPI.h' | |||
849 | --- include/musicbrainz4/IPI.h 1970-01-01 00:00:00 +0000 | |||
850 | +++ include/musicbrainz4/IPI.h 2012-06-25 05:56:21 +0000 | |||
851 | @@ -0,0 +1,63 @@ | |||
852 | 1 | /* -------------------------------------------------------------------------- | ||
853 | 2 | |||
854 | 3 | libmusicbrainz4 - Client library to access MusicBrainz | ||
855 | 4 | |||
856 | 5 | Copyright (C) 2012 Andrew Hawkins | ||
857 | 6 | |||
858 | 7 | This file is part of libmusicbrainz4. | ||
859 | 8 | |||
860 | 9 | This library is free software; you can redistribute it and/or | ||
861 | 10 | modify it under the terms of v2 of the GNU Lesser General Public | ||
862 | 11 | License as published by the Free Software Foundation. | ||
863 | 12 | |||
864 | 13 | libmusicbrainz4 is distributed in the hope that it will be useful, | ||
865 | 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
866 | 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
867 | 16 | Lesser General Public License for more details. | ||
868 | 17 | |||
869 | 18 | You should have received a copy of the GNU General Public License | ||
870 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
871 | 20 | |||
872 | 21 | $Id$ | ||
873 | 22 | |||
874 | 23 | ----------------------------------------------------------------------------*/ | ||
875 | 24 | |||
876 | 25 | #ifndef _MUSICBRAINZ4_IPI_H | ||
877 | 26 | #define _MUSICBRAINZ4_IPI_H | ||
878 | 27 | |||
879 | 28 | #include <string> | ||
880 | 29 | #include <iostream> | ||
881 | 30 | |||
882 | 31 | #include "musicbrainz4/Entity.h" | ||
883 | 32 | |||
884 | 33 | #include "musicbrainz4/xmlParser.h" | ||
885 | 34 | |||
886 | 35 | namespace MusicBrainz4 | ||
887 | 36 | { | ||
888 | 37 | class CIPIPrivate; | ||
889 | 38 | |||
890 | 39 | class CIPI: public CEntity | ||
891 | 40 | { | ||
892 | 41 | public: | ||
893 | 42 | CIPI(const XMLNode& Node=XMLNode::emptyNode()); | ||
894 | 43 | CIPI(const CIPI& Other); | ||
895 | 44 | CIPI& operator =(const CIPI& Other); | ||
896 | 45 | virtual ~CIPI(); | ||
897 | 46 | |||
898 | 47 | virtual CIPI *Clone(); | ||
899 | 48 | |||
900 | 49 | std::string IPI() const; | ||
901 | 50 | |||
902 | 51 | virtual std::ostream& Serialise(std::ostream& os) const; | ||
903 | 52 | static std::string GetElementName(); | ||
904 | 53 | |||
905 | 54 | protected: | ||
906 | 55 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); | ||
907 | 56 | virtual void ParseElement(const XMLNode& Node); | ||
908 | 57 | |||
909 | 58 | private: | ||
910 | 59 | CIPIPrivate * const m_d; | ||
911 | 60 | }; | ||
912 | 61 | } | ||
913 | 62 | |||
914 | 63 | #endif | ||
915 | 0 | 64 | ||
916 | === added file 'include/musicbrainz4/IPIList.h' | |||
917 | --- include/musicbrainz4/IPIList.h 1970-01-01 00:00:00 +0000 | |||
918 | +++ include/musicbrainz4/IPIList.h 2012-06-25 05:56:21 +0000 | |||
919 | @@ -0,0 +1,37 @@ | |||
920 | 1 | /* -------------------------------------------------------------------------- | ||
921 | 2 | |||
922 | 3 | libmusicbrainz4 - Client library to access MusicBrainz | ||
923 | 4 | |||
924 | 5 | Copyright (C) 2011 Andrew Hawkins | ||
925 | 6 | |||
926 | 7 | This file is part of libmusicbrainz4. | ||
927 | 8 | |||
928 | 9 | This library is free software; you can redistribute it and/or | ||
929 | 10 | modify it under the terms of v2 of the GNU Lesser General Public | ||
930 | 11 | License as published by the Free Software Foundation. | ||
931 | 12 | |||
932 | 13 | libmusicbrainz4 is distributed in the hope that it will be useful, | ||
933 | 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
934 | 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
935 | 16 | Lesser General Public License for more details. | ||
936 | 17 | |||
937 | 18 | You should have received a copy of the GNU General Public License | ||
938 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
939 | 20 | |||
940 | 21 | $Id$ | ||
941 | 22 | |||
942 | 23 | ----------------------------------------------------------------------------*/ | ||
943 | 24 | |||
944 | 25 | #ifndef _MUSICBRAINZ4_IPI_LIST_H | ||
945 | 26 | #define _MUSICBRAINZ4_IPI_LIST_H | ||
946 | 27 | |||
947 | 28 | #include "musicbrainz4/ListImpl.h" | ||
948 | 29 | |||
949 | 30 | namespace MusicBrainz4 | ||
950 | 31 | { | ||
951 | 32 | class CIPI; | ||
952 | 33 | |||
953 | 34 | typedef CListImpl<CIPI> CIPIList; | ||
954 | 35 | } | ||
955 | 36 | |||
956 | 37 | #endif | ||
957 | 0 | 38 | ||
958 | === modified file 'include/musicbrainz4/ISRC.h' | |||
959 | --- include/musicbrainz4/ISRC.h 2012-02-01 17:18:10 +0000 | |||
960 | +++ include/musicbrainz4/ISRC.h 2012-06-25 05:56:21 +0000 | |||
961 | @@ -18,7 +18,7 @@ | |||
962 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
963 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
964 | 20 | 20 | ||
966 | 21 | $Id: ISRC.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
967 | 22 | 22 | ||
968 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
969 | 24 | 24 | ||
970 | @@ -51,8 +51,8 @@ | |||
971 | 51 | static std::string GetElementName(); | 51 | static std::string GetElementName(); |
972 | 52 | 52 | ||
973 | 53 | protected: | 53 | protected: |
976 | 54 | virtual bool ParseAttribute(const std::string& Name, const std::string& Value); | 54 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); |
977 | 55 | virtual bool ParseElement(const XMLNode& Node); | 55 | virtual void ParseElement(const XMLNode& Node); |
978 | 56 | 56 | ||
979 | 57 | private: | 57 | private: |
980 | 58 | void Cleanup(); | 58 | void Cleanup(); |
981 | 59 | 59 | ||
982 | === modified file 'include/musicbrainz4/ISRCList.h' | |||
983 | --- include/musicbrainz4/ISRCList.h 2012-02-01 17:18:10 +0000 | |||
984 | +++ include/musicbrainz4/ISRCList.h 2012-06-25 05:56:21 +0000 | |||
985 | @@ -18,7 +18,7 @@ | |||
986 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
987 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
988 | 20 | 20 | ||
990 | 21 | $Id: ISRCList.h 13254 2011-08-09 09:29:20Z adhawkins $ | 21 | $Id$ |
991 | 22 | 22 | ||
992 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
993 | 24 | 24 | ||
994 | 25 | 25 | ||
995 | === added file 'include/musicbrainz4/ISWC.h' | |||
996 | --- include/musicbrainz4/ISWC.h 1970-01-01 00:00:00 +0000 | |||
997 | +++ include/musicbrainz4/ISWC.h 2012-06-25 05:56:21 +0000 | |||
998 | @@ -0,0 +1,65 @@ | |||
999 | 1 | /* -------------------------------------------------------------------------- | ||
1000 | 2 | |||
1001 | 3 | libmusicbrainz4 - Client library to access MusicBrainz | ||
1002 | 4 | |||
1003 | 5 | Copyright (C) 2012 Andrew Hawkins | ||
1004 | 6 | |||
1005 | 7 | This file is part of libmusicbrainz4. | ||
1006 | 8 | |||
1007 | 9 | This library is free software; you can redistribute it and/or | ||
1008 | 10 | modify it under the terms of v2 of the GNU Lesser General Public | ||
1009 | 11 | License as published by the Free Software Foundation. | ||
1010 | 12 | |||
1011 | 13 | libmusicbrainz4 is distributed in the hope that it will be useful, | ||
1012 | 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
1013 | 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
1014 | 16 | Lesser General Public License for more details. | ||
1015 | 17 | |||
1016 | 18 | You should have received a copy of the GNU General Public License | ||
1017 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
1018 | 20 | |||
1019 | 21 | $Id$ | ||
1020 | 22 | |||
1021 | 23 | ----------------------------------------------------------------------------*/ | ||
1022 | 24 | |||
1023 | 25 | #ifndef _MUSICBRAINZ4_ISWC_H | ||
1024 | 26 | #define _MUSICBRAINZ4_ISWC_H | ||
1025 | 27 | |||
1026 | 28 | #include <string> | ||
1027 | 29 | #include <iostream> | ||
1028 | 30 | |||
1029 | 31 | #include "musicbrainz4/Entity.h" | ||
1030 | 32 | |||
1031 | 33 | #include "musicbrainz4/xmlParser.h" | ||
1032 | 34 | |||
1033 | 35 | namespace MusicBrainz4 | ||
1034 | 36 | { | ||
1035 | 37 | class CISWCPrivate; | ||
1036 | 38 | |||
1037 | 39 | class CISWC: public CEntity | ||
1038 | 40 | { | ||
1039 | 41 | public: | ||
1040 | 42 | CISWC(const XMLNode& Node=XMLNode::emptyNode()); | ||
1041 | 43 | CISWC(const CISWC& Other); | ||
1042 | 44 | CISWC& operator =(const CISWC& Other); | ||
1043 | 45 | virtual ~CISWC(); | ||
1044 | 46 | |||
1045 | 47 | virtual CISWC *Clone(); | ||
1046 | 48 | |||
1047 | 49 | std::string ISWC() const; | ||
1048 | 50 | |||
1049 | 51 | virtual std::ostream& Serialise(std::ostream& os) const; | ||
1050 | 52 | static std::string GetElementName(); | ||
1051 | 53 | |||
1052 | 54 | protected: | ||
1053 | 55 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); | ||
1054 | 56 | virtual void ParseElement(const XMLNode& Node); | ||
1055 | 57 | |||
1056 | 58 | private: | ||
1057 | 59 | void Cleanup(); | ||
1058 | 60 | |||
1059 | 61 | CISWCPrivate * const m_d; | ||
1060 | 62 | }; | ||
1061 | 63 | } | ||
1062 | 64 | |||
1063 | 65 | #endif | ||
1064 | 0 | 66 | ||
1065 | === added file 'include/musicbrainz4/ISWCList.h' | |||
1066 | --- include/musicbrainz4/ISWCList.h 1970-01-01 00:00:00 +0000 | |||
1067 | +++ include/musicbrainz4/ISWCList.h 2012-06-25 05:56:21 +0000 | |||
1068 | @@ -0,0 +1,62 @@ | |||
1069 | 1 | /* -------------------------------------------------------------------------- | ||
1070 | 2 | |||
1071 | 3 | libmusicbrainz4 - Client library to access MusicBrainz | ||
1072 | 4 | |||
1073 | 5 | Copyright (C) 2012 Andrew Hawkins | ||
1074 | 6 | |||
1075 | 7 | This file is part of libmusicbrainz4. | ||
1076 | 8 | |||
1077 | 9 | This library is free software; you can redistribute it and/or | ||
1078 | 10 | modify it under the terms of v2 of the GNU Lesser General Public | ||
1079 | 11 | License as published by the Free Software Foundation. | ||
1080 | 12 | |||
1081 | 13 | libmusicbrainz4 is distributed in the hope that it will be useful, | ||
1082 | 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
1083 | 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
1084 | 16 | Lesser General Public License for more details. | ||
1085 | 17 | |||
1086 | 18 | You should have received a copy of the GNU General Public License | ||
1087 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
1088 | 20 | |||
1089 | 21 | $Id$ | ||
1090 | 22 | |||
1091 | 23 | ----------------------------------------------------------------------------*/ | ||
1092 | 24 | |||
1093 | 25 | #ifndef _MUSICBRAINZ4_ISWC_LIST_H | ||
1094 | 26 | #define _MUSICBRAINZ4_ISWC_LIST_H | ||
1095 | 27 | |||
1096 | 28 | #include <string> | ||
1097 | 29 | #include <iostream> | ||
1098 | 30 | |||
1099 | 31 | #include "musicbrainz4/ListImpl.h" | ||
1100 | 32 | |||
1101 | 33 | #include "musicbrainz4/xmlParser.h" | ||
1102 | 34 | |||
1103 | 35 | namespace MusicBrainz4 | ||
1104 | 36 | { | ||
1105 | 37 | class CISWC; | ||
1106 | 38 | class CISWCListPrivate; | ||
1107 | 39 | |||
1108 | 40 | class CISWCList: public CListImpl<CISWC> | ||
1109 | 41 | { | ||
1110 | 42 | public: | ||
1111 | 43 | CISWCList(const XMLNode& Node=XMLNode::emptyNode()); | ||
1112 | 44 | CISWCList(const CISWCList& Other); | ||
1113 | 45 | CISWCList& operator =(const CISWCList& Other); | ||
1114 | 46 | virtual ~CISWCList(); | ||
1115 | 47 | |||
1116 | 48 | virtual CISWCList *Clone(); | ||
1117 | 49 | |||
1118 | 50 | virtual std::ostream& Serialise(std::ostream& os) const; | ||
1119 | 51 | static std::string GetElementName(); | ||
1120 | 52 | |||
1121 | 53 | protected: | ||
1122 | 54 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); | ||
1123 | 55 | virtual void ParseElement(const XMLNode& Node); | ||
1124 | 56 | |||
1125 | 57 | private: | ||
1126 | 58 | CISWCListPrivate * const m_d; | ||
1127 | 59 | }; | ||
1128 | 60 | } | ||
1129 | 61 | |||
1130 | 62 | #endif | ||
1131 | 0 | 63 | ||
1132 | === modified file 'include/musicbrainz4/Label.h' | |||
1133 | --- include/musicbrainz4/Label.h 2012-02-01 17:18:10 +0000 | |||
1134 | +++ include/musicbrainz4/Label.h 2012-06-25 05:56:21 +0000 | |||
1135 | @@ -18,7 +18,7 @@ | |||
1136 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
1137 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
1138 | 20 | 20 | ||
1140 | 21 | $Id: Label.h 13265 2011-08-25 12:53:44Z adhawkins $ | 21 | $Id$ |
1141 | 22 | 22 | ||
1142 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
1143 | 24 | 24 | ||
1144 | @@ -29,6 +29,7 @@ | |||
1145 | 29 | #include <iostream> | 29 | #include <iostream> |
1146 | 30 | 30 | ||
1147 | 31 | #include "musicbrainz4/Entity.h" | 31 | #include "musicbrainz4/Entity.h" |
1148 | 32 | #include "musicbrainz4/IPIList.h" | ||
1149 | 32 | #include "musicbrainz4/ReleaseList.h" | 33 | #include "musicbrainz4/ReleaseList.h" |
1150 | 33 | #include "musicbrainz4/AliasList.h" | 34 | #include "musicbrainz4/AliasList.h" |
1151 | 34 | #include "musicbrainz4/RelationList.h" | 35 | #include "musicbrainz4/RelationList.h" |
1152 | @@ -60,13 +61,39 @@ | |||
1153 | 60 | std::string Name() const; | 61 | std::string Name() const; |
1154 | 61 | std::string SortName() const; | 62 | std::string SortName() const; |
1155 | 62 | int LabelCode() const; | 63 | int LabelCode() const; |
1157 | 63 | std::string IPI() const; | 64 | |
1158 | 65 | /** | ||
1159 | 66 | * @deprecated Returns one of the IPIs for this label | ||
1160 | 67 | * | ||
1161 | 68 | * Returns one of the IPIs for this label. To return all | ||
1162 | 69 | * IPIs, see MusicBrainz4::CLabel::IPIList | ||
1163 | 70 | * | ||
1164 | 71 | * <b>This method is deprecated, please use MusicBrainz4::CLabel::IPIList</b> | ||
1165 | 72 | * | ||
1166 | 73 | * @return One of the IPIs for this label | ||
1167 | 74 | */ | ||
1168 | 75 | |||
1169 | 76 | LIBMB4_DEPRECATED(MusicBrainz4::CLabel::IPIList) std::string IPI() const; | ||
1170 | 77 | CIPIList *IPIList() const; | ||
1171 | 64 | std::string Disambiguation() const; | 78 | std::string Disambiguation() const; |
1172 | 65 | std::string Country() const; | 79 | std::string Country() const; |
1173 | 66 | CLifespan *Lifespan() const; | 80 | CLifespan *Lifespan() const; |
1174 | 67 | CAliasList *AliasList() const; | 81 | CAliasList *AliasList() const; |
1175 | 68 | CReleaseList *ReleaseList() const; | 82 | CReleaseList *ReleaseList() const; |
1177 | 69 | CRelationList *RelationList() const; | 83 | |
1178 | 84 | /** | ||
1179 | 85 | * @deprecated Returns the <b>last</b> relation list for this label | ||
1180 | 86 | * | ||
1181 | 87 | * Returns the <b>last</b> relation list for this label. To return all | ||
1182 | 88 | * relation lists, see MusicBrainz4::CLabel::RelationListList | ||
1183 | 89 | * | ||
1184 | 90 | * <b>This method is deprecated, please use MusicBrainz4::CLabel::RelationListList</b> | ||
1185 | 91 | * | ||
1186 | 92 | * @return The <b>last</b> relation list for this label | ||
1187 | 93 | */ | ||
1188 | 94 | |||
1189 | 95 | LIBMB4_DEPRECATED(MusicBrainz4::CLabel::RelationListList) CRelationList *RelationList() const; | ||
1190 | 96 | CRelationListList *RelationListList() const; | ||
1191 | 70 | CTagList *TagList() const; | 97 | CTagList *TagList() const; |
1192 | 71 | CUserTagList *UserTagList() const; | 98 | CUserTagList *UserTagList() const; |
1193 | 72 | CRating *Rating() const; | 99 | CRating *Rating() const; |
1194 | @@ -76,8 +103,8 @@ | |||
1195 | 76 | static std::string GetElementName(); | 103 | static std::string GetElementName(); |
1196 | 77 | 104 | ||
1197 | 78 | protected: | 105 | protected: |
1200 | 79 | virtual bool ParseAttribute(const std::string& Name, const std::string& Value); | 106 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); |
1201 | 80 | virtual bool ParseElement(const XMLNode& Node); | 107 | virtual void ParseElement(const XMLNode& Node); |
1202 | 81 | 108 | ||
1203 | 82 | private: | 109 | private: |
1204 | 83 | void Cleanup(); | 110 | void Cleanup(); |
1205 | 84 | 111 | ||
1206 | === modified file 'include/musicbrainz4/LabelInfo.h' | |||
1207 | --- include/musicbrainz4/LabelInfo.h 2012-02-01 17:18:10 +0000 | |||
1208 | +++ include/musicbrainz4/LabelInfo.h 2012-06-25 05:56:21 +0000 | |||
1209 | @@ -18,7 +18,7 @@ | |||
1210 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
1211 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
1212 | 20 | 20 | ||
1214 | 21 | $Id: LabelInfo.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
1215 | 22 | 22 | ||
1216 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
1217 | 24 | 24 | ||
1218 | @@ -55,8 +55,8 @@ | |||
1219 | 55 | static std::string GetElementName(); | 55 | static std::string GetElementName(); |
1220 | 56 | 56 | ||
1221 | 57 | protected: | 57 | protected: |
1224 | 58 | virtual bool ParseAttribute(const std::string& Name, const std::string& Value); | 58 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); |
1225 | 59 | virtual bool ParseElement(const XMLNode& Node); | 59 | virtual void ParseElement(const XMLNode& Node); |
1226 | 60 | 60 | ||
1227 | 61 | private: | 61 | private: |
1228 | 62 | void Cleanup(); | 62 | void Cleanup(); |
1229 | 63 | 63 | ||
1230 | === modified file 'include/musicbrainz4/LabelInfoList.h' | |||
1231 | --- include/musicbrainz4/LabelInfoList.h 2012-02-01 17:18:10 +0000 | |||
1232 | +++ include/musicbrainz4/LabelInfoList.h 2012-06-25 05:56:21 +0000 | |||
1233 | @@ -18,7 +18,7 @@ | |||
1234 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
1235 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
1236 | 20 | 20 | ||
1238 | 21 | $Id: LabelInfoList.h 13254 2011-08-09 09:29:20Z adhawkins $ | 21 | $Id$ |
1239 | 22 | 22 | ||
1240 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
1241 | 24 | 24 | ||
1242 | 25 | 25 | ||
1243 | === modified file 'include/musicbrainz4/LabelList.h' | |||
1244 | --- include/musicbrainz4/LabelList.h 2012-02-01 17:18:10 +0000 | |||
1245 | +++ include/musicbrainz4/LabelList.h 2012-06-25 05:56:21 +0000 | |||
1246 | @@ -18,7 +18,7 @@ | |||
1247 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
1248 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
1249 | 20 | 20 | ||
1251 | 21 | $Id: LabelList.h 13254 2011-08-09 09:29:20Z adhawkins $ | 21 | $Id$ |
1252 | 22 | 22 | ||
1253 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
1254 | 24 | 24 | ||
1255 | 25 | 25 | ||
1256 | === modified file 'include/musicbrainz4/Lifespan.h' | |||
1257 | --- include/musicbrainz4/Lifespan.h 2012-02-01 17:18:10 +0000 | |||
1258 | +++ include/musicbrainz4/Lifespan.h 2012-06-25 05:56:21 +0000 | |||
1259 | @@ -18,7 +18,7 @@ | |||
1260 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
1261 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
1262 | 20 | 20 | ||
1264 | 21 | $Id: Lifespan.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
1265 | 22 | 22 | ||
1266 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
1267 | 24 | 24 | ||
1268 | @@ -48,13 +48,14 @@ | |||
1269 | 48 | 48 | ||
1270 | 49 | std::string Begin() const; | 49 | std::string Begin() const; |
1271 | 50 | std::string End() const; | 50 | std::string End() const; |
1272 | 51 | std::string Ended() const; | ||
1273 | 51 | 52 | ||
1274 | 52 | virtual std::ostream& Serialise(std::ostream& os) const; | 53 | virtual std::ostream& Serialise(std::ostream& os) const; |
1275 | 53 | static std::string GetElementName(); | 54 | static std::string GetElementName(); |
1276 | 54 | 55 | ||
1277 | 55 | protected: | 56 | protected: |
1280 | 56 | virtual bool ParseAttribute(const std::string& Name, const std::string& Value); | 57 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); |
1281 | 57 | virtual bool ParseElement(const XMLNode& Node); | 58 | virtual void ParseElement(const XMLNode& Node); |
1282 | 58 | 59 | ||
1283 | 59 | private: | 60 | private: |
1284 | 60 | CLifespanPrivate * const m_d; | 61 | CLifespanPrivate * const m_d; |
1285 | 61 | 62 | ||
1286 | === modified file 'include/musicbrainz4/List.h' | |||
1287 | --- include/musicbrainz4/List.h 2012-02-01 17:18:10 +0000 | |||
1288 | +++ include/musicbrainz4/List.h 2012-06-25 05:56:21 +0000 | |||
1289 | @@ -18,7 +18,7 @@ | |||
1290 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
1291 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
1292 | 20 | 20 | ||
1294 | 21 | $Id: List.h 13254 2011-08-09 09:29:20Z adhawkins $ | 21 | $Id$ |
1295 | 22 | 22 | ||
1296 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
1297 | 24 | 24 | ||
1298 | @@ -51,8 +51,8 @@ | |||
1299 | 51 | static std::string GetElementName(); | 51 | static std::string GetElementName(); |
1300 | 52 | 52 | ||
1301 | 53 | protected: | 53 | protected: |
1304 | 54 | virtual bool ParseAttribute(const std::string& Name, const std::string& Value); | 54 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); |
1305 | 55 | virtual bool ParseElement(const XMLNode& Node); | 55 | virtual void ParseElement(const XMLNode& Node); |
1306 | 56 | 56 | ||
1307 | 57 | void AddItem(CEntity *Item); | 57 | void AddItem(CEntity *Item); |
1308 | 58 | CEntity *Item(int Item) const; | 58 | CEntity *Item(int Item) const; |
1309 | 59 | 59 | ||
1310 | === modified file 'include/musicbrainz4/ListImpl.h' | |||
1311 | --- include/musicbrainz4/ListImpl.h 2012-02-01 17:18:10 +0000 | |||
1312 | +++ include/musicbrainz4/ListImpl.h 2012-06-25 05:56:21 +0000 | |||
1313 | @@ -18,7 +18,7 @@ | |||
1314 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
1315 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
1316 | 20 | 20 | ||
1318 | 21 | $Id: ListImpl.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
1319 | 22 | 22 | ||
1320 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
1321 | 24 | 24 | ||
1322 | @@ -101,26 +101,20 @@ | |||
1323 | 101 | } | 101 | } |
1324 | 102 | 102 | ||
1325 | 103 | protected: | 103 | protected: |
1327 | 104 | bool ParseElement(const XMLNode& Node) | 104 | void ParseElement(const XMLNode& Node) |
1328 | 105 | { | 105 | { |
1329 | 106 | bool RetVal=true; | ||
1330 | 107 | |||
1331 | 108 | std::string NodeName=Node.getName(); | 106 | std::string NodeName=Node.getName(); |
1332 | 109 | 107 | ||
1333 | 110 | if (T::GetElementName()==NodeName) | 108 | if (T::GetElementName()==NodeName) |
1334 | 111 | { | 109 | { |
1335 | 112 | T *Item=0; | 110 | T *Item=0; |
1336 | 113 | 111 | ||
1340 | 114 | RetVal=ProcessItem(Node,Item); | 112 | ProcessItem(Node,Item); |
1341 | 115 | if (RetVal) | 113 | AddItem(Item); |
1339 | 116 | AddItem(Item); | ||
1342 | 117 | } | 114 | } |
1343 | 118 | else | 115 | else |
1347 | 119 | RetVal=CList::ParseElement(Node); | 116 | CList::ParseElement(Node); |
1345 | 120 | |||
1346 | 121 | return RetVal; | ||
1348 | 122 | } | 117 | } |
1349 | 123 | |||
1350 | 124 | }; | 118 | }; |
1351 | 125 | } | 119 | } |
1352 | 126 | 120 | ||
1353 | 127 | 121 | ||
1354 | === modified file 'include/musicbrainz4/Medium.h' | |||
1355 | --- include/musicbrainz4/Medium.h 2012-02-01 17:18:10 +0000 | |||
1356 | +++ include/musicbrainz4/Medium.h 2012-06-25 05:56:21 +0000 | |||
1357 | @@ -18,7 +18,7 @@ | |||
1358 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
1359 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
1360 | 20 | 20 | ||
1362 | 21 | $Id: Medium.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
1363 | 22 | 22 | ||
1364 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
1365 | 24 | 24 | ||
1366 | @@ -60,8 +60,8 @@ | |||
1367 | 60 | static std::string GetElementName(); | 60 | static std::string GetElementName(); |
1368 | 61 | 61 | ||
1369 | 62 | protected: | 62 | protected: |
1372 | 63 | virtual bool ParseAttribute(const std::string& Name, const std::string& Value); | 63 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); |
1373 | 64 | virtual bool ParseElement(const XMLNode& Node); | 64 | virtual void ParseElement(const XMLNode& Node); |
1374 | 65 | 65 | ||
1375 | 66 | private: | 66 | private: |
1376 | 67 | void Cleanup(); | 67 | void Cleanup(); |
1377 | 68 | 68 | ||
1378 | === modified file 'include/musicbrainz4/MediumList.h' | |||
1379 | --- include/musicbrainz4/MediumList.h 2012-02-01 17:18:10 +0000 | |||
1380 | +++ include/musicbrainz4/MediumList.h 2012-06-25 05:56:21 +0000 | |||
1381 | @@ -18,7 +18,7 @@ | |||
1382 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
1383 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
1384 | 20 | 20 | ||
1386 | 21 | $Id: MediumList.h 13254 2011-08-09 09:29:20Z adhawkins $ | 21 | $Id$ |
1387 | 22 | 22 | ||
1388 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
1389 | 24 | 24 | ||
1390 | @@ -53,8 +53,8 @@ | |||
1391 | 53 | static std::string GetElementName(); | 53 | static std::string GetElementName(); |
1392 | 54 | 54 | ||
1393 | 55 | protected: | 55 | protected: |
1396 | 56 | virtual bool ParseAttribute(const std::string& Name, const std::string& Value); | 56 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); |
1397 | 57 | virtual bool ParseElement(const XMLNode& Node); | 57 | virtual void ParseElement(const XMLNode& Node); |
1398 | 58 | 58 | ||
1399 | 59 | private: | 59 | private: |
1400 | 60 | CMediumListPrivate * const m_d; | 60 | CMediumListPrivate * const m_d; |
1401 | 61 | 61 | ||
1402 | === modified file 'include/musicbrainz4/Message.h' | |||
1403 | --- include/musicbrainz4/Message.h 2012-02-01 17:18:10 +0000 | |||
1404 | +++ include/musicbrainz4/Message.h 2012-06-25 05:56:21 +0000 | |||
1405 | @@ -18,7 +18,7 @@ | |||
1406 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
1407 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
1408 | 20 | 20 | ||
1410 | 21 | $Id: Message.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
1411 | 22 | 22 | ||
1412 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
1413 | 24 | 24 | ||
1414 | @@ -52,8 +52,8 @@ | |||
1415 | 52 | static std::string GetElementName(); | 52 | static std::string GetElementName(); |
1416 | 53 | 53 | ||
1417 | 54 | protected: | 54 | protected: |
1420 | 55 | virtual bool ParseAttribute(const std::string& Name, const std::string& Value); | 55 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); |
1421 | 56 | virtual bool ParseElement(const XMLNode& Node); | 56 | virtual void ParseElement(const XMLNode& Node); |
1422 | 57 | 57 | ||
1423 | 58 | private: | 58 | private: |
1424 | 59 | CMessagePrivate * const m_d; | 59 | CMessagePrivate * const m_d; |
1425 | 60 | 60 | ||
1426 | === modified file 'include/musicbrainz4/Metadata.h' | |||
1427 | --- include/musicbrainz4/Metadata.h 2012-02-01 17:18:10 +0000 | |||
1428 | +++ include/musicbrainz4/Metadata.h 2012-06-25 05:56:21 +0000 | |||
1429 | @@ -18,7 +18,7 @@ | |||
1430 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
1431 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
1432 | 20 | 20 | ||
1434 | 21 | $Id: Metadata.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
1435 | 22 | 22 | ||
1436 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
1437 | 24 | 24 | ||
1438 | @@ -112,8 +112,8 @@ | |||
1439 | 112 | static std::string GetElementName(); | 112 | static std::string GetElementName(); |
1440 | 113 | 113 | ||
1441 | 114 | protected: | 114 | protected: |
1444 | 115 | virtual bool ParseAttribute(const std::string& Name, const std::string& Value); | 115 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); |
1445 | 116 | virtual bool ParseElement(const XMLNode& Node); | 116 | virtual void ParseElement(const XMLNode& Node); |
1446 | 117 | 117 | ||
1447 | 118 | private: | 118 | private: |
1448 | 119 | void Cleanup(); | 119 | void Cleanup(); |
1449 | 120 | 120 | ||
1450 | === modified file 'include/musicbrainz4/NameCredit.h' | |||
1451 | --- include/musicbrainz4/NameCredit.h 2012-02-01 17:18:10 +0000 | |||
1452 | +++ include/musicbrainz4/NameCredit.h 2012-06-25 05:56:21 +0000 | |||
1453 | @@ -18,7 +18,7 @@ | |||
1454 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
1455 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
1456 | 20 | 20 | ||
1458 | 21 | $Id: NameCredit.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
1459 | 22 | 22 | ||
1460 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
1461 | 24 | 24 | ||
1462 | @@ -56,8 +56,8 @@ | |||
1463 | 56 | static std::string GetElementName(); | 56 | static std::string GetElementName(); |
1464 | 57 | 57 | ||
1465 | 58 | protected: | 58 | protected: |
1468 | 59 | virtual bool ParseAttribute(const std::string& Name, const std::string& Value); | 59 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); |
1469 | 60 | virtual bool ParseElement(const XMLNode& Node); | 60 | virtual void ParseElement(const XMLNode& Node); |
1470 | 61 | 61 | ||
1471 | 62 | private: | 62 | private: |
1472 | 63 | void Cleanup(); | 63 | void Cleanup(); |
1473 | 64 | 64 | ||
1474 | === modified file 'include/musicbrainz4/NameCreditList.h' | |||
1475 | --- include/musicbrainz4/NameCreditList.h 2012-02-01 17:18:10 +0000 | |||
1476 | +++ include/musicbrainz4/NameCreditList.h 2012-06-25 05:56:21 +0000 | |||
1477 | @@ -18,7 +18,7 @@ | |||
1478 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
1479 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
1480 | 20 | 20 | ||
1482 | 21 | $Id: NameCreditList.h 13254 2011-08-09 09:29:20Z adhawkins $ | 21 | $Id$ |
1483 | 22 | 22 | ||
1484 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
1485 | 24 | 24 | ||
1486 | 25 | 25 | ||
1487 | === modified file 'include/musicbrainz4/NonMBTrack.h' | |||
1488 | --- include/musicbrainz4/NonMBTrack.h 2012-02-01 17:18:10 +0000 | |||
1489 | +++ include/musicbrainz4/NonMBTrack.h 2012-06-25 05:56:21 +0000 | |||
1490 | @@ -18,7 +18,7 @@ | |||
1491 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
1492 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
1493 | 20 | 20 | ||
1495 | 21 | $Id: NonMBTrack.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
1496 | 22 | 22 | ||
1497 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
1498 | 24 | 24 | ||
1499 | @@ -54,8 +54,8 @@ | |||
1500 | 54 | static std::string GetElementName(); | 54 | static std::string GetElementName(); |
1501 | 55 | 55 | ||
1502 | 56 | protected: | 56 | protected: |
1505 | 57 | virtual bool ParseAttribute(const std::string& Name, const std::string& Value); | 57 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); |
1506 | 58 | virtual bool ParseElement(const XMLNode& Node); | 58 | virtual void ParseElement(const XMLNode& Node); |
1507 | 59 | 59 | ||
1508 | 60 | private: | 60 | private: |
1509 | 61 | CNonMBTrackPrivate * const m_d; | 61 | CNonMBTrackPrivate * const m_d; |
1510 | 62 | 62 | ||
1511 | === modified file 'include/musicbrainz4/NonMBTrackList.h' | |||
1512 | --- include/musicbrainz4/NonMBTrackList.h 2012-02-01 17:18:10 +0000 | |||
1513 | +++ include/musicbrainz4/NonMBTrackList.h 2012-06-25 05:56:21 +0000 | |||
1514 | @@ -18,7 +18,7 @@ | |||
1515 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
1516 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
1517 | 20 | 20 | ||
1519 | 21 | $Id: NonMBTrackList.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
1520 | 22 | 22 | ||
1521 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
1522 | 24 | 24 | ||
1523 | 25 | 25 | ||
1524 | === modified file 'include/musicbrainz4/PUID.h' | |||
1525 | --- include/musicbrainz4/PUID.h 2012-02-01 17:18:10 +0000 | |||
1526 | +++ include/musicbrainz4/PUID.h 2012-06-25 05:56:21 +0000 | |||
1527 | @@ -18,7 +18,7 @@ | |||
1528 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
1529 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
1530 | 20 | 20 | ||
1532 | 21 | $Id: PUID.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
1533 | 22 | 22 | ||
1534 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
1535 | 24 | 24 | ||
1536 | @@ -53,8 +53,8 @@ | |||
1537 | 53 | static std::string GetElementName(); | 53 | static std::string GetElementName(); |
1538 | 54 | 54 | ||
1539 | 55 | protected: | 55 | protected: |
1542 | 56 | virtual bool ParseAttribute(const std::string& Name, const std::string& Value); | 56 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); |
1543 | 57 | virtual bool ParseElement(const XMLNode& Node); | 57 | virtual void ParseElement(const XMLNode& Node); |
1544 | 58 | 58 | ||
1545 | 59 | private: | 59 | private: |
1546 | 60 | void Cleanup(); | 60 | void Cleanup(); |
1547 | 61 | 61 | ||
1548 | === modified file 'include/musicbrainz4/PUIDList.h' | |||
1549 | --- include/musicbrainz4/PUIDList.h 2012-02-01 17:18:10 +0000 | |||
1550 | +++ include/musicbrainz4/PUIDList.h 2012-06-25 05:56:21 +0000 | |||
1551 | @@ -18,7 +18,7 @@ | |||
1552 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
1553 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
1554 | 20 | 20 | ||
1556 | 21 | $Id: PUIDList.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
1557 | 22 | 22 | ||
1558 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
1559 | 24 | 24 | ||
1560 | 25 | 25 | ||
1561 | === modified file 'include/musicbrainz4/Query.h' | |||
1562 | --- include/musicbrainz4/Query.h 2012-02-01 17:18:10 +0000 | |||
1563 | +++ include/musicbrainz4/Query.h 2012-06-25 05:56:21 +0000 | |||
1564 | @@ -18,13 +18,17 @@ | |||
1565 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
1566 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
1567 | 20 | 20 | ||
1569 | 21 | $Id: Query.h 13266 2011-08-25 12:56:47Z adhawkins $ | 21 | $Id$ |
1570 | 22 | 22 | ||
1571 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
1572 | 24 | 24 | ||
1573 | 25 | #ifndef _MUSICBRAINZ4_QUERY_H | 25 | #ifndef _MUSICBRAINZ4_QUERY_H |
1574 | 26 | #define _MUSICBRAINZ4_QUERY_H | 26 | #define _MUSICBRAINZ4_QUERY_H |
1575 | 27 | 27 | ||
1576 | 28 | #include "defines.h" | ||
1577 | 29 | |||
1578 | 30 | #include "Entity.h" | ||
1579 | 31 | |||
1580 | 28 | #include "musicbrainz4/ReleaseList.h" | 32 | #include "musicbrainz4/ReleaseList.h" |
1581 | 29 | #include "musicbrainz4/Metadata.h" | 33 | #include "musicbrainz4/Metadata.h" |
1582 | 30 | 34 | ||
1583 | @@ -47,6 +51,23 @@ | |||
1584 | 47 | * Please report any issues with this library at | 51 | * Please report any issues with this library at |
1585 | 48 | * <a target="_blank" href="http://tickets.musicbrainz.org/">http://tickets.musicbrainz.org/</a>. | 52 | * <a target="_blank" href="http://tickets.musicbrainz.org/">http://tickets.musicbrainz.org/</a>. |
1586 | 49 | * | 53 | * |
1587 | 54 | * @par Compiling and Linking | ||
1588 | 55 | * | ||
1589 | 56 | * This package provides a pkg-config script that returns the necessary compiler | ||
1590 | 57 | * and linker flags, as well as the version number. To build a small sample | ||
1591 | 58 | * program one would use: | ||
1592 | 59 | * | ||
1593 | 60 | * @par | ||
1594 | 61 | * <tt>g++ -o test_app test_app.cpp `pkg-config libmusicbrainz4 --cflags --libs`</tt> | ||
1595 | 62 | * | ||
1596 | 63 | * If you don't want/can't use pkg-config and you are using the C API, make sure | ||
1597 | 64 | * you link in the C++ standard library: | ||
1598 | 65 | * | ||
1599 | 66 | * @par | ||
1600 | 67 | * <tt>gcc -o test_app test_app.c -lmusicbrainz4 -lm -lstdc++</tt> | ||
1601 | 68 | * | ||
1602 | 69 | * @par Example: | ||
1603 | 70 | * | ||
1604 | 50 | * A brief example showing how to lookup a list of releases matching a disc id | 71 | * A brief example showing how to lookup a list of releases matching a disc id |
1605 | 51 | * | 72 | * |
1606 | 52 | @code | 73 | @code |
1607 | 53 | 74 | ||
1608 | === modified file 'include/musicbrainz4/Rating.h' | |||
1609 | --- include/musicbrainz4/Rating.h 2012-02-01 17:18:10 +0000 | |||
1610 | +++ include/musicbrainz4/Rating.h 2012-06-25 05:56:21 +0000 | |||
1611 | @@ -18,7 +18,7 @@ | |||
1612 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
1613 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
1614 | 20 | 20 | ||
1616 | 21 | $Id: Rating.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
1617 | 22 | 22 | ||
1618 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
1619 | 24 | 24 | ||
1620 | @@ -52,8 +52,8 @@ | |||
1621 | 52 | static std::string GetElementName(); | 52 | static std::string GetElementName(); |
1622 | 53 | 53 | ||
1623 | 54 | protected: | 54 | protected: |
1626 | 55 | virtual bool ParseAttribute(const std::string& Name, const std::string& Value); | 55 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); |
1627 | 56 | virtual bool ParseElement(const XMLNode& Node); | 56 | virtual void ParseElement(const XMLNode& Node); |
1628 | 57 | 57 | ||
1629 | 58 | private: | 58 | private: |
1630 | 59 | CRatingPrivate * const m_d; | 59 | CRatingPrivate * const m_d; |
1631 | 60 | 60 | ||
1632 | === modified file 'include/musicbrainz4/Recording.h' | |||
1633 | --- include/musicbrainz4/Recording.h 2012-02-01 17:18:10 +0000 | |||
1634 | +++ include/musicbrainz4/Recording.h 2012-06-25 05:56:21 +0000 | |||
1635 | @@ -18,7 +18,7 @@ | |||
1636 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
1637 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
1638 | 20 | 20 | ||
1640 | 21 | $Id: Recording.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
1641 | 22 | 22 | ||
1642 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
1643 | 24 | 24 | ||
1644 | @@ -69,7 +69,20 @@ | |||
1645 | 69 | CReleaseList *ReleaseList() const; | 69 | CReleaseList *ReleaseList() const; |
1646 | 70 | CPUIDList *PUIDList() const; | 70 | CPUIDList *PUIDList() const; |
1647 | 71 | CISRCList *ISRCList() const; | 71 | CISRCList *ISRCList() const; |
1649 | 72 | CRelationList *RelationList() const; | 72 | |
1650 | 73 | /** | ||
1651 | 74 | * @deprecated Returns the <b>last</b> relation list for this recording | ||
1652 | 75 | * | ||
1653 | 76 | * Returns the <b>last</b> relation list for this recording. To return all | ||
1654 | 77 | * relation lists, see MusicBrainz4::CRecording::RelationListList | ||
1655 | 78 | * | ||
1656 | 79 | * <b>This method is deprecated, please use MusicBrainz4::CRecording::RelationListList</b> | ||
1657 | 80 | * | ||
1658 | 81 | * @return The <b>last</b> relation list for this recording | ||
1659 | 82 | */ | ||
1660 | 83 | |||
1661 | 84 | LIBMB4_DEPRECATED(MusicBrainz4::CRecording::RelationListList) CRelationList *RelationList() const; | ||
1662 | 85 | CRelationListList *RelationListList() const; | ||
1663 | 73 | CTagList *TagList() const; | 86 | CTagList *TagList() const; |
1664 | 74 | CUserTagList *UserTagList() const; | 87 | CUserTagList *UserTagList() const; |
1665 | 75 | CRating *Rating() const; | 88 | CRating *Rating() const; |
1666 | @@ -79,8 +92,8 @@ | |||
1667 | 79 | static std::string GetElementName(); | 92 | static std::string GetElementName(); |
1668 | 80 | 93 | ||
1669 | 81 | protected: | 94 | protected: |
1672 | 82 | virtual bool ParseAttribute(const std::string& Name, const std::string& Value); | 95 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); |
1673 | 83 | virtual bool ParseElement(const XMLNode& Node); | 96 | virtual void ParseElement(const XMLNode& Node); |
1674 | 84 | 97 | ||
1675 | 85 | private: | 98 | private: |
1676 | 86 | void Cleanup(); | 99 | void Cleanup(); |
1677 | 87 | 100 | ||
1678 | === modified file 'include/musicbrainz4/RecordingList.h' | |||
1679 | --- include/musicbrainz4/RecordingList.h 2012-02-01 17:18:10 +0000 | |||
1680 | +++ include/musicbrainz4/RecordingList.h 2012-06-25 05:56:21 +0000 | |||
1681 | @@ -18,7 +18,7 @@ | |||
1682 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
1683 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
1684 | 20 | 20 | ||
1686 | 21 | $Id: RecordingList.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
1687 | 22 | 22 | ||
1688 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
1689 | 24 | 24 | ||
1690 | 25 | 25 | ||
1691 | === modified file 'include/musicbrainz4/Relation.h' | |||
1692 | --- include/musicbrainz4/Relation.h 2012-02-01 17:18:10 +0000 | |||
1693 | +++ include/musicbrainz4/Relation.h 2012-06-25 05:56:21 +0000 | |||
1694 | @@ -18,7 +18,7 @@ | |||
1695 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
1696 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
1697 | 20 | 20 | ||
1699 | 21 | $Id: Relation.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
1700 | 22 | 22 | ||
1701 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
1702 | 24 | 24 | ||
1703 | @@ -71,8 +71,8 @@ | |||
1704 | 71 | static std::string GetElementName(); | 71 | static std::string GetElementName(); |
1705 | 72 | 72 | ||
1706 | 73 | protected: | 73 | protected: |
1709 | 74 | virtual bool ParseAttribute(const std::string& Name, const std::string& Value); | 74 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); |
1710 | 75 | virtual bool ParseElement(const XMLNode& Node); | 75 | virtual void ParseElement(const XMLNode& Node); |
1711 | 76 | 76 | ||
1712 | 77 | private: | 77 | private: |
1713 | 78 | void Cleanup(); | 78 | void Cleanup(); |
1714 | 79 | 79 | ||
1715 | === modified file 'include/musicbrainz4/RelationList.h' | |||
1716 | --- include/musicbrainz4/RelationList.h 2012-02-01 17:18:10 +0000 | |||
1717 | +++ include/musicbrainz4/RelationList.h 2012-06-25 05:56:21 +0000 | |||
1718 | @@ -18,7 +18,7 @@ | |||
1719 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
1720 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
1721 | 20 | 20 | ||
1723 | 21 | $Id: RelationList.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
1724 | 22 | 22 | ||
1725 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
1726 | 24 | 24 | ||
1727 | @@ -53,8 +53,8 @@ | |||
1728 | 53 | static std::string GetElementName(); | 53 | static std::string GetElementName(); |
1729 | 54 | 54 | ||
1730 | 55 | protected: | 55 | protected: |
1733 | 56 | virtual bool ParseAttribute(const std::string& Name, const std::string& Value); | 56 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); |
1734 | 57 | virtual bool ParseElement(const XMLNode& Node); | 57 | virtual void ParseElement(const XMLNode& Node); |
1735 | 58 | 58 | ||
1736 | 59 | private: | 59 | private: |
1737 | 60 | CRelationListPrivate * const m_d; | 60 | CRelationListPrivate * const m_d; |
1738 | 61 | 61 | ||
1739 | === added file 'include/musicbrainz4/RelationListList.h' | |||
1740 | --- include/musicbrainz4/RelationListList.h 1970-01-01 00:00:00 +0000 | |||
1741 | +++ include/musicbrainz4/RelationListList.h 2012-06-25 05:56:21 +0000 | |||
1742 | @@ -0,0 +1,63 @@ | |||
1743 | 1 | /* -------------------------------------------------------------------------- | ||
1744 | 2 | |||
1745 | 3 | libmusicbrainz4 - Client library to access MusicBrainz | ||
1746 | 4 | |||
1747 | 5 | Copyright (C) 2011 Andrew Hawkins | ||
1748 | 6 | |||
1749 | 7 | This file is part of libmusicbrainz4. | ||
1750 | 8 | |||
1751 | 9 | This library is free software; you can redistribute it and/or | ||
1752 | 10 | modify it under the terms of v2 of the GNU Lesser General Public | ||
1753 | 11 | License as published by the Free Software Foundation. | ||
1754 | 12 | |||
1755 | 13 | libmusicbrainz4 is distributed in the hope that it will be useful, | ||
1756 | 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
1757 | 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
1758 | 16 | Lesser General Public License for more details. | ||
1759 | 17 | |||
1760 | 18 | You should have received a copy of the GNU General Public License | ||
1761 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
1762 | 20 | |||
1763 | 21 | $Id$ | ||
1764 | 22 | |||
1765 | 23 | ----------------------------------------------------------------------------*/ | ||
1766 | 24 | |||
1767 | 25 | #ifndef _MUSICBRAINZ4_RELATIONLIST_GROUP_H | ||
1768 | 26 | #define _MUSICBRAINZ4_RELATIONLIST_GROUP_H | ||
1769 | 27 | |||
1770 | 28 | #include <iostream> | ||
1771 | 29 | |||
1772 | 30 | #include "musicbrainz4/xmlParser.h" | ||
1773 | 31 | |||
1774 | 32 | namespace MusicBrainz4 | ||
1775 | 33 | { | ||
1776 | 34 | class CRelationListListPrivate; | ||
1777 | 35 | |||
1778 | 36 | class CRelationList; | ||
1779 | 37 | |||
1780 | 38 | class CRelationListList | ||
1781 | 39 | { | ||
1782 | 40 | public: | ||
1783 | 41 | CRelationListList(); | ||
1784 | 42 | CRelationListList(const CRelationListList& Other); | ||
1785 | 43 | CRelationListList& operator =(const CRelationListList& Other); | ||
1786 | 44 | virtual ~CRelationListList(); | ||
1787 | 45 | |||
1788 | 46 | void Add(CRelationList *RelationList); | ||
1789 | 47 | int NumItems() const; | ||
1790 | 48 | CRelationList *Item(int Item) const; | ||
1791 | 49 | int Offset() const { return 0; } | ||
1792 | 50 | int Count() const { return NumItems(); } | ||
1793 | 51 | |||
1794 | 52 | std::ostream& Serialise(std::ostream& os) const; | ||
1795 | 53 | |||
1796 | 54 | private: | ||
1797 | 55 | void Cleanup(); | ||
1798 | 56 | |||
1799 | 57 | CRelationListListPrivate * const m_d; | ||
1800 | 58 | }; | ||
1801 | 59 | } | ||
1802 | 60 | |||
1803 | 61 | std::ostream& operator << (std::ostream& os, const MusicBrainz4::CRelationListList& RelationListList); | ||
1804 | 62 | |||
1805 | 63 | #endif | ||
1806 | 0 | 64 | ||
1807 | === modified file 'include/musicbrainz4/Release.h' | |||
1808 | --- include/musicbrainz4/Release.h 2012-02-01 17:18:10 +0000 | |||
1809 | +++ include/musicbrainz4/Release.h 2012-06-25 05:56:21 +0000 | |||
1810 | @@ -18,7 +18,7 @@ | |||
1811 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
1812 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
1813 | 20 | 20 | ||
1815 | 21 | $Id: Release.h 13385 2012-01-15 15:19:56Z adhawkins $ | 21 | $Id$ |
1816 | 22 | 22 | ||
1817 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
1818 | 24 | 24 | ||
1819 | @@ -70,7 +70,20 @@ | |||
1820 | 70 | std::string ASIN() const; | 70 | std::string ASIN() const; |
1821 | 71 | CLabelInfoList *LabelInfoList() const; | 71 | CLabelInfoList *LabelInfoList() const; |
1822 | 72 | CMediumList *MediumList() const; | 72 | CMediumList *MediumList() const; |
1824 | 73 | CRelationList *RelationList() const; | 73 | |
1825 | 74 | /** | ||
1826 | 75 | * @deprecated Returns the <b>last</b> relation list for this release | ||
1827 | 76 | * | ||
1828 | 77 | * Returns the <b>last</b> relation list for this release. To return all | ||
1829 | 78 | * relation lists, see MusicBrainz4::CRelease::RelationListList | ||
1830 | 79 | * | ||
1831 | 80 | * <b>This method is deprecated, please use MusicBrainz4::CRelease::RelationListList</b> | ||
1832 | 81 | * | ||
1833 | 82 | * @return The <b>last</b> relation list for this release | ||
1834 | 83 | */ | ||
1835 | 84 | |||
1836 | 85 | LIBMB4_DEPRECATED(MusicBrainz4::CRelease::RelationListList) CRelationList *RelationList() const; | ||
1837 | 86 | CRelationListList *RelationListList() const; | ||
1838 | 74 | CCollectionList *CollectionList() const; | 87 | CCollectionList *CollectionList() const; |
1839 | 75 | 88 | ||
1840 | 76 | CMediumList MediaMatchingDiscID(const std::string& DiscID) const; | 89 | CMediumList MediaMatchingDiscID(const std::string& DiscID) const; |
1841 | @@ -79,8 +92,8 @@ | |||
1842 | 79 | static std::string GetElementName(); | 92 | static std::string GetElementName(); |
1843 | 80 | 93 | ||
1844 | 81 | protected: | 94 | protected: |
1847 | 82 | virtual bool ParseAttribute(const std::string& Name, const std::string& Value); | 95 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); |
1848 | 83 | virtual bool ParseElement(const XMLNode& Node); | 96 | virtual void ParseElement(const XMLNode& Node); |
1849 | 84 | 97 | ||
1850 | 85 | private: | 98 | private: |
1851 | 86 | void Cleanup(); | 99 | void Cleanup(); |
1852 | 87 | 100 | ||
1853 | === modified file 'include/musicbrainz4/ReleaseGroup.h' | |||
1854 | --- include/musicbrainz4/ReleaseGroup.h 2012-02-01 17:18:10 +0000 | |||
1855 | +++ include/musicbrainz4/ReleaseGroup.h 2012-06-25 05:56:21 +0000 | |||
1856 | @@ -18,7 +18,7 @@ | |||
1857 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
1858 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
1859 | 20 | 20 | ||
1861 | 21 | $Id: ReleaseGroup.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
1862 | 22 | 22 | ||
1863 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
1864 | 24 | 24 | ||
1865 | @@ -33,6 +33,7 @@ | |||
1866 | 33 | #include "musicbrainz4/RelationList.h" | 33 | #include "musicbrainz4/RelationList.h" |
1867 | 34 | #include "musicbrainz4/TagList.h" | 34 | #include "musicbrainz4/TagList.h" |
1868 | 35 | #include "musicbrainz4/UserTagList.h" | 35 | #include "musicbrainz4/UserTagList.h" |
1869 | 36 | #include "musicbrainz4/SecondaryTypeList.h" | ||
1870 | 36 | 37 | ||
1871 | 37 | #include "musicbrainz4/xmlParser.h" | 38 | #include "musicbrainz4/xmlParser.h" |
1872 | 38 | 39 | ||
1873 | @@ -43,6 +44,7 @@ | |||
1874 | 43 | class CArtistCredit; | 44 | class CArtistCredit; |
1875 | 44 | class CRating; | 45 | class CRating; |
1876 | 45 | class CUserRating; | 46 | class CUserRating; |
1877 | 47 | class CSecondaryType; | ||
1878 | 46 | 48 | ||
1879 | 47 | class CReleaseGroup: public CEntity | 49 | class CReleaseGroup: public CEntity |
1880 | 48 | { | 50 | { |
1881 | @@ -55,24 +57,51 @@ | |||
1882 | 55 | virtual CReleaseGroup *Clone(); | 57 | virtual CReleaseGroup *Clone(); |
1883 | 56 | 58 | ||
1884 | 57 | std::string ID() const; | 59 | std::string ID() const; |
1886 | 58 | std::string Type() const; | 60 | |
1887 | 61 | /** | ||
1888 | 62 | * @deprecated Returns the type for this release group | ||
1889 | 63 | * | ||
1890 | 64 | * Returns the type for this release group. | ||
1891 | 65 | * | ||
1892 | 66 | * <b>This method is deprecated, please use MusicBrainz4::CReleaseGroup::PrimaryType | ||
1893 | 67 | * and MusicBrainz4::CReleaseGroup::SecondaryTypeList</b> | ||
1894 | 68 | * | ||
1895 | 69 | * @return The type for this release group | ||
1896 | 70 | */ | ||
1897 | 71 | |||
1898 | 72 | LIBMB4_DEPRECATED(MusicBrainz4::CReleaseGroup::PrimaryType) std::string Type() const; | ||
1899 | 73 | std::string PrimaryType() const; | ||
1900 | 59 | std::string Title() const; | 74 | std::string Title() const; |
1901 | 60 | std::string Disambiguation() const; | 75 | std::string Disambiguation() const; |
1902 | 61 | std::string FirstReleaseDate() const; | 76 | std::string FirstReleaseDate() const; |
1903 | 62 | CArtistCredit *ArtistCredit() const; | 77 | CArtistCredit *ArtistCredit() const; |
1904 | 63 | CReleaseList *ReleaseList() const; | 78 | CReleaseList *ReleaseList() const; |
1906 | 64 | CRelationList *RelationList() const; | 79 | |
1907 | 80 | /** | ||
1908 | 81 | * @deprecated Returns the <b>last</b> relation list for this release group | ||
1909 | 82 | * | ||
1910 | 83 | * Returns the <b>last</b> relation list for this release group. To return all | ||
1911 | 84 | * relation lists, see MusicBrainz4::CReleaseGroup::RelationListList | ||
1912 | 85 | * | ||
1913 | 86 | * <b>This method is deprecated, please use MusicBrainz4::CReleaseGroup::RelationListList</b> | ||
1914 | 87 | * | ||
1915 | 88 | * @return The <b>last</b> relation list for this release group | ||
1916 | 89 | */ | ||
1917 | 90 | |||
1918 | 91 | LIBMB4_DEPRECATED(MusicBrainz4::CReleaseGroup::RelationListList) CRelationList *RelationList() const; | ||
1919 | 92 | CRelationListList *RelationListList() const; | ||
1920 | 65 | CTagList *TagList() const; | 93 | CTagList *TagList() const; |
1921 | 66 | CUserTagList *UserTagList() const; | 94 | CUserTagList *UserTagList() const; |
1922 | 67 | CRating *Rating() const; | 95 | CRating *Rating() const; |
1923 | 68 | CUserRating *UserRating() const; | 96 | CUserRating *UserRating() const; |
1924 | 97 | CSecondaryTypeList *SecondaryTypeList() const; | ||
1925 | 69 | 98 | ||
1926 | 70 | virtual std::ostream& Serialise(std::ostream& os) const; | 99 | virtual std::ostream& Serialise(std::ostream& os) const; |
1927 | 71 | static std::string GetElementName(); | 100 | static std::string GetElementName(); |
1928 | 72 | 101 | ||
1929 | 73 | protected: | 102 | protected: |
1932 | 74 | virtual bool ParseAttribute(const std::string& Name, const std::string& Value); | 103 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); |
1933 | 75 | virtual bool ParseElement(const XMLNode& Node); | 104 | virtual void ParseElement(const XMLNode& Node); |
1934 | 76 | 105 | ||
1935 | 77 | private: | 106 | private: |
1936 | 78 | void Cleanup(); | 107 | void Cleanup(); |
1937 | 79 | 108 | ||
1938 | === modified file 'include/musicbrainz4/ReleaseGroupList.h' | |||
1939 | --- include/musicbrainz4/ReleaseGroupList.h 2012-02-01 17:18:10 +0000 | |||
1940 | +++ include/musicbrainz4/ReleaseGroupList.h 2012-06-25 05:56:21 +0000 | |||
1941 | @@ -18,7 +18,7 @@ | |||
1942 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
1943 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
1944 | 20 | 20 | ||
1946 | 21 | $Id: ReleaseGroupList.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
1947 | 22 | 22 | ||
1948 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
1949 | 24 | 24 | ||
1950 | 25 | 25 | ||
1951 | === modified file 'include/musicbrainz4/ReleaseList.h' | |||
1952 | --- include/musicbrainz4/ReleaseList.h 2012-02-01 17:18:10 +0000 | |||
1953 | +++ include/musicbrainz4/ReleaseList.h 2012-06-25 05:56:21 +0000 | |||
1954 | @@ -18,7 +18,7 @@ | |||
1955 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
1956 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
1957 | 20 | 20 | ||
1959 | 21 | $Id: ReleaseList.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
1960 | 22 | 22 | ||
1961 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
1962 | 24 | 24 | ||
1963 | 25 | 25 | ||
1964 | === added file 'include/musicbrainz4/SecondaryType.h' | |||
1965 | --- include/musicbrainz4/SecondaryType.h 1970-01-01 00:00:00 +0000 | |||
1966 | +++ include/musicbrainz4/SecondaryType.h 2012-06-25 05:56:21 +0000 | |||
1967 | @@ -0,0 +1,65 @@ | |||
1968 | 1 | /* -------------------------------------------------------------------------- | ||
1969 | 2 | |||
1970 | 3 | libmusicbrainz4 - Client library to access MusicBrainz | ||
1971 | 4 | |||
1972 | 5 | Copyright (C) 2012 Andrew Hawkins | ||
1973 | 6 | |||
1974 | 7 | This file is part of libmusicbrainz4. | ||
1975 | 8 | |||
1976 | 9 | This library is free software; you can redistribute it and/or | ||
1977 | 10 | modify it under the terms of v2 of the GNU Lesser General Public | ||
1978 | 11 | License as published by the Free Software Foundation. | ||
1979 | 12 | |||
1980 | 13 | libmusicbrainz4 is distributed in the hope that it will be useful, | ||
1981 | 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
1982 | 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
1983 | 16 | Lesser General Public License for more details. | ||
1984 | 17 | |||
1985 | 18 | You should have received a copy of the GNU General Public License | ||
1986 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
1987 | 20 | |||
1988 | 21 | $Id$ | ||
1989 | 22 | |||
1990 | 23 | ----------------------------------------------------------------------------*/ | ||
1991 | 24 | |||
1992 | 25 | #ifndef _MUSICBRAINZ4_SECONDARY_TYPE_H | ||
1993 | 26 | #define _MUSICBRAINZ4_SECONDARY_TYPE_H | ||
1994 | 27 | |||
1995 | 28 | #include <string> | ||
1996 | 29 | #include <iostream> | ||
1997 | 30 | |||
1998 | 31 | #include "musicbrainz4/Entity.h" | ||
1999 | 32 | |||
2000 | 33 | #include "musicbrainz4/xmlParser.h" | ||
2001 | 34 | |||
2002 | 35 | namespace MusicBrainz4 | ||
2003 | 36 | { | ||
2004 | 37 | class CSecondaryTypePrivate; | ||
2005 | 38 | |||
2006 | 39 | class CSecondaryType: public CEntity | ||
2007 | 40 | { | ||
2008 | 41 | public: | ||
2009 | 42 | CSecondaryType(const XMLNode& Node=XMLNode::emptyNode()); | ||
2010 | 43 | CSecondaryType(const CSecondaryType& Other); | ||
2011 | 44 | CSecondaryType& operator =(const CSecondaryType& Other); | ||
2012 | 45 | virtual ~CSecondaryType(); | ||
2013 | 46 | |||
2014 | 47 | virtual CSecondaryType *Clone(); | ||
2015 | 48 | |||
2016 | 49 | std::string SecondaryType() const; | ||
2017 | 50 | |||
2018 | 51 | virtual std::ostream& Serialise(std::ostream& os) const; | ||
2019 | 52 | static std::string GetElementName(); | ||
2020 | 53 | |||
2021 | 54 | protected: | ||
2022 | 55 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); | ||
2023 | 56 | virtual void ParseElement(const XMLNode& Node); | ||
2024 | 57 | |||
2025 | 58 | private: | ||
2026 | 59 | void Cleanup(); | ||
2027 | 60 | |||
2028 | 61 | CSecondaryTypePrivate * const m_d; | ||
2029 | 62 | }; | ||
2030 | 63 | } | ||
2031 | 64 | |||
2032 | 65 | #endif | ||
2033 | 0 | 66 | ||
2034 | === added file 'include/musicbrainz4/SecondaryTypeList.h' | |||
2035 | --- include/musicbrainz4/SecondaryTypeList.h 1970-01-01 00:00:00 +0000 | |||
2036 | +++ include/musicbrainz4/SecondaryTypeList.h 2012-06-25 05:56:21 +0000 | |||
2037 | @@ -0,0 +1,62 @@ | |||
2038 | 1 | /* -------------------------------------------------------------------------- | ||
2039 | 2 | |||
2040 | 3 | libmusicbrainz4 - Client library to access MusicBrainz | ||
2041 | 4 | |||
2042 | 5 | Copyright (C) 2012 Andrew Hawkins | ||
2043 | 6 | |||
2044 | 7 | This file is part of libmusicbrainz4. | ||
2045 | 8 | |||
2046 | 9 | This library is free software; you can redistribute it and/or | ||
2047 | 10 | modify it under the terms of v2 of the GNU Lesser General Public | ||
2048 | 11 | License as published by the Free Software Foundation. | ||
2049 | 12 | |||
2050 | 13 | libmusicbrainz4 is distributed in the hope that it will be useful, | ||
2051 | 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
2052 | 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
2053 | 16 | Lesser General Public License for more details. | ||
2054 | 17 | |||
2055 | 18 | You should have received a copy of the GNU General Public License | ||
2056 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
2057 | 20 | |||
2058 | 21 | $Id$ | ||
2059 | 22 | |||
2060 | 23 | ----------------------------------------------------------------------------*/ | ||
2061 | 24 | |||
2062 | 25 | #ifndef _MUSICBRAINZ4_SECONDARY_TYPE_LIST_H | ||
2063 | 26 | #define _MUSICBRAINZ4_SECONDARY_TYPE_LIST_H | ||
2064 | 27 | |||
2065 | 28 | #include <string> | ||
2066 | 29 | #include <iostream> | ||
2067 | 30 | |||
2068 | 31 | #include "musicbrainz4/ListImpl.h" | ||
2069 | 32 | |||
2070 | 33 | #include "musicbrainz4/xmlParser.h" | ||
2071 | 34 | |||
2072 | 35 | namespace MusicBrainz4 | ||
2073 | 36 | { | ||
2074 | 37 | class CSecondaryType; | ||
2075 | 38 | class CSecondaryTypeListPrivate; | ||
2076 | 39 | |||
2077 | 40 | class CSecondaryTypeList: public CListImpl<CSecondaryType> | ||
2078 | 41 | { | ||
2079 | 42 | public: | ||
2080 | 43 | CSecondaryTypeList(const XMLNode& Node=XMLNode::emptyNode()); | ||
2081 | 44 | CSecondaryTypeList(const CSecondaryTypeList& Other); | ||
2082 | 45 | CSecondaryTypeList& operator =(const CSecondaryTypeList& Other); | ||
2083 | 46 | virtual ~CSecondaryTypeList(); | ||
2084 | 47 | |||
2085 | 48 | virtual CSecondaryTypeList *Clone(); | ||
2086 | 49 | |||
2087 | 50 | virtual std::ostream& Serialise(std::ostream& os) const; | ||
2088 | 51 | static std::string GetElementName(); | ||
2089 | 52 | |||
2090 | 53 | protected: | ||
2091 | 54 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); | ||
2092 | 55 | virtual void ParseElement(const XMLNode& Node); | ||
2093 | 56 | |||
2094 | 57 | private: | ||
2095 | 58 | CSecondaryTypeListPrivate * const m_d; | ||
2096 | 59 | }; | ||
2097 | 60 | } | ||
2098 | 61 | |||
2099 | 62 | #endif | ||
2100 | 0 | 63 | ||
2101 | === modified file 'include/musicbrainz4/Tag.h' | |||
2102 | --- include/musicbrainz4/Tag.h 2012-02-01 17:18:10 +0000 | |||
2103 | +++ include/musicbrainz4/Tag.h 2012-06-25 05:56:21 +0000 | |||
2104 | @@ -18,7 +18,7 @@ | |||
2105 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
2106 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
2107 | 20 | 20 | ||
2109 | 21 | $Id: Tag.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
2110 | 22 | 22 | ||
2111 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
2112 | 24 | 24 | ||
2113 | @@ -53,8 +53,8 @@ | |||
2114 | 53 | static std::string GetElementName(); | 53 | static std::string GetElementName(); |
2115 | 54 | 54 | ||
2116 | 55 | protected: | 55 | protected: |
2119 | 56 | virtual bool ParseAttribute(const std::string& Name, const std::string& Value); | 56 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); |
2120 | 57 | virtual bool ParseElement(const XMLNode& Node); | 57 | virtual void ParseElement(const XMLNode& Node); |
2121 | 58 | 58 | ||
2122 | 59 | private: | 59 | private: |
2123 | 60 | CTagPrivate * const m_d; | 60 | CTagPrivate * const m_d; |
2124 | 61 | 61 | ||
2125 | === modified file 'include/musicbrainz4/TagList.h' | |||
2126 | --- include/musicbrainz4/TagList.h 2012-02-01 17:18:10 +0000 | |||
2127 | +++ include/musicbrainz4/TagList.h 2012-06-25 05:56:21 +0000 | |||
2128 | @@ -18,7 +18,7 @@ | |||
2129 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
2130 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
2131 | 20 | 20 | ||
2133 | 21 | $Id: TagList.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
2134 | 22 | 22 | ||
2135 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
2136 | 24 | 24 | ||
2137 | 25 | 25 | ||
2138 | === modified file 'include/musicbrainz4/TextRepresentation.h' | |||
2139 | --- include/musicbrainz4/TextRepresentation.h 2012-02-01 17:18:10 +0000 | |||
2140 | +++ include/musicbrainz4/TextRepresentation.h 2012-06-25 05:56:21 +0000 | |||
2141 | @@ -18,7 +18,7 @@ | |||
2142 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
2143 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
2144 | 20 | 20 | ||
2146 | 21 | $Id: TextRepresentation.h 13263 2011-08-25 12:38:04Z adhawkins $ | 21 | $Id$ |
2147 | 22 | 22 | ||
2148 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
2149 | 24 | 24 | ||
2150 | @@ -53,8 +53,8 @@ | |||
2151 | 53 | static std::string GetElementName(); | 53 | static std::string GetElementName(); |
2152 | 54 | 54 | ||
2153 | 55 | protected: | 55 | protected: |
2156 | 56 | virtual bool ParseAttribute(const std::string& Name, const std::string& Value); | 56 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); |
2157 | 57 | virtual bool ParseElement(const XMLNode& Node); | 57 | virtual void ParseElement(const XMLNode& Node); |
2158 | 58 | 58 | ||
2159 | 59 | private: | 59 | private: |
2160 | 60 | CTextRepresentationPrivate * const m_d; | 60 | CTextRepresentationPrivate * const m_d; |
2161 | 61 | 61 | ||
2162 | === modified file 'include/musicbrainz4/Track.h' | |||
2163 | --- include/musicbrainz4/Track.h 2012-02-01 17:18:10 +0000 | |||
2164 | +++ include/musicbrainz4/Track.h 2012-06-25 05:56:21 +0000 | |||
2165 | @@ -18,7 +18,7 @@ | |||
2166 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
2167 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
2168 | 20 | 20 | ||
2170 | 21 | $Id: Track.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
2171 | 22 | 22 | ||
2172 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
2173 | 24 | 24 | ||
2174 | @@ -54,13 +54,14 @@ | |||
2175 | 54 | CRecording *Recording() const; | 54 | CRecording *Recording() const; |
2176 | 55 | int Length() const; | 55 | int Length() const; |
2177 | 56 | CArtistCredit *ArtistCredit() const; | 56 | CArtistCredit *ArtistCredit() const; |
2178 | 57 | std::string Number() const; | ||
2179 | 57 | 58 | ||
2180 | 58 | virtual std::ostream& Serialise(std::ostream& os) const; | 59 | virtual std::ostream& Serialise(std::ostream& os) const; |
2181 | 59 | static std::string GetElementName(); | 60 | static std::string GetElementName(); |
2182 | 60 | 61 | ||
2183 | 61 | protected: | 62 | protected: |
2186 | 62 | virtual bool ParseAttribute(const std::string& Name, const std::string& Value); | 63 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); |
2187 | 63 | virtual bool ParseElement(const XMLNode& Node); | 64 | virtual void ParseElement(const XMLNode& Node); |
2188 | 64 | 65 | ||
2189 | 65 | private: | 66 | private: |
2190 | 66 | void Cleanup(); | 67 | void Cleanup(); |
2191 | 67 | 68 | ||
2192 | === modified file 'include/musicbrainz4/TrackList.h' | |||
2193 | --- include/musicbrainz4/TrackList.h 2012-02-01 17:18:10 +0000 | |||
2194 | +++ include/musicbrainz4/TrackList.h 2012-06-25 05:56:21 +0000 | |||
2195 | @@ -18,7 +18,7 @@ | |||
2196 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
2197 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
2198 | 20 | 20 | ||
2200 | 21 | $Id: TrackList.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
2201 | 22 | 22 | ||
2202 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
2203 | 24 | 24 | ||
2204 | 25 | 25 | ||
2205 | === modified file 'include/musicbrainz4/UserRating.h' | |||
2206 | --- include/musicbrainz4/UserRating.h 2012-02-01 17:18:10 +0000 | |||
2207 | +++ include/musicbrainz4/UserRating.h 2012-06-25 05:56:21 +0000 | |||
2208 | @@ -18,7 +18,7 @@ | |||
2209 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
2210 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
2211 | 20 | 20 | ||
2213 | 21 | $Id: UserRating.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
2214 | 22 | 22 | ||
2215 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
2216 | 24 | 24 | ||
2217 | @@ -51,8 +51,8 @@ | |||
2218 | 51 | static std::string GetElementName(); | 51 | static std::string GetElementName(); |
2219 | 52 | 52 | ||
2220 | 53 | protected: | 53 | protected: |
2223 | 54 | virtual bool ParseAttribute(const std::string& Name, const std::string& Value); | 54 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); |
2224 | 55 | virtual bool ParseElement(const XMLNode& Node); | 55 | virtual void ParseElement(const XMLNode& Node); |
2225 | 56 | 56 | ||
2226 | 57 | private: | 57 | private: |
2227 | 58 | CUserRatingPrivate * const m_d; | 58 | CUserRatingPrivate * const m_d; |
2228 | 59 | 59 | ||
2229 | === modified file 'include/musicbrainz4/UserTag.h' | |||
2230 | --- include/musicbrainz4/UserTag.h 2012-02-01 17:18:10 +0000 | |||
2231 | +++ include/musicbrainz4/UserTag.h 2012-06-25 05:56:21 +0000 | |||
2232 | @@ -18,7 +18,7 @@ | |||
2233 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
2234 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
2235 | 20 | 20 | ||
2237 | 21 | $Id: UserTag.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
2238 | 22 | 22 | ||
2239 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
2240 | 24 | 24 | ||
2241 | @@ -52,8 +52,8 @@ | |||
2242 | 52 | static std::string GetElementName(); | 52 | static std::string GetElementName(); |
2243 | 53 | 53 | ||
2244 | 54 | protected: | 54 | protected: |
2247 | 55 | virtual bool ParseAttribute(const std::string& Name, const std::string& Value); | 55 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); |
2248 | 56 | virtual bool ParseElement(const XMLNode& Node); | 56 | virtual void ParseElement(const XMLNode& Node); |
2249 | 57 | 57 | ||
2250 | 58 | private: | 58 | private: |
2251 | 59 | CUserTagPrivate * const m_d; | 59 | CUserTagPrivate * const m_d; |
2252 | 60 | 60 | ||
2253 | === modified file 'include/musicbrainz4/UserTagList.h' | |||
2254 | --- include/musicbrainz4/UserTagList.h 2012-02-01 17:18:10 +0000 | |||
2255 | +++ include/musicbrainz4/UserTagList.h 2012-06-25 05:56:21 +0000 | |||
2256 | @@ -18,7 +18,7 @@ | |||
2257 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
2258 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
2259 | 20 | 20 | ||
2261 | 21 | $Id: UserTagList.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
2262 | 22 | 22 | ||
2263 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
2264 | 24 | 24 | ||
2265 | 25 | 25 | ||
2266 | === modified file 'include/musicbrainz4/Work.h' | |||
2267 | --- include/musicbrainz4/Work.h 2012-02-01 17:18:10 +0000 | |||
2268 | +++ include/musicbrainz4/Work.h 2012-06-25 05:56:21 +0000 | |||
2269 | @@ -18,7 +18,7 @@ | |||
2270 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
2271 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
2272 | 20 | 20 | ||
2274 | 21 | $Id: Work.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
2275 | 22 | 22 | ||
2276 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
2277 | 24 | 24 | ||
2278 | @@ -32,6 +32,7 @@ | |||
2279 | 32 | #include "musicbrainz4/RelationList.h" | 32 | #include "musicbrainz4/RelationList.h" |
2280 | 33 | #include "musicbrainz4/TagList.h" | 33 | #include "musicbrainz4/TagList.h" |
2281 | 34 | #include "musicbrainz4/UserTagList.h" | 34 | #include "musicbrainz4/UserTagList.h" |
2282 | 35 | #include "musicbrainz4/ISWCList.h" | ||
2283 | 35 | 36 | ||
2284 | 36 | #include "musicbrainz4/xmlParser.h" | 37 | #include "musicbrainz4/xmlParser.h" |
2285 | 37 | 38 | ||
2286 | @@ -58,21 +59,49 @@ | |||
2287 | 58 | std::string Type() const; | 59 | std::string Type() const; |
2288 | 59 | std::string Title() const; | 60 | std::string Title() const; |
2289 | 60 | CArtistCredit *ArtistCredit() const; | 61 | CArtistCredit *ArtistCredit() const; |
2291 | 61 | std::string ISWC() const; | 62 | |
2292 | 63 | /** | ||
2293 | 64 | * @deprecated Returns the <b>first</b> ISWC for this work | ||
2294 | 65 | * | ||
2295 | 66 | * Returns the <b>first</b> ISWC for this work. To return all | ||
2296 | 67 | * ISWCs, see MusicBrainz4::CWork::ISWCList | ||
2297 | 68 | * | ||
2298 | 69 | * <b>This method is deprecated, please use MusicBrainz4::CWork::ISWCList</b> | ||
2299 | 70 | * | ||
2300 | 71 | * @return The <b>first</b> ISWC for this work | ||
2301 | 72 | */ | ||
2302 | 73 | |||
2303 | 74 | LIBMB4_DEPRECATED(MusicBrainz4::CWork::ISWCList) std::string ISWC() const; | ||
2304 | 75 | |||
2305 | 76 | CISWCList *ISWCList() const; | ||
2306 | 62 | std::string Disambiguation() const; | 77 | std::string Disambiguation() const; |
2307 | 63 | CAliasList *AliasList() const; | 78 | CAliasList *AliasList() const; |
2309 | 64 | CRelationList *RelationList() const; | 79 | |
2310 | 80 | /** | ||
2311 | 81 | * @deprecated Returns the <b>last</b> relation list for this work | ||
2312 | 82 | * | ||
2313 | 83 | * Returns the <b>last</b> relation list for this work. To return all | ||
2314 | 84 | * relation lists, see MusicBrainz4::CWork::RelationListList | ||
2315 | 85 | * | ||
2316 | 86 | * <b>This method is deprecated, please use MusicBrainz4::CWork::RelationListList</b> | ||
2317 | 87 | * | ||
2318 | 88 | * @return The <b>last</b> relation list for this work | ||
2319 | 89 | */ | ||
2320 | 90 | |||
2321 | 91 | LIBMB4_DEPRECATED(MusicBrainz4::CWork::RelationListList) CRelationList *RelationList() const; | ||
2322 | 92 | CRelationListList *RelationListList() const; | ||
2323 | 65 | CTagList *TagList() const; | 93 | CTagList *TagList() const; |
2324 | 66 | CUserTagList *UserTagList() const; | 94 | CUserTagList *UserTagList() const; |
2325 | 67 | CRating *Rating() const; | 95 | CRating *Rating() const; |
2326 | 68 | CUserRating *UserRating() const; | 96 | CUserRating *UserRating() const; |
2327 | 97 | std::string Language() const; | ||
2328 | 69 | 98 | ||
2329 | 70 | virtual std::ostream& Serialise(std::ostream& os) const; | 99 | virtual std::ostream& Serialise(std::ostream& os) const; |
2330 | 71 | static std::string GetElementName(); | 100 | static std::string GetElementName(); |
2331 | 72 | 101 | ||
2332 | 73 | protected: | 102 | protected: |
2335 | 74 | virtual bool ParseAttribute(const std::string& Name, const std::string& Value); | 103 | virtual void ParseAttribute(const std::string& Name, const std::string& Value); |
2336 | 75 | virtual bool ParseElement(const XMLNode& Node); | 104 | virtual void ParseElement(const XMLNode& Node); |
2337 | 76 | 105 | ||
2338 | 77 | private: | 106 | private: |
2339 | 78 | void Cleanup(); | 107 | void Cleanup(); |
2340 | 79 | 108 | ||
2341 | === modified file 'include/musicbrainz4/WorkList.h' | |||
2342 | --- include/musicbrainz4/WorkList.h 2012-02-01 17:18:10 +0000 | |||
2343 | +++ include/musicbrainz4/WorkList.h 2012-06-25 05:56:21 +0000 | |||
2344 | @@ -18,7 +18,7 @@ | |||
2345 | 18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
2346 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. |
2347 | 20 | 20 | ||
2349 | 21 | $Id: WorkList.h 13259 2011-08-10 12:02:50Z adhawkins $ | 21 | $Id$ |
2350 | 22 | 22 | ||
2351 | 23 | ----------------------------------------------------------------------------*/ | 23 | ----------------------------------------------------------------------------*/ |
2352 | 24 | 24 | ||
2353 | 25 | 25 | ||
2354 | === added file 'include/musicbrainz4/defines.h' | |||
2355 | --- include/musicbrainz4/defines.h 1970-01-01 00:00:00 +0000 | |||
2356 | +++ include/musicbrainz4/defines.h 2012-06-25 05:56:21 +0000 | |||
2357 | @@ -0,0 +1,42 @@ | |||
2358 | 1 | /* -------------------------------------------------------------------------- | ||
2359 | 2 | |||
2360 | 3 | libmusicbrainz4 - Client library to access MusicBrainz | ||
2361 | 4 | |||
2362 | 5 | Copyright (C) 2012 Andrew Hawkins | ||
2363 | 6 | |||
2364 | 7 | This file is part of libmusicbrainz4. | ||
2365 | 8 | |||
2366 | 9 | This library is free software; you can redistribute it and/or | ||
2367 | 10 | modify it under the terms of v2 of the GNU Lesser General Public | ||
2368 | 11 | License as published by the Free Software Foundation. | ||
2369 | 12 | |||
2370 | 13 | libmusicbrainz4 is distributed in the hope that it will be useful, | ||
2371 | 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
2372 | 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
2373 | 16 | Lesser General Public License for more details. | ||
2374 | 17 | |||
2375 | 18 | You should have received a copy of the GNU General Public License | ||
2376 | 19 | along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
2377 | 20 | |||
2378 | 21 | $Id$ | ||
2379 | 22 | |||
2380 | 23 | ----------------------------------------------------------------------------*/ | ||
2381 | 24 | |||
2382 | 25 | #ifndef _DEFINES_H | ||
2383 | 26 | #define _DEFINES_H | ||
2384 | 27 | |||
2385 | 28 | #if defined(__GNUC__) && __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5) | ||
2386 | 29 | |||
2387 | 30 | #define LIBMB4_DEPRECATED(f) __attribute__((deprecated("Use '" #f "' instead"))) | ||
2388 | 31 | |||
2389 | 32 | #elif defined(__GNUC__) && __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) | ||
2390 | 33 | |||
2391 | 34 | #define LIBMB4_DEPRECATED(f) __attribute__ ((deprecated)) | ||
2392 | 35 | |||
2393 | 36 | #else | ||
2394 | 37 | |||
2395 | 38 | #define LIBMB4_DEPRECATED(f) | ||
2396 | 39 | |||
2397 | 40 | #endif | ||
2398 | 41 | |||
2399 | 42 | #endif | ||
2400 | 0 | 43 | ||
2401 | === removed directory 'schema' | |||
2402 | === removed file 'schema/musicbrainz_mmd-1.0.rng' | |||
2403 | --- schema/musicbrainz_mmd-1.0.rng 2012-02-01 17:18:10 +0000 | |||
2404 | +++ schema/musicbrainz_mmd-1.0.rng 1970-01-01 00:00:00 +0000 | |||
2405 | @@ -1,585 +0,0 @@ | |||
2406 | 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2407 | 2 | |||
2408 | 3 | <!-- ================================================================== | ||
2409 | 4 | $Id: musicbrainz_mmd-1.0.rng 7511 2006-05-10 20:06:24Z matt $ | ||
2410 | 5 | |||
2411 | 6 | Relax NG Schema for MusicBrainz XML Metadata Version 1.0 | ||
2412 | 7 | |||
2413 | 8 | |||
2414 | 9 | This XML schema has been designed to represent music metadata. | ||
2415 | 10 | Documentation and the latest revision can be found at | ||
2416 | 11 | |||
2417 | 12 | http://musicbrainz.org/development/mmd/ | ||
2418 | 13 | |||
2419 | 14 | |||
2420 | 15 | Copyright (c) 2006 Robert Kaye, Matthias Friedrich | ||
2421 | 16 | |||
2422 | 17 | The schema is released under the Creative Commons | ||
2423 | 18 | Attribution-ShareAlike 2.5 license. | ||
2424 | 19 | |||
2425 | 20 | http://creativecommons.org/licenses/by-sa/2.5/ | ||
2426 | 21 | |||
2427 | 22 | ================================================================== --> | ||
2428 | 23 | |||
2429 | 24 | |||
2430 | 25 | <grammar xmlns="http://relaxng.org/ns/structure/1.0" | ||
2431 | 26 | datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" | ||
2432 | 27 | ns="http://musicbrainz.org/ns/mmd-1.0#"> | ||
2433 | 28 | |||
2434 | 29 | |||
2435 | 30 | <start> | ||
2436 | 31 | <ref name="def_metadata-element"/> | ||
2437 | 32 | </start> | ||
2438 | 33 | |||
2439 | 34 | |||
2440 | 35 | <define name="def_metadata-element"> | ||
2441 | 36 | <element name="metadata"> | ||
2442 | 37 | <optional> | ||
2443 | 38 | <attribute name="generator"> | ||
2444 | 39 | <data type="anyURI"/> | ||
2445 | 40 | </attribute> | ||
2446 | 41 | </optional> | ||
2447 | 42 | <optional> | ||
2448 | 43 | <attribute name="created"> | ||
2449 | 44 | <data type="dateTime"/> | ||
2450 | 45 | </attribute> | ||
2451 | 46 | </optional> | ||
2452 | 47 | |||
2453 | 48 | <optional> | ||
2454 | 49 | <ref name="def_artist-element"/> | ||
2455 | 50 | </optional> | ||
2456 | 51 | <optional> | ||
2457 | 52 | <ref name="def_release-element"/> | ||
2458 | 53 | </optional> | ||
2459 | 54 | <optional> | ||
2460 | 55 | <ref name="def_track-element"/> | ||
2461 | 56 | </optional> | ||
2462 | 57 | |||
2463 | 58 | <optional> | ||
2464 | 59 | <ref name="def_artist-list"/> | ||
2465 | 60 | </optional> | ||
2466 | 61 | <optional> | ||
2467 | 62 | <ref name="def_release-list"/> | ||
2468 | 63 | </optional> | ||
2469 | 64 | <optional> | ||
2470 | 65 | <ref name="def_track-list"/> | ||
2471 | 66 | </optional> | ||
2472 | 67 | |||
2473 | 68 | <ref name="def_metadata-element_extension"/> | ||
2474 | 69 | </element> | ||
2475 | 70 | </define> | ||
2476 | 71 | |||
2477 | 72 | |||
2478 | 73 | <define name="def_artist-element"> | ||
2479 | 74 | <element name="artist"> | ||
2480 | 75 | <optional> | ||
2481 | 76 | <attribute name="id"> | ||
2482 | 77 | <data type="anyURI"/> | ||
2483 | 78 | </attribute> | ||
2484 | 79 | </optional> | ||
2485 | 80 | <optional> | ||
2486 | 81 | <attribute name="type"> | ||
2487 | 82 | <data type="anyURI"/> | ||
2488 | 83 | </attribute> | ||
2489 | 84 | </optional> | ||
2490 | 85 | <ref name="def_artist-attribute_extension"/> | ||
2491 | 86 | |||
2492 | 87 | <optional> | ||
2493 | 88 | <element name="name"> | ||
2494 | 89 | <text/> | ||
2495 | 90 | </element> | ||
2496 | 91 | </optional> | ||
2497 | 92 | <optional> | ||
2498 | 93 | <element name="sort-name"> | ||
2499 | 94 | <text/> | ||
2500 | 95 | </element> | ||
2501 | 96 | </optional> | ||
2502 | 97 | <optional> | ||
2503 | 98 | <element name="disambiguation"> | ||
2504 | 99 | <text/> | ||
2505 | 100 | </element> | ||
2506 | 101 | </optional> | ||
2507 | 102 | <optional> | ||
2508 | 103 | <element name="life-span"> | ||
2509 | 104 | <optional> | ||
2510 | 105 | <attribute name="begin"> | ||
2511 | 106 | <ref name="def_incomplete-date"/> | ||
2512 | 107 | </attribute> | ||
2513 | 108 | </optional> | ||
2514 | 109 | <optional> | ||
2515 | 110 | <attribute name="end"> | ||
2516 | 111 | <ref name="def_incomplete-date"/> | ||
2517 | 112 | </attribute> | ||
2518 | 113 | </optional> | ||
2519 | 114 | </element> | ||
2520 | 115 | </optional> | ||
2521 | 116 | |||
2522 | 117 | <optional> | ||
2523 | 118 | <ref name="def_alias-list"/> | ||
2524 | 119 | </optional> | ||
2525 | 120 | <optional> | ||
2526 | 121 | <ref name="def_release-list"/> | ||
2527 | 122 | </optional> | ||
2528 | 123 | <zeroOrMore> | ||
2529 | 124 | <ref name="def_relation-list"/> | ||
2530 | 125 | </zeroOrMore> | ||
2531 | 126 | |||
2532 | 127 | <ref name="def_artist-element_extension"/> | ||
2533 | 128 | </element> | ||
2534 | 129 | </define> | ||
2535 | 130 | |||
2536 | 131 | |||
2537 | 132 | <define name="def_release-element"> | ||
2538 | 133 | <element name="release"> | ||
2539 | 134 | <optional> | ||
2540 | 135 | <attribute name="id"> | ||
2541 | 136 | <data type="anyURI"/> | ||
2542 | 137 | </attribute> | ||
2543 | 138 | </optional> | ||
2544 | 139 | <optional> | ||
2545 | 140 | <attribute name="type"> | ||
2546 | 141 | <ref name="def_URI-list"/> | ||
2547 | 142 | </attribute> | ||
2548 | 143 | </optional> | ||
2549 | 144 | <ref name="def_release-attribute_extension"/> | ||
2550 | 145 | |||
2551 | 146 | <optional> | ||
2552 | 147 | <element name="title"> | ||
2553 | 148 | <text/> | ||
2554 | 149 | </element> | ||
2555 | 150 | </optional> | ||
2556 | 151 | <optional> | ||
2557 | 152 | <element name="text-representation"> | ||
2558 | 153 | <optional> | ||
2559 | 154 | <attribute name="language"> | ||
2560 | 155 | <ref name="def_iso-639"/> | ||
2561 | 156 | </attribute> | ||
2562 | 157 | </optional> | ||
2563 | 158 | <optional> | ||
2564 | 159 | <attribute name="script"> | ||
2565 | 160 | <ref name="def_iso-15924"/> | ||
2566 | 161 | </attribute> | ||
2567 | 162 | </optional> | ||
2568 | 163 | </element> | ||
2569 | 164 | </optional> | ||
2570 | 165 | <optional> | ||
2571 | 166 | <element name="asin"> | ||
2572 | 167 | <data type="string"> | ||
2573 | 168 | <param name="pattern">[A-Z0-9]{10}</param> | ||
2574 | 169 | </data> | ||
2575 | 170 | </element> | ||
2576 | 171 | </optional> | ||
2577 | 172 | <optional> | ||
2578 | 173 | <ref name="def_artist-element"/> | ||
2579 | 174 | </optional> | ||
2580 | 175 | |||
2581 | 176 | <optional> | ||
2582 | 177 | <ref name="def_release-event-list"/> | ||
2583 | 178 | </optional> | ||
2584 | 179 | <optional> | ||
2585 | 180 | <ref name="def_disc-list"/> | ||
2586 | 181 | </optional> | ||
2587 | 182 | <optional> | ||
2588 | 183 | <ref name="def_puid-list"/> | ||
2589 | 184 | </optional> | ||
2590 | 185 | <optional> | ||
2591 | 186 | <ref name="def_track-list"/> | ||
2592 | 187 | </optional> | ||
2593 | 188 | <zeroOrMore> | ||
2594 | 189 | <ref name="def_relation-list"/> | ||
2595 | 190 | </zeroOrMore> | ||
2596 | 191 | |||
2597 | 192 | <ref name="def_release-element_extension"/> | ||
2598 | 193 | </element> | ||
2599 | 194 | </define> | ||
2600 | 195 | |||
2601 | 196 | |||
2602 | 197 | <define name="def_track-element"> | ||
2603 | 198 | <element name="track"> | ||
2604 | 199 | <optional> | ||
2605 | 200 | <attribute name="id"> | ||
2606 | 201 | <data type="anyURI"/> | ||
2607 | 202 | </attribute> | ||
2608 | 203 | </optional> | ||
2609 | 204 | <ref name="def_track-attribute_extension"/> | ||
2610 | 205 | |||
2611 | 206 | <optional> | ||
2612 | 207 | <element name="title"> | ||
2613 | 208 | <text/> | ||
2614 | 209 | </element> | ||
2615 | 210 | </optional> | ||
2616 | 211 | <optional> | ||
2617 | 212 | <element name="duration"> | ||
2618 | 213 | <data type="nonNegativeInteger"/> | ||
2619 | 214 | </element> | ||
2620 | 215 | </optional> | ||
2621 | 216 | <optional> | ||
2622 | 217 | <ref name="def_artist-element"/> | ||
2623 | 218 | </optional> | ||
2624 | 219 | |||
2625 | 220 | <optional> | ||
2626 | 221 | <ref name="def_release-list"/> | ||
2627 | 222 | </optional> | ||
2628 | 223 | <optional> | ||
2629 | 224 | <ref name="def_puid-list"/> | ||
2630 | 225 | </optional> | ||
2631 | 226 | <zeroOrMore> | ||
2632 | 227 | <ref name="def_relation-list"/> | ||
2633 | 228 | </zeroOrMore> | ||
2634 | 229 | |||
2635 | 230 | <ref name="def_track-element_extension"/> | ||
2636 | 231 | </element> | ||
2637 | 232 | </define> | ||
2638 | 233 | |||
2639 | 234 | |||
2640 | 235 | <define name="def_relation-element"> | ||
2641 | 236 | <element name="relation"> | ||
2642 | 237 | <attribute name="type"> | ||
2643 | 238 | <data type="anyURI"/> | ||
2644 | 239 | </attribute> | ||
2645 | 240 | <attribute name="target"> | ||
2646 | 241 | <data type="anyURI"/> | ||
2647 | 242 | </attribute> | ||
2648 | 243 | <optional> | ||
2649 | 244 | <attribute name="direction"> | ||
2650 | 245 | <ref name="def_direction"/> | ||
2651 | 246 | </attribute> | ||
2652 | 247 | </optional> | ||
2653 | 248 | <optional> | ||
2654 | 249 | <attribute name="attributes"> | ||
2655 | 250 | <ref name="def_URI-list"/> | ||
2656 | 251 | </attribute> | ||
2657 | 252 | </optional> | ||
2658 | 253 | <optional> | ||
2659 | 254 | <attribute name="begin"> | ||
2660 | 255 | <ref name="def_incomplete-date"/> | ||
2661 | 256 | </attribute> | ||
2662 | 257 | </optional> | ||
2663 | 258 | <optional> | ||
2664 | 259 | <attribute name="end"> | ||
2665 | 260 | <ref name="def_incomplete-date"/> | ||
2666 | 261 | </attribute> | ||
2667 | 262 | </optional> | ||
2668 | 263 | |||
2669 | 264 | <optional> | ||
2670 | 265 | <choice> | ||
2671 | 266 | <ref name="def_artist-element"/> | ||
2672 | 267 | <ref name="def_release-element"/> | ||
2673 | 268 | <ref name="def_track-element"/> | ||
2674 | 269 | |||
2675 | 270 | <ref name="def_relation-element_extension"/> | ||
2676 | 271 | </choice> | ||
2677 | 272 | </optional> | ||
2678 | 273 | </element> | ||
2679 | 274 | </define> | ||
2680 | 275 | |||
2681 | 276 | |||
2682 | 277 | <define name="def_alias"> | ||
2683 | 278 | <element name="alias"> | ||
2684 | 279 | <optional> | ||
2685 | 280 | <attribute name="type"> | ||
2686 | 281 | <data type="anyURI"/> | ||
2687 | 282 | </attribute> | ||
2688 | 283 | </optional> | ||
2689 | 284 | <optional> | ||
2690 | 285 | <attribute name="script"> | ||
2691 | 286 | <ref name="def_iso-15924"/> | ||
2692 | 287 | </attribute> | ||
2693 | 288 | </optional> | ||
2694 | 289 | <text/> | ||
2695 | 290 | </element> | ||
2696 | 291 | </define> | ||
2697 | 292 | |||
2698 | 293 | |||
2699 | 294 | <!-- | ||
2700 | 295 | This part defines the extensions elements and attributes. | ||
2701 | 296 | --> | ||
2702 | 297 | |||
2703 | 298 | <define name="def_metadata-element_extension"> | ||
2704 | 299 | <optional> | ||
2705 | 300 | <ref name="def_extension_element"/> | ||
2706 | 301 | </optional> | ||
2707 | 302 | </define> | ||
2708 | 303 | |||
2709 | 304 | |||
2710 | 305 | <define name="def_artist-element_extension"> | ||
2711 | 306 | <zeroOrMore> | ||
2712 | 307 | <ref name="def_extension_element"/> | ||
2713 | 308 | </zeroOrMore> | ||
2714 | 309 | </define> | ||
2715 | 310 | |||
2716 | 311 | |||
2717 | 312 | <define name="def_release-element_extension"> | ||
2718 | 313 | <zeroOrMore> | ||
2719 | 314 | <ref name="def_extension_element"/> | ||
2720 | 315 | </zeroOrMore> | ||
2721 | 316 | </define> | ||
2722 | 317 | |||
2723 | 318 | |||
2724 | 319 | <define name="def_track-element_extension"> | ||
2725 | 320 | <zeroOrMore> | ||
2726 | 321 | <ref name="def_extension_element"/> | ||
2727 | 322 | </zeroOrMore> | ||
2728 | 323 | </define> | ||
2729 | 324 | |||
2730 | 325 | |||
2731 | 326 | <define name="def_relation-element_extension"> | ||
2732 | 327 | <ref name="def_extension_element"/> | ||
2733 | 328 | </define> | ||
2734 | 329 | |||
2735 | 330 | |||
2736 | 331 | <define name="def_artist-attribute_extension"> | ||
2737 | 332 | <zeroOrMore> | ||
2738 | 333 | <ref name="def_extension_attribute"/> | ||
2739 | 334 | </zeroOrMore> | ||
2740 | 335 | </define> | ||
2741 | 336 | |||
2742 | 337 | |||
2743 | 338 | <define name="def_release-attribute_extension"> | ||
2744 | 339 | <zeroOrMore> | ||
2745 | 340 | <ref name="def_extension_attribute"/> | ||
2746 | 341 | </zeroOrMore> | ||
2747 | 342 | </define> | ||
2748 | 343 | |||
2749 | 344 | |||
2750 | 345 | <define name="def_track-attribute_extension"> | ||
2751 | 346 | <zeroOrMore> | ||
2752 | 347 | <ref name="def_extension_attribute"/> | ||
2753 | 348 | </zeroOrMore> | ||
2754 | 349 | </define> | ||
2755 | 350 | |||
2756 | 351 | |||
2757 | 352 | <define name="def_extension_element"> | ||
2758 | 353 | <element> | ||
2759 | 354 | <anyName> | ||
2760 | 355 | <except> | ||
2761 | 356 | <nsName ns="http://musicbrainz.org/ns/mmd-1.0#"/> | ||
2762 | 357 | <nsName ns=""/> | ||
2763 | 358 | </except> | ||
2764 | 359 | </anyName> | ||
2765 | 360 | <zeroOrMore> | ||
2766 | 361 | <choice> | ||
2767 | 362 | <attribute> | ||
2768 | 363 | <anyName/> | ||
2769 | 364 | </attribute> | ||
2770 | 365 | <text/> | ||
2771 | 366 | <ref name="def_anything"/> | ||
2772 | 367 | </choice> | ||
2773 | 368 | </zeroOrMore> | ||
2774 | 369 | </element> | ||
2775 | 370 | </define> | ||
2776 | 371 | |||
2777 | 372 | |||
2778 | 373 | <define name="def_extension_attribute"> | ||
2779 | 374 | <attribute> | ||
2780 | 375 | <anyName> | ||
2781 | 376 | <except> | ||
2782 | 377 | <nsName ns="http://musicbrainz.org/ns/mmd-1.0#"/> | ||
2783 | 378 | <nsName ns=""/> | ||
2784 | 379 | </except> | ||
2785 | 380 | </anyName> | ||
2786 | 381 | </attribute> | ||
2787 | 382 | </define> | ||
2788 | 383 | |||
2789 | 384 | |||
2790 | 385 | <define name="def_anything"> | ||
2791 | 386 | <element> | ||
2792 | 387 | <anyName> | ||
2793 | 388 | <except> | ||
2794 | 389 | <nsName ns=""/> | ||
2795 | 390 | </except> | ||
2796 | 391 | </anyName> | ||
2797 | 392 | <zeroOrMore> | ||
2798 | 393 | <choice> | ||
2799 | 394 | <attribute> | ||
2800 | 395 | <anyName/> | ||
2801 | 396 | </attribute> | ||
2802 | 397 | <text/> | ||
2803 | 398 | <ref name="def_anything"/> | ||
2804 | 399 | </choice> | ||
2805 | 400 | </zeroOrMore> | ||
2806 | 401 | </element> | ||
2807 | 402 | </define> | ||
2808 | 403 | |||
2809 | 404 | |||
2810 | 405 | <define name="def_artist-list"> | ||
2811 | 406 | <element name="artist-list"> | ||
2812 | 407 | <ref name="def_list-attributes"/> | ||
2813 | 408 | <zeroOrMore> | ||
2814 | 409 | <ref name="def_artist-element"/> | ||
2815 | 410 | </zeroOrMore> | ||
2816 | 411 | </element> | ||
2817 | 412 | </define> | ||
2818 | 413 | |||
2819 | 414 | |||
2820 | 415 | <define name="def_release-list"> | ||
2821 | 416 | <element name="release-list"> | ||
2822 | 417 | <ref name="def_list-attributes"/> | ||
2823 | 418 | <zeroOrMore> | ||
2824 | 419 | <ref name="def_release-element"/> | ||
2825 | 420 | </zeroOrMore> | ||
2826 | 421 | </element> | ||
2827 | 422 | </define> | ||
2828 | 423 | |||
2829 | 424 | |||
2830 | 425 | <define name="def_alias-list"> | ||
2831 | 426 | <element name="alias-list"> | ||
2832 | 427 | <ref name="def_list-attributes"/> | ||
2833 | 428 | <zeroOrMore> | ||
2834 | 429 | <ref name="def_alias"/> | ||
2835 | 430 | </zeroOrMore> | ||
2836 | 431 | </element> | ||
2837 | 432 | </define> | ||
2838 | 433 | |||
2839 | 434 | |||
2840 | 435 | <define name="def_track-list"> | ||
2841 | 436 | <element name="track-list"> | ||
2842 | 437 | <ref name="def_list-attributes"/> | ||
2843 | 438 | <zeroOrMore> | ||
2844 | 439 | <ref name="def_track-element"/> | ||
2845 | 440 | </zeroOrMore> | ||
2846 | 441 | </element> | ||
2847 | 442 | </define> | ||
2848 | 443 | |||
2849 | 444 | |||
2850 | 445 | <define name="def_release-event-list"> | ||
2851 | 446 | <element name="release-event-list"> | ||
2852 | 447 | <ref name="def_list-attributes"/> | ||
2853 | 448 | <zeroOrMore> | ||
2854 | 449 | <element name="event"> | ||
2855 | 450 | <attribute name="date"> | ||
2856 | 451 | <ref name="def_incomplete-date"/> | ||
2857 | 452 | </attribute> | ||
2858 | 453 | <optional> | ||
2859 | 454 | <attribute name="country"> | ||
2860 | 455 | <ref name="def_iso-3166"/> | ||
2861 | 456 | </attribute> | ||
2862 | 457 | </optional> | ||
2863 | 458 | </element> | ||
2864 | 459 | </zeroOrMore> | ||
2865 | 460 | </element> | ||
2866 | 461 | </define> | ||
2867 | 462 | |||
2868 | 463 | |||
2869 | 464 | <define name="def_disc-list"> | ||
2870 | 465 | <element name="disc-list"> | ||
2871 | 466 | <ref name="def_list-attributes"/> | ||
2872 | 467 | <zeroOrMore> | ||
2873 | 468 | <element name="disc"> | ||
2874 | 469 | <attribute name="id"> | ||
2875 | 470 | <data type="string"> | ||
2876 | 471 | <param name="pattern">[a-zA-Z0-9._]{27}-</param> | ||
2877 | 472 | </data> | ||
2878 | 473 | </attribute> | ||
2879 | 474 | <optional> | ||
2880 | 475 | <attribute name="sectors"> | ||
2881 | 476 | <data type="nonNegativeInteger"/> | ||
2882 | 477 | </attribute> | ||
2883 | 478 | </optional> | ||
2884 | 479 | </element> | ||
2885 | 480 | </zeroOrMore> | ||
2886 | 481 | </element> | ||
2887 | 482 | </define> | ||
2888 | 483 | |||
2889 | 484 | |||
2890 | 485 | <define name="def_puid-list"> | ||
2891 | 486 | <element name="puid-list"> | ||
2892 | 487 | <ref name="def_list-attributes"/> | ||
2893 | 488 | <zeroOrMore> | ||
2894 | 489 | <element name="puid"> | ||
2895 | 490 | <attribute name="id"> | ||
2896 | 491 | <ref name="def_uuid"/> | ||
2897 | 492 | </attribute> | ||
2898 | 493 | </element> | ||
2899 | 494 | </zeroOrMore> | ||
2900 | 495 | </element> | ||
2901 | 496 | </define> | ||
2902 | 497 | |||
2903 | 498 | |||
2904 | 499 | <define name="def_relation-list"> | ||
2905 | 500 | <element name="relation-list"> | ||
2906 | 501 | <attribute name="target-type"> | ||
2907 | 502 | <data type="anyURI"/> | ||
2908 | 503 | </attribute> | ||
2909 | 504 | <ref name="def_list-attributes"/> | ||
2910 | 505 | <zeroOrMore> | ||
2911 | 506 | <ref name="def_relation-element"/> | ||
2912 | 507 | </zeroOrMore> | ||
2913 | 508 | </element> | ||
2914 | 509 | </define> | ||
2915 | 510 | |||
2916 | 511 | |||
2917 | 512 | <define name="def_list-attributes"> | ||
2918 | 513 | <optional> | ||
2919 | 514 | <attribute name="count"> | ||
2920 | 515 | <data type="nonNegativeInteger"/> | ||
2921 | 516 | </attribute> | ||
2922 | 517 | </optional> | ||
2923 | 518 | <optional> | ||
2924 | 519 | <attribute name="offset"> | ||
2925 | 520 | <data type="nonNegativeInteger"/> | ||
2926 | 521 | </attribute> | ||
2927 | 522 | </optional> | ||
2928 | 523 | </define> | ||
2929 | 524 | |||
2930 | 525 | |||
2931 | 526 | <!-- A space separated list of URIs, relative ones are possible, too. --> | ||
2932 | 527 | <define name="def_URI-list"> | ||
2933 | 528 | <list> | ||
2934 | 529 | <oneOrMore> | ||
2935 | 530 | <data type="anyURI"/> | ||
2936 | 531 | </oneOrMore> | ||
2937 | 532 | </list> | ||
2938 | 533 | </define> | ||
2939 | 534 | |||
2940 | 535 | |||
2941 | 536 | <!-- A date with varying precision in format 'YYYY-MM-DD'. --> | ||
2942 | 537 | <define name="def_incomplete-date"> | ||
2943 | 538 | <data type="string"> | ||
2944 | 539 | <param name="pattern">[0-9]{4}(-[0-9]{2})?(-[0-9]{2})?</param> | ||
2945 | 540 | </data> | ||
2946 | 541 | </define> | ||
2947 | 542 | |||
2948 | 543 | |||
2949 | 544 | <!-- A two-letter country code like 'DE', 'UK', 'FR' etc. --> | ||
2950 | 545 | <define name="def_iso-3166"> | ||
2951 | 546 | <data type="string"> | ||
2952 | 547 | <param name="pattern">[A-Z]{2}</param> | ||
2953 | 548 | </data> | ||
2954 | 549 | </define> | ||
2955 | 550 | |||
2956 | 551 | |||
2957 | 552 | <!-- An ISO-639-2/T language code like 'DEU', 'ENG', 'JPN' etc. --> | ||
2958 | 553 | <define name="def_iso-639"> | ||
2959 | 554 | <data type="string"> | ||
2960 | 555 | <param name="pattern">[A-Z]{3}</param> | ||
2961 | 556 | </data> | ||
2962 | 557 | </define> | ||
2963 | 558 | |||
2964 | 559 | |||
2965 | 560 | <!-- A four-letter script code like 'Latn', 'Cyrl', etc. --> | ||
2966 | 561 | <define name="def_iso-15924"> | ||
2967 | 562 | <data type="string"> | ||
2968 | 563 | <param name="pattern">[A-Z][a-z]{3}</param> | ||
2969 | 564 | </data> | ||
2970 | 565 | </define> | ||
2971 | 566 | |||
2972 | 567 | |||
2973 | 568 | <!-- A 128 Bit UUID in its standard ASCII representation. --> | ||
2974 | 569 | <define name="def_uuid"> | ||
2975 | 570 | <data type="string"> | ||
2976 | 571 | <param name="pattern">[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}</param> | ||
2977 | 572 | </data> | ||
2978 | 573 | </define> | ||
2979 | 574 | |||
2980 | 575 | |||
2981 | 576 | <!-- Reading direction of a relation. Defaults to "both". --> | ||
2982 | 577 | <define name="def_direction"> | ||
2983 | 578 | <choice> | ||
2984 | 579 | <value>both</value> | ||
2985 | 580 | <value>forward</value> | ||
2986 | 581 | <value>backward</value> | ||
2987 | 582 | </choice> | ||
2988 | 583 | </define> | ||
2989 | 584 | |||
2990 | 585 | </grammar> | ||
2991 | 586 | 0 | ||
2992 | === removed file 'schema/musicbrainz_mmd-1.0rc1.rng' | |||
2993 | --- schema/musicbrainz_mmd-1.0rc1.rng 2012-02-01 17:18:10 +0000 | |||
2994 | +++ schema/musicbrainz_mmd-1.0rc1.rng 1970-01-01 00:00:00 +0000 | |||
2995 | @@ -1,478 +0,0 @@ | |||
2996 | 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2997 | 2 | |||
2998 | 3 | <!-- ================================================================== | ||
2999 | 4 | $Id: musicbrainz_mmd-1.0rc1.rng 36 2006-01-30 10:23:03Z matt $ | ||
3000 | 5 | |||
3001 | 6 | Relax NG Schema for MusicBrainz XML Metadata Version 1.0rc1 | ||
3002 | 7 | |||
3003 | 8 | |||
3004 | 9 | This XML schema has been designed to represent music metadata. | ||
3005 | 10 | Documentation and the latest revision can be found at | ||
3006 | 11 | |||
3007 | 12 | http://musicbrainz.org/development/mmd/ | ||
3008 | 13 | |||
3009 | 14 | |||
3010 | 15 | Copyright (c) 2006 Robert Kaye, Matthias Friedrich | ||
3011 | 16 | |||
3012 | 17 | The schema is released under the Creative Commons | ||
3013 | 18 | Attribution-ShareAlike 2.5 license. | ||
3014 | 19 | |||
3015 | 20 | http://creativecommons.org/licenses/by-sa/2.5/ | ||
3016 | 21 | |||
3017 | 22 | ================================================================== --> | ||
3018 | 23 | |||
3019 | 24 | |||
3020 | 25 | <grammar xmlns="http://relaxng.org/ns/structure/1.0" | ||
3021 | 26 | datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" | ||
3022 | 27 | ns="http://musicbrainz.org/ns/mmd-1.0#"> | ||
3023 | 28 | |||
3024 | 29 | |||
3025 | 30 | <start> | ||
3026 | 31 | <ref name="def_metadata"/> | ||
3027 | 32 | </start> | ||
3028 | 33 | |||
3029 | 34 | |||
3030 | 35 | <define name="def_metadata"> | ||
3031 | 36 | <element name="metadata"> | ||
3032 | 37 | <optional> | ||
3033 | 38 | <attribute name="generator"> | ||
3034 | 39 | <data type="anyURI"/> | ||
3035 | 40 | </attribute> | ||
3036 | 41 | </optional> | ||
3037 | 42 | <optional> | ||
3038 | 43 | <attribute name="created"> | ||
3039 | 44 | <data type="dateTime"/> | ||
3040 | 45 | </attribute> | ||
3041 | 46 | </optional> | ||
3042 | 47 | |||
3043 | 48 | <optional> | ||
3044 | 49 | <ref name="def_artist"/> | ||
3045 | 50 | </optional> | ||
3046 | 51 | <optional> | ||
3047 | 52 | <ref name="def_release"/> | ||
3048 | 53 | </optional> | ||
3049 | 54 | <optional> | ||
3050 | 55 | <ref name="def_track"/> | ||
3051 | 56 | </optional> | ||
3052 | 57 | |||
3053 | 58 | <optional> | ||
3054 | 59 | <ref name="def_artist-list"/> | ||
3055 | 60 | </optional> | ||
3056 | 61 | <optional> | ||
3057 | 62 | <ref name="def_release-list"/> | ||
3058 | 63 | </optional> | ||
3059 | 64 | <optional> | ||
3060 | 65 | <ref name="def_track-list"/> | ||
3061 | 66 | </optional> | ||
3062 | 67 | |||
3063 | 68 | <optional> | ||
3064 | 69 | <ref name="def_extension"/> | ||
3065 | 70 | </optional> | ||
3066 | 71 | </element> | ||
3067 | 72 | </define> | ||
3068 | 73 | |||
3069 | 74 | |||
3070 | 75 | <define name="def_artist"> | ||
3071 | 76 | <element name="artist"> | ||
3072 | 77 | <optional> | ||
3073 | 78 | <attribute name="id"> | ||
3074 | 79 | <data type="anyURI"/> | ||
3075 | 80 | </attribute> | ||
3076 | 81 | </optional> | ||
3077 | 82 | <optional> | ||
3078 | 83 | <attribute name="type"> | ||
3079 | 84 | <data type="anyURI"/> | ||
3080 | 85 | </attribute> | ||
3081 | 86 | </optional> | ||
3082 | 87 | |||
3083 | 88 | <optional> | ||
3084 | 89 | <element name="name"> | ||
3085 | 90 | <text/> | ||
3086 | 91 | </element> | ||
3087 | 92 | </optional> | ||
3088 | 93 | <optional> | ||
3089 | 94 | <element name="sort-name"> | ||
3090 | 95 | <text/> | ||
3091 | 96 | </element> | ||
3092 | 97 | </optional> | ||
3093 | 98 | <optional> | ||
3094 | 99 | <element name="life-span"> | ||
3095 | 100 | <optional> | ||
3096 | 101 | <attribute name="begin"> | ||
3097 | 102 | <ref name="def_incomplete-date"/> | ||
3098 | 103 | </attribute> | ||
3099 | 104 | </optional> | ||
3100 | 105 | <optional> | ||
3101 | 106 | <attribute name="end"> | ||
3102 | 107 | <ref name="def_incomplete-date"/> | ||
3103 | 108 | </attribute> | ||
3104 | 109 | </optional> | ||
3105 | 110 | </element> | ||
3106 | 111 | </optional> | ||
3107 | 112 | |||
3108 | 113 | <optional> | ||
3109 | 114 | <ref name="def_release-list"/> | ||
3110 | 115 | </optional> | ||
3111 | 116 | <zeroOrMore> | ||
3112 | 117 | <ref name="def_relation-list"/> | ||
3113 | 118 | </zeroOrMore> | ||
3114 | 119 | |||
3115 | 120 | <zeroOrMore> | ||
3116 | 121 | <ref name="def_extension"/> | ||
3117 | 122 | </zeroOrMore> | ||
3118 | 123 | </element> | ||
3119 | 124 | </define> | ||
3120 | 125 | |||
3121 | 126 | |||
3122 | 127 | <define name="def_release"> | ||
3123 | 128 | <element name="release"> | ||
3124 | 129 | <optional> | ||
3125 | 130 | <attribute name="id"> | ||
3126 | 131 | <data type="anyURI"/> | ||
3127 | 132 | </attribute> | ||
3128 | 133 | </optional> | ||
3129 | 134 | <optional> | ||
3130 | 135 | <attribute name="type"> | ||
3131 | 136 | <ref name="def_URI-list"/> | ||
3132 | 137 | </attribute> | ||
3133 | 138 | </optional> | ||
3134 | 139 | |||
3135 | 140 | <optional> | ||
3136 | 141 | <element name="title"> | ||
3137 | 142 | <text/> | ||
3138 | 143 | </element> | ||
3139 | 144 | </optional> | ||
3140 | 145 | <optional> | ||
3141 | 146 | <element name="text-representation"> | ||
3142 | 147 | <optional> | ||
3143 | 148 | <attribute name="language"> | ||
3144 | 149 | <ref name="def_iso-639"/> | ||
3145 | 150 | </attribute> | ||
3146 | 151 | </optional> | ||
3147 | 152 | <optional> | ||
3148 | 153 | <attribute name="script"> | ||
3149 | 154 | <ref name="def_iso-15924"/> | ||
3150 | 155 | </attribute> | ||
3151 | 156 | </optional> | ||
3152 | 157 | </element> | ||
3153 | 158 | </optional> | ||
3154 | 159 | <optional> | ||
3155 | 160 | <element name="asin"> | ||
3156 | 161 | <data type="string"> | ||
3157 | 162 | <param name="pattern">[A-Z0-9]{10}</param> | ||
3158 | 163 | </data> | ||
3159 | 164 | </element> | ||
3160 | 165 | </optional> | ||
3161 | 166 | <optional> | ||
3162 | 167 | <ref name="def_artist"/> | ||
3163 | 168 | </optional> | ||
3164 | 169 | |||
3165 | 170 | <optional> | ||
3166 | 171 | <ref name="def_release-info-list"/> | ||
3167 | 172 | </optional> | ||
3168 | 173 | <optional> | ||
3169 | 174 | <ref name="def_disc-list"/> | ||
3170 | 175 | </optional> | ||
3171 | 176 | <optional> | ||
3172 | 177 | <ref name="def_trmid-list"/> | ||
3173 | 178 | </optional> | ||
3174 | 179 | <optional> | ||
3175 | 180 | <ref name="def_track-list"/> | ||
3176 | 181 | </optional> | ||
3177 | 182 | <zeroOrMore> | ||
3178 | 183 | <ref name="def_relation-list"/> | ||
3179 | 184 | </zeroOrMore> | ||
3180 | 185 | |||
3181 | 186 | <zeroOrMore> | ||
3182 | 187 | <ref name="def_extension"/> | ||
3183 | 188 | </zeroOrMore> | ||
3184 | 189 | </element> | ||
3185 | 190 | </define> | ||
3186 | 191 | |||
3187 | 192 | |||
3188 | 193 | <define name="def_track"> | ||
3189 | 194 | <element name="track"> | ||
3190 | 195 | <optional> | ||
3191 | 196 | <attribute name="id"> | ||
3192 | 197 | <data type="anyURI"/> | ||
3193 | 198 | </attribute> | ||
3194 | 199 | </optional> | ||
3195 | 200 | |||
3196 | 201 | <optional> | ||
3197 | 202 | <element name="title"> | ||
3198 | 203 | <text/> | ||
3199 | 204 | </element> | ||
3200 | 205 | </optional> | ||
3201 | 206 | <optional> | ||
3202 | 207 | <element name="duration"> | ||
3203 | 208 | <data type="nonNegativeInteger"/> | ||
3204 | 209 | </element> | ||
3205 | 210 | </optional> | ||
3206 | 211 | <optional> | ||
3207 | 212 | <ref name="def_artist"/> | ||
3208 | 213 | </optional> | ||
3209 | 214 | |||
3210 | 215 | <optional> | ||
3211 | 216 | <ref name="def_release-list"/> | ||
3212 | 217 | </optional> | ||
3213 | 218 | <optional> | ||
3214 | 219 | <ref name="def_trmid-list"/> | ||
3215 | 220 | </optional> | ||
3216 | 221 | <zeroOrMore> | ||
3217 | 222 | <ref name="def_relation-list"/> | ||
3218 | 223 | </zeroOrMore> | ||
3219 | 224 | |||
3220 | 225 | <zeroOrMore> | ||
3221 | 226 | <ref name="def_extension"/> | ||
3222 | 227 | </zeroOrMore> | ||
3223 | 228 | </element> | ||
3224 | 229 | </define> | ||
3225 | 230 | |||
3226 | 231 | |||
3227 | 232 | <define name="def_relation"> | ||
3228 | 233 | <element name="relation"> | ||
3229 | 234 | <attribute name="type"> | ||
3230 | 235 | <data type="anyURI"/> | ||
3231 | 236 | </attribute> | ||
3232 | 237 | <attribute name="target"> | ||
3233 | 238 | <data type="anyURI"/> | ||
3234 | 239 | </attribute> | ||
3235 | 240 | <optional> | ||
3236 | 241 | <attribute name="direction"> | ||
3237 | 242 | <ref name="def_direction"/> | ||
3238 | 243 | </attribute> | ||
3239 | 244 | </optional> | ||
3240 | 245 | <optional> | ||
3241 | 246 | <attribute name="attributes"> | ||
3242 | 247 | <ref name="def_URI-list"/> | ||
3243 | 248 | </attribute> | ||
3244 | 249 | </optional> | ||
3245 | 250 | <optional> | ||
3246 | 251 | <attribute name="begin"> | ||
3247 | 252 | <ref name="def_incomplete-date"/> | ||
3248 | 253 | </attribute> | ||
3249 | 254 | </optional> | ||
3250 | 255 | <optional> | ||
3251 | 256 | <attribute name="end"> | ||
3252 | 257 | <ref name="def_incomplete-date"/> | ||
3253 | 258 | </attribute> | ||
3254 | 259 | </optional> | ||
3255 | 260 | |||
3256 | 261 | <optional> | ||
3257 | 262 | <choice> | ||
3258 | 263 | <ref name="def_artist"/> | ||
3259 | 264 | <ref name="def_release"/> | ||
3260 | 265 | <ref name="def_track"/> | ||
3261 | 266 | |||
3262 | 267 | <ref name="def_extension"/> | ||
3263 | 268 | </choice> | ||
3264 | 269 | </optional> | ||
3265 | 270 | </element> | ||
3266 | 271 | </define> | ||
3267 | 272 | |||
3268 | 273 | |||
3269 | 274 | <define name="def_extension"> | ||
3270 | 275 | <element> | ||
3271 | 276 | <anyName> | ||
3272 | 277 | <except> | ||
3273 | 278 | <nsName ns="http://musicbrainz.org/ns/mmd-1.0#"/> | ||
3274 | 279 | <nsName ns=""/> | ||
3275 | 280 | </except> | ||
3276 | 281 | </anyName> | ||
3277 | 282 | <zeroOrMore> | ||
3278 | 283 | <choice> | ||
3279 | 284 | <attribute> | ||
3280 | 285 | <anyName/> | ||
3281 | 286 | </attribute> | ||
3282 | 287 | <text/> | ||
3283 | 288 | <ref name="def_anything"/> | ||
3284 | 289 | </choice> | ||
3285 | 290 | </zeroOrMore> | ||
3286 | 291 | </element> | ||
3287 | 292 | </define> | ||
3288 | 293 | |||
3289 | 294 | |||
3290 | 295 | <define name="def_anything"> | ||
3291 | 296 | <element> | ||
3292 | 297 | <anyName> | ||
3293 | 298 | <except> | ||
3294 | 299 | <nsName ns=""/> | ||
3295 | 300 | </except> | ||
3296 | 301 | </anyName> | ||
3297 | 302 | <zeroOrMore> | ||
3298 | 303 | <choice> | ||
3299 | 304 | <attribute> | ||
3300 | 305 | <anyName/> | ||
3301 | 306 | </attribute> | ||
3302 | 307 | <text/> | ||
3303 | 308 | <ref name="def_anything"/> | ||
3304 | 309 | </choice> | ||
3305 | 310 | </zeroOrMore> | ||
3306 | 311 | </element> | ||
3307 | 312 | </define> | ||
3308 | 313 | |||
3309 | 314 | |||
3310 | 315 | <define name="def_artist-list"> | ||
3311 | 316 | <element name="artist-list"> | ||
3312 | 317 | <ref name="def_list-attributes"/> | ||
3313 | 318 | <zeroOrMore> | ||
3314 | 319 | <ref name="def_artist"/> | ||
3315 | 320 | </zeroOrMore> | ||
3316 | 321 | </element> | ||
3317 | 322 | </define> | ||
3318 | 323 | |||
3319 | 324 | |||
3320 | 325 | <define name="def_release-list"> | ||
3321 | 326 | <element name="release-list"> | ||
3322 | 327 | <ref name="def_list-attributes"/> | ||
3323 | 328 | <zeroOrMore> | ||
3324 | 329 | <ref name="def_release"/> | ||
3325 | 330 | </zeroOrMore> | ||
3326 | 331 | </element> | ||
3327 | 332 | </define> | ||
3328 | 333 | |||
3329 | 334 | |||
3330 | 335 | <define name="def_track-list"> | ||
3331 | 336 | <element name="track-list"> | ||
3332 | 337 | <ref name="def_list-attributes"/> | ||
3333 | 338 | <zeroOrMore> | ||
3334 | 339 | <ref name="def_track"/> | ||
3335 | 340 | </zeroOrMore> | ||
3336 | 341 | </element> | ||
3337 | 342 | </define> | ||
3338 | 343 | |||
3339 | 344 | |||
3340 | 345 | <define name="def_release-info-list"> | ||
3341 | 346 | <element name="release-info-list"> | ||
3342 | 347 | <ref name="def_list-attributes"/> | ||
3343 | 348 | <zeroOrMore> | ||
3344 | 349 | <element name="info"> | ||
3345 | 350 | <attribute name="date"> | ||
3346 | 351 | <ref name="def_incomplete-date"/> | ||
3347 | 352 | </attribute> | ||
3348 | 353 | <attribute name="country"> | ||
3349 | 354 | <ref name="def_iso-3166"/> | ||
3350 | 355 | </attribute> | ||
3351 | 356 | </element> | ||
3352 | 357 | </zeroOrMore> | ||
3353 | 358 | </element> | ||
3354 | 359 | </define> | ||
3355 | 360 | |||
3356 | 361 | |||
3357 | 362 | <define name="def_disc-list"> | ||
3358 | 363 | <element name="disc-list"> | ||
3359 | 364 | <ref name="def_list-attributes"/> | ||
3360 | 365 | <zeroOrMore> | ||
3361 | 366 | <element name="disc"> | ||
3362 | 367 | <attribute name="id"> | ||
3363 | 368 | <data type="string"> | ||
3364 | 369 | <param name="pattern">[a-zA-Z0-9._]{27}-</param> | ||
3365 | 370 | </data> | ||
3366 | 371 | </attribute> | ||
3367 | 372 | </element> | ||
3368 | 373 | </zeroOrMore> | ||
3369 | 374 | </element> | ||
3370 | 375 | </define> | ||
3371 | 376 | |||
3372 | 377 | |||
3373 | 378 | <define name="def_trmid-list"> | ||
3374 | 379 | <element name="trmid-list"> | ||
3375 | 380 | <ref name="def_list-attributes"/> | ||
3376 | 381 | <zeroOrMore> | ||
3377 | 382 | <element name="trmid"> | ||
3378 | 383 | <attribute name="id"> | ||
3379 | 384 | <ref name="def_uuid"/> | ||
3380 | 385 | </attribute> | ||
3381 | 386 | </element> | ||
3382 | 387 | </zeroOrMore> | ||
3383 | 388 | </element> | ||
3384 | 389 | </define> | ||
3385 | 390 | |||
3386 | 391 | |||
3387 | 392 | <define name="def_relation-list"> | ||
3388 | 393 | <element name="relation-list"> | ||
3389 | 394 | <attribute name="target-type"> | ||
3390 | 395 | <data type="anyURI"/> | ||
3391 | 396 | </attribute> | ||
3392 | 397 | <ref name="def_list-attributes"/> | ||
3393 | 398 | <zeroOrMore> | ||
3394 | 399 | <ref name="def_relation"/> | ||
3395 | 400 | </zeroOrMore> | ||
3396 | 401 | </element> | ||
3397 | 402 | </define> | ||
3398 | 403 | |||
3399 | 404 | |||
3400 | 405 | <define name="def_list-attributes"> | ||
3401 | 406 | <optional> | ||
3402 | 407 | <attribute name="count"> | ||
3403 | 408 | <data type="nonNegativeInteger"/> | ||
3404 | 409 | </attribute> | ||
3405 | 410 | </optional> | ||
3406 | 411 | <optional> | ||
3407 | 412 | <attribute name="offset"> | ||
3408 | 413 | <data type="nonNegativeInteger"/> | ||
3409 | 414 | </attribute> | ||
3410 | 415 | </optional> | ||
3411 | 416 | </define> | ||
3412 | 417 | |||
3413 | 418 | |||
3414 | 419 | <!-- A space separated list of URIs, relative ones are possible, too. --> | ||
3415 | 420 | <define name="def_URI-list"> | ||
3416 | 421 | <list> | ||
3417 | 422 | <oneOrMore> | ||
3418 | 423 | <data type="anyURI"/> | ||
3419 | 424 | </oneOrMore> | ||
3420 | 425 | </list> | ||
3421 | 426 | </define> | ||
3422 | 427 | |||
3423 | 428 | |||
3424 | 429 | <!-- A date with varying precision in format 'YYYY-MM-DD'. --> | ||
3425 | 430 | <define name="def_incomplete-date"> | ||
3426 | 431 | <data type="string"> | ||
3427 | 432 | <param name="pattern">[0-9]{4}(-[0-9]{2})?(-[0-9]{2})?</param> | ||
3428 | 433 | </data> | ||
3429 | 434 | </define> | ||
3430 | 435 | |||
3431 | 436 | |||
3432 | 437 | <!-- A two-letter country code like 'DE', 'UK', 'FR' etc. --> | ||
3433 | 438 | <define name="def_iso-3166"> | ||
3434 | 439 | <data type="string"> | ||
3435 | 440 | <param name="pattern">[A-Z]{2}</param> | ||
3436 | 441 | </data> | ||
3437 | 442 | </define> | ||
3438 | 443 | |||
3439 | 444 | |||
3440 | 445 | <!-- A three-letter language code like 'GER', 'GER', etc. --> | ||
3441 | 446 | <define name="def_iso-639"> | ||
3442 | 447 | <data type="string"> | ||
3443 | 448 | <param name="pattern">[A-Z]{3}</param> | ||
3444 | 449 | </data> | ||
3445 | 450 | </define> | ||
3446 | 451 | |||
3447 | 452 | |||
3448 | 453 | <!-- A four-letter script code like 'Latn', 'Cyrl', etc. --> | ||
3449 | 454 | <define name="def_iso-15924"> | ||
3450 | 455 | <data type="string"> | ||
3451 | 456 | <param name="pattern">[A-Z][a-z]{3}</param> | ||
3452 | 457 | </data> | ||
3453 | 458 | </define> | ||
3454 | 459 | |||
3455 | 460 | |||
3456 | 461 | <!-- A 128 Bit UUID in its standard ASCII representation. --> | ||
3457 | 462 | <define name="def_uuid"> | ||
3458 | 463 | <data type="string"> | ||
3459 | 464 | <param name="pattern">[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}</param> | ||
3460 | 465 | </data> | ||
3461 | 466 | </define> | ||
3462 | 467 | |||
3463 | 468 | |||
3464 | 469 | <!-- Reading direction of a relation. Defaults to "both". --> | ||
3465 | 470 | <define name="def_direction"> | ||
3466 | 471 | <choice> | ||
3467 | 472 | <value>both</value> | ||
3468 | 473 | <value>forward</value> | ||
3469 | 474 | <value>backward</value> | ||
3470 | 475 | </choice> | ||
3471 | 476 | </define> | ||
3472 | 477 | |||
3473 | 478 | </grammar> | ||
3474 | 479 | 0 | ||
3475 | === removed file 'schema/musicbrainz_mmd-1.0rc2.rng' | |||
3476 | --- schema/musicbrainz_mmd-1.0rc2.rng 2012-02-01 17:18:10 +0000 | |||
3477 | +++ schema/musicbrainz_mmd-1.0rc2.rng 1970-01-01 00:00:00 +0000 | |||
3478 | @@ -1,518 +0,0 @@ | |||
3479 | 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
3480 | 2 | |||
3481 | 3 | <!-- ================================================================== | ||
3482 | 4 | $Id: musicbrainz_mmd-1.0rc2.rng 71 2006-02-14 18:56:32Z matt $ | ||
3483 | 5 | |||
3484 | 6 | Relax NG Schema for MusicBrainz XML Metadata Version 1.0rc2 | ||
3485 | 7 | |||
3486 | 8 | |||
3487 | 9 | This XML schema has been designed to represent music metadata. | ||
3488 | 10 | Documentation and the latest revision can be found at | ||
3489 | 11 | |||
3490 | 12 | http://musicbrainz.org/development/mmd/ | ||
3491 | 13 | |||
3492 | 14 | |||
3493 | 15 | Copyright (c) 2006 Robert Kaye, Matthias Friedrich | ||
3494 | 16 | |||
3495 | 17 | The schema is released under the Creative Commons | ||
3496 | 18 | Attribution-ShareAlike 2.5 license. | ||
3497 | 19 | |||
3498 | 20 | http://creativecommons.org/licenses/by-sa/2.5/ | ||
3499 | 21 | |||
3500 | 22 | ================================================================== --> | ||
3501 | 23 | |||
3502 | 24 | |||
3503 | 25 | <grammar xmlns="http://relaxng.org/ns/structure/1.0" | ||
3504 | 26 | datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" | ||
3505 | 27 | ns="http://musicbrainz.org/ns/mmd-1.0#"> | ||
3506 | 28 | |||
3507 | 29 | |||
3508 | 30 | <start> | ||
3509 | 31 | <ref name="def_metadata"/> | ||
3510 | 32 | </start> | ||
3511 | 33 | |||
3512 | 34 | |||
3513 | 35 | <define name="def_metadata"> | ||
3514 | 36 | <element name="metadata"> | ||
3515 | 37 | <optional> | ||
3516 | 38 | <attribute name="generator"> | ||
3517 | 39 | <data type="anyURI"/> | ||
3518 | 40 | </attribute> | ||
3519 | 41 | </optional> | ||
3520 | 42 | <optional> | ||
3521 | 43 | <attribute name="created"> | ||
3522 | 44 | <data type="dateTime"/> | ||
3523 | 45 | </attribute> | ||
3524 | 46 | </optional> | ||
3525 | 47 | |||
3526 | 48 | <optional> | ||
3527 | 49 | <ref name="def_artist"/> | ||
3528 | 50 | </optional> | ||
3529 | 51 | <optional> | ||
3530 | 52 | <ref name="def_release"/> | ||
3531 | 53 | </optional> | ||
3532 | 54 | <optional> | ||
3533 | 55 | <ref name="def_track"/> | ||
3534 | 56 | </optional> | ||
3535 | 57 | |||
3536 | 58 | <optional> | ||
3537 | 59 | <ref name="def_artist-list"/> | ||
3538 | 60 | </optional> | ||
3539 | 61 | <optional> | ||
3540 | 62 | <ref name="def_release-list"/> | ||
3541 | 63 | </optional> | ||
3542 | 64 | <optional> | ||
3543 | 65 | <ref name="def_track-list"/> | ||
3544 | 66 | </optional> | ||
3545 | 67 | |||
3546 | 68 | <optional> | ||
3547 | 69 | <ref name="def_extension"/> | ||
3548 | 70 | </optional> | ||
3549 | 71 | </element> | ||
3550 | 72 | </define> | ||
3551 | 73 | |||
3552 | 74 | |||
3553 | 75 | <define name="def_artist"> | ||
3554 | 76 | <element name="artist"> | ||
3555 | 77 | <optional> | ||
3556 | 78 | <attribute name="id"> | ||
3557 | 79 | <data type="anyURI"/> | ||
3558 | 80 | </attribute> | ||
3559 | 81 | </optional> | ||
3560 | 82 | <optional> | ||
3561 | 83 | <attribute name="type"> | ||
3562 | 84 | <data type="anyURI"/> | ||
3563 | 85 | </attribute> | ||
3564 | 86 | </optional> | ||
3565 | 87 | |||
3566 | 88 | <optional> | ||
3567 | 89 | <element name="name"> | ||
3568 | 90 | <text/> | ||
3569 | 91 | </element> | ||
3570 | 92 | </optional> | ||
3571 | 93 | <optional> | ||
3572 | 94 | <element name="sort-name"> | ||
3573 | 95 | <text/> | ||
3574 | 96 | </element> | ||
3575 | 97 | </optional> | ||
3576 | 98 | <optional> | ||
3577 | 99 | <element name="disambiguation"> | ||
3578 | 100 | <text/> | ||
3579 | 101 | </element> | ||
3580 | 102 | </optional> | ||
3581 | 103 | <optional> | ||
3582 | 104 | <element name="life-span"> | ||
3583 | 105 | <optional> | ||
3584 | 106 | <attribute name="begin"> | ||
3585 | 107 | <ref name="def_incomplete-date"/> | ||
3586 | 108 | </attribute> | ||
3587 | 109 | </optional> | ||
3588 | 110 | <optional> | ||
3589 | 111 | <attribute name="end"> | ||
3590 | 112 | <ref name="def_incomplete-date"/> | ||
3591 | 113 | </attribute> | ||
3592 | 114 | </optional> | ||
3593 | 115 | </element> | ||
3594 | 116 | </optional> | ||
3595 | 117 | |||
3596 | 118 | <optional> | ||
3597 | 119 | <ref name="def_alias-list"/> | ||
3598 | 120 | </optional> | ||
3599 | 121 | <optional> | ||
3600 | 122 | <ref name="def_release-list"/> | ||
3601 | 123 | </optional> | ||
3602 | 124 | <zeroOrMore> | ||
3603 | 125 | <ref name="def_relation-list"/> | ||
3604 | 126 | </zeroOrMore> | ||
3605 | 127 | |||
3606 | 128 | <zeroOrMore> | ||
3607 | 129 | <ref name="def_extension"/> | ||
3608 | 130 | </zeroOrMore> | ||
3609 | 131 | </element> | ||
3610 | 132 | </define> | ||
3611 | 133 | |||
3612 | 134 | |||
3613 | 135 | <define name="def_release"> | ||
3614 | 136 | <element name="release"> | ||
3615 | 137 | <optional> | ||
3616 | 138 | <attribute name="id"> | ||
3617 | 139 | <data type="anyURI"/> | ||
3618 | 140 | </attribute> | ||
3619 | 141 | </optional> | ||
3620 | 142 | <optional> | ||
3621 | 143 | <attribute name="type"> | ||
3622 | 144 | <ref name="def_URI-list"/> | ||
3623 | 145 | </attribute> | ||
3624 | 146 | </optional> | ||
3625 | 147 | |||
3626 | 148 | <optional> | ||
3627 | 149 | <element name="title"> | ||
3628 | 150 | <text/> | ||
3629 | 151 | </element> | ||
3630 | 152 | </optional> | ||
3631 | 153 | <optional> | ||
3632 | 154 | <element name="text-representation"> | ||
3633 | 155 | <optional> | ||
3634 | 156 | <attribute name="language"> | ||
3635 | 157 | <ref name="def_iso-639"/> | ||
3636 | 158 | </attribute> | ||
3637 | 159 | </optional> | ||
3638 | 160 | <optional> | ||
3639 | 161 | <attribute name="script"> | ||
3640 | 162 | <ref name="def_iso-15924"/> | ||
3641 | 163 | </attribute> | ||
3642 | 164 | </optional> | ||
3643 | 165 | </element> | ||
3644 | 166 | </optional> | ||
3645 | 167 | <optional> | ||
3646 | 168 | <element name="asin"> | ||
3647 | 169 | <data type="string"> | ||
3648 | 170 | <param name="pattern">[A-Z0-9]{10}</param> | ||
3649 | 171 | </data> | ||
3650 | 172 | </element> | ||
3651 | 173 | </optional> | ||
3652 | 174 | <optional> | ||
3653 | 175 | <ref name="def_artist"/> | ||
3654 | 176 | </optional> | ||
3655 | 177 | |||
3656 | 178 | <optional> | ||
3657 | 179 | <ref name="def_release-event-list"/> | ||
3658 | 180 | </optional> | ||
3659 | 181 | <optional> | ||
3660 | 182 | <ref name="def_disc-list"/> | ||
3661 | 183 | </optional> | ||
3662 | 184 | <optional> | ||
3663 | 185 | <ref name="def_trmid-list"/> | ||
3664 | 186 | </optional> | ||
3665 | 187 | <optional> | ||
3666 | 188 | <ref name="def_track-list"/> | ||
3667 | 189 | </optional> | ||
3668 | 190 | <zeroOrMore> | ||
3669 | 191 | <ref name="def_relation-list"/> | ||
3670 | 192 | </zeroOrMore> | ||
3671 | 193 | |||
3672 | 194 | <zeroOrMore> | ||
3673 | 195 | <ref name="def_extension"/> | ||
3674 | 196 | </zeroOrMore> | ||
3675 | 197 | </element> | ||
3676 | 198 | </define> | ||
3677 | 199 | |||
3678 | 200 | |||
3679 | 201 | <define name="def_track"> | ||
3680 | 202 | <element name="track"> | ||
3681 | 203 | <optional> | ||
3682 | 204 | <attribute name="id"> | ||
3683 | 205 | <data type="anyURI"/> | ||
3684 | 206 | </attribute> | ||
3685 | 207 | </optional> | ||
3686 | 208 | |||
3687 | 209 | <optional> | ||
3688 | 210 | <element name="title"> | ||
3689 | 211 | <text/> | ||
3690 | 212 | </element> | ||
3691 | 213 | </optional> | ||
3692 | 214 | <optional> | ||
3693 | 215 | <element name="duration"> | ||
3694 | 216 | <data type="nonNegativeInteger"/> | ||
3695 | 217 | </element> | ||
3696 | 218 | </optional> | ||
3697 | 219 | <optional> | ||
3698 | 220 | <ref name="def_artist"/> | ||
3699 | 221 | </optional> | ||
3700 | 222 | |||
3701 | 223 | <optional> | ||
3702 | 224 | <ref name="def_release-list"/> | ||
3703 | 225 | </optional> | ||
3704 | 226 | <optional> | ||
3705 | 227 | <ref name="def_trmid-list"/> | ||
3706 | 228 | </optional> | ||
3707 | 229 | <zeroOrMore> | ||
3708 | 230 | <ref name="def_relation-list"/> | ||
3709 | 231 | </zeroOrMore> | ||
3710 | 232 | |||
3711 | 233 | <zeroOrMore> | ||
3712 | 234 | <ref name="def_extension"/> | ||
3713 | 235 | </zeroOrMore> | ||
3714 | 236 | </element> | ||
3715 | 237 | </define> | ||
3716 | 238 | |||
3717 | 239 | |||
3718 | 240 | <define name="def_relation"> | ||
3719 | 241 | <element name="relation"> | ||
3720 | 242 | <attribute name="type"> | ||
3721 | 243 | <data type="anyURI"/> | ||
3722 | 244 | </attribute> | ||
3723 | 245 | <attribute name="target"> | ||
3724 | 246 | <data type="anyURI"/> | ||
3725 | 247 | </attribute> | ||
3726 | 248 | <optional> | ||
3727 | 249 | <attribute name="direction"> | ||
3728 | 250 | <ref name="def_direction"/> | ||
3729 | 251 | </attribute> | ||
3730 | 252 | </optional> | ||
3731 | 253 | <optional> | ||
3732 | 254 | <attribute name="attributes"> | ||
3733 | 255 | <ref name="def_URI-list"/> | ||
3734 | 256 | </attribute> | ||
3735 | 257 | </optional> | ||
3736 | 258 | <optional> | ||
3737 | 259 | <attribute name="begin"> | ||
3738 | 260 | <ref name="def_incomplete-date"/> | ||
3739 | 261 | </attribute> | ||
3740 | 262 | </optional> | ||
3741 | 263 | <optional> | ||
3742 | 264 | <attribute name="end"> | ||
3743 | 265 | <ref name="def_incomplete-date"/> | ||
3744 | 266 | </attribute> | ||
3745 | 267 | </optional> | ||
3746 | 268 | |||
3747 | 269 | <optional> | ||
3748 | 270 | <choice> | ||
3749 | 271 | <ref name="def_artist"/> | ||
3750 | 272 | <ref name="def_release"/> | ||
3751 | 273 | <ref name="def_track"/> | ||
3752 | 274 | |||
3753 | 275 | <ref name="def_extension"/> | ||
3754 | 276 | </choice> | ||
3755 | 277 | </optional> | ||
3756 | 278 | </element> | ||
3757 | 279 | </define> | ||
3758 | 280 | |||
3759 | 281 | |||
3760 | 282 | <define name="def_alias"> | ||
3761 | 283 | <element name="alias"> | ||
3762 | 284 | <optional> | ||
3763 | 285 | <attribute name="type"> | ||
3764 | 286 | <data type="anyURI"/> | ||
3765 | 287 | </attribute> | ||
3766 | 288 | </optional> | ||
3767 | 289 | <optional> | ||
3768 | 290 | <attribute name="script"> | ||
3769 | 291 | <ref name="def_iso-15924"/> | ||
3770 | 292 | </attribute> | ||
3771 | 293 | </optional> | ||
3772 | 294 | <text/> | ||
3773 | 295 | </element> | ||
3774 | 296 | </define> | ||
3775 | 297 | |||
3776 | 298 | |||
3777 | 299 | <define name="def_extension"> | ||
3778 | 300 | <element> | ||
3779 | 301 | <anyName> | ||
3780 | 302 | <except> | ||
3781 | 303 | <nsName ns="http://musicbrainz.org/ns/mmd-1.0#"/> | ||
3782 | 304 | <nsName ns=""/> | ||
3783 | 305 | </except> | ||
3784 | 306 | </anyName> | ||
3785 | 307 | <zeroOrMore> | ||
3786 | 308 | <choice> | ||
3787 | 309 | <attribute> | ||
3788 | 310 | <anyName/> | ||
3789 | 311 | </attribute> | ||
3790 | 312 | <text/> | ||
3791 | 313 | <ref name="def_anything"/> | ||
3792 | 314 | </choice> | ||
3793 | 315 | </zeroOrMore> | ||
3794 | 316 | </element> | ||
3795 | 317 | </define> | ||
3796 | 318 | |||
3797 | 319 | |||
3798 | 320 | <define name="def_anything"> | ||
3799 | 321 | <element> | ||
3800 | 322 | <anyName> | ||
3801 | 323 | <except> | ||
3802 | 324 | <nsName ns=""/> | ||
3803 | 325 | </except> | ||
3804 | 326 | </anyName> | ||
3805 | 327 | <zeroOrMore> | ||
3806 | 328 | <choice> | ||
3807 | 329 | <attribute> | ||
3808 | 330 | <anyName/> | ||
3809 | 331 | </attribute> | ||
3810 | 332 | <text/> | ||
3811 | 333 | <ref name="def_anything"/> | ||
3812 | 334 | </choice> | ||
3813 | 335 | </zeroOrMore> | ||
3814 | 336 | </element> | ||
3815 | 337 | </define> | ||
3816 | 338 | |||
3817 | 339 | |||
3818 | 340 | <define name="def_artist-list"> | ||
3819 | 341 | <element name="artist-list"> | ||
3820 | 342 | <ref name="def_list-attributes"/> | ||
3821 | 343 | <zeroOrMore> | ||
3822 | 344 | <ref name="def_artist"/> | ||
3823 | 345 | </zeroOrMore> | ||
3824 | 346 | </element> | ||
3825 | 347 | </define> | ||
3826 | 348 | |||
3827 | 349 | |||
3828 | 350 | <define name="def_release-list"> | ||
3829 | 351 | <element name="release-list"> | ||
3830 | 352 | <ref name="def_list-attributes"/> | ||
3831 | 353 | <zeroOrMore> | ||
3832 | 354 | <ref name="def_release"/> | ||
3833 | 355 | </zeroOrMore> | ||
3834 | 356 | </element> | ||
3835 | 357 | </define> | ||
3836 | 358 | |||
3837 | 359 | |||
3838 | 360 | <define name="def_alias-list"> | ||
3839 | 361 | <element name="alias-list"> | ||
3840 | 362 | <ref name="def_list-attributes"/> | ||
3841 | 363 | <zeroOrMore> | ||
3842 | 364 | <ref name="def_alias"/> | ||
3843 | 365 | </zeroOrMore> | ||
3844 | 366 | </element> | ||
3845 | 367 | </define> | ||
3846 | 368 | |||
3847 | 369 | |||
3848 | 370 | <define name="def_track-list"> | ||
3849 | 371 | <element name="track-list"> | ||
3850 | 372 | <ref name="def_list-attributes"/> | ||
3851 | 373 | <zeroOrMore> | ||
3852 | 374 | <ref name="def_track"/> | ||
3853 | 375 | </zeroOrMore> | ||
3854 | 376 | </element> | ||
3855 | 377 | </define> | ||
3856 | 378 | |||
3857 | 379 | |||
3858 | 380 | <define name="def_release-event-list"> | ||
3859 | 381 | <element name="release-event-list"> | ||
3860 | 382 | <ref name="def_list-attributes"/> | ||
3861 | 383 | <zeroOrMore> | ||
3862 | 384 | <element name="event"> | ||
3863 | 385 | <attribute name="date"> | ||
3864 | 386 | <ref name="def_incomplete-date"/> | ||
3865 | 387 | </attribute> | ||
3866 | 388 | <attribute name="country"> | ||
3867 | 389 | <ref name="def_iso-3166"/> | ||
3868 | 390 | </attribute> | ||
3869 | 391 | </element> | ||
3870 | 392 | </zeroOrMore> | ||
3871 | 393 | </element> | ||
3872 | 394 | </define> | ||
3873 | 395 | |||
3874 | 396 | |||
3875 | 397 | <define name="def_disc-list"> | ||
3876 | 398 | <element name="disc-list"> | ||
3877 | 399 | <ref name="def_list-attributes"/> | ||
3878 | 400 | <zeroOrMore> | ||
3879 | 401 | <element name="disc"> | ||
3880 | 402 | <attribute name="id"> | ||
3881 | 403 | <data type="string"> | ||
3882 | 404 | <param name="pattern">[a-zA-Z0-9._]{27}-</param> | ||
3883 | 405 | </data> | ||
3884 | 406 | </attribute> | ||
3885 | 407 | <optional> | ||
3886 | 408 | <attribute name="sectors"> | ||
3887 | 409 | <data type="nonNegativeInteger"/> | ||
3888 | 410 | </attribute> | ||
3889 | 411 | </optional> | ||
3890 | 412 | </element> | ||
3891 | 413 | </zeroOrMore> | ||
3892 | 414 | </element> | ||
3893 | 415 | </define> | ||
3894 | 416 | |||
3895 | 417 | |||
3896 | 418 | <define name="def_trmid-list"> | ||
3897 | 419 | <element name="trmid-list"> | ||
3898 | 420 | <ref name="def_list-attributes"/> | ||
3899 | 421 | <zeroOrMore> | ||
3900 | 422 | <element name="trmid"> | ||
3901 | 423 | <attribute name="id"> | ||
3902 | 424 | <ref name="def_uuid"/> | ||
3903 | 425 | </attribute> | ||
3904 | 426 | </element> | ||
3905 | 427 | </zeroOrMore> | ||
3906 | 428 | </element> | ||
3907 | 429 | </define> | ||
3908 | 430 | |||
3909 | 431 | |||
3910 | 432 | <define name="def_relation-list"> | ||
3911 | 433 | <element name="relation-list"> | ||
3912 | 434 | <attribute name="target-type"> | ||
3913 | 435 | <data type="anyURI"/> | ||
3914 | 436 | </attribute> | ||
3915 | 437 | <ref name="def_list-attributes"/> | ||
3916 | 438 | <zeroOrMore> | ||
3917 | 439 | <ref name="def_relation"/> | ||
3918 | 440 | </zeroOrMore> | ||
3919 | 441 | </element> | ||
3920 | 442 | </define> | ||
3921 | 443 | |||
3922 | 444 | |||
3923 | 445 | <define name="def_list-attributes"> | ||
3924 | 446 | <optional> | ||
3925 | 447 | <attribute name="count"> | ||
3926 | 448 | <data type="nonNegativeInteger"/> | ||
3927 | 449 | </attribute> | ||
3928 | 450 | </optional> | ||
3929 | 451 | <optional> | ||
3930 | 452 | <attribute name="offset"> | ||
3931 | 453 | <data type="nonNegativeInteger"/> | ||
3932 | 454 | </attribute> | ||
3933 | 455 | </optional> | ||
3934 | 456 | </define> | ||
3935 | 457 | |||
3936 | 458 | |||
3937 | 459 | <!-- A space separated list of URIs, relative ones are possible, too. --> | ||
3938 | 460 | <define name="def_URI-list"> | ||
3939 | 461 | <list> | ||
3940 | 462 | <oneOrMore> | ||
3941 | 463 | <data type="anyURI"/> | ||
3942 | 464 | </oneOrMore> | ||
3943 | 465 | </list> | ||
3944 | 466 | </define> | ||
3945 | 467 | |||
3946 | 468 | |||
3947 | 469 | <!-- A date with varying precision in format 'YYYY-MM-DD'. --> | ||
3948 | 470 | <define name="def_incomplete-date"> | ||
3949 | 471 | <data type="string"> | ||
3950 | 472 | <param name="pattern">[0-9]{4}(-[0-9]{2})?(-[0-9]{2})?</param> | ||
3951 | 473 | </data> | ||
3952 | 474 | </define> | ||
3953 | 475 | |||
3954 | 476 | |||
3955 | 477 | <!-- A two-letter country code like 'DE', 'UK', 'FR' etc. --> | ||
3956 | 478 | <define name="def_iso-3166"> | ||
3957 | 479 | <data type="string"> | ||
3958 | 480 | <param name="pattern">[A-Z]{2}</param> | ||
3959 | 481 | </data> | ||
3960 | 482 | </define> | ||
3961 | 483 | |||
3962 | 484 | |||
3963 | 485 | <!-- An ISO-639-2/T language code like 'DEU', 'ENG', 'JPN' etc. --> | ||
3964 | 486 | <define name="def_iso-639"> | ||
3965 | 487 | <data type="string"> | ||
3966 | 488 | <param name="pattern">[A-Z]{3}</param> | ||
3967 | 489 | </data> | ||
3968 | 490 | </define> | ||
3969 | 491 | |||
3970 | 492 | |||
3971 | 493 | <!-- A four-letter script code like 'Latn', 'Cyrl', etc. --> | ||
3972 | 494 | <define name="def_iso-15924"> | ||
3973 | 495 | <data type="string"> | ||
3974 | 496 | <param name="pattern">[A-Z][a-z]{3}</param> | ||
3975 | 497 | </data> | ||
3976 | 498 | </define> | ||
3977 | 499 | |||
3978 | 500 | |||
3979 | 501 | <!-- A 128 Bit UUID in its standard ASCII representation. --> | ||
3980 | 502 | <define name="def_uuid"> | ||
3981 | 503 | <data type="string"> | ||
3982 | 504 | <param name="pattern">[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}</param> | ||
3983 | 505 | </data> | ||
3984 | 506 | </define> | ||
3985 | 507 | |||
3986 | 508 | |||
3987 | 509 | <!-- Reading direction of a relation. Defaults to "both". --> | ||
3988 | 510 | <define name="def_direction"> | ||
3989 | 511 | <choice> | ||
3990 | 512 | <value>both</value> | ||
3991 | 513 | <value>forward</value> | ||
3992 | 514 | <value>backward</value> | ||
3993 | 515 | </choice> | ||
3994 | 516 | </define> | ||
3995 | 517 | |||
3996 | 518 | </grammar> | ||
3997 | 519 | 0 | ||
3998 | === removed file 'schema/musicbrainz_mmd-1.0rc3.rng' | |||
3999 | --- schema/musicbrainz_mmd-1.0rc3.rng 2012-02-01 17:18:10 +0000 | |||
4000 | +++ schema/musicbrainz_mmd-1.0rc3.rng 1970-01-01 00:00:00 +0000 | |||
4001 | @@ -1,518 +0,0 @@ | |||
4002 | 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
4003 | 2 | |||
4004 | 3 | <!-- ================================================================== | ||
4005 | 4 | $Id: musicbrainz_mmd-1.0rc3.rng 167 2006-03-14 18:59:45Z matt $ | ||
4006 | 5 | |||
4007 | 6 | Relax NG Schema for MusicBrainz XML Metadata Version 1.0rc3 | ||
4008 | 7 | |||
4009 | 8 | |||
4010 | 9 | This XML schema has been designed to represent music metadata. | ||
4011 | 10 | Documentation and the latest revision can be found at | ||
4012 | 11 | |||
4013 | 12 | http://musicbrainz.org/development/mmd/ | ||
4014 | 13 | |||
4015 | 14 | |||
4016 | 15 | Copyright (c) 2006 Robert Kaye, Matthias Friedrich | ||
4017 | 16 | |||
4018 | 17 | The schema is released under the Creative Commons | ||
4019 | 18 | Attribution-ShareAlike 2.5 license. | ||
4020 | 19 | |||
4021 | 20 | http://creativecommons.org/licenses/by-sa/2.5/ | ||
4022 | 21 | |||
4023 | 22 | ================================================================== --> | ||
4024 | 23 | |||
4025 | 24 | |||
4026 | 25 | <grammar xmlns="http://relaxng.org/ns/structure/1.0" | ||
4027 | 26 | datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" | ||
4028 | 27 | ns="http://musicbrainz.org/ns/mmd-1.0#"> | ||
4029 | 28 | |||
4030 | 29 | |||
4031 | 30 | <start> | ||
4032 | 31 | <ref name="def_metadata"/> | ||
4033 | 32 | </start> | ||
4034 | 33 | |||
4035 | 34 | |||
4036 | 35 | <define name="def_metadata"> | ||
4037 | 36 | <element name="metadata"> | ||
4038 | 37 | <optional> | ||
4039 | 38 | <attribute name="generator"> | ||
4040 | 39 | <data type="anyURI"/> | ||
4041 | 40 | </attribute> | ||
4042 | 41 | </optional> | ||
4043 | 42 | <optional> | ||
4044 | 43 | <attribute name="created"> | ||
4045 | 44 | <data type="dateTime"/> | ||
4046 | 45 | </attribute> | ||
4047 | 46 | </optional> | ||
4048 | 47 | |||
4049 | 48 | <optional> | ||
4050 | 49 | <ref name="def_artist"/> | ||
4051 | 50 | </optional> | ||
4052 | 51 | <optional> | ||
4053 | 52 | <ref name="def_release"/> | ||
4054 | 53 | </optional> | ||
4055 | 54 | <optional> | ||
4056 | 55 | <ref name="def_track"/> | ||
4057 | 56 | </optional> | ||
4058 | 57 | |||
4059 | 58 | <optional> | ||
4060 | 59 | <ref name="def_artist-list"/> | ||
4061 | 60 | </optional> | ||
4062 | 61 | <optional> | ||
4063 | 62 | <ref name="def_release-list"/> | ||
4064 | 63 | </optional> | ||
4065 | 64 | <optional> | ||
4066 | 65 | <ref name="def_track-list"/> | ||
4067 | 66 | </optional> | ||
4068 | 67 | |||
4069 | 68 | <optional> | ||
4070 | 69 | <ref name="def_extension"/> | ||
4071 | 70 | </optional> | ||
4072 | 71 | </element> | ||
4073 | 72 | </define> | ||
4074 | 73 | |||
4075 | 74 | |||
4076 | 75 | <define name="def_artist"> | ||
4077 | 76 | <element name="artist"> | ||
4078 | 77 | <optional> | ||
4079 | 78 | <attribute name="id"> | ||
4080 | 79 | <data type="anyURI"/> | ||
4081 | 80 | </attribute> | ||
4082 | 81 | </optional> | ||
4083 | 82 | <optional> | ||
4084 | 83 | <attribute name="type"> | ||
4085 | 84 | <data type="anyURI"/> | ||
4086 | 85 | </attribute> | ||
4087 | 86 | </optional> | ||
4088 | 87 | |||
4089 | 88 | <optional> | ||
4090 | 89 | <element name="name"> | ||
4091 | 90 | <text/> | ||
4092 | 91 | </element> | ||
4093 | 92 | </optional> | ||
4094 | 93 | <optional> | ||
4095 | 94 | <element name="sort-name"> | ||
4096 | 95 | <text/> | ||
4097 | 96 | </element> | ||
4098 | 97 | </optional> | ||
4099 | 98 | <optional> | ||
4100 | 99 | <element name="disambiguation"> | ||
4101 | 100 | <text/> | ||
4102 | 101 | </element> | ||
4103 | 102 | </optional> | ||
4104 | 103 | <optional> | ||
4105 | 104 | <element name="life-span"> | ||
4106 | 105 | <optional> | ||
4107 | 106 | <attribute name="begin"> | ||
4108 | 107 | <ref name="def_incomplete-date"/> | ||
4109 | 108 | </attribute> | ||
4110 | 109 | </optional> | ||
4111 | 110 | <optional> | ||
4112 | 111 | <attribute name="end"> | ||
4113 | 112 | <ref name="def_incomplete-date"/> | ||
4114 | 113 | </attribute> | ||
4115 | 114 | </optional> | ||
4116 | 115 | </element> | ||
4117 | 116 | </optional> | ||
4118 | 117 | |||
4119 | 118 | <optional> | ||
4120 | 119 | <ref name="def_alias-list"/> | ||
4121 | 120 | </optional> | ||
4122 | 121 | <optional> | ||
4123 | 122 | <ref name="def_release-list"/> | ||
4124 | 123 | </optional> | ||
4125 | 124 | <zeroOrMore> | ||
4126 | 125 | <ref name="def_relation-list"/> | ||
4127 | 126 | </zeroOrMore> | ||
4128 | 127 | |||
4129 | 128 | <zeroOrMore> | ||
4130 | 129 | <ref name="def_extension"/> | ||
4131 | 130 | </zeroOrMore> | ||
4132 | 131 | </element> | ||
4133 | 132 | </define> | ||
4134 | 133 | |||
4135 | 134 | |||
4136 | 135 | <define name="def_release"> | ||
4137 | 136 | <element name="release"> | ||
4138 | 137 | <optional> | ||
4139 | 138 | <attribute name="id"> | ||
4140 | 139 | <data type="anyURI"/> | ||
4141 | 140 | </attribute> | ||
4142 | 141 | </optional> | ||
4143 | 142 | <optional> | ||
4144 | 143 | <attribute name="type"> | ||
4145 | 144 | <ref name="def_URI-list"/> | ||
4146 | 145 | </attribute> | ||
4147 | 146 | </optional> | ||
4148 | 147 | |||
4149 | 148 | <optional> | ||
4150 | 149 | <element name="title"> | ||
4151 | 150 | <text/> | ||
4152 | 151 | </element> | ||
4153 | 152 | </optional> | ||
4154 | 153 | <optional> | ||
4155 | 154 | <element name="text-representation"> | ||
4156 | 155 | <optional> | ||
4157 | 156 | <attribute name="language"> | ||
4158 | 157 | <ref name="def_iso-639"/> | ||
4159 | 158 | </attribute> | ||
4160 | 159 | </optional> | ||
4161 | 160 | <optional> | ||
4162 | 161 | <attribute name="script"> | ||
4163 | 162 | <ref name="def_iso-15924"/> | ||
4164 | 163 | </attribute> | ||
4165 | 164 | </optional> | ||
4166 | 165 | </element> | ||
4167 | 166 | </optional> | ||
4168 | 167 | <optional> | ||
4169 | 168 | <element name="asin"> | ||
4170 | 169 | <data type="string"> | ||
4171 | 170 | <param name="pattern">[A-Z0-9]{10}</param> | ||
4172 | 171 | </data> | ||
4173 | 172 | </element> | ||
4174 | 173 | </optional> | ||
4175 | 174 | <optional> | ||
4176 | 175 | <ref name="def_artist"/> | ||
4177 | 176 | </optional> | ||
4178 | 177 | |||
4179 | 178 | <optional> | ||
4180 | 179 | <ref name="def_release-event-list"/> | ||
4181 | 180 | </optional> | ||
4182 | 181 | <optional> | ||
4183 | 182 | <ref name="def_disc-list"/> | ||
4184 | 183 | </optional> | ||
4185 | 184 | <optional> | ||
4186 | 185 | <ref name="def_puid-list"/> | ||
4187 | 186 | </optional> | ||
4188 | 187 | <optional> | ||
4189 | 188 | <ref name="def_track-list"/> | ||
4190 | 189 | </optional> | ||
4191 | 190 | <zeroOrMore> | ||
4192 | 191 | <ref name="def_relation-list"/> | ||
4193 | 192 | </zeroOrMore> | ||
4194 | 193 | |||
4195 | 194 | <zeroOrMore> | ||
4196 | 195 | <ref name="def_extension"/> | ||
4197 | 196 | </zeroOrMore> | ||
4198 | 197 | </element> | ||
4199 | 198 | </define> | ||
4200 | 199 | |||
4201 | 200 | |||
4202 | 201 | <define name="def_track"> | ||
4203 | 202 | <element name="track"> | ||
4204 | 203 | <optional> | ||
4205 | 204 | <attribute name="id"> | ||
4206 | 205 | <data type="anyURI"/> | ||
4207 | 206 | </attribute> | ||
4208 | 207 | </optional> | ||
4209 | 208 | |||
4210 | 209 | <optional> | ||
4211 | 210 | <element name="title"> | ||
4212 | 211 | <text/> | ||
4213 | 212 | </element> | ||
4214 | 213 | </optional> | ||
4215 | 214 | <optional> | ||
4216 | 215 | <element name="duration"> | ||
4217 | 216 | <data type="nonNegativeInteger"/> | ||
4218 | 217 | </element> | ||
4219 | 218 | </optional> | ||
4220 | 219 | <optional> | ||
4221 | 220 | <ref name="def_artist"/> | ||
4222 | 221 | </optional> | ||
4223 | 222 | |||
4224 | 223 | <optional> | ||
4225 | 224 | <ref name="def_release-list"/> | ||
4226 | 225 | </optional> | ||
4227 | 226 | <optional> | ||
4228 | 227 | <ref name="def_puid-list"/> | ||
4229 | 228 | </optional> | ||
4230 | 229 | <zeroOrMore> | ||
4231 | 230 | <ref name="def_relation-list"/> | ||
4232 | 231 | </zeroOrMore> | ||
4233 | 232 | |||
4234 | 233 | <zeroOrMore> | ||
4235 | 234 | <ref name="def_extension"/> | ||
4236 | 235 | </zeroOrMore> | ||
4237 | 236 | </element> | ||
4238 | 237 | </define> | ||
4239 | 238 | |||
4240 | 239 | |||
4241 | 240 | <define name="def_relation"> | ||
4242 | 241 | <element name="relation"> | ||
4243 | 242 | <attribute name="type"> | ||
4244 | 243 | <data type="anyURI"/> | ||
4245 | 244 | </attribute> | ||
4246 | 245 | <attribute name="target"> | ||
4247 | 246 | <data type="anyURI"/> | ||
4248 | 247 | </attribute> | ||
4249 | 248 | <optional> | ||
4250 | 249 | <attribute name="direction"> | ||
4251 | 250 | <ref name="def_direction"/> | ||
4252 | 251 | </attribute> | ||
4253 | 252 | </optional> | ||
4254 | 253 | <optional> | ||
4255 | 254 | <attribute name="attributes"> | ||
4256 | 255 | <ref name="def_URI-list"/> | ||
4257 | 256 | </attribute> | ||
4258 | 257 | </optional> | ||
4259 | 258 | <optional> | ||
4260 | 259 | <attribute name="begin"> | ||
4261 | 260 | <ref name="def_incomplete-date"/> | ||
4262 | 261 | </attribute> | ||
4263 | 262 | </optional> | ||
4264 | 263 | <optional> | ||
4265 | 264 | <attribute name="end"> | ||
4266 | 265 | <ref name="def_incomplete-date"/> | ||
4267 | 266 | </attribute> | ||
4268 | 267 | </optional> | ||
4269 | 268 | |||
4270 | 269 | <optional> | ||
4271 | 270 | <choice> | ||
4272 | 271 | <ref name="def_artist"/> | ||
4273 | 272 | <ref name="def_release"/> | ||
4274 | 273 | <ref name="def_track"/> | ||
4275 | 274 | |||
4276 | 275 | <ref name="def_extension"/> | ||
4277 | 276 | </choice> | ||
4278 | 277 | </optional> | ||
4279 | 278 | </element> | ||
4280 | 279 | </define> | ||
4281 | 280 | |||
4282 | 281 | |||
4283 | 282 | <define name="def_alias"> | ||
4284 | 283 | <element name="alias"> | ||
4285 | 284 | <optional> | ||
4286 | 285 | <attribute name="type"> | ||
4287 | 286 | <data type="anyURI"/> | ||
4288 | 287 | </attribute> | ||
4289 | 288 | </optional> | ||
4290 | 289 | <optional> | ||
4291 | 290 | <attribute name="script"> | ||
4292 | 291 | <ref name="def_iso-15924"/> | ||
4293 | 292 | </attribute> | ||
4294 | 293 | </optional> | ||
4295 | 294 | <text/> | ||
4296 | 295 | </element> | ||
4297 | 296 | </define> | ||
4298 | 297 | |||
4299 | 298 | |||
4300 | 299 | <define name="def_extension"> | ||
4301 | 300 | <element> | ||
4302 | 301 | <anyName> | ||
4303 | 302 | <except> | ||
4304 | 303 | <nsName ns="http://musicbrainz.org/ns/mmd-1.0#"/> | ||
4305 | 304 | <nsName ns=""/> | ||
4306 | 305 | </except> | ||
4307 | 306 | </anyName> | ||
4308 | 307 | <zeroOrMore> | ||
4309 | 308 | <choice> | ||
4310 | 309 | <attribute> | ||
4311 | 310 | <anyName/> | ||
4312 | 311 | </attribute> | ||
4313 | 312 | <text/> | ||
4314 | 313 | <ref name="def_anything"/> | ||
4315 | 314 | </choice> | ||
4316 | 315 | </zeroOrMore> | ||
4317 | 316 | </element> | ||
4318 | 317 | </define> | ||
4319 | 318 | |||
4320 | 319 | |||
4321 | 320 | <define name="def_anything"> | ||
4322 | 321 | <element> | ||
4323 | 322 | <anyName> | ||
4324 | 323 | <except> | ||
4325 | 324 | <nsName ns=""/> | ||
4326 | 325 | </except> | ||
4327 | 326 | </anyName> | ||
4328 | 327 | <zeroOrMore> | ||
4329 | 328 | <choice> | ||
4330 | 329 | <attribute> | ||
4331 | 330 | <anyName/> | ||
4332 | 331 | </attribute> | ||
4333 | 332 | <text/> | ||
4334 | 333 | <ref name="def_anything"/> | ||
4335 | 334 | </choice> | ||
4336 | 335 | </zeroOrMore> | ||
4337 | 336 | </element> | ||
4338 | 337 | </define> | ||
4339 | 338 | |||
4340 | 339 | |||
4341 | 340 | <define name="def_artist-list"> | ||
4342 | 341 | <element name="artist-list"> | ||
4343 | 342 | <ref name="def_list-attributes"/> | ||
4344 | 343 | <zeroOrMore> | ||
4345 | 344 | <ref name="def_artist"/> | ||
4346 | 345 | </zeroOrMore> | ||
4347 | 346 | </element> | ||
4348 | 347 | </define> | ||
4349 | 348 | |||
4350 | 349 | |||
4351 | 350 | <define name="def_release-list"> | ||
4352 | 351 | <element name="release-list"> | ||
4353 | 352 | <ref name="def_list-attributes"/> | ||
4354 | 353 | <zeroOrMore> | ||
4355 | 354 | <ref name="def_release"/> | ||
4356 | 355 | </zeroOrMore> | ||
4357 | 356 | </element> | ||
4358 | 357 | </define> | ||
4359 | 358 | |||
4360 | 359 | |||
4361 | 360 | <define name="def_alias-list"> | ||
4362 | 361 | <element name="alias-list"> | ||
4363 | 362 | <ref name="def_list-attributes"/> | ||
4364 | 363 | <zeroOrMore> | ||
4365 | 364 | <ref name="def_alias"/> | ||
4366 | 365 | </zeroOrMore> | ||
4367 | 366 | </element> | ||
4368 | 367 | </define> | ||
4369 | 368 | |||
4370 | 369 | |||
4371 | 370 | <define name="def_track-list"> | ||
4372 | 371 | <element name="track-list"> | ||
4373 | 372 | <ref name="def_list-attributes"/> | ||
4374 | 373 | <zeroOrMore> | ||
4375 | 374 | <ref name="def_track"/> | ||
4376 | 375 | </zeroOrMore> | ||
4377 | 376 | </element> | ||
4378 | 377 | </define> | ||
4379 | 378 | |||
4380 | 379 | |||
4381 | 380 | <define name="def_release-event-list"> | ||
4382 | 381 | <element name="release-event-list"> | ||
4383 | 382 | <ref name="def_list-attributes"/> | ||
4384 | 383 | <zeroOrMore> | ||
4385 | 384 | <element name="event"> | ||
4386 | 385 | <attribute name="date"> | ||
4387 | 386 | <ref name="def_incomplete-date"/> | ||
4388 | 387 | </attribute> | ||
4389 | 388 | <attribute name="country"> | ||
4390 | 389 | <ref name="def_iso-3166"/> | ||
4391 | 390 | </attribute> | ||
4392 | 391 | </element> | ||
4393 | 392 | </zeroOrMore> | ||
4394 | 393 | </element> | ||
4395 | 394 | </define> | ||
4396 | 395 | |||
4397 | 396 | |||
4398 | 397 | <define name="def_disc-list"> | ||
4399 | 398 | <element name="disc-list"> | ||
4400 | 399 | <ref name="def_list-attributes"/> | ||
4401 | 400 | <zeroOrMore> | ||
4402 | 401 | <element name="disc"> | ||
4403 | 402 | <attribute name="id"> | ||
4404 | 403 | <data type="string"> | ||
4405 | 404 | <param name="pattern">[a-zA-Z0-9._]{27}-</param> | ||
4406 | 405 | </data> | ||
4407 | 406 | </attribute> | ||
4408 | 407 | <optional> | ||
4409 | 408 | <attribute name="sectors"> | ||
4410 | 409 | <data type="nonNegativeInteger"/> | ||
4411 | 410 | </attribute> | ||
4412 | 411 | </optional> | ||
4413 | 412 | </element> | ||
4414 | 413 | </zeroOrMore> | ||
4415 | 414 | </element> | ||
4416 | 415 | </define> | ||
4417 | 416 | |||
4418 | 417 | |||
4419 | 418 | <define name="def_puid-list"> | ||
4420 | 419 | <element name="puid-list"> | ||
4421 | 420 | <ref name="def_list-attributes"/> | ||
4422 | 421 | <zeroOrMore> | ||
4423 | 422 | <element name="puid"> | ||
4424 | 423 | <attribute name="id"> | ||
4425 | 424 | <ref name="def_uuid"/> | ||
4426 | 425 | </attribute> | ||
4427 | 426 | </element> | ||
4428 | 427 | </zeroOrMore> | ||
4429 | 428 | </element> | ||
4430 | 429 | </define> | ||
4431 | 430 | |||
4432 | 431 | |||
4433 | 432 | <define name="def_relation-list"> | ||
4434 | 433 | <element name="relation-list"> | ||
4435 | 434 | <attribute name="target-type"> | ||
4436 | 435 | <data type="anyURI"/> | ||
4437 | 436 | </attribute> | ||
4438 | 437 | <ref name="def_list-attributes"/> | ||
4439 | 438 | <zeroOrMore> | ||
4440 | 439 | <ref name="def_relation"/> | ||
4441 | 440 | </zeroOrMore> | ||
4442 | 441 | </element> | ||
4443 | 442 | </define> | ||
4444 | 443 | |||
4445 | 444 | |||
4446 | 445 | <define name="def_list-attributes"> | ||
4447 | 446 | <optional> | ||
4448 | 447 | <attribute name="count"> | ||
4449 | 448 | <data type="nonNegativeInteger"/> | ||
4450 | 449 | </attribute> | ||
4451 | 450 | </optional> | ||
4452 | 451 | <optional> | ||
4453 | 452 | <attribute name="offset"> | ||
4454 | 453 | <data type="nonNegativeInteger"/> | ||
4455 | 454 | </attribute> | ||
4456 | 455 | </optional> | ||
4457 | 456 | </define> | ||
4458 | 457 | |||
4459 | 458 | |||
4460 | 459 | <!-- A space separated list of URIs, relative ones are possible, too. --> | ||
4461 | 460 | <define name="def_URI-list"> | ||
4462 | 461 | <list> | ||
4463 | 462 | <oneOrMore> | ||
4464 | 463 | <data type="anyURI"/> | ||
4465 | 464 | </oneOrMore> | ||
4466 | 465 | </list> | ||
4467 | 466 | </define> | ||
4468 | 467 | |||
4469 | 468 | |||
4470 | 469 | <!-- A date with varying precision in format 'YYYY-MM-DD'. --> | ||
4471 | 470 | <define name="def_incomplete-date"> | ||
4472 | 471 | <data type="string"> | ||
4473 | 472 | <param name="pattern">[0-9]{4}(-[0-9]{2})?(-[0-9]{2})?</param> | ||
4474 | 473 | </data> | ||
4475 | 474 | </define> | ||
4476 | 475 | |||
4477 | 476 | |||
4478 | 477 | <!-- A two-letter country code like 'DE', 'UK', 'FR' etc. --> | ||
4479 | 478 | <define name="def_iso-3166"> | ||
4480 | 479 | <data type="string"> | ||
4481 | 480 | <param name="pattern">[A-Z]{2}</param> | ||
4482 | 481 | </data> | ||
4483 | 482 | </define> | ||
4484 | 483 | |||
4485 | 484 | |||
4486 | 485 | <!-- An ISO-639-2/T language code like 'DEU', 'ENG', 'JPN' etc. --> | ||
4487 | 486 | <define name="def_iso-639"> | ||
4488 | 487 | <data type="string"> | ||
4489 | 488 | <param name="pattern">[A-Z]{3}</param> | ||
4490 | 489 | </data> | ||
4491 | 490 | </define> | ||
4492 | 491 | |||
4493 | 492 | |||
4494 | 493 | <!-- A four-letter script code like 'Latn', 'Cyrl', etc. --> | ||
4495 | 494 | <define name="def_iso-15924"> | ||
4496 | 495 | <data type="string"> | ||
4497 | 496 | <param name="pattern">[A-Z][a-z]{3}</param> | ||
4498 | 497 | </data> | ||
4499 | 498 | </define> | ||
4500 | 499 | |||
4501 | 500 | |||
4502 | 501 | <!-- A 128 Bit UUID in its standard ASCII representation. --> | ||
4503 | 502 | <define name="def_uuid"> | ||
4504 | 503 | <data type="string"> | ||
4505 | 504 | <param name="pattern">[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}</param> | ||
4506 | 505 | </data> | ||
4507 | 506 | </define> | ||
4508 | 507 | |||
4509 | 508 | |||
4510 | 509 | <!-- Reading direction of a relation. Defaults to "both". --> | ||
4511 | 510 | <define name="def_direction"> | ||
4512 | 511 | <choice> | ||
4513 | 512 | <value>both</value> | ||
4514 | 513 | <value>forward</value> | ||
4515 | 514 | <value>backward</value> | ||
4516 | 515 | </choice> | ||
4517 | 516 | </define> | ||
4518 | 517 | |||
4519 | 518 | </grammar> | ||
4520 | 519 | 0 | ||
4521 | === removed file 'schema/musicbrainz_mmd-1.0rc4.rng' | |||
4522 | --- schema/musicbrainz_mmd-1.0rc4.rng 2012-02-01 17:18:10 +0000 | |||
4523 | +++ schema/musicbrainz_mmd-1.0rc4.rng 1970-01-01 00:00:00 +0000 | |||
4524 | @@ -1,539 +0,0 @@ | |||
4525 | 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
4526 | 2 | |||
4527 | 3 | <!-- ================================================================== | ||
4528 | 4 | $Id: musicbrainz_mmd-1.0rc4.rng 188 2006-03-22 16:54:20Z matt $ | ||
4529 | 5 | |||
4530 | 6 | Relax NG Schema for MusicBrainz XML Metadata Version 1.0rc4 | ||
4531 | 7 | |||
4532 | 8 | |||
4533 | 9 | This XML schema has been designed to represent music metadata. | ||
4534 | 10 | Documentation and the latest revision can be found at | ||
4535 | 11 | |||
4536 | 12 | http://musicbrainz.org/development/mmd/ | ||
4537 | 13 | |||
4538 | 14 | |||
4539 | 15 | Copyright (c) 2006 Robert Kaye, Matthias Friedrich | ||
4540 | 16 | |||
4541 | 17 | The schema is released under the Creative Commons | ||
4542 | 18 | Attribution-ShareAlike 2.5 license. | ||
4543 | 19 | |||
4544 | 20 | http://creativecommons.org/licenses/by-sa/2.5/ | ||
4545 | 21 | |||
4546 | 22 | ================================================================== --> | ||
4547 | 23 | |||
4548 | 24 | |||
4549 | 25 | <grammar xmlns="http://relaxng.org/ns/structure/1.0" | ||
4550 | 26 | datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" | ||
4551 | 27 | ns="http://musicbrainz.org/ns/mmd-1.0#"> | ||
4552 | 28 | |||
4553 | 29 | |||
4554 | 30 | <start> | ||
4555 | 31 | <ref name="def_metadata"/> | ||
4556 | 32 | </start> | ||
4557 | 33 | |||
4558 | 34 | |||
4559 | 35 | <define name="def_metadata"> | ||
4560 | 36 | <element name="metadata"> | ||
4561 | 37 | <optional> | ||
4562 | 38 | <attribute name="generator"> | ||
4563 | 39 | <data type="anyURI"/> | ||
4564 | 40 | </attribute> | ||
4565 | 41 | </optional> | ||
4566 | 42 | <optional> | ||
4567 | 43 | <attribute name="created"> | ||
4568 | 44 | <data type="dateTime"/> | ||
4569 | 45 | </attribute> | ||
4570 | 46 | </optional> | ||
4571 | 47 | |||
4572 | 48 | <optional> | ||
4573 | 49 | <ref name="def_artist"/> | ||
4574 | 50 | </optional> | ||
4575 | 51 | <optional> | ||
4576 | 52 | <ref name="def_release"/> | ||
4577 | 53 | </optional> | ||
4578 | 54 | <optional> | ||
4579 | 55 | <ref name="def_track"/> | ||
4580 | 56 | </optional> | ||
4581 | 57 | |||
4582 | 58 | <optional> | ||
4583 | 59 | <ref name="def_artist-list"/> | ||
4584 | 60 | </optional> | ||
4585 | 61 | <optional> | ||
4586 | 62 | <ref name="def_release-list"/> | ||
4587 | 63 | </optional> | ||
4588 | 64 | <optional> | ||
4589 | 65 | <ref name="def_track-list"/> | ||
4590 | 66 | </optional> | ||
4591 | 67 | |||
4592 | 68 | <optional> | ||
4593 | 69 | <ref name="def_extension"/> | ||
4594 | 70 | </optional> | ||
4595 | 71 | </element> | ||
4596 | 72 | </define> | ||
4597 | 73 | |||
4598 | 74 | |||
4599 | 75 | <define name="def_artist"> | ||
4600 | 76 | <element name="artist"> | ||
4601 | 77 | <optional> | ||
4602 | 78 | <attribute name="id"> | ||
4603 | 79 | <data type="anyURI"/> | ||
4604 | 80 | </attribute> | ||
4605 | 81 | </optional> | ||
4606 | 82 | <optional> | ||
4607 | 83 | <attribute name="type"> | ||
4608 | 84 | <data type="anyURI"/> | ||
4609 | 85 | </attribute> | ||
4610 | 86 | </optional> | ||
4611 | 87 | <zeroOrMore> | ||
4612 | 88 | <ref name="def_any_attribute"/> | ||
4613 | 89 | </zeroOrMore> | ||
4614 | 90 | |||
4615 | 91 | <optional> | ||
4616 | 92 | <element name="name"> | ||
4617 | 93 | <text/> | ||
4618 | 94 | </element> | ||
4619 | 95 | </optional> | ||
4620 | 96 | <optional> | ||
4621 | 97 | <element name="sort-name"> | ||
4622 | 98 | <text/> | ||
4623 | 99 | </element> | ||
4624 | 100 | </optional> | ||
4625 | 101 | <optional> | ||
4626 | 102 | <element name="disambiguation"> | ||
4627 | 103 | <text/> | ||
4628 | 104 | </element> | ||
4629 | 105 | </optional> | ||
4630 | 106 | <optional> | ||
4631 | 107 | <element name="life-span"> | ||
4632 | 108 | <optional> | ||
4633 | 109 | <attribute name="begin"> | ||
4634 | 110 | <ref name="def_incomplete-date"/> | ||
4635 | 111 | </attribute> | ||
4636 | 112 | </optional> | ||
4637 | 113 | <optional> | ||
4638 | 114 | <attribute name="end"> | ||
4639 | 115 | <ref name="def_incomplete-date"/> | ||
4640 | 116 | </attribute> | ||
4641 | 117 | </optional> | ||
4642 | 118 | </element> | ||
4643 | 119 | </optional> | ||
4644 | 120 | |||
4645 | 121 | <optional> | ||
4646 | 122 | <ref name="def_alias-list"/> | ||
4647 | 123 | </optional> | ||
4648 | 124 | <optional> | ||
4649 | 125 | <ref name="def_release-list"/> | ||
4650 | 126 | </optional> | ||
4651 | 127 | <zeroOrMore> | ||
4652 | 128 | <ref name="def_relation-list"/> | ||
4653 | 129 | </zeroOrMore> | ||
4654 | 130 | |||
4655 | 131 | <zeroOrMore> | ||
4656 | 132 | <ref name="def_extension"/> | ||
4657 | 133 | </zeroOrMore> | ||
4658 | 134 | </element> | ||
4659 | 135 | </define> | ||
4660 | 136 | |||
4661 | 137 | |||
4662 | 138 | <define name="def_release"> | ||
4663 | 139 | <element name="release"> | ||
4664 | 140 | <optional> | ||
4665 | 141 | <attribute name="id"> | ||
4666 | 142 | <data type="anyURI"/> | ||
4667 | 143 | </attribute> | ||
4668 | 144 | </optional> | ||
4669 | 145 | <optional> | ||
4670 | 146 | <attribute name="type"> | ||
4671 | 147 | <ref name="def_URI-list"/> | ||
4672 | 148 | </attribute> | ||
4673 | 149 | </optional> | ||
4674 | 150 | <zeroOrMore> | ||
4675 | 151 | <ref name="def_any_attribute"/> | ||
4676 | 152 | </zeroOrMore> | ||
4677 | 153 | |||
4678 | 154 | <optional> | ||
4679 | 155 | <element name="title"> | ||
4680 | 156 | <text/> | ||
4681 | 157 | </element> | ||
4682 | 158 | </optional> | ||
4683 | 159 | <optional> | ||
4684 | 160 | <element name="text-representation"> | ||
4685 | 161 | <optional> | ||
4686 | 162 | <attribute name="language"> | ||
4687 | 163 | <ref name="def_iso-639"/> | ||
4688 | 164 | </attribute> | ||
4689 | 165 | </optional> | ||
4690 | 166 | <optional> | ||
4691 | 167 | <attribute name="script"> | ||
4692 | 168 | <ref name="def_iso-15924"/> | ||
4693 | 169 | </attribute> | ||
4694 | 170 | </optional> | ||
4695 | 171 | </element> | ||
4696 | 172 | </optional> | ||
4697 | 173 | <optional> | ||
4698 | 174 | <element name="asin"> | ||
4699 | 175 | <data type="string"> | ||
4700 | 176 | <param name="pattern">[A-Z0-9]{10}</param> | ||
4701 | 177 | </data> | ||
4702 | 178 | </element> | ||
4703 | 179 | </optional> | ||
4704 | 180 | <optional> | ||
4705 | 181 | <ref name="def_artist"/> | ||
4706 | 182 | </optional> | ||
4707 | 183 | |||
4708 | 184 | <optional> | ||
4709 | 185 | <ref name="def_release-event-list"/> | ||
4710 | 186 | </optional> | ||
4711 | 187 | <optional> | ||
4712 | 188 | <ref name="def_disc-list"/> | ||
4713 | 189 | </optional> | ||
4714 | 190 | <optional> | ||
4715 | 191 | <ref name="def_puid-list"/> | ||
4716 | 192 | </optional> | ||
4717 | 193 | <optional> | ||
4718 | 194 | <ref name="def_track-list"/> | ||
4719 | 195 | </optional> | ||
4720 | 196 | <zeroOrMore> | ||
4721 | 197 | <ref name="def_relation-list"/> | ||
4722 | 198 | </zeroOrMore> | ||
4723 | 199 | |||
4724 | 200 | <zeroOrMore> | ||
4725 | 201 | <ref name="def_extension"/> | ||
4726 | 202 | </zeroOrMore> | ||
4727 | 203 | </element> | ||
4728 | 204 | </define> | ||
4729 | 205 | |||
4730 | 206 | |||
4731 | 207 | <define name="def_track"> | ||
4732 | 208 | <element name="track"> | ||
4733 | 209 | <optional> | ||
4734 | 210 | <attribute name="id"> | ||
4735 | 211 | <data type="anyURI"/> | ||
4736 | 212 | </attribute> | ||
4737 | 213 | </optional> | ||
4738 | 214 | <zeroOrMore> | ||
4739 | 215 | <ref name="def_any_attribute"/> | ||
4740 | 216 | </zeroOrMore> | ||
4741 | 217 | <optional> | ||
4742 | 218 | <element name="title"> | ||
4743 | 219 | <text/> | ||
4744 | 220 | </element> | ||
4745 | 221 | </optional> | ||
4746 | 222 | <optional> | ||
4747 | 223 | <element name="duration"> | ||
4748 | 224 | <data type="nonNegativeInteger"/> | ||
4749 | 225 | </element> | ||
4750 | 226 | </optional> | ||
4751 | 227 | <optional> | ||
4752 | 228 | <ref name="def_artist"/> | ||
4753 | 229 | </optional> | ||
4754 | 230 | |||
4755 | 231 | <optional> | ||
4756 | 232 | <ref name="def_release-list"/> | ||
4757 | 233 | </optional> | ||
4758 | 234 | <optional> | ||
4759 | 235 | <ref name="def_puid-list"/> | ||
4760 | 236 | </optional> | ||
4761 | 237 | <zeroOrMore> | ||
4762 | 238 | <ref name="def_relation-list"/> | ||
4763 | 239 | </zeroOrMore> | ||
4764 | 240 | |||
4765 | 241 | <zeroOrMore> | ||
4766 | 242 | <ref name="def_extension"/> | ||
4767 | 243 | </zeroOrMore> | ||
4768 | 244 | </element> | ||
4769 | 245 | </define> | ||
4770 | 246 | |||
4771 | 247 | |||
4772 | 248 | <define name="def_relation"> | ||
4773 | 249 | <element name="relation"> | ||
4774 | 250 | <attribute name="type"> | ||
4775 | 251 | <data type="anyURI"/> | ||
4776 | 252 | </attribute> | ||
4777 | 253 | <attribute name="target"> | ||
4778 | 254 | <data type="anyURI"/> | ||
4779 | 255 | </attribute> | ||
4780 | 256 | <optional> | ||
4781 | 257 | <attribute name="direction"> | ||
4782 | 258 | <ref name="def_direction"/> | ||
4783 | 259 | </attribute> | ||
4784 | 260 | </optional> | ||
4785 | 261 | <optional> | ||
4786 | 262 | <attribute name="attributes"> | ||
4787 | 263 | <ref name="def_URI-list"/> | ||
4788 | 264 | </attribute> | ||
4789 | 265 | </optional> | ||
4790 | 266 | <optional> | ||
4791 | 267 | <attribute name="begin"> | ||
4792 | 268 | <ref name="def_incomplete-date"/> | ||
4793 | 269 | </attribute> | ||
4794 | 270 | </optional> | ||
4795 | 271 | <optional> | ||
4796 | 272 | <attribute name="end"> | ||
4797 | 273 | <ref name="def_incomplete-date"/> | ||
4798 | 274 | </attribute> | ||
4799 | 275 | </optional> | ||
4800 | 276 | |||
4801 | 277 | <optional> | ||
4802 | 278 | <choice> | ||
4803 | 279 | <ref name="def_artist"/> | ||
4804 | 280 | <ref name="def_release"/> | ||
4805 | 281 | <ref name="def_track"/> | ||
4806 | 282 | |||
4807 | 283 | <ref name="def_extension"/> | ||
4808 | 284 | </choice> | ||
4809 | 285 | </optional> | ||
4810 | 286 | </element> | ||
4811 | 287 | </define> | ||
4812 | 288 | |||
4813 | 289 | |||
4814 | 290 | <define name="def_alias"> | ||
4815 | 291 | <element name="alias"> | ||
4816 | 292 | <optional> | ||
4817 | 293 | <attribute name="type"> | ||
4818 | 294 | <data type="anyURI"/> | ||
4819 | 295 | </attribute> | ||
4820 | 296 | </optional> | ||
4821 | 297 | <optional> | ||
4822 | 298 | <attribute name="script"> | ||
4823 | 299 | <ref name="def_iso-15924"/> | ||
4824 | 300 | </attribute> | ||
4825 | 301 | </optional> | ||
4826 | 302 | <text/> | ||
4827 | 303 | </element> | ||
4828 | 304 | </define> | ||
4829 | 305 | |||
4830 | 306 | |||
4831 | 307 | <define name="def_extension"> | ||
4832 | 308 | <element> | ||
4833 | 309 | <anyName> | ||
4834 | 310 | <except> | ||
4835 | 311 | <nsName ns="http://musicbrainz.org/ns/mmd-1.0#"/> | ||
4836 | 312 | <nsName ns=""/> | ||
4837 | 313 | </except> | ||
4838 | 314 | </anyName> | ||
4839 | 315 | <zeroOrMore> | ||
4840 | 316 | <choice> | ||
4841 | 317 | <attribute> | ||
4842 | 318 | <anyName/> | ||
4843 | 319 | </attribute> | ||
4844 | 320 | <text/> | ||
4845 | 321 | <ref name="def_anything"/> | ||
4846 | 322 | </choice> | ||
4847 | 323 | </zeroOrMore> | ||
4848 | 324 | </element> | ||
4849 | 325 | </define> | ||
4850 | 326 | |||
4851 | 327 | |||
4852 | 328 | <define name="def_anything"> | ||
4853 | 329 | <element> | ||
4854 | 330 | <anyName> | ||
4855 | 331 | <except> | ||
4856 | 332 | <nsName ns=""/> | ||
4857 | 333 | </except> | ||
4858 | 334 | </anyName> | ||
4859 | 335 | <zeroOrMore> | ||
4860 | 336 | <choice> | ||
4861 | 337 | <attribute> | ||
4862 | 338 | <anyName/> | ||
4863 | 339 | </attribute> | ||
4864 | 340 | <text/> | ||
4865 | 341 | <ref name="def_anything"/> | ||
4866 | 342 | </choice> | ||
4867 | 343 | </zeroOrMore> | ||
4868 | 344 | </element> | ||
4869 | 345 | </define> | ||
4870 | 346 | |||
4871 | 347 | |||
4872 | 348 | <define name="def_any_attribute"> | ||
4873 | 349 | <attribute> | ||
4874 | 350 | <anyName> | ||
4875 | 351 | <except> | ||
4876 | 352 | <nsName ns=""/> | ||
4877 | 353 | </except> | ||
4878 | 354 | </anyName> | ||
4879 | 355 | </attribute> | ||
4880 | 356 | </define> | ||
4881 | 357 | |||
4882 | 358 | |||
4883 | 359 | <define name="def_artist-list"> | ||
4884 | 360 | <element name="artist-list"> | ||
4885 | 361 | <ref name="def_list-attributes"/> | ||
4886 | 362 | <zeroOrMore> | ||
4887 | 363 | <ref name="def_artist"/> | ||
4888 | 364 | </zeroOrMore> | ||
4889 | 365 | </element> | ||
4890 | 366 | </define> | ||
4891 | 367 | |||
4892 | 368 | |||
4893 | 369 | <define name="def_release-list"> | ||
4894 | 370 | <element name="release-list"> | ||
4895 | 371 | <ref name="def_list-attributes"/> | ||
4896 | 372 | <zeroOrMore> | ||
4897 | 373 | <ref name="def_release"/> | ||
4898 | 374 | </zeroOrMore> | ||
4899 | 375 | </element> | ||
4900 | 376 | </define> | ||
4901 | 377 | |||
4902 | 378 | |||
4903 | 379 | <define name="def_alias-list"> | ||
4904 | 380 | <element name="alias-list"> | ||
4905 | 381 | <ref name="def_list-attributes"/> | ||
4906 | 382 | <zeroOrMore> | ||
4907 | 383 | <ref name="def_alias"/> | ||
4908 | 384 | </zeroOrMore> | ||
4909 | 385 | </element> | ||
4910 | 386 | </define> | ||
4911 | 387 | |||
4912 | 388 | |||
4913 | 389 | <define name="def_track-list"> | ||
4914 | 390 | <element name="track-list"> | ||
4915 | 391 | <ref name="def_list-attributes"/> | ||
4916 | 392 | <zeroOrMore> | ||
4917 | 393 | <ref name="def_track"/> | ||
4918 | 394 | </zeroOrMore> | ||
4919 | 395 | </element> | ||
4920 | 396 | </define> | ||
4921 | 397 | |||
4922 | 398 | |||
4923 | 399 | <define name="def_release-event-list"> | ||
4924 | 400 | <element name="release-event-list"> | ||
4925 | 401 | <ref name="def_list-attributes"/> | ||
4926 | 402 | <zeroOrMore> | ||
4927 | 403 | <element name="event"> | ||
4928 | 404 | <attribute name="date"> | ||
4929 | 405 | <ref name="def_incomplete-date"/> | ||
4930 | 406 | </attribute> | ||
4931 | 407 | <optional> | ||
4932 | 408 | <attribute name="country"> | ||
4933 | 409 | <ref name="def_iso-3166"/> | ||
4934 | 410 | </attribute> | ||
4935 | 411 | </optional> | ||
4936 | 412 | </element> | ||
4937 | 413 | </zeroOrMore> | ||
4938 | 414 | </element> | ||
4939 | 415 | </define> | ||
4940 | 416 | |||
4941 | 417 | |||
4942 | 418 | <define name="def_disc-list"> | ||
4943 | 419 | <element name="disc-list"> | ||
4944 | 420 | <ref name="def_list-attributes"/> | ||
4945 | 421 | <zeroOrMore> | ||
4946 | 422 | <element name="disc"> | ||
4947 | 423 | <attribute name="id"> | ||
4948 | 424 | <data type="string"> | ||
4949 | 425 | <param name="pattern">[a-zA-Z0-9._]{27}-</param> | ||
4950 | 426 | </data> | ||
4951 | 427 | </attribute> | ||
4952 | 428 | <optional> | ||
4953 | 429 | <attribute name="sectors"> | ||
4954 | 430 | <data type="nonNegativeInteger"/> | ||
4955 | 431 | </attribute> | ||
4956 | 432 | </optional> | ||
4957 | 433 | </element> | ||
4958 | 434 | </zeroOrMore> | ||
4959 | 435 | </element> | ||
4960 | 436 | </define> | ||
4961 | 437 | |||
4962 | 438 | |||
4963 | 439 | <define name="def_puid-list"> | ||
4964 | 440 | <element name="puid-list"> | ||
4965 | 441 | <ref name="def_list-attributes"/> | ||
4966 | 442 | <zeroOrMore> | ||
4967 | 443 | <element name="puid"> | ||
4968 | 444 | <attribute name="id"> | ||
4969 | 445 | <ref name="def_uuid"/> | ||
4970 | 446 | </attribute> | ||
4971 | 447 | </element> | ||
4972 | 448 | </zeroOrMore> | ||
4973 | 449 | </element> | ||
4974 | 450 | </define> | ||
4975 | 451 | |||
4976 | 452 | |||
4977 | 453 | <define name="def_relation-list"> | ||
4978 | 454 | <element name="relation-list"> | ||
4979 | 455 | <attribute name="target-type"> | ||
4980 | 456 | <data type="anyURI"/> | ||
4981 | 457 | </attribute> | ||
4982 | 458 | <ref name="def_list-attributes"/> | ||
4983 | 459 | <zeroOrMore> | ||
4984 | 460 | <ref name="def_relation"/> | ||
4985 | 461 | </zeroOrMore> | ||
4986 | 462 | </element> | ||
4987 | 463 | </define> | ||
4988 | 464 | |||
4989 | 465 | |||
4990 | 466 | <define name="def_list-attributes"> | ||
4991 | 467 | <optional> | ||
4992 | 468 | <attribute name="count"> | ||
4993 | 469 | <data type="nonNegativeInteger"/> | ||
4994 | 470 | </attribute> | ||
4995 | 471 | </optional> | ||
4996 | 472 | <optional> | ||
4997 | 473 | <attribute name="offset"> | ||
4998 | 474 | <data type="nonNegativeInteger"/> | ||
4999 | 475 | </attribute> | ||
5000 | 476 | </optional> |
The diff has been truncated for viewing.
Looks alright. Is there any specific reason why you "Bump Build-Depends for debhelper to >= 9."?