1.1 --- a/epoc32/include/xmlengnode.inl Tue Mar 16 16:12:26 2010 +0000
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,94 +0,0 @@
1.4 -/*
1.5 -* Copyright (c) 2004-2005 Nokia Corporation and/or its subsidiary(-ies).
1.6 -* All rights reserved.
1.7 -* This component and the accompanying materials are made available
1.8 -* 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.9 -* which accompanies this distribution, and is available
1.10 -* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.11 -*
1.12 -* Initial Contributors:
1.13 -* Nokia Corporation - initial contribution.
1.14 -*
1.15 -* Contributors:
1.16 -*
1.17 -* Description: Node functions implementation
1.18 -*
1.19 -*/
1.20 -
1.21 -
1.22 -
1.23 -
1.24 -
1.25 -
1.26 -
1.27 -inline TXmlEngNode::TXmlEngNode()
1.28 - : iInternal(NULL) {}
1.29 -
1.30 -inline TXmlEngNode::TXmlEngNode(void* aInternal)
1.31 - : iInternal(aInternal) {}
1.32 -
1.33 -inline TBool TXmlEngNode::IsNull() const
1.34 - {return iInternal == NULL;}
1.35 -
1.36 -inline TBool TXmlEngNode::NotNull() const
1.37 - {return iInternal != NULL;}
1.38 -
1.39 -// ------------------------------------------------------------------------
1.40 -// Compares nodes.
1.41 -//
1.42 -// The nodes are the same if they are referring to the same in-memory
1.43 -// data structure.
1.44 -// ------------------------------------------------------------------------
1.45 -//
1.46 -inline TBool TXmlEngNode::IsSameNode(TXmlEngNode aOther) const
1.47 - {return iInternal == aOther.iInternal;}
1.48 -
1.49 -// ------------------------------------------------------------------------
1.50 -// Moves the node to another part of the tree or another document
1.51 -// The node is unliked from current postion (if any) and appended
1.52 -// to the its new parent.
1.53 -//
1.54 -// @note
1.55 -// In many cases this method call should be followed by ReconcileNamespacesL() on the moved node
1.56 -// ------------------------------------------------------------------------
1.57 -//
1.58 -inline TXmlEngNode TXmlEngNode::MoveTo(TXmlEngNode aParent)
1.59 - {return aParent.AppendChildL(Unlink());}
1.60 -
1.61 -inline TXmlEngAttr& TXmlEngNode::AsAttr() const
1.62 - {return *reinterpret_cast<TXmlEngAttr*>(const_cast<TXmlEngNode*>(this));}
1.63 -
1.64 -inline TXmlEngElement& TXmlEngNode::AsElement() const
1.65 - {return *reinterpret_cast<TXmlEngElement*>(const_cast<TXmlEngNode*>(this));}
1.66 -
1.67 -inline TXmlEngTextNode& TXmlEngNode::AsText() const
1.68 - {return *reinterpret_cast<TXmlEngTextNode*>(const_cast<TXmlEngNode*>(this));}
1.69 -
1.70 -inline TXmlEngBinaryContainer& TXmlEngNode::AsBinaryContainer() const
1.71 - {return *reinterpret_cast<TXmlEngBinaryContainer*>(const_cast<TXmlEngNode*>(this));}
1.72 -
1.73 -inline TXmlEngChunkContainer& TXmlEngNode::AsChunkContainer() const
1.74 - {return *reinterpret_cast<TXmlEngChunkContainer*>(const_cast<TXmlEngNode*>(this));}
1.75 -
1.76 -inline TXmlEngFileContainer& TXmlEngNode::AsFileContainer() const
1.77 - {return *reinterpret_cast<TXmlEngFileContainer*>(const_cast<TXmlEngNode*>(this));}
1.78 -
1.79 -inline TXmlEngDataContainer& TXmlEngNode::AsDataContainer() const
1.80 - {return *reinterpret_cast<TXmlEngDataContainer*>(const_cast<TXmlEngNode*>(this));}
1.81 -
1.82 -inline TXmlEngNamespace& TXmlEngNode::AsNamespace() const
1.83 - {return *reinterpret_cast<TXmlEngNamespace*>(const_cast<TXmlEngNode*>(this));}
1.84 -
1.85 -inline TXmlEngComment& TXmlEngNode::AsComment() const
1.86 - {return *reinterpret_cast<TXmlEngComment*>(const_cast<TXmlEngNode*>(this));}
1.87 -
1.88 -inline TXmlEngCDATASection& TXmlEngNode::AsCDATASection() const
1.89 - {return *reinterpret_cast<TXmlEngCDATASection*>(const_cast<TXmlEngNode*>(this));}
1.90 -
1.91 -
1.92 -inline TXmlEngEntityReference& TXmlEngNode::AsEntityReference() const
1.93 - {return *reinterpret_cast<TXmlEngEntityReference*>(const_cast<TXmlEngNode*>(this));}
1.94 -
1.95 -inline TXmlEngProcessingInstruction& TXmlEngNode::AsProcessingInstruction() const
1.96 - {return *reinterpret_cast<TXmlEngProcessingInstruction*>(const_cast<TXmlEngNode*>(this));}
1.97 -