Main | License | Installation | FAQ | Screenshots | Contact | Links | Sf.net | Freshmeat.net | KDE-Apps.org
Requirements | Design | Modules | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

XMLNodeReferenceList Class Reference
[XML C++ Wrappers]

#include <xmlNodeReferenceList.hpp>

Inheritance diagram for XMLNodeReferenceList:

Inheritance graph
[legend]

Public Member Functions

 XMLNodeReferenceList (boost::shared_ptr< XObjectPtr > _xObject, XMLDocument *_document)
 XMLNodeReferenceList (const XMLNodeReferenceList &l)
XMLReference< XalanNode > item (int index) const
int getLength (void) const

Protected Attributes

boost::shared_ptr
< XObjectPtr > 
xObject
const NodeRefListBase & nodeList
XMLDocumentdocument

Detailed Description

List of XML-nodes.
Date:
Sat Feb 05 2005
Author:
Jan Wedekind (wedesoft@users.sourceforge.net)

Definition at line 31 of file xmlNodeReferenceList.hpp.


Constructor & Destructor Documentation

XMLNodeReferenceList::XMLNodeReferenceList ( boost::shared_ptr< XObjectPtr >  _xObject,
XMLDocument _document 
) [inline]

Definition at line 39 of file xmlNodeReferenceList.hpp.

00040                                                 :
00041     xObject( _xObject ), nodeList( (*_xObject)->nodeset() ),
00042     document(_document) {}
#endif

XMLNodeReferenceList::XMLNodeReferenceList ( const XMLNodeReferenceList l  ) 

Definition at line 3 of file xmlNodeReferenceList.cpp.

00003                                                                          :
00004   Object( l ),
00005 #ifndef SIMPLEXPATH
00006   xObject( l.xObject ),
00007 #endif
00008   nodeList( l.nodeList ), document( l.document )
00009 {}


Member Function Documentation

XMLReference< XalanNode > XMLNodeReferenceList::item ( int  index  )  const

Definition at line 11 of file xmlNodeReferenceList.cpp.

References document, and nodeList.

Referenced by XMLReference< T >::selectNode().

00012 {
00013   return XMLReference< XalanNode >( nodeList.item( index ), document );
00014 }

int XMLNodeReferenceList::getLength ( void   )  const

Definition at line 16 of file xmlNodeReferenceList.cpp.

References nodeList.

Referenced by XMLReference< T >::selectNode().

00017 {
00018 #ifdef SIMPLEXPATH
00019   return nodeList.getLength();
00020 #else
00021   return (*xObject)->nodeset().getLength();
00022 #endif
00023 }


Field Documentation

boost::shared_ptr< XObjectPtr > XMLNodeReferenceList::xObject [protected]

Definition at line 51 of file xmlNodeReferenceList.hpp.

const NodeRefListBase& XMLNodeReferenceList::nodeList [protected]

Definition at line 52 of file xmlNodeReferenceList.hpp.

Referenced by getLength(), and item().

XMLDocument* XMLNodeReferenceList::document [protected]

Definition at line 54 of file xmlNodeReferenceList.hpp.

Referenced by item().


The documentation for this class was generated from the following files:

anymeal 0.30 - recipe management software - Make the most of your food! - © Jan Wedekind Sun Sep 14 16:01:29 2008 - GNU Free Documentation License