|
ITK Function Reference
(V10000.1.0.60_20160308.00) |
Macros | |
| #define | PREF_PARTITION_DEFAULT_REVRULE "PTN_Default_Partition_RevRule" |
Typedefs | |
| typedef enum ActionCode | ActionCode_t |
| typedef enum ContentPersistenceMode | ContentPersistenceMode_t |
| typedef enum PARTITION_reparent_partition_action_code_e | PARTITION_reparent_partition_action_code_t |
Enumerations | |
| enum | ActionCode { ADD_PARTITION = 0, REPLACE_PARTITION, REMOVE_PARTITION } |
| enum | ContentPersistenceMode { STATIC_MODE = 0, DYNAMIC_MODE, AUTO_MODE, ALL_MODE } |
| enum | PARTITION_reparent_partition_action_code_e { MOVE_REPARENTING_PARTITION = 0, REPLACE_REPARENTING_PARTITION } |
Functions | |
| PTN0PARTITION_API int | PARTITION_find_model_with_id (char *model_id, tag_t *model_tag) |
| PTN0PARTITION_API int | PARTITION_get_partitions (tag_t configuration_context, tag_t model_tag, tag_t scheme_tag, int max_partition_count, int *num_partitions, tag_t **partitions) |
| PTN0PARTITION_API int | PARTITION_get_schemes_in_model (tag_t model_tag, int *list_of_schemes_count, tag_t **list_of_schemes) |
| PTN0PARTITION_API int | PARTITION_get_toplevel_partitions (tag_t configuration_context, tag_t model_tag, tag_t partition_scheme_tag, int *top_level_partitions_count, tag_t **top_level_partitions) |
| PTN0PARTITION_API int | PARTITION_reparent_partitions (tag_t current_parent, int child_count, const tag_t *children, PARTITION_reparent_partition_action_code_t action_code, tag_t target_parent, int *failed_children_count, tag_t **failed_children, int *error_count, int **error_codes, char ***error_messages) |
| PTN0PARTITION_API int | PARTITION_update_members_and_child_partitions (tag_t partition, int member_count, tag_t *members, int child_count, tag_t *children, ActionCode_t action_code, ContentPersistenceMode_t content_persistence_mode, const tag_t configuration_context, int *failed_members_count, tag_t **failed_members, int *failed_children_count, tag_t **failed_children, int *error_count, int **error_codes) |
| PTN0PARTITION_API int | PARTITION_where_partitioned (tag_t configuration_context, tag_t model_tag, tag_t scheme_tag, tag_t member_tag, int *partitions_count, tag_t **partitions) |
| #define PREF_PARTITION_DEFAULT_REVRULE "PTN_Default_Partition_RevRule" |
Name of the default Revision Rule preference to configure partitions
Definition at line 36 of file partition.h.
| typedef enum ActionCode ActionCode_t |
ActionCode is the enum used to update/get children or members for a Partition
| typedef enum ContentPersistenceMode ContentPersistenceMode_t |
ContentPersistenceMode is the enum used to update/get members for a Partition.
Used to re-parent children partition
| enum ActionCode |
ActionCode is the enum used to update/get children or members for a Partition
Definition at line 41 of file partition.h.
ContentPersistenceMode is the enum used to update/get members for a Partition.
Definition at line 62 of file partition.h.
Used to re-parent children partition
Definition at line 52 of file partition.h.
| PTN0PARTITION_API int PARTITION_find_model_with_id | ( | char * | model_id, |
| tag_t * | model_tag | ||
| ) |
Finds the partition template model with the given Model Id.
| model_id | (I) Input model ID |
| model_tag | (O) Model tag |
| PTN0PARTITION_API int PARTITION_get_partitions | ( | tag_t | configuration_context, |
| tag_t | model_tag, | ||
| tag_t | scheme_tag, | ||
| int | max_partition_count, | ||
| int * | num_partitions, | ||
| tag_t ** | partitions | ||
| ) |
Gets Partitions in a given Application Model for the given input Partition Scheme.
| configuration_context | (I) Configuration context tag |
| model_tag | (I) Application model tag |
| scheme_tag | (I) Partition scheme tag |
| max_partition_count | (I) Maximum number of partitions to be returned |
| num_partitions | (O) Number of the returned partitions |
| partitions | (OF) num_partitions Array of partition tags |
| PTN0PARTITION_API int PARTITION_get_schemes_in_model | ( | tag_t | model_tag, |
| int * | list_of_schemes_count, | ||
| tag_t ** | list_of_schemes | ||
| ) |
Finds and returns the partition schemes in a given application model.
| model_tag | (I) Application model tag |
| list_of_schemes_count | (O) Number of partition schemes |
| list_of_schemes | (OF) list_of_schemes_count Array of partition scheme tags |
| PTN0PARTITION_API int PARTITION_get_toplevel_partitions | ( | tag_t | configuration_context, |
| tag_t | model_tag, | ||
| tag_t | partition_scheme_tag, | ||
| int * | top_level_partitions_count, | ||
| tag_t ** | top_level_partitions | ||
| ) |
Finds and returns the array of top level partitions in a given Partition Scheme.
| configuration_context | (I) Configuration context tag |
| model_tag | (I) Application model tag |
| partition_scheme_tag | (I) Partition scheme tag |
| top_level_partitions_count | (O) Count of top level Partitions |
| top_level_partitions | (OF) top_level_partitions_count Array of tags of top level Partitions |
| PTN0PARTITION_API int PARTITION_reparent_partitions | ( | tag_t | current_parent, |
| int | child_count, | ||
| const tag_t * | children, | ||
| PARTITION_reparent_partition_action_code_t | action_code, | ||
| tag_t | target_parent, | ||
| int * | failed_children_count, | ||
| tag_t ** | failed_children, | ||
| int * | error_count, | ||
| int ** | error_codes, | ||
| char *** | error_messages | ||
| ) |
Reparents child partitions of a given parent partition to a new parent partition and tracks the failure per member.
| current_parent | (I) Partition tag |
| child_count | (I) Count of children |
| children | (I) Array of child partition tags |
| action_code | (I) MOVE_REPARENTING_PARTITION = 0, REPLACE_REPARENTING_PARTITION = 1 |
| target_parent | (I) Partition tag: new parent |
| failed_children_count | (O) Count of failed children |
| failed_children | (OF) failed_children_count Array of child partitions that failed to update |
| error_count | (O) Count of the error codes |
| error_codes | (OF) error_count Array of error codes for failed member updates |
| error_messages | (OF) error_count Array of packed error messages for failed member updates |
| PTN0PARTITION_API int PARTITION_update_members_and_child_partitions | ( | tag_t | partition, |
| int | member_count, | ||
| tag_t * | members, | ||
| int | child_count, | ||
| tag_t * | children, | ||
| ActionCode_t | action_code, | ||
| ContentPersistenceMode_t | content_persistence_mode, | ||
| const tag_t | configuration_context, | ||
| int * | failed_members_count, | ||
| tag_t ** | failed_members, | ||
| int * | failed_children_count, | ||
| tag_t ** | failed_children, | ||
| int * | error_count, | ||
| int ** | error_codes | ||
| ) |
Updates members and child partitions of a given partition and tracks the failure per member.
| partition | (I) Partition tag |
| member_count | (I) Count of new members |
| members | (I) Array of member tags |
| child_count | (I) Count of children |
| children | (I) Array of child partition tags |
| action_code | (I) 1-ADD, 2-REPLACE, 3-REMOVE |
| content_persistence_mode | (I) 1-STATIC, 2-DYNAMIC |
| configuration_context | (I) Input configuration context |
| failed_members_count | (O) Count of failed members |
| failed_members | (OF) failed_members_count Array of member tags that failed to update on a target partition |
| failed_children_count | (O) Count of failed children |
| failed_children | (OF) failed_children_count Array of child partitions that failed to update |
| error_count | (O) Count of the error codes |
| error_codes | (OF) error_count Array of error codes for failed member updates |
| PTN0PARTITION_API int PARTITION_where_partitioned | ( | tag_t | configuration_context, |
| tag_t | model_tag, | ||
| tag_t | scheme_tag, | ||
| tag_t | member_tag, | ||
| int * | partitions_count, | ||
| tag_t ** | partitions | ||
| ) |
Finds and returns the partition objects where a given member is partitioned.
| configuration_context | (I) Configuration context tag |
| model_tag | (I) Application model tag |
| scheme_tag | (I) Partition scheme tag |
| member_tag | (I) Member tag for which the where_partitioned is performed |
| partitions_count | (O) Number of partitions |
| partitions | (OF) partitions_count Array of partition tags |