xmlengnodelist_impl.h

Go to the documentation of this file.
00001 /*
00002 * ==============================================================================
00003 *  Name        : XmlEngNodeList_impl.h 
00004 *  Part of     : XmlEngine / DOM XPath C++ Wrapper
00005 *  Interface   : Domain, XML Engine DOM API
00006 *  Description : Node list implementation functions
00007 *  Version     : %version: 3 % 
00008 *
00009 *  Copyright © 2004-2006 Nokia. All rights reserved.
00010 *  This material, including documentation and any related 
00011 *  computer programs, is protected by copyright controlled by 
00012 *  Nokia. All rights are reserved. Copying, including 
00013 *  reproducing, storing, adapting or translating, any 
00014 *  or all of this material requires the prior written consent of 
00015 *  Nokia. This material also contains confidential 
00016 *  information which may not be disclosed to others without the 
00017 *  prior written consent of Nokia.
00018 * ==============================================================================
00019 */
00020 
00021 #ifndef XMLENGINE_NODELIST_IMPL_H_INCLUDED
00022 #define XMLENGINE_NODELIST_IMPL_H_INCLUDED
00023 
00024 #include <e32def.h>
00025 #include "xmlengnode.h"
00026 
00033 class RXmlEngNodeListImpl
00034 {
00035 public:
00036 
00042     IMPORT_C RXmlEngNodeListImpl();
00043 
00049     IMPORT_C void Close();
00050 
00057     IMPORT_C TInt  Count() const;
00058 
00065     IMPORT_C TBool HasNext() const;
00066 
00073     IMPORT_C TXmlEngNode Next();
00074 
00087     void OpenL( 
00088                         void* aHead,
00089                         TXmlEngNode::TXmlEngDOMNodeType aType,
00090                         const TDesC8&   aName = KNullDesC8,
00091                         const TDesC8&   aNs = KNullDesC8);
00092 
00101     void Open( 
00102                         void* aHead,
00103                         TXmlEngNode::TXmlEngDOMNodeType aType);
00104 
00105 private:
00106 
00107     void* FindNextNode(void* aCurrentNode) const;
00108 
00109     void*               iCurrentNode;
00110         TInt                iType;  // NodeType:4 bits (0-3) & MatchName flag (bit 4)
00111         unsigned char*  iName;
00112         unsigned char*  iNsUri;
00113 };
00114 
00115 TBool StrEqualOrNull(const void* aStr1, const void* aStr2);
00116                         
00117 
00118 
00119 #endif /* XMLENGINE_NODELIST_IMPL_H_INCLUDED */

Copyright © Nokia Corporation 2001-2007
Back to top