libmusicbrainz4
4.0.3
|
00001 /* -------------------------------------------------------------------------- 00002 00003 libmusicbrainz4 - Client library to access MusicBrainz 00004 00005 Copyright (C) 2012 Andrew Hawkins 00006 00007 This file is part of libmusicbrainz4. 00008 00009 This library is free software; you can redistribute it and/or 00010 modify it under the terms of v2 of the GNU Lesser General Public 00011 License as published by the Free Software Foundation. 00012 00013 libmusicbrainz4 is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 Lesser General Public License for more details. 00017 00018 You should have received a copy of the GNU General Public License 00019 along with this library. If not, see <http://www.gnu.org/licenses/>. 00020 00021 $Id$ 00022 00023 ----------------------------------------------------------------------------*/ 00024 00025 #ifndef _MUSICBRAINZ4_SECONDARY_TYPE_H 00026 #define _MUSICBRAINZ4_SECONDARY_TYPE_H 00027 00028 #include <string> 00029 #include <iostream> 00030 00031 #include "musicbrainz4/Entity.h" 00032 00033 #include "musicbrainz4/xmlParser.h" 00034 00035 namespace MusicBrainz4 00036 { 00037 class CSecondaryTypePrivate; 00038 00039 class CSecondaryType: public CEntity 00040 { 00041 public: 00042 CSecondaryType(const XMLNode& Node=XMLNode::emptyNode()); 00043 CSecondaryType(const CSecondaryType& Other); 00044 CSecondaryType& operator =(const CSecondaryType& Other); 00045 virtual ~CSecondaryType(); 00046 00047 virtual CSecondaryType *Clone(); 00048 00049 std::string SecondaryType() const; 00050 00051 virtual std::ostream& Serialise(std::ostream& os) const; 00052 static std::string GetElementName(); 00053 00054 protected: 00055 virtual void ParseAttribute(const std::string& Name, const std::string& Value); 00056 virtual void ParseElement(const XMLNode& Node); 00057 00058 private: 00059 void Cleanup(); 00060 00061 CSecondaryTypePrivate * const m_d; 00062 }; 00063 } 00064 00065 #endif