Main Page | Modules | Files | Functions | Code Elements | Data Structures | Deprecated

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

Functions

Action Rule Calls
Property Set Calls
Option Set Related APIs
PIE Session calls
PIE Delta Calls
Extract vaules from PIE_message_t*

Typedef Documentation

typedef int(* PIE_user_action_func_t)(tag_t)

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.

typedef int(* PIE_user_method_func_t)(void *)

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  ) 

Parameters:
path  (I) File Name

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

PIE_API int PIE_register_user_action ( char *  handleName,
PIE_user_action_func_t  user_m 
)

Parameters:
handleName  (I) Action name
user_m  (I) Action method

PIE_API int PIE_register_user_filter ( char *  filterRuleName,
PIE_user_filter_func_t  user_m 
)

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.