ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/truck/Music/Test.cpp
Revision: 51
Committed: 2008-03-09T14:24:55-07:00 (17 years, 3 months ago) by douglas
File size: 1061 byte(s)
Log Message:
Finish the renaming!

File Contents

# Content
1 // Test Music Library
2 //
3 // Douglas Thrift
4 //
5 // $Id$
6
7 #include <iostream>
8
9 #include <foreach.hpp>
10 #include <truck.hpp>
11
12 #include "Music.hpp"
13
14 int main(int argc, char *argv[])
15 {
16 try
17 {
18 Music::Library library;
19
20 /*_foreach (const _L<Music::Artist>, artist, library.GetArtists())
21 {
22 std::cout << artist->GetId() << ' ' << artist->GetName() << std::endl;
23
24 _foreach (const _L<Music::Album>, album, artist->GetAlbums())
25 {
26 std::cout << album->GetId() << ' ' << album->GetName() << ' ' << album->GetYear() << std::endl;
27
28 _foreach (const _L<Music::Song>, song, album->GetSongs())
29 std::cout << song->GetId() << ' ' << song->GetName() << ' ' << song->GetPath() << ' ' << song->GetTrack() << std::endl;
30 }
31 }*/
32
33 _foreach (const _L<Music::Song>, song, library.GetSongs())
34 std::cout << song->GetId() << ' ' << song->GetName() << ' ' << song->GetPath() << ' ' << song->GetTrack() << std::endl;
35 }
36 catch (const std::exception &exception)
37 {
38 std::cerr << argv[0] << _B(": ") << exception.what() << std::endl;
39
40 return 1;
41 }
42
43 return 0;
44 }

Properties

Name Value
svn:keywords Id