libmusicbrainz3  3.0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
includes.h
Go to the documentation of this file.
1 /*
2  * MusicBrainz -- The Internet music metadatabase
3  *
4  * Copyright (C) 2006 Lukas Lalinsky
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  *
20  * $Id: includes.h 9187 2007-06-20 19:11:15Z luks $
21  */
22 
23 #ifndef __MUSICBRAINZ3_INCLUDES_H__
24 #define __MUSICBRAINZ3_INCLUDES_H__
25 
26 #include <string>
27 #include <vector>
29 
30 namespace MusicBrainz
31 {
32 
37  {
38  public:
39  typedef std::vector<std::string> IncludeList;
40 
41  virtual ~IIncludes() {};
42 
49  virtual IncludeList createIncludeTags() const = 0;
50  };
51 
63  {
64  public:
66  ArtistIncludes &aliases();
68  ArtistIncludes &releases(const std::string &type);
70  ArtistIncludes &vaReleases(const std::string &type);
72  ArtistIncludes &releaseEvents();
74  ArtistIncludes &artistRelations();
76  ArtistIncludes &releaseRelations();
78  ArtistIncludes &trackRelations();
80  ArtistIncludes &urlRelations();
81  IncludeList createIncludeTags() const;
82  private:
83  IncludeList includes;
84  };
85 
97  {
98  public:
100  ReleaseIncludes &artist();
102  ReleaseIncludes &counts();
104  ReleaseIncludes &releaseEvents();
106  ReleaseIncludes &discs();
108  ReleaseIncludes &tracks();
110  ReleaseIncludes &artistRelations();
112  ReleaseIncludes &releaseRelations();
114  ReleaseIncludes &trackRelations();
116  ReleaseIncludes &urlRelations();
117  IncludeList createIncludeTags() const;
118  private:
119  IncludeList includes;
120  };
121 
133  {
134  public:
136  TrackIncludes &artist();
138  TrackIncludes &releases();
140  TrackIncludes &puids();
142  TrackIncludes &artistRelations();
144  TrackIncludes &releaseRelations();
146  TrackIncludes &trackRelations();
148  TrackIncludes &urlRelations();
149  IncludeList createIncludeTags() const;
150  private:
151  IncludeList includes;
152  };
153 
154 }
155 
156 #endif