{ int stat; tag_t revAnch, latest; int count; stat = AE_count_anchor_revisions (revAnch, &count); if( stat == ITK_ok ) { stat = AE_ask_anchor_revision (revAnch, count-1, &latest); } }
AE_API int AE_anchor_make_room | ( | tag_t | revision_anchor | ) |
Manipulates the revision chain for an existing revision anchor.
AE_purge_anchor_revisions removes all unreferenced revisions except for the latest.
revision_anchor | (I) |
Appends a new revision to an existing revision anchor. The revision anchor must be saved for the change to be in the data base.
revision_anchor | (I) |
new_revision | (I) |
AE_API int AE_ask_anchor_highest_revision | ( | tag_t | revision_anchor, | |
int * | the_highest_revision | |||
) |
Reads information about the revisions that a revision anchor is keeping track of. The revision index starts at 0.
The highest revision returns the total number of revisions ever created. This would include revisions that have since been deleted.
revision_anchor | (I) |
the_highest_revision | (O) |
AE_API int AE_ask_anchor_keep_limit | ( | tag_t | revision_anchor, | |
int * | current_keep_limit | |||
) |
This function will return the number of revisions that the given RevisionAnchor will keep.
revision_anchor | (I) |
current_keep_limit | (O) |
AE_API int AE_ask_anchor_rev_index | ( | tag_t | revision_anchor, | |
tag_t | a_revision, | |||
int * | revision_index | |||
) |
Reads information about the revisions that a revision anchor is keeping track of. The revision index starts at 0.
The highest revision returns the total number of revisions ever created. This would include revisions that have since been deleted.
revision_anchor | (I) |
a_revision | (I) |
revision_index | (O) |
Reads information about the revisions that a revision anchor is keeping track of. The revision index starts at 0.
The highest revision returns the total number of revisions ever created. This would include revisions that have since been deleted.
revision_anchor | (I) |
revision_index | (I) |
a_revision | (O) |
AE_API int AE_count_anchor_revisions | ( | tag_t | revision_anchor, | |
int * | revision_count | |||
) |
Reads information about the revisions that a revision anchor is keeping track of. The revision index starts at 0.
The highest revision returns the total number of revisions ever created. This would include revisions that have since been deleted.
revision_anchor | (I) |
revision_count | (O) |
AE_API int AE_create_revisionanchor | ( | int | keep_n_revs, | |
tag_t * | new_revision_anchor | |||
) |
keep_n_revs | (I) |
new_revision_anchor | (O) |
AE_API int AE_initialize_rev_anchor | ( | tag_t | revision_anchor, | |
int | keep_n_revisions | |||
) |
Initializes standard revision anchor attributes for a newly created instance of a subclass of revision anchor.
revision_anchor | (I) |
keep_n_revisions | (I) |
AE_API int AE_purge_anchor_revisions | ( | tag_t | revision_anchor | ) |
Manipulates the revision chain for an existing revision anchor.
AE_anchor_make_room deletes all old revisions that are not being referenced up to the keep limit. This makes room for another new version and still keeps the total revision count as high as before the new revision was appended.
revision_anchor | (I) |
Manipulates the revision chain for an existing revision anchor.
AE_remove_anchor_revision removes a specific revision from the chain.
revision_anchor | (I) |
a_revision | (I) |
AE_API int AE_revisionanchor_extent | ( | int * | n_instances, | |
tag_t ** | instances | |||
) |
Returns tags for all of the revision anchors in the database.
n_instances | (O) |
instances | (OF) n_instances |
AE_API int AE_set_anchor_keep_limit | ( | tag_t | revision_anchor, | |
int | new_keep_limit | |||
) |
Manipulates the value for keep limit for a revision anchor.
revision_anchor | (I) |
new_keep_limit | (I) |