libmusicbrainz3  3.0.3
 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  *
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 &labelRelations();
78  ArtistIncludes &releaseRelations();
80  ArtistIncludes &trackRelations();
82  ArtistIncludes &urlRelations();
84  ArtistIncludes &ratings();
86  ArtistIncludes &tags();
87  IncludeList createIncludeTags() const;
88  private:
89  IncludeList includes;
90  };
91 
103  {
104  public:
106  LabelIncludes &aliases();
108  LabelIncludes &artistRelations();
110  LabelIncludes &labelRelations();
112  LabelIncludes &releaseRelations();
114  LabelIncludes &trackRelations();
116  LabelIncludes &urlRelations();
118  LabelIncludes &ratings();
120  LabelIncludes &tags();
121  IncludeList createIncludeTags() const;
122  private:
123  IncludeList includes;
124  };
125 
137  {
138  public:
140  ReleaseIncludes &artist();
142  ReleaseIncludes &counts();
144  ReleaseIncludes &releaseEvents();
146  ReleaseIncludes &discs();
148  ReleaseIncludes &tracks();
150  ReleaseIncludes &artistRelations();
152  ReleaseIncludes &labelRelations();
154  ReleaseIncludes &releaseRelations();
156  ReleaseIncludes &trackRelations();
158  ReleaseIncludes &urlRelations();
160  ReleaseIncludes &isrcs();
162  ReleaseIncludes &ratings();
164  ReleaseIncludes &tags();
165  IncludeList createIncludeTags() const;
166  private:
167  IncludeList includes;
168  };
169 
181  {
182  public:
184  ReleaseGroupIncludes &artist();
186  ReleaseGroupIncludes &releases();
187  IncludeList createIncludeTags() const;
188  private:
189  IncludeList includes;
190  };
191 
203  {
204  public:
206  TrackIncludes &artist();
208  TrackIncludes &releases();
210  TrackIncludes &puids();
212  TrackIncludes &artistRelations();
214  TrackIncludes &labelRelations();
216  TrackIncludes &releaseRelations();
218  TrackIncludes &trackRelations();
220  TrackIncludes &urlRelations();
222  TrackIncludes &isrcs();
224  TrackIncludes &ratings();
226  TrackIncludes &tags();
227  IncludeList createIncludeTags() const;
228  private:
229  IncludeList includes;
230  };
231 
232 }
233 
234 #endif