edmiGetScratchFolders
SdaiAggr edmiGetScratchFolders(void);
Returns the folders aggregate of the model contents instance in the scratch model. The scratch model can contain instances of any available type (any entity definition) in an EDMdatabase. All scratch instances in an EDMdatabase are located in the scratch model. The folders aggregates contains all scratch entity extent instances in an EDMserver session. The scratch model belongs to an EDMserver session, hence the scratch model (and all scratch instances are not persistent in an EDMdatabase. The scratch model will be deleted when the open EDMserver session is closed and a new empty scratch model will be created when a new EDMserver session is opened. All EDMinterface read access operations that are applicable on SET aggregates are applicable to the returned aggregate.
EXPRESS:
ENTITY sdai_model_contents;
instances : SET OF entity_instance;
folders : SET OF entity_extent;
populated_folders : SET OF entity_extent;
END_ENTITY;
Arguments
Return Value
Type | Comment |
---|---|
SdaiAggr |
Options
Example
SdaiAggr scratchFoldersId; SdaiErrorCode rstat; SdaiInstance id; SdaiInteger index, members; . . . scratchFoldersId = edmiGetScratchFolders(); if (! scratchFoldersId) { /* Error in operation */ printf("\nError: %s in edmiGetScratchFolders\n", edmiGetErrorText(sdaiErrorQuery())); goto error; } members = sdaiGetMemberCounts(scratchFoldersId); /* Print instanceID of all scratch entity extent instances */ for (index = 0; index < members; index++) { edmiGetAggrElement(scratchFoldersId, index, sdaiINSTANCE, &id); rstat = sdaiErrorQuery(); if (rstat) { /* Error in operation */ printf("\nError: %s in edmiGetAggrElement\n", edmiGetErrorText(sdaiErrorQuery())); goto error; } printf ("\nScratchEntityExtentID: %lu", id); } . . .
See also
Filter by label
There are no items with the selected labels at this time.