/* Copyright 2020 Siemens Digital Industries Software ================================================== Copyright 2012. Siemens Product Lifecycle Management Software Inc. All Rights Reserved. ================================================== Copyright 2020 Siemens Digital Industries Software */ /** mfg_validation_check_interface.h example for a validation check registered as a callback function */ #ifndef MFG_VALIDATION_CHECK_INTERFACE_H #define MFG_VALIDATION_CHECK_INTERFACE_H #include #include #include #include struct ValidationErrorType { enum { Error=0, Warning=1, Notice=2 }; }; struct ValidationNotice { tag_t nonValidObject; /**< The tag of the object and its attachments which the validation failed */ int msgId; std::string msg; int errType; }; struct validationCheckParam { std::string type; std::string name; std::string library; tag_t function_tag; }; struct ValidationCheckResponse { tag_t targetObject; /**< The line which was sent in the input vector. */ validationCheckParam validationParam; std::vector< ValidationNotice > validationNotices; }; typedef int (*validation_check_callback_fn_t)(const std::vector & targetObjects,const std::string& closureRuleName,std::vector & response); #include #endif