1.1 --- a/epoc32/include/xmlengnodelist.inl Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/xmlengnodelist.inl Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,86 @@
1.4 -xmlengnodelist.inl
1.5 +/*
1.6 +* Copyright (c) 2006-2006 Nokia Corporation and/or its subsidiary(-ies).
1.7 +* All rights reserved.
1.8 +* This component and the accompanying materials are made available
1.9 +* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.10 +* which accompanies this distribution, and is available
1.11 +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.12 +*
1.13 +* Initial Contributors:
1.14 +* Nokia Corporation - initial contribution.
1.15 +*
1.16 +* Contributors:
1.17 +*
1.18 +* Description: Node list inline functions
1.19 +*
1.20 +*/
1.21 +
1.22 +
1.23 +
1.24 +
1.25 +
1.26 +
1.27 +
1.28 +
1.29 +
1.30 +// -----------------------------------------------------------------------------
1.31 +// Retrieves number of items in node list
1.32 +// -----------------------------------------------------------------------------
1.33 +//
1.34 +template<class T> inline TInt RXmlEngNodeList<T>::Count() const
1.35 + {
1.36 + return iList.Count();
1.37 + }
1.38 +
1.39 +// -----------------------------------------------------------------------------
1.40 +// Returns true if this node has next sibling, false otherwise.
1.41 +// -----------------------------------------------------------------------------
1.42 +//
1.43 +template<class T> inline TBool RXmlEngNodeList<T>::HasNext() const
1.44 + {
1.45 + return iList.HasNext();
1.46 + }
1.47 +
1.48 +// -----------------------------------------------------------------------------
1.49 +// Retrieves next node
1.50 +// -----------------------------------------------------------------------------
1.51 +//
1.52 +template<class T> inline T RXmlEngNodeList<T>::Next()
1.53 + {
1.54 + TXmlEngNode t = iList.Next();
1.55 + return *(static_cast<T*>(&t));
1.56 + }
1.57 +
1.58 +// -----------------------------------------------------------------------------
1.59 +// Closes node list
1.60 +// -----------------------------------------------------------------------------
1.61 +//
1.62 +template<class T> inline void RXmlEngNodeList<T>::Close()
1.63 + {
1.64 + iList.Close();
1.65 + }
1.66 +
1.67 +// -----------------------------------------------------------------------------
1.68 +// Opens node list
1.69 +// -----------------------------------------------------------------------------
1.70 +//
1.71 +template<class T> inline void RXmlEngNodeList<T>::OpenL(
1.72 + void* aHead,
1.73 + TXmlEngNode::TXmlEngDOMNodeType aType,
1.74 + const TDesC8& aName,
1.75 + const TDesC8& aNs)
1.76 + {
1.77 + iList.OpenL(aHead, aType, aName, aNs);
1.78 + }
1.79 +
1.80 +// -----------------------------------------------------------------------------
1.81 +// Opens node list
1.82 +// -----------------------------------------------------------------------------
1.83 +//
1.84 +template<class T> inline void RXmlEngNodeList<T>::Open(
1.85 + void* aHead,
1.86 + TXmlEngNode::TXmlEngDOMNodeType aType)
1.87 + {
1.88 + iList.Open(aHead, aType);
1.89 + }
1.90 +