libmusicbrainz4  4.0.3
RelationListList.h
Go to the documentation of this file.
1 /* --------------------------------------------------------------------------
2 
3  libmusicbrainz4 - Client library to access MusicBrainz
4 
5  Copyright (C) 2011 Andrew Hawkins
6 
7  This file is part of libmusicbrainz4.
8 
9  This library is free software; you can redistribute it and/or
10  modify it under the terms of v2 of the GNU Lesser General Public
11  License as published by the Free Software Foundation.
12 
13  libmusicbrainz4 is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  Lesser General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with this library. If not, see <http://www.gnu.org/licenses/>.
20 
21  $Id$
22 
23 ----------------------------------------------------------------------------*/
24 
25 #ifndef _MUSICBRAINZ4_RELATIONLIST_GROUP_H
26 #define _MUSICBRAINZ4_RELATIONLIST_GROUP_H
27 
28 #include <iostream>
29 
30 #include "musicbrainz4/xmlParser.h"
31 
32 namespace MusicBrainz4
33 {
34  class CRelationListListPrivate;
35 
36  class CRelationList;
37 
39  {
40  public:
44  virtual ~CRelationListList();
45 
46  void Add(CRelationList *RelationList);
47  int NumItems() const;
48  CRelationList *Item(int Item) const;
49  int Offset() const { return 0; }
50  int Count() const { return NumItems(); }
51 
52  std::ostream& Serialise(std::ostream& os) const;
53 
54  private:
55  void Cleanup();
56 
57  CRelationListListPrivate * const m_d;
58  };
59 }
60 
61 std::ostream& operator << (std::ostream& os, const MusicBrainz4::CRelationListList& RelationListList);
62 
63 #endif
void Add(CRelationList *RelationList)
int Count() const
Definition: RelationListList.h:50
Definition: RelationList.h:40
CRelationListList & operator=(const CRelationListList &Other)
CRelationList * Item(int Item) const
int Offset() const
Definition: RelationListList.h:49
Definition: RelationListList.h:38
std::ostream & Serialise(std::ostream &os) const
Definition: Alias.h:35
std::ostream & operator<<(std::ostream &os, const MusicBrainz4::CRelationListList &RelationListList)