libmusicbrainz4  4.0.3
ISRC.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_ISRC_H
26 #define _MUSICBRAINZ4_ISRC_H
27 
28 #include "musicbrainz4/Entity.h"
30 
31 #include "musicbrainz4/xmlParser.h"
32 
33 namespace MusicBrainz4
34 {
35  class CISRCPrivate;
36 
37  class CISRC: public CEntity
38  {
39  public:
40  CISRC(const XMLNode& Node=XMLNode::emptyNode());
41  CISRC(const CISRC& Other);
42  CISRC& operator =(const CISRC& Other);
43  virtual ~CISRC();
44 
45  virtual CISRC *Clone();
46 
47  std::string ID() const;
49 
50  virtual std::ostream& Serialise(std::ostream& os) const;
51  static std::string GetElementName();
52 
53  protected:
54  virtual void ParseAttribute(const std::string& Name, const std::string& Value);
55  virtual void ParseElement(const XMLNode& Node);
56 
57  private:
58  void Cleanup();
59 
60  CISRCPrivate * const m_d;
61  };
62 }
63 
64 #endif
CISRC(const XMLNode &Node=XMLNode::emptyNode())
Definition: Entity.h:41
CRecordingList * RecordingList() const
virtual void ParseElement(const XMLNode &Node)
virtual std::ostream & Serialise(std::ostream &os) const
CISRC & operator=(const CISRC &Other)
std::string ID() const
virtual CISRC * Clone()
static std::string GetElementName()
Definition: ISRC.h:37
Definition: Alias.h:35
virtual void ParseAttribute(const std::string &Name, const std::string &Value)
Definition: ListImpl.h:33