|
ImagingTools Core SDK
|
#include <IObjectCollection.h>
Public Types | |
| enum | OperationalFlags { OF_SUPPORT_RENAME = 1 , OF_SUPPORT_INSERT = 2 , OF_SUPPORT_DELETE = 4 , OF_SUPPORT_EDIT = 8 , OF_SUPPORT_USING = 16 , OF_SUPPORT_PAGINATION = 32 , OF_ALL = OF_SUPPORT_RENAME | OF_SUPPORT_INSERT | OF_SUPPORT_DELETE | OF_SUPPORT_EDIT | OF_SUPPORT_USING | OF_SUPPORT_PAGINATION } |
Public Types inherited from imtbase::ICollectionInfo | |
| enum | ChangeFlags { CF_ADDED = 10000 , CF_ELEMENT_RENAMED , CF_ELEMENT_DESCRIPTION_CHANGED , CF_ELEMENT_STATE , CF_REMOVED , CF_RESTORED , CF_LAST } |
| enum | ElementInfoType { EIT_NAME , EIT_DESCRIPTION , EIT_ENABLED , EIT_USER = 1000 } |
| enum | MetaInfoType { MIT_INSERTION_USER = idoc::IDocumentMetaInfo::MIT_USER + 10000 , MIT_INSERTION_TIME , MIT_LAST_OPERATION_USER , MIT_LAST_OPERATION_TIME , MIT_PREVIEW_THUMBNAIL , MIT_REVISION = idoc::IDocumentMetaInfo::MIT_USER + 20000 } |
Public Member Functions | |
| virtual const IRevisionController * | GetRevisionController () const =0 |
| virtual const ICollectionDataController * | GetDataController () const =0 |
| virtual int | GetOperationFlags (const Id &elementId=Id()) const =0 |
| virtual Id | InsertNewObject (const QByteArray &typeId, const QString &name, const QString &description, const istd::IChangeable *defaultValuePtr=nullptr, const Id &proposedElementId=Id(), const idoc::IDocumentMetaInfo *dataMetaInfoPtr=nullptr, const idoc::IDocumentMetaInfo *elementMetaInfoPtr=nullptr, const IOperationContext *operationContextPtr=nullptr)=0 |
| virtual bool | RemoveElements (const Ids &elementIds, const IOperationContext *operationContextPtr=nullptr)=0 |
| virtual bool | RemoveElementSet (const iprm::IParamsSet *selectionParamsPtr=nullptr, const IOperationContext *operationContextPtr=nullptr)=0 |
| virtual bool | RestoreObjects (const Ids &objectIds, const IOperationContext *operationContextPtr=nullptr)=0 |
| virtual bool | RestoreObjectSet (const iprm::IParamsSet *selectionParamsPtr=nullptr, const IOperationContext *operationContextPtr=nullptr)=0 |
| virtual const istd::IChangeable * | GetObjectPtr (const Id &objectId) const =0 |
| template<typename Interface > | |
| const Interface * | GetObjectPtr (const Id &objectId) const |
| virtual bool | GetObjectData (const Id &objectId, DataPtr &dataPtr, const iprm::IParamsSet *dataConfigurationPtr=nullptr) const =0 |
| virtual bool | SetObjectData (const Id &objectId, const istd::IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS, const IOperationContext *operationContextPtr=nullptr)=0 |
| virtual istd::TUniqueInterfacePtr< IObjectCollection > | CreateSubCollection (int offset=0, int count=-1, const iprm::IParamsSet *selectionParamsPtr=nullptr) const =0 |
| virtual imtbase::IObjectCollectionIterator * | CreateObjectCollectionIterator (const QByteArray &objectId=QByteArray(), int offset=0, int count=-1, const iprm::IParamsSet *selectionParamsPtr=nullptr) const =0 |
| virtual void | ResetObjectIds () |
Public Member Functions inherited from imtbase::IObjectCollectionInfo | |
| virtual const iprm::IOptionsList * | GetObjectTypesInfo () const =0 |
| virtual Id | GetObjectTypeId (const Id &objectId) const =0 |
| virtual idoc::MetaInfoPtr | GetDataMetaInfo (const Id &objectId) const =0 |
Public Member Functions inherited from imtbase::ICollectionInfo | |
| virtual int | GetElementsCount (const iprm::IParamsSet *selectionParamsPtr=nullptr, ilog::IMessageConsumer *logPtr=nullptr) const =0 |
| virtual Ids | GetElementIds (int offset=0, int count=-1, const iprm::IParamsSet *selectionParamsPtr=nullptr, ilog::IMessageConsumer *logPtr=nullptr) const =0 |
| virtual bool | GetSubsetInfo (ICollectionInfo &subsetInfo, int offset=0, int count=-1, const iprm::IParamsSet *selectionParamsPtr=nullptr, ilog::IMessageConsumer *logPtr=nullptr) const =0 |
| virtual QVariant | GetElementInfo (const Id &elementId, int infoType, ilog::IMessageConsumer *logPtr=nullptr) const =0 |
| virtual idoc::MetaInfoPtr | GetElementMetaInfo (const Id &elementId, ilog::IMessageConsumer *logPtr=nullptr) const =0 |
| virtual bool | SetElementName (const Id &elementId, const QString &name, ilog::IMessageConsumer *logPtr=nullptr)=0 |
| virtual bool | SetElementDescription (const Id &elementId, const QString &description, ilog::IMessageConsumer *logPtr=nullptr)=0 |
| virtual bool | SetElementEnabled (const Id &elementId, bool isEnabled=true, ilog::IMessageConsumer *logPtr=nullptr)=0 |
Common interface for a data object collection.
Definition at line 29 of file IObjectCollection.h.
Flags for describing operational constraints on the collection items or the collection itself.
Definition at line 45 of file IObjectCollection.h.
|
pure virtual |
Create a collection iterator according to the given filtering/sorting parameters.
| offset | [optional] Index offset of the first element |
| count | [optional] If positive, the number of elements should be returned. |
| selectionParamsPtr | [optional] Additional parameters for filtering/ordering elements. |
|
pure virtual |
Create a sub-collection (a subset) of the whole collection according to the given filtering/sorting parameters.
| offset | [optional] Index offset of the first element |
| count | [optional] If positive, the number of elements should be returned. |
| selectionParamsPtr | [optional] Additional parameters for filtering/ordering elements. |
|
pure virtual |
Get access to the data controller of the collection, if available.
|
pure virtual |
Get object data instance for the entry with the given ID.
|
inline |
Get access to the object instance inside of collecton.
Definition at line 173 of file IObjectCollection.h.
References GetObjectPtr().
|
pure virtual |
Get access to the object instance inside of collecton.
Referenced by GetObjectPtr().
|
pure virtual |
Get binary flags describing the possible operations on the single object or on the whole collection.
| objectId | ID of the object for quering flags. If this parameter is empty, the flags for entire collection will be returned. |
|
pure virtual |
Get access to the revision controller of the collection, if available.
|
pure virtual |
Create a new object in the container.
| typeId | Type-ID of the object to be created. |
| name | Name of the object in the collection. |
| description | Descrpition of the object. |
| defaultValuePtr | Optional instance used for the object data initialization. |
| proposedElementId | Optional-defined ID of the object in the collection. If the value is non-empty inserted object become specified ID if possible. |
| dataMetaInfoPtr | Optional-defined meta-information for the data content. |
| elementMetaInfoPtr | Optional-defined meta-information for the collection element. |
|
pure virtual |
Remove element with the given ID.
|
pure virtual |
Remove element with the given filter.
| selectionParamsPtr | The filter by which the selection will be made for deletion. If it is null, then everything will be deleted. |
|
inlinevirtual |
This method will re-create all object-IDs.
Definition at line 225 of file IObjectCollection.h.
|
pure virtual |
Restore objects with the given IDs.
|
pure virtual |
Restore objects with the given filter.
| selectionParamsPtr | The filter by which the selection will be made for restoring. If it is null, then everything will be restored. |
|
pure virtual |
Set data for the entry with the given ID.