libcoverart  1.0.0
 All Classes Namespaces Files Functions Typedefs Enumerations Enumerator Macros Pages
TypeList.h
Go to the documentation of this file.
1 /* --------------------------------------------------------------------------
2 
3  libcoverart - Client library to access CoverArtArchive
4 
5  Copyright (C) 2012 Andrew Hawkins
6 
7  This file is part of libcoverart.
8 
9  This library is free software; you can redistribute it and/or
10  modify it under the terms of the GNU Lesser General Public
11  License as published by the Free Software Foundation; either
12  version 2.1 of the License, or (at your option) any later version.
13 
14  libcoverart is distributed in the hope that it will be useful, but
15  WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  Lesser General Public License for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with this library. If not, see <http://www.gnu.org/licenses/>.
21 
22  $Id$
23 
24 ----------------------------------------------------------------------------*/
25 
26 #ifndef _COVERARTARCHIVE_TYPELIST_
27 #define _COVERARTARCHIVE_TYPELIST_
28 
29 #include <iostream>
30 #include <vector>
31 
32 #include <jansson.h>
33 
34 namespace CoverArtArchive
35 {
36  class CTypeListPrivate;
37  class CType;
38 
39  class CTypeList
40  {
41  public:
42  CTypeList(json_t *Root=0);
43  CTypeList(const CTypeList& Other);
44  CTypeList& operator =(const CTypeList& Other);
45  virtual ~CTypeList();
46 
47  int NumItems() const;
48  CType *Item(int Item) const;
49 
50  private:
51  CTypeListPrivate * const m_d;
52 
53  void Cleanup();
54  };
55 }
56 
57 std::ostream& operator << (std::ostream& os, const CoverArtArchive::CTypeList& TypeList);
58 
59 #endif
std::ostream & operator<<(std::ostream &os, const CoverArtArchive::CTypeList &TypeList)
Definition: Type.h:35
CTypeList(json_t *Root=0)
Definition: TypeList.h:39
CTypeList & operator=(const CTypeList &Other)
CType * Item(int Item) const