libmusicbrainz5  5.0.1
 All Classes Namespaces Files Functions Typedefs Enumerations Enumerator Macros Pages
Alias.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 v2 of the GNU Lesser General Public
11  License as published by the Free Software Foundation.
12 
13  libmusicbrainz5 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 _MUSICBRAINZ5_ALIAS_H
26 #define _MUSICBRAINZ5_ALIAS_H
27 
28 #include <string>
29 #include <iostream>
30 
31 #include "musicbrainz5/Entity.h"
32 
33 #include "musicbrainz5/xmlParser.h"
34 
35 namespace MusicBrainz5
36 {
37  class CAliasPrivate;
38 
39  class CAlias: public CEntity
40  {
41  public:
42  CAlias(const XMLNode& Node);
43  CAlias(const CAlias& Other);
44  CAlias& operator =(const CAlias& Other);
45  virtual ~CAlias();
46 
47  virtual CAlias *Clone();
48 
49  std::string Locale() const;
50  std::string Text() const;
51  std::string SortName() const;
52  std::string Type() const;
53  std::string Primary() const;
54  std::string BeginDate() const;
55  std::string EndDate() const;
56 
57  virtual std::ostream& Serialise(std::ostream& os) const;
58  static std::string GetElementName();
59 
60  protected:
61  virtual void ParseAttribute(const std::string& Name, const std::string& Value);
62  virtual void ParseElement(const XMLNode& Node);
63 
64  private:
65  CAliasPrivate * const m_d;
66  };
67 }
68 
69 #endif
virtual void ParseAttribute(const std::string &Name, const std::string &Value)
std::string BeginDate() const
Definition: Entity.h:41
virtual CAlias * Clone()
static std::string GetElementName()
std::string Primary() const
std::string EndDate() const
std::string Text() const
Definition: Alias.h:39
virtual void ParseElement(const XMLNode &Node)
virtual std::ostream & Serialise(std::ostream &os) const
CAlias(const XMLNode &Node)
CAlias & operator=(const CAlias &Other)
std::string Type() const
std::string Locale() const
std::string SortName() const