diff -r 2fe1408b6811 -r e1b950c65cb4 epoc32/include/xmlengnode.inl --- a/epoc32/include/xmlengnode.inl Tue Mar 16 16:12:26 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,94 +0,0 @@ -/* -* Copyright (c) 2004-2005 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* 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 -* which accompanies this distribution, and is available -* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: Node functions implementation -* -*/ - - - - - - - -inline TXmlEngNode::TXmlEngNode() - : iInternal(NULL) {} - -inline TXmlEngNode::TXmlEngNode(void* aInternal) - : iInternal(aInternal) {} - -inline TBool TXmlEngNode::IsNull() const - {return iInternal == NULL;} - -inline TBool TXmlEngNode::NotNull() const - {return iInternal != NULL;} - -// ------------------------------------------------------------------------ -// Compares nodes. -// -// The nodes are the same if they are referring to the same in-memory -// data structure. -// ------------------------------------------------------------------------ -// -inline TBool TXmlEngNode::IsSameNode(TXmlEngNode aOther) const - {return iInternal == aOther.iInternal;} - -// ------------------------------------------------------------------------ -// Moves the node to another part of the tree or another document -// The node is unliked from current postion (if any) and appended -// to the its new parent. -// -// @note -// In many cases this method call should be followed by ReconcileNamespacesL() on the moved node -// ------------------------------------------------------------------------ -// -inline TXmlEngNode TXmlEngNode::MoveTo(TXmlEngNode aParent) - {return aParent.AppendChildL(Unlink());} - -inline TXmlEngAttr& TXmlEngNode::AsAttr() const - {return *reinterpret_cast(const_cast(this));} - -inline TXmlEngElement& TXmlEngNode::AsElement() const - {return *reinterpret_cast(const_cast(this));} - -inline TXmlEngTextNode& TXmlEngNode::AsText() const - {return *reinterpret_cast(const_cast(this));} - -inline TXmlEngBinaryContainer& TXmlEngNode::AsBinaryContainer() const - {return *reinterpret_cast(const_cast(this));} - -inline TXmlEngChunkContainer& TXmlEngNode::AsChunkContainer() const - {return *reinterpret_cast(const_cast(this));} - -inline TXmlEngFileContainer& TXmlEngNode::AsFileContainer() const - {return *reinterpret_cast(const_cast(this));} - -inline TXmlEngDataContainer& TXmlEngNode::AsDataContainer() const - {return *reinterpret_cast(const_cast(this));} - -inline TXmlEngNamespace& TXmlEngNode::AsNamespace() const - {return *reinterpret_cast(const_cast(this));} - -inline TXmlEngComment& TXmlEngNode::AsComment() const - {return *reinterpret_cast(const_cast(this));} - -inline TXmlEngCDATASection& TXmlEngNode::AsCDATASection() const - {return *reinterpret_cast(const_cast(this));} - - -inline TXmlEngEntityReference& TXmlEngNode::AsEntityReference() const - {return *reinterpret_cast(const_cast(this));} - -inline TXmlEngProcessingInstruction& TXmlEngNode::AsProcessingInstruction() const - {return *reinterpret_cast(const_cast(this));} -