edmiGetScratchPopulatedFolders
SdaiAggr edmiGetScratchPopulatedFolders(void);
Returns the populated_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 populated_folders aggregates contain all scratch entity_extent instances that have at least one member in the instances aggregate 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 | A numeric aggregateID of datatype SdaiAggr that uniquely identifies the created aggregate in the EDMdatabase is the returned function value. The aggregateID has the following values: aggregateID !=0 : Operation successfully performed. aggregateID = 0: Error in operation. Use sdaiErrorQuery to get error code and edmiGetErrorText to get the error text corresponding to the error code. |
Options
Example
SdaiAggr scratchPopulatedFoldersId; SdaiErrorCode rstat; SdaiInstance id; SdaiInteger index, members; . . . scratchPopulatedFoldersId = edmiGetScratchPopulatedFolders (); if (! scratchPopulatedFoldersId) { /* Error in operation */ printf("\nError: %s in edmiGetScratchPopulatedFolders \n", edmiGetErrorText(sdaiErrorQuery())); goto error; } members = sdaiGetMemberCounts(scratchPopulatedFoldersId); /* Print instanceID of all populated scratch entity extent in the session */ for (index = 0; index < members; index++) { edmiGetAggrElement(scratchPopulatedFoldersId,index,sdaiINSTANCE, &id); rstat = sdaiErrorQuery(); if (rstat) { /* Error in operation */ printf("\nError: %s in edmiGetAggrElement\n", edmiGetErrorText(sdaiErrorQuery())); goto error; } printf ("\nPopulated scratch EntityExtent: %lu", id); } . . .
See also
Filter by label
There are no items with the selected labels at this time.