> The XQuery Processor
#include <zorba/collection.h>
Public Member Functions | |
| virtual bool | addDocument (std::istream &aInStream)=0 |
| Adds the document retrieved from the given input stream to the Collection. | |
| virtual bool | addItem (const Item &aItem)=0 |
| Adds a Node Item to the Collection. | |
| virtual bool | addItems (const ResultIterator_t &aResultIterator)=0 |
| Adds the Node Items retrieved from the given ResultIterator to the Collection. | |
| virtual bool | deleteItem (const Item &aItem)=0 |
| Deletes the given Item from the Collection. | |
| virtual Item | getUri ()=0 |
| Get the URI of a collection as an anyURI Item. | |
| virtual | ~Collection () |
| Destructor. | |
Each Collection is created by the XmlDataManager and referenced by a URI. The URI can be accessed in a query's fn:collection function.
Definition at line 29 of file collection.h.
| virtual zorba::Collection::~Collection | ( | ) | [inline, virtual] |
| virtual bool zorba::Collection::addDocument | ( | std::istream & | aInStream | ) | [pure virtual] |
Adds the document retrieved from the given input stream to the Collection.
| aInStream | the input stream from which to parse the document. |
| virtual bool zorba::Collection::addItem | ( | const Item & | aItem | ) | [pure virtual] |
Adds a Node Item to the Collection.
| aItem | the Node Item to add. |
| virtual bool zorba::Collection::addItems | ( | const ResultIterator_t & | aResultIterator | ) | [pure virtual] |
Adds the Node Items retrieved from the given ResultIterator to the Collection.
| aResultIterator | the ResultIterator that produces the Node Items to add. |
| virtual bool zorba::Collection::deleteItem | ( | const Item & | aItem | ) | [pure virtual] |
Deletes the given Item from the Collection.
| aItem | the Node Item to delete |
| virtual Item zorba::Collection::getUri | ( | ) | [pure virtual] |