libmusicbrainz5 5.1.0
Loading...
Searching...
No Matches
Medium.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_MEDIUM_H
27#define _MUSICBRAINZ5_MEDIUM_H
28
29#include <string>
30#include <iostream>
31
32#include "musicbrainz5/Entity.h"
35
36#include "musicbrainz5/xmlParser.h"
37
38namespace MusicBrainz5
39{
40 class CMediumPrivate;
41
42 class CMedium: public CEntity
43 {
44 public:
45 CMedium(const XMLNode& Node=XMLNode::emptyNode());
46 CMedium(const CMedium& Other);
47 CMedium& operator =(const CMedium& Other);
48 virtual ~CMedium();
49
50 virtual CMedium *Clone();
51
52 std::string Title() const;
53 int Position() const;
54 std::string Format() const;
57
58 bool ContainsDiscID(const std::string& DiscID) const;
59
60 virtual std::ostream& Serialise(std::ostream& os) const;
61 static std::string GetElementName();
62
63 protected:
64 virtual void ParseAttribute(const std::string& Name, const std::string& Value);
65 virtual void ParseElement(const XMLNode& Node);
66
67 private:
68 void Cleanup();
69
70 CMediumPrivate * const m_d;
71 };
72}
73
74#endif
Definition: Entity.h:43
Definition: ListImpl.h:35
Definition: Medium.h:43
static std::string GetElementName()
CMedium & operator=(const CMedium &Other)
bool ContainsDiscID(const std::string &DiscID) const
std::string Title() const
virtual std::ostream & Serialise(std::ostream &os) const
CTrackList * TrackList() const
virtual void ParseElement(const XMLNode &Node)
CDiscList * DiscList() const
CMedium(const XMLNode &Node=XMLNode::emptyNode())
virtual CMedium * Clone()
virtual void ParseAttribute(const std::string &Name, const std::string &Value)
CMedium(const CMedium &Other)
std::string Format() const
Definition: Alias.h:37