Discussion:
[mb-devel] libmusicbrainz 5.1.0
David Baltimore
2015-03-24 15:55:59 UTC
Permalink
I am new to Music Brainz. Downloaded the 3 libraries.

Am trying to get the CD Title, The Artist Name and the track titles
of the cd from the C++ class library.

I ran the libdiscid classes fine to obtain the discid.

tried the short demo program passing the discid to the CQuery example.

It dumps the info to cout fine but I can't figure out how to obtain
the Artist Name and the
track titles of the songs.

The Title of the CD was easy with FullRelease->Title()

but I can't get the above out of the data!

Also when stepping through the code in debug the for loop drops out
after one iteration when the NumItems() count is 2. Not sure what to
make of that either.

Any help would be appraciated. I'm finding the Doxygen help to be
not enough and the example doesn't go far enough to show the
relationships of the classes to one another.

David
Calvin Walton
2015-03-24 16:07:07 UTC
Permalink
Hi,

The libmusicbrainz library is more or less a direct mapping of the
structure of the MusicBrainz webservice to C++ classes. Before you
start to use it, I'd strongly suggest that you go through the
documentation at
https://wiki.musicbrainz.org/Development/XML_Web_Service/Version_2 and
make some manual webservice queries so that you can understand which
data is included in the results, and where it is stored.

Calvin.

On Tue, Mar 24, 2015 at 11:55 AM, David Baltimore
Post by David Baltimore
I am new to Music Brainz. Downloaded the 3 libraries.
Am trying to get the CD Title, The Artist Name and the track titles
of the cd from the C++ class library.
I ran the libdiscid classes fine to obtain the discid.
tried the short demo program passing the discid to the CQuery example.
It dumps the info to cout fine but I can't figure out how to obtain
the Artist Name and the
track titles of the songs.
The Title of the CD was easy with FullRelease->Title()
but I can't get the above out of the data!
Also when stepping through the code in debug the for loop drops out
after one iteration when the NumItems() count is 2. Not sure what to
make of that either.
Any help would be appraciated. I'm finding the Doxygen help to be
not enough and the example doesn't go far enough to show the
relationships of the classes to one another.
David
_______________________________________________
MusicBrainz-devel mailing list
http://lists.musicbrainz.org/mailman/listinfo/musicbrainz-devel
Loading...