/*============================================================================== Copyright (c) UGS Corporation Unpublished - All Rights Reserved ==============================================================================*/ /** @file Header File for the ITK provided by the gdis module */ /* */ #ifndef GDIS_H #define GDIS_H /* */ #include #include /** @defgroup GDIS GDIS GDIS API provides a programming interface for the Oracle Tables that store the "measurement" data. It is assumed that the reader is familiar with the GDIS system and terminology. The API is also highly tailored for the other components of GDIS. @{ */ /** Structure for providing the Event data during input. */ typedef struct DPV_event_s { char* build_label; /**< Build Label aka Job Number */ char* event_type; /**< Event type */ char* event_datetime; /**< Event date time: dd-mon-yy HH24:MI:SS */ char* vehicle_program; /**< Vehicle Program name */ char* phase_name; /**< Phase name */ char* plant_id; /**< Plant (MEPrPlant) Item Id */ char* routine_id; /**< Routine (MEOP Type) Item Id */ char* routine_rev; /**< Routine Revision */ char* device_type; /**< Device Type */ char* part_name; /**< Part Name */ char* device; /**< Device Identifier (item id) of the Resource assigned */ int shift_number; /**< Shift number */ char* utc_time; /**< Time in UTC dd-mon-yy HH24:MI:SS */ char* shift_day; /**< shift day time: dd-mon-yy HH24:MI:SS */ } DPV_event_t, *DPV_event_p_t; /** Structure for providing the Feature Actual data during input. */ typedef struct DPV_ftr_actual_value_s { char* ftr_uid; /**< Feature UID */ char* ftr_name; /**< Feature Name */ char* ftratt_code; /**< Feature Attribute Code */ double actual_value; /**< Actual Value of the Feature Attribute */ struct DPV_ftr_actual_value_s* next; /**< Pointer to the next node in the linked list; set to NULL for the last node */ } DPV_ftr_actual_value_t, *DPV_ftr_actual_value_p_t; /** Structure for providing the Event Trace data during input. */ typedef struct DPV_event_trace_value_s { char* trace_code; /**< Trace Code Name */ char* event_trace_code_value; /**< Trace Code Value */ struct DPV_event_trace_value_s* next; /**< Pointer to the next node in the linkded list; set to NULL for the last node */ } DPV_event_trace_value_t, *DPV_event_trace_value_p_t; /** Structure for providing the Event data during input. NOTE: For values of the type Date Time, the format expected is: dd-mon-yy HH24:MI:SS */ typedef struct DPV_measurement_input_s { DPV_event_t event_row_values; /**< Values for to be inserted in a row of Event Table */ DPV_ftr_actual_value_p_t feature_actuals; /**< Pointer to the Head of linked list - Insertions in Feature Actuals Table corresponding to the above event */ DPV_event_trace_value_p_t event_trace_values; /**< Pointer to the Head of linked list - Insertions in Event Trace Table corresponding to the above event */ logical trigger_report; /**< flag to tell whether or not to trigger reports for this event insertion */ int ifail; /**< First error code of the insert transaction */ struct DPV_measurement_input_s* next; /**< Pointer to the next node in the linkded list; set to NULL for the last node */ char* event_sys_id; /**< Event Sys Id of the inserted row (OF) */ } DPV_measurement_input_t, *DPV_measurement_input_p_t; /** Structure for providing the Log information NOTE: For values of the type Date Time, the format expected is: dd-mon-yy HH24:MI:SS */ typedef struct DPV_log_s { char* event_time; /**< Event time */ char* upload_time; /**< Upload time */ char* plant_id; /** #endif