pie/pie.h File Reference
Detailed Description
PLMXML Import Export functions
Definition in file pie.h.
#include <tc/tc_startup.h>
#include <tccore/workspaceobject.h>
#include <pie/libpie_exports.h>
#include <pie/libpie_undef.h>
Go to the source code of this file.
Data Structures
Defines
Typedefs
Enumerations
- enum PIE_type_e { PIE_class = 0,
PIE_type = 1
}
- enum PIE_connection_type_e {
PIE_property = 0,
PIE_attribute = 1,
PIE_relation_primary = 2,
PIE_relation_secondary = 3,
PIE_referenced_by = 4,
PIE_all = 5,
PIE_occurrence_type = 6,
PIE_content = 7,
PIE_function = 8
}
- enum PIE_rule_type_e {
PIE_skip = 1,
PIE_process = 2,
PIE_travers_no_process = 4,
PIE_travers_and_process = 6,
PIE_skip_grm = 32
}
- enum PIE_prop_rule_type_e { PIE_prop_do = 0,
PIE_prop_skip = 1,
PIE_prop_stub_key = 2,
PIE_prop_cand_key = 3
}
- enum PIE_direction_e { PIE_teamcenter2PLMXML = 0,
PIE_PLMXML2teamcenter = 1,
PIE_direction_both = 2
}
- enum PIE_schema_e { PIE_ALL_schema = 2,
PIE_PLMXML_schema = 0,
PIE_TcXML_schema = 1
}
- enum PIE_transferoptionset_scope_e { PIE_transferoptionset_private = 0,
PIE_transferoptionset_public = 1,
PIE_transferoptionset_all = 2
}
- enum PIE_scope_e { PIE_TEAMCENTER = 0,
PIE_PLMXML = 1
}
- enum PIE_action_e { PIE_PREACTION = 0,
PIE_DURINGACTION = 1,
PIE_POSTACTION = 2
}
- enum PIE_object_status_in_map_e {
PIE_NOCOMMENT = 0,
PIE_NEW = 1,
PIE_MOD = 2,
PIE_PROC_NO_TRAV = 3,
PIE_PROC_AGAIN = 4,
PIE_DS_REVISED = 5,
PIE_DS_ADD_TO_IC = 6,
PIE_DS_TO_VERSION = 7,
PIE_BOMLine_editable = 8,
PIE_POMCLASS = 1024,
PIE_DEL = 10,
PIE_INCOMPLETE = 11
}
- enum PIE_user_exits_type_e { PIE_internal_user_exits = 0,
PIE_external_user_exits = 1
}
Functions
- PIE_API int PIE_find_transfer_mode (const char transfer_mode_name[WSO_name_size_c+1], const char context_string[PIE_context_size_c+1], int *n_transfer_mode_tags, tag_t **transfer_mode_tags)
- PIE_API int PIE_find_transfer_mode2 (const char *transfer_mode_name, const char *context_string, int *n_transfer_mode_tags, tag_t **transfer_mode_tags)
- PIE_API int PIE_extent_transfer_modes (int *n_transfer_modes, tag_t **transfer_modes)
- PIE_API int PIE_create_transfer_mode_instance (const char transfer_mode_name[WSO_name_size_c+1], const char transfer_mode_desc[WSO_desc_size_c+1], const char context_string[PIE_context_size_c+1], tag_t *transfer_mode)
- PIE_API int PIE_create_transfer_mode_instance2 (const char *transfer_mode_name, const char *transfer_mode_desc, const char *context_string, tag_t *transfer_mode)
- PIE_API int PIE_transfer_mode_get_context_string (tag_t transfer_mode, char context_string[PIE_context_size_c+1])
- PIE_API int PIE_transfer_mode_get_context_string2 (tag_t transfer_mode, char **context_string)
- PIE_API int PIE_transfer_mode_set_context_string (tag_t transfer_mode, const char context_string[PIE_context_size_c+1])
- PIE_API int PIE_transfer_mode_set_context_string2 (tag_t transfer_mode, const char *context_string)
- PIE_API int PIE_transfer_mode_set_xslt (tag_t transfer_mode, int n_files, tag_t *xslt_files)
- PIE_API int PIE_transfer_mode_remove_xslt (tag_t transfer_mode, tag_t xslt_file)
- PIE_API int PIE_transfer_mode_get_xslt (tag_t transfer_mode, int *n_files, tag_t **xslt_files)
- PIE_API int PIE_transfer_mode_get_direction (tag_t transfer_mode, PIE_direction_t *direction)
- PIE_API int PIE_transfer_mode_set_direction (tag_t transfer_mode, PIE_direction_t direction)
- PIE_API int PIE_transfer_mode_get_schema_format (tag_t transfer_mode, PIE_schema_t *schema_format)
- PIE_API int PIE_transfer_mode_set_schema_format (tag_t transfer_mode, PIE_schema_t schema_format)
- PIE_API int PIE_transfer_mode_get_incremental (tag_t transfer_mode, logical *incremental)
- PIE_API int PIE_transfer_mode_set_incremental (tag_t transfer_mode, logical incremental)
- PIE_API int PIE_transfer_mode_get_multisite (tag_t transfer_mode, logical *multisite)
- PIE_API int PIE_transfer_mode_set_multisite (tag_t transfer_mode, logical multisite)
- PIE_API int PIE_transfer_mode_get_closures (tag_t transfer_mode, tag_t *closure)
- PIE_API int PIE_transfer_mode_set_closures (tag_t transfer_mode, tag_t closure)
- PIE_API int PIE_transfer_mode_get_filters (tag_t transfer_mode, tag_t *filter)
- PIE_API int PIE_transfer_mode_set_filters (tag_t transfer_mode, tag_t filter)
- PIE_API int PIE_transfer_mode_load_defaults (tag_t transfer_mode)
- PIE_API int PIE_transfer_mode_get_prop_set (tag_t transfer_mode, tag_t *prop_set)
- PIE_API int PIE_transfer_mode_set_prop_set (tag_t transfer_mode, tag_t prop_set)
- PIE_API int PIE_transfer_mode_get_config_objs (tag_t transfer_mode, int *n_config_objs, tag_t **config_objs)
- PIE_API int PIE_transfer_mode_set_config_objs (tag_t transfer_mode, int n_config_objs, tag_t *config_objs)
- PIE_API int PIE_transfer_mode_get_action_list (tag_t transfer_mode, int *n_action_list_objs, tag_t **action_list_objs)
- PIE_API int PIE_transfer_mode_set_action_list (tag_t transfer_mode, int n_action_list_objs, tag_t *action_list_objs)
- PIE_API int PIE_create_closure_rules (const char name[PIE_name_size_c+1], const char desc[PIE_desc_size_c+1], PIE_scope_t scope, tag_t *closure_tag)
- PIE_API int PIE_create_closure_rules2 (const char *name, const char *desc, PIE_scope_t scope, tag_t *closure_tag)
- PIE_API int PIE_closure_add_rule_clause (tag_t closure_tag, PIE_type_t p_class_or_type, const char *p_name, PIE_connection_type_t c_type, const char *c_name, const char *prop_name, PIE_type_t s_class_or_type, const char *s_name, PIE_rule_type_t rule_type)
- PIE_API int PIE_closure_set_rule_clause (tag_t closure_tag, int index, PIE_type_t p_class_or_type, const char *p_name, PIE_connection_type_t c_type, const char *c_name, const char *prop_name, PIE_type_t s_class_or_type, const char *s_name, PIE_rule_type_t rule_type)
- PIE_API int PIE_describe_closure_rule (tag_t closure_tag, char name[PIE_name_size_c+1], char desc[PIE_desc_size_c+1], PIE_scope_t *scope, int *n_clauses)
- PIE_API int PIE_describe_closure_rule2 (tag_t closure_tag, char **name, char **desc, PIE_scope_t *scope, int *n_clauses)
- PIE_API int PIE_closure_get_rule_clause (tag_t closure_tag, int index, PIE_type_t *p_class_or_type, char **p_name, PIE_connection_type_t *c_type, char **c_name, char **prop_name, PIE_type_t *s_class_or_type, char **s_name, PIE_rule_type_t *rule_type)
- PIE_API int PIE_find_closure_rules (const char name[PIE_name_size_c+1], PIE_scope_t scope, int *n_closure_tags, tag_t **closure_tags)
- PIE_API int PIE_find_closure_rules2 (const char *name, PIE_scope_t scope, int *n_closure_tags, tag_t **closure_tags)
- PIE_API int PIE_create_filter (const char name[PIE_name_size_c+1], const char desc[PIE_desc_size_c+1], PIE_scope_t scope, tag_t *filter)
- PIE_API int PIE_create_filter2 (const char *name, const char *desc, PIE_scope_t scope, tag_t *filter)
- PIE_API int PIE_find_filter (const char name[PIE_name_size_c+1], PIE_scope_t scope, int *n_filter_tags, tag_t **filter_tags)
- PIE_API int PIE_find_filter2 (const char *name, PIE_scope_t scope, int *n_filter_tags, tag_t **filter_tags)
- PIE_API int PIE_describe_filter (tag_t filter_tag, char name[PIE_name_size_c+1], char desc[PIE_desc_size_c+1], PIE_scope_t *scope, int *n_clauses)
- PIE_API int PIE_describe_filter2 (tag_t filter_tag, char **name, char **desc, PIE_scope_t *scope, int *n_clauses)
- PIE_API int PIE_filter_add_clause (tag_t filter, PIE_type_t type_or_class, const char *p_name, const char *filter_name)
- PIE_API int PIE_filter_get_clause (tag_t filter, int index, PIE_type_t *type_or_class, char **p_name, char **filter_name)
- PIE_API int PIE__compare_set_visitor (tag_t diff_set, int depth, void *user_data)
- PIE_API int PIE_find_object_by_appref (char *appuid, char *appl, char *site, char *ver, int *count, tag_t **found)
- PIE_API int PIE_register_user_methods (void *listUserMethods, int n_methods)
- PIE_API int PIE_register_user_schema (void *listUserSchemas, int n_schemas)
- PIE_API int PIE_register_user_action (char *handleName, PIE_user_action_func_t user_m)
- PIE_API int PIE_register_user_filter (char *filterRuleName, PIE_user_filter_func_t user_m)
- PIE_API int PIE_create_working_dir (char **dirName)
- PIE_API int PIE_ensure_file_readable (char *path)
- PIE_API int PIE_send_socket_message (const char *message, char *host_n_port, int *response)
|
- PIE_API int PIE_create_action (const char name[PIE_name_size_c+1], const char desc[PIE_desc_size_c+1], PIE_scope_t scope, PIE_action_t type, const char *actionName, tag_t *action)
- PIE_API int PIE_create_action2 (const char *name, const char *desc, PIE_scope_t scope, PIE_action_t type, const char *actionName, tag_t *action)
- PIE_API int PIE_find_action (const char name[PIE_name_size_c+1], PIE_scope_t scope, int *n_action_tags, tag_t **action_tags)
- PIE_API int PIE_find_action2 (const char *name, PIE_scope_t scope, int *n_action_tags, tag_t **action_tags)
- PIE_API int PIE_describe_action (tag_t action_tag, char name[PIE_name_size_c+1], char desc[PIE_desc_size_c+1], PIE_scope_t *scope, PIE_action_t *type, char **actionName)
- PIE_API int PIE_describe_action2 (tag_t action_tag, char **name, char **desc, PIE_scope_t *scope, PIE_action_t *type, char **actionName)
- PIE_API int PIE_action_set_func_name (tag_t action, const char *func_name)
- PIE_API int PIE_action_get_func_name (tag_t action, char **func_name)
|
- PIE_API int PIE_create_prop_set (const char name[PIE_name_size_c+1], const char desc[PIE_desc_size_c+1], PIE_scope_t scope, tag_t *prop_set)
- PIE_API int PIE_create_prop_set2 (const char *name, const char *desc, PIE_scope_t scope, tag_t *prop_set)
- PIE_API int PIE_find_prop_set (const char name[PIE_name_size_c+1], PIE_scope_t scope, int *n_propset_tags, tag_t **propset_tags)
- PIE_API int PIE_find_prop_set2 (const char *name, PIE_scope_t scope, int *n_propset_tags, tag_t **propset_tags)
- PIE_API int PIE_prop_add_clause (tag_t prop_set, PIE_type_t type_or_class, const char *p_name, PIE_connection_type_t prop_or_attr, const char *a_name, PIE_prop_rule_type_t rule_type)
- PIE_API int PIE_describe_prop_set (tag_t prop_set, char name[PIE_name_size_c+1], char desc[PIE_desc_size_c+1], PIE_scope_t *scope, int *n_clauses)
- PIE_API int PIE_describe_prop_set2 (tag_t prop_set, char **name, char **desc, PIE_scope_t *scope, int *n_clauses)
- PIE_API int PIE_prop_get_clause (tag_t prop_set, int index, PIE_type_t *type_or_class, char **p_name, PIE_connection_type_t *prop_or_attr, char **a_name, PIE_prop_rule_type_t *rule_type)
|
- PIE_API int PIE_get_available_transfer_option_sets (tag_t user, tag_t group, tag_t role, int n_sites, tag_t *sites, logical is_push, logical is_export, int *n_optionsets, tag_t **option_set_objs)
- PIE_API int PIE_describe_option_set (tag_t option_set_tag, char option_set_name[WSO_name_size_c+1], char option_set_description[WSO_desc_size_c+1], tag_t *transfermode, char transfermode_name[WSO_name_size_c+1], tag_t *site, int *n_options, char ***option_names, char ***option_display_names, char ***option_values, char ***option_descriptions, char ***option_group_names, logical **option_read_only_flags)
- PIE_API int PIE_describe_option_set2 (tag_t option_set_tag, char **option_set_name, char **option_set_description, tag_t *transfermode, char **transfermode_name, tag_t *site, int *n_options, char ***option_names, char ***option_display_names, char ***option_values, char ***option_descriptions, char ***option_group_names, logical **option_read_only_flags)
|
- PIE_API int PIE_create_session (tag_t *session)
- PIE_API int PIE_create_session_for_ai (tag_t request, tag_t *session)
- PIE_API int PIE_session_set_file (tag_t session, const char *file_name)
- PIE_API int PIE_session_ask_file (tag_t session, const char **file_name)
- PIE_API int PIE_session_set_log_file (tag_t session, const char *file_name)
- PIE_API int PIE_session_ask_transfer_mode (tag_t session, tag_t *transfer_mode)
- PIE_API int PIE_session_set_transfer_mode (tag_t session, tag_t transfer_mode)
- PIE_API int PIE_session_set_revision_rule (tag_t session, tag_t revision_rule)
- PIE_API int PIE_session_export_objects (tag_t session, int n_objs, tag_t *obj_list)
- PIE_API int PIE_session_get_target_pathname (tag_t session, char **pathname)
- PIE_API int PIE_session_set_target_pathname (tag_t session, char *pathname)
- PIE_API int PIE_session_get_incremental_change (tag_t session, tag_t *incremental_change)
- PIE_API int PIE_session_set_incremental_change (tag_t session, tag_t incremental_change)
- PIE_API int PIE_session_set_edit_targets (tag_t session, int num_tags, tag_t *tags_allowed_to_edit)
- PIE_API int PIE_session_set_ic_exclusion_list (tag_t session, int num_tags, tag_t *ic_tags_to_exclude)
- PIE_API int PIE_session_import_objects (tag_t session, logical dry_run, int *n_objs, tag_t **obj_list)
- PIE_API int PIE_session_get_rule_types (tag_t session, int *n_types, char ***typeNames)
- PIE_API int PIE_session_get_log_lines (tag_t session, int *n_lines, char ***log_lines)
- PIE_API int PIE_session_get_errors (tag_t session, int *n_errors, tag_t **error_objs, int **error_codes)
- PIE_API int PIE_session_get_import_errors (tag_t session, int *n_errors, char ***error_ids, int **error_codes)
- PIE_API int PIE_delete_session (tag_t session)
- PIE_API int PIE_session_add_info (tag_t session, int n_strings, char **titles, char **values)
- PIE_API int PIE_session_ask_info (tag_t session, int *n_strings, char ***titles, char ***values)
- PIE_API int PIE_session_set_xslt (tag_t session, logical override, int n_files, tag_t *xslt_files)
- PIE_API int PIE_session_get_xslt (tag_t session, logical *override, int *n_files, tag_t **xslt_files)
- PIE_API int PIE_session_get_user_xslt_file (tag_t session, char **user_xslt_fname)
- PIE_API int PIE_session_set_user_xslt_file (tag_t session, const char *user_xslt_fname)
- PIE_API int PIE_session_get_export_locales (tag_t session, int *exportlocaleCount, char ***exportLocales)
- PIE_API int PIE_session_set_export_locales (tag_t session, const int exportlocaleCount, char **exportLocales)
- PIE_API int PIE_session_get_plmxml_document (tag_t session, void **plmxmlDoc)
- PIE_API int PIE_session_update_processed_object (tag_t session, tag_t obj, void *plmxmlObj, int failCode)
- PIE_API int PIE_session_get_processed_plmxml_object (tag_t session, tag_t obj, void **plmxmlObj, int *failCode)
- PIE_API int PIE_session_get_processed_tc_object (tag_t session, void *plmxmlObj, tag_t *obj, int *failCode)
|
- PIE_API int PIE_create_delta_info (tag_t *delta_info)
- PIE_API int PIE_create_bom_delta_info (tag_t *piebomdeltainfo)
- PIE_API int PIE_add_delta_objects (tag_t delta_info, int n_objs, tag_t *objs)
- PIE_API int PIE_get_delta_adds (tag_t delta_info, int *n_objs, tag_t **added_objs)
- PIE_API int PIE_get_delta_deletes (tag_t delta_info, int *n_objs, tag_t **deleted_objs)
- PIE_API int PIE_get_delta_modifications (tag_t delta_info, int *n_objs, tag_t **modified_objs)
- PIE_API int PIE_create_delta_session (tag_t old_xml_file, char *targetPathName, tag_t *session)
- PIE_API int PIE_merge_delta_to_base (tag_t session, tag_t *merged_xml_file)
|
- PIE_API int PIE_get_class_from_callpath (void *userPath, char **calledClass)
- PIE_API int PIE_get_type_from_callpath (void *userPath, char **calledType)
- PIE_API int PIE_get_obj_from_callpath (void *userPath, tag_t *objTag)
- PIE_API int PIE_get_plmxmlobj_from_callpath (void *userPath, void **plmxmlobj)
- PIE_API int PIE_get_prior_callpath (void *userPath, void **prev_userPath)
- PIE_API int PIE_find_callpath_by_class (void *userPath, char *className, void **calledPath)
- PIE_API int PIE_find_callpath_by_type (void *userPath, char *typeName, void **calledPath)
- PIE_API int PIE_get_transfermode (void *userPath, tag_t *transMode)
- PIE_API int PIE_get_session (void *userPath, tag_t *session)
- PIE_API int PIE_get_relation_type (void *userPath, char **relType)
- PIE_API int PIE_get_relation_name (void *userPath, char **relName)
Typedef Documentation
External User action rule support
Definition at line 1206 of file pie.h.
External User filter rule support
Definition at line 1217 of file pie.h.
Structure for user to define an import/export method
Definition at line 1171 of file pie.h.
Function Documentation
PIE_API int PIE_create_working_dir |
( |
char ** |
dirName |
) |
|
- Parameters:
-
dirName |
(OF) Temp Directory Name |
PIE_API int PIE_ensure_file_readable |
( |
char * |
path |
) |
|
PIE_API int PIE_find_callpath_by_class |
( |
void * |
userPath, |
|
|
char * |
className, |
|
|
void ** |
calledPath | |
|
) |
| | |
Returns the processed object information PIE_message_t* based on the given object class name. Mainly used by external user import/export methods.
- Parameters:
-
userPath |
(I) Information of currently processed object |
className |
(I) Class name to be searched for |
calledPath |
(O) Information of processed object matches with the given class name |
PIE_API int PIE_find_callpath_by_type |
( |
void * |
userPath, |
|
|
char * |
typeName, |
|
|
void ** |
calledPath | |
|
) |
| | |
Returns the processed object information PIE_message_t* based on the given object type name. Mainly used by external user import/export methods.
- Parameters:
-
userPath |
(I) Information of currently processed object |
typeName |
(I) Type name to be searched for |
calledPath |
(O) Information of processed object matches with the given type name |
PIE_API int PIE_get_class_from_callpath |
( |
void * |
userPath, |
|
|
char ** |
calledClass | |
|
) |
| | |
Returns the currently processed object class name from PIE_message_t*. Mainly used by external user import/export methods.
- Parameters:
-
userPath |
(I) Information of currently processed object |
calledClass |
(OF) Class name of currently processed object |
PIE_API int PIE_get_obj_from_callpath |
( |
void * |
userPath, |
|
|
tag_t * |
objTag | |
|
) |
| | |
Returns the currently processed object tag from PIE_message_t*. Mainly used by external user import/export methods.
- Parameters:
-
userPath |
(I) Information of currently processed object |
objTag |
(O) Object tag of currently processed object |
PIE_API int PIE_get_plmxmlobj_from_callpath |
( |
void * |
userPath, |
|
|
void ** |
plmxmlobj | |
|
) |
| | |
Returns the currently processing plmxml object pointer from PIE_message_t*. Mainly used by external user import/export methods.
- Parameters:
-
userPath |
(I) Information of currently processing object |
plmxmlobj |
(O) plmxml object pointer of currently processing object |
PIE_API int PIE_get_prior_callpath |
( |
void * |
userPath, |
|
|
void ** |
prev_userPath | |
|
) |
| | |
Returns the previous processed object information PIE_message_t*. Mainly used by external user import/export methods.
- Parameters:
-
userPath |
(I) Information of currently processed object |
prev_userPath |
(O) Information of previous processed object |
PIE_API int PIE_get_relation_name |
( |
void * |
userPath, |
|
|
char ** |
relName | |
|
) |
| | |
Returns the relation name between previous processed object and current processed object. Mainly used by external user import/export methods.
- Parameters:
-
userPath |
(I) Information of currently processed object |
relName |
(OF) Relation name between previous object and current object |
PIE_API int PIE_get_relation_type |
( |
void * |
userPath, |
|
|
char ** |
relType | |
|
) |
| | |
Returns the relation type between previous processed object and current processed object. Mainly used by external user import/export methods.
- Parameters:
-
userPath |
(I) Information of currently processed object |
relType |
(OF) Relation type between previous object and current object |
PIE_API int PIE_get_session |
( |
void * |
userPath, |
|
|
tag_t * |
session | |
|
) |
| | |
Returns the PIESession tag being used by the current processing. Mainly used by external user import/export methods.
- Parameters:
-
userPath |
(I) Information of currently processed object |
session |
(O) Session |
PIE_API int PIE_get_transfermode |
( |
void * |
userPath, |
|
|
tag_t * |
transMode | |
|
) |
| | |
Returns the TransferMode tag being used by the current processing. Mainly used by external user import/export methods.
- Parameters:
-
userPath |
(I) Information of currently processed object |
transMode |
(O) Transfer mode used by this process |
PIE_API int PIE_get_type_from_callpath |
( |
void * |
userPath, |
|
|
char ** |
calledType | |
|
) |
| | |
Returns the currently processed object type name from PIE_message_t*. Mainly used by external user import/export methods.
- Parameters:
-
userPath |
(I) Information of currently processed object |
calledType |
(OF) Type name of currently processed object |
- Parameters:
-
handleName |
(I) Action name |
user_m |
(I) Action method |
- Parameters:
-
filterRuleName |
(I) Filter name |
user_m |
(I) Filter method |
PIE_API int PIE_register_user_methods |
( |
void * |
listUserMethods, |
|
|
int |
n_methods | |
|
) |
| | |
- Parameters:
-
listUserMethods |
(I) Array of methods. It is a list of PIEUserMethodList_t. Each method is defined in a PIEUserMethodList_t. |
n_methods |
(I) Number of methods |
PIE_API int PIE_register_user_schema |
( |
void * |
listUserSchemas, |
|
|
int |
n_schemas | |
|
) |
| | |
- Parameters:
-
listUserSchemas |
(I) Array of schema mappings. It is a list of PIEUserSchemaMap. Each map is defined in a PIEUserSchemaMap. |
n_schemas |
(I) Number of schema mappings |
PIE_API int PIE_send_socket_message |
( |
const char * |
message, |
|
|
char * |
host_n_port, |
|
|
int * |
response | |
|
) |
| | |
- Parameters:
-
message |
(I) Message string to be sent to the socket |
host_n_port |
(I) Host and port to which the message is sent. Should be of the format host:port |
response |
(O) Response from the host. |