ITK Function Reference

(V10000.1.0.60_20160308.00)
partition.h
Go to the documentation of this file.
1 
2 // Copyright 2012 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.
3 // ==================================================
4 // Copyright 2010.
5 // Siemens Product Lifecycle Management Software Inc.
6 // All Rights Reserved.
7 // ==================================================
8 // Copyright 2012 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.
9 
17 /* */
18 
19 #ifndef PARTITION_PARTITION_H
20 #define PARTITION_PARTITION_H
21 
22 #include <ptn0partition/libptn0partition_exports.h>
23 
29 #ifdef __cplusplus
30 extern "C"{
31 #endif
32 
36 #define PREF_PARTITION_DEFAULT_REVRULE "PTN_Default_Partition_RevRule"
37 
41 typedef enum ActionCode{
48 
58 
68 
69 
79 extern PTN0PARTITION_API int PARTITION_get_toplevel_partitions(
80  tag_t configuration_context,
81  tag_t model_tag,
82  tag_t partition_scheme_tag,
83  int* top_level_partitions_count,
84  tag_t** top_level_partitions
85  );
86 
95 extern PTN0PARTITION_API int PARTITION_get_schemes_in_model(
96  tag_t model_tag,
97  int* list_of_schemes_count,
98  tag_t** list_of_schemes
99  );
100 
109 extern PTN0PARTITION_API int PARTITION_where_partitioned(
110  tag_t configuration_context,
111  tag_t model_tag,
112  tag_t scheme_tag,
113  tag_t member_tag,
114  int* partitions_count,
115  tag_t** partitions
116  );
117 
126 extern PTN0PARTITION_API int PARTITION_find_model_with_id(
127  char * model_id,
128  tag_t* model_tag
129  );
130 
140 extern PTN0PARTITION_API int PARTITION_get_partitions(
141  tag_t configuration_context,
142  tag_t model_tag,
143  tag_t scheme_tag,
144  int max_partition_count,
145  int* num_partitions,
146  tag_t** partitions
147  );
148 
158 extern PTN0PARTITION_API int PARTITION_update_members_and_child_partitions(
159  tag_t partition,
160  int member_count,
161  tag_t *members,
162  int child_count,
163  tag_t *children,
164  ActionCode_t action_code,
165  ContentPersistenceMode_t content_persistence_mode,
166  const tag_t configuration_context,
167  int *failed_members_count,
168  tag_t **failed_members,
169  int *failed_children_count,
170  tag_t **failed_children,
171  int *error_count,
172  int **error_codes
173  );
174 
184 extern PTN0PARTITION_API int PARTITION_reparent_partitions(
185  tag_t current_parent,
186  int child_count,
187  const tag_t * children,
189  tag_t target_parent,
190  int * failed_children_count,
191  tag_t ** failed_children,
192  int * error_count,
193  int ** error_codes,
194  char *** error_messages
195 );
196 
197 #ifdef __cplusplus
198 }
199 #endif
200 
205 #include <ptn0partition/libptn0partition_undef.h>
206 #endif // PARTITION_PARTITION_H