~ubuntu-branches/ubuntu/saucy/libmusicbrainz/saucy

« back to all changes in this revision

Viewing changes to include/musicbrainz4/Annotation.h

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen
  • Date: 2012-02-01 17:18:10 UTC
  • Revision ID: package-import@ubuntu.com-20120201171810-jzz90w51dx6shdr1
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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: Annotation.h 13259 2011-08-10 12:02:50Z adhawkins $
 
22
 
 
23
----------------------------------------------------------------------------*/
 
24
 
 
25
#ifndef _MUSICBRAINZ4_ANNOTATION_H
 
26
#define _MUSICBRAINZ4_ANNOTATION_H
 
27
 
 
28
#include <string>
 
29
#include <iostream>
 
30
 
 
31
#include "musicbrainz4/Entity.h"
 
32
 
 
33
#include "musicbrainz4/xmlParser.h"
 
34
 
 
35
namespace MusicBrainz4
 
36
{
 
37
        class CAnnotationPrivate;
 
38
 
 
39
        class CAnnotation: public CEntity
 
40
        {
 
41
        public:
 
42
                CAnnotation(const XMLNode& Node);
 
43
                CAnnotation(const CAnnotation& Other);
 
44
                CAnnotation& operator =(const CAnnotation& Other);
 
45
                virtual ~CAnnotation();
 
46
 
 
47
                virtual CAnnotation *Clone();
 
48
 
 
49
                std::string Type() const;
 
50
                std::string Entity() const;
 
51
                std::string Name() const;
 
52
                std::string Text() const;
 
53
 
 
54
                virtual std::ostream& Serialise(std::ostream& os) const;
 
55
                static std::string GetElementName();
 
56
 
 
57
        protected:
 
58
                virtual bool ParseAttribute(const std::string& Name, const std::string& Value);
 
59
                virtual bool ParseElement(const XMLNode& Node);
 
60
 
 
61
        private:
 
62
                CAnnotationPrivate * const m_d;
 
63
        };
 
64
}
 
65
 
 
66
#endif