Go to the documentation of this file.
26 #ifndef _MUSICBRAINZ5_LIST_IMPL_H
27 #define _MUSICBRAINZ5_LIST_IMPL_H
73 virtual std::ostream&
Serialise(std::ostream& os)
const
75 os << T::GetElementName() <<
" List (impl):" << std::endl;
79 for (
int count=0;count<
NumItems();count++)
81 T *ThisItem=
Item(count);
83 os << *ThisItem << std::endl;
107 std::string NodeName=Node.getName();
109 if (T::GetElementName()==NodeName)
CListImpl(const XMLNode &Node=XMLNode::emptyNode())
Definition: ListImpl.h:37
MusicBrainz5::CListImpl< T > & operator=(const CListImpl< T > &Other)
Definition: ListImpl.h:54
void ParseElement(const XMLNode &Node)
Definition: ListImpl.h:105
virtual ~CListImpl()
Definition: ListImpl.h:64
CListImpl< T > * Clone()
Definition: ListImpl.h:68
void AddItem(T *Item)
Definition: ListImpl.h:99
virtual std::ostream & Serialise(std::ostream &os) const
Definition: ListImpl.h:73
void Parse(const XMLNode &Node)
CListImpl(const CListImpl< T > &Other)
Definition: ListImpl.h:48
CList & operator=(const CList &Other)
virtual std::ostream & Serialise(std::ostream &os) const
CEntity * Item(int Item) const
virtual void ParseElement(const XMLNode &Node)
T * Item(int Item) const
Definition: ListImpl.h:94
void AddItem(CEntity *Item)
static std::string GetElementName()
Definition: ListImpl.h:89
Definition: ListImpl.h:34
void ProcessItem(const XMLNode &Node, T *&RetVal)
Definition: Entity.h:64