libmusicbrainz5
5.1.0
Toggle main menu visibility
Loading...
Searching...
No Matches
List.h
Go to the documentation of this file.
1
/* --------------------------------------------------------------------------
2
3
libmusicbrainz5 - Client library to access MusicBrainz
4
5
Copyright (C) 2012 Andrew Hawkins
6
7
This file is part of libmusicbrainz5.
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
libmusicbrainz5 is distributed in the hope that it will be useful,
15
but 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 _MUSICBRAINZ5_LIST_H
27
#define _MUSICBRAINZ5_LIST_H
28
29
#include "
musicbrainz5/Entity.h
"
30
31
#include "musicbrainz5/xmlParser.h"
32
33
namespace
MusicBrainz5
34
{
35
class
CListPrivate;
36
37
class
CList
:
public
CEntity
38
{
39
public
:
40
CList
();
41
CList
(
const
CList
& Other);
42
CList
&
operator =
(
const
CList
& Other);
43
virtual
~CList
();
44
45
virtual
CList
*
Clone
();
46
47
int
NumItems
()
const
;
48
int
Offset
()
const
;
49
int
Count
()
const
;
50
51
virtual
std::ostream&
Serialise
(std::ostream& os)
const
;
52
static
std::string
GetElementName
();
53
54
protected
:
55
virtual
void
ParseAttribute
(
const
std::string& Name,
const
std::string& Value);
56
virtual
void
ParseElement
(
const
XMLNode& Node);
57
58
void
AddItem
(
CEntity
*
Item
);
59
CEntity
*
Item
(
int
Item
)
const
;
60
61
private
:
62
CListPrivate *m_d;
63
64
void
Cleanup();
65
};
66
}
67
68
#endif
69
Entity.h
MusicBrainz5::CEntity::CEntity
CEntity()
MusicBrainz5::CList::ParseElement
virtual void ParseElement(const XMLNode &Node)
MusicBrainz5::CList::CList
CList(const CList &Other)
MusicBrainz5::CList::Item
CEntity * Item(int Item) const
MusicBrainz5::CList::ParseAttribute
virtual void ParseAttribute(const std::string &Name, const std::string &Value)
MusicBrainz5::CList::~CList
virtual ~CList()
MusicBrainz5::CList::operator=
CList & operator=(const CList &Other)
MusicBrainz5::CList::NumItems
int NumItems() const
MusicBrainz5::CList::CList
CList()
MusicBrainz5::CList::Serialise
virtual std::ostream & Serialise(std::ostream &os) const
MusicBrainz5::CList::AddItem
void AddItem(CEntity *Item)
MusicBrainz5::CList::GetElementName
static std::string GetElementName()
MusicBrainz5::CList::Count
int Count() const
MusicBrainz5::CList::Offset
int Offset() const
MusicBrainz5::CList::Clone
virtual CList * Clone()
MusicBrainz5
Definition
Alias.h:37
include
musicbrainz5
List.h
Generated by
1.17.0