/*================================================== * Copyright 2015. * Siemens Product Lifecycle Management Software Inc. * All Rights Reserved. * ==================================================*/ /** @file Custom Exit implementation for getDomain */ #ifndef MECH_USER_EXITS_H #define MECH_USER_EXITS_H /** @defgroup MECH_USER_EXITS Mechatronics User Exits @ingroup TC Teamcenter has implemented USER_get_domain user exit which is invoked if the design artifact type is not listed in a MECH_domain_types_ preference. @{ */ #include #include #ifdef __cplusplus extern "C" { #endif /** Customizable implementation to retrieve the domain name of a Design Artifact object. The code can be customized by registering a callback on this user exit, as explained in the code sample. If the registered callback returns with #ITK_ok and a decision of #NO_CUSTOMIZATION, the Teamcenter implementation is executed. @returns Sample of code to override USER_get_domain: */ extern MECHATRONICS_API int USER_get_domain( tag_t design_artifact_tag, /**< (I) The Design Artifact to search for its domain. */ char** domain_name /**< (OF) The domain name of this Design Artifact. */ ); /** Customizable implementation to retrieve the username and password for Mentor Capital Webservice. The code can be customized by registering a callback on this user exit, as explained in the code sample. If the registered callback returns with #ITK_ok and a decision of #NO_CUSTOMIZATION, the Teamcenter implementation is executed. @returns Sample of code to override USER_get_domain: */ extern MECHATRONICS_API int USER_get_mentor_capital_credential( char** username, /**< (OF) The username to be used for invoking Mentor Capital webservice. */ char** password /**< (OF) The password to be used for invoking Mentor Capital webservice. */ ); /** @} */ #ifdef __cplusplus } #endif #include #endif