![]() | InDesign SDK 20.5 |
#include <CContentIteratorReg.h>

Public Member Functions | |
| virtual uint32 | GetClassIDCount () |
| virtual void | GetNthClassID (uint32 n, ClassID &id) |
| virtual uint32 | GetImplementationIDCount () |
| virtual void | GetNthImplementationID (uint32 n, ImplementationID &id) |
| virtual IContentReadIterator * | NewNthClassReadIterator (uint32 n, const VersionID &version, IPMStream *s) |
| virtual IContentWriteIterator * | NewNthClassWriteIterator (uint32 n, const VersionID &version, IPMStream *s) |
| virtual IContentReadIterator * | NewNthImplementationReadIterator (uint32 n, const VersionID &version, IPMStream *s) |
| virtual IContentWriteIterator * | NewNthImplementationWriteIterator (uint32 n, const VersionID &version, IPMStream *s) |
Protected Member Functions | |
| IContentReadIterator * | NewSchemaReadIterator (ClassID classID, const VersionID &version, IPMStream *s) |
| IContentReadIterator * | NewSchemaReadIterator (ImplementationID implID, const VersionID &version, IPMStream *s) |
CContentIteratorRegister is a useful base class for implementing IContentIteratorRegister in situations where all of the iterators are schema-driven. This class will do most of the work for you, generating input iterators that are driven by information found in the schemas. Public methods are uncommented here because they are documented in IContentIteratorRegister.
| virtual |
Return a count of the number of classes for which iterators can be provided.
Implements IContentIteratorRegister.
| virtual |
Return a count of the number of implementations for which iterators can be provided.
Implements IContentIteratorRegister.
Reimplemented in SnapIteratorRegister.
| virtual |
Return the ID of the n-th class for which iterators can be provided.
| n | IN Which class |
| id | OUT The class ID or kInvalidClass if n is invalid. |
Implements IContentIteratorRegister.
| virtual |
Return the ID of the n-th implementation for which iterators can be provided.
| n | IN Which implementation |
| id | OUT The implementation ID or kInvalidImpl if n is invalid. |
Implements IContentIteratorRegister.
Reimplemented in SnapIteratorRegister.
| virtual |
Create a new input iterator for a particular version of a particular class.
| n | IN The index of the class in the list supplied via GetNthClassID() |
| version | IN The class data format |
| s | IN An input stream that contains the data in the specified format |
Implements IContentIteratorRegister.
| virtual |
Create a new output iterator for a particular version of a particular class.
| n | IN The index of the class in the list supplied via GetNthClassID() |
| version | IN The class data format |
| s | IN An output stream that will contain the data |
Implements IContentIteratorRegister.
| virtual |
Create a new input iterator for a particular version of a particular implementation.
| n | IN The index of the implementation in the list supplied via GetNthImplementationID() |
| version | IN The implementation data format |
| s | IN An input stream that contains the data in the specified format |
Implements IContentIteratorRegister.
Reimplemented in SnapIteratorRegister.
| virtual |
Create a new output iterator for a particular version of a particular implementation.
| n | IN The index of the implementation in the list supplied via GetNthImplementationID() |
| version | IN The implementation data format |
| s | IN An output stream that will contain the data |
Implements IContentIteratorRegister.
Reimplemented in SnapIteratorRegister.
| inlineprotected |
Return a referenced input iterator based on a schema that describe the class data format.
| classID | IN The class to be iterated |
| version | IN The class data format |
| s | IN An input stream that contains the data in the specified format |
| inlineprotected |
Return a referenced input iterator based on a schema that describes the implementation data format.
| implID | IN The implementation to be iterated |
| version | IN The implementation data format |
| s | IN An input stream that contains the data in the specified format |