![]() | InDesign SDK 20.5 |
#include <CContentIterator.h>
Public Member Functions | |
| CContentIterator (IPMUnknown *owner, IPMStream *s) | |
| virtual | ~CContentIterator () |
| virtual bool16 | IsClassID () const =0 |
| virtual IPMStream * | QueryContentStream ()=0 |
| virtual ClassID | GetClassID () const =0 |
| virtual ImplementationID | GetImplementationID () const =0 |
| virtual uint32 | GetLength () const =0 |
| virtual bool16 | Next ()=0 |
| virtual void | ResetRead (IContentWriteIterator *out=nil)=0 |
| virtual void | CreateClassID (ClassID id)=0 |
| virtual uint32 | CloseClassID (ClassID id)=0 |
| virtual void | CreateImplementationID (ImplementationID id)=0 |
| virtual uint32 | CloseImplementationID (ImplementationID id)=0 |
| virtual void | AbortID ()=0 |
| virtual void | ResetWrite ()=0 |
| virtual void | BeginList (IContentWriteIterator::ListType) |
| virtual void | EndList () |
| bool16 | EndOfList () const |
| virtual int32 | GetOriginPosition () const |
Protected Member Functions | |
| IPMStream * | GetStream () const |
| bool | IsReadIterator () const |
| int32 | CurrentPosition (IPMStream *s) const |
| void | SetEndOfList (bool16 atEnd) |
This class provides basic support for both input and output content iterators. Much of its functionality must be provided by a subclass (see comments, below).
| CContentIterator::CContentIterator | ( | IPMUnknown * | owner, |
| IPMStream * | s | ||
| ) |
ctor
| owner | IN Owning Boss |
| s | IN Input or output stream associated with this iterator |
| virtual |
dtor
| pure virtual |
Abandon process output for the most recent class or implementation ID. (Only meaningful for Output iterators) Must be supplied by a subclass.
| inlinevirtual |
Notification method: Called when we start processing a list. May be overridden by a subclass.
| listType | IN The type of list being processed. |
| pure virtual |
Finish processing output for the most recent class ID. If the supplied ID differs from the one supplied to CreateClassID(), the class is renumbered in the database. (Only meaningful for Output iterators) Must be supplied by a subclass.
| id | IN The class ID |
| pure virtual |
Finish processing output for the most recent implementation ID. If the supplied ID differs from the one supplied to CreateImplementationID(), the implementation is renumbered in the database. (Only meaningful for Output iterators) Must be supplied by a subclass.
| id | IN The implementation ID |
| pure virtual |
Add a class ID to the output iterator. (Only meaningful for Output iterators) Must be supplied by a subclass.
| id | IN The class ID |
| pure virtual |
Add an implementation ID to the output iterator. (Only meaningful for Output iterators) Must be supplied by a subclass.
| id | IN The implementation ID |
| inlineprotected |
Return the current stream position relative to the iterator's origin. For input iterators, this means the number of bytes already consumed. For output iterators, it means the number of bytes written.
| inlinevirtual |
A notification method: Called when we are finished processing a list. May be overridden by a subclass.
| inline |
Determines whether we are at the end of the data. (Only meaningful for Input iterators)
| pure virtual |
Return the ID of the current class being processed
| pure virtual |
Return the ID of the current implementation being processed
| pure virtual |
Return the length of the data associated with the current class or implementation (Only meaningful for Input iterators) Must be supplied by a subclass.
| inlinevirtual |
Returns the stream offset when the iterator was first constructed, or after the most recent reset.
| inlineprotected |
Return an unreferenced pointer to the input or output stream associated with this iterator.
| pure virtual |
Determine whether the ID currently being processed is a class or implementation. Must be supplied by a subclass.
| inlineprotected |
Determine whether this is an input or output iterator.
| pure virtual |
Advance to the next class or implementation ID (Only meaningful for Input iterators) Must be supplied by a subclass.
| pure virtual |
Return a referenced pointer to the stream associated with the iterator. Must be supplied by a subclass.
| pure virtual |
Resets an input iterator to the state that it was in when constructed and optionally associates an output iterator with it. (Only meaningful for Input iterators) Must be supplied by a subclass.
| out | IN An output iterator |
| pure virtual |
Reset an output iterator to its initial, empty state. (Only meaningful for Output iterators) Must be supplied by a subclass.
| inlineprotected |
Sets the iterator's end-of-file status.
| atEnd | IN kTrue if at eof, kFalse if not |