File indexing completed on 2025-01-18 09:59:31
0001
0002
0003
0004
0005 #ifndef MCGIDI_misc_h_included
0006 #define MCGIDI_misc_h_included
0007
0008 #include <statusMessageReporting.h>
0009 #include <xDataTOM_importXML_private.h>
0010 #include "MCGIDI_private.h"
0011
0012 #if defined __cplusplus
0013 extern "C" {
0014 namespace GIDI {
0015 #endif
0016
0017 char const *MCGIDI_misc_pointerToTOMAttributeIfAllOk( statusMessageReporting *smr, char const *path, int required,
0018 xDataTOM_attributionList *attributes, char const *name, char const *file, int line );
0019 char const *MCGIDI_misc_pointerToAttributeIfAllOk( statusMessageReporting *smr, xDataXML_element *element, char const *path, int required,
0020 xDataTOM_attributionList *attributes, char const *name, char const *file, int line );
0021 int MCGIDI_misc_setMessageError_Element( statusMessageReporting *smr, void *userInterface, xDataXML_element *element, char const *file, int line, int code,
0022 char const *fmt, ... );
0023 char *MCGIDI_misc_getAbsPath( statusMessageReporting *smr, char const *fileName );
0024 int MCGIDI_misc_copyXMLAttributesToTOM( statusMessageReporting *smr, xDataTOM_attributionList *TOM, xDataXML_attributionList *XML );
0025
0026 #define MCGIDI_misc_pointerToTOMAttributeIfAllOk2( smr, required, attributes, name ) \
0027 MCGIDI_misc_pointerToTOMAttributeIfAllOk( smr, NULL, required, attributes, name, __FILE__, __LINE__ )
0028 #define MCGIDI_misc_pointerToTOMAttributeIfAllOk3( smr, path, required, attributes, name ) \
0029 MCGIDI_misc_pointerToTOMAttributeIfAllOk( smr, path, required, attributes, name, __FILE__, __LINE__ )
0030
0031 #define MCGIDI_misc_pointerToAttributeIfAllOk2( smr, element, required, attributes, name ) \
0032 MCGIDI_misc_pointerToAttributeIfAllOk( smr, element, NULL, required, attributes, name, __FILE__, __LINE__ )
0033 #define MCGIDI_misc_pointerToAttributeIfAllOk3( smr, path, required, attributes, name ) \
0034 MCGIDI_misc_pointerToAttributeIfAllOk( smr, NULL, path, required, attributes, name, __FILE__, __LINE__ )
0035 enum xDataTOM_frame MCGIDI_misc_getProductFrame( statusMessageReporting *smr, xDataTOM_element *frameElement );
0036
0037 double MCGIDI_misc_getUnitConversionFactor( statusMessageReporting *smr, char const *fromUnit, char const *toUnit );
0038 ptwXYPoints *MCGIDI_misc_dataFromXYs2ptwXYPointsInUnitsOf( statusMessageReporting *smr, xDataTOM_XYs *XYs,
0039 ptwXY_interpolation interpolation, char const *units[2] );
0040 ptwXYPoints *MCGIDI_misc_dataFromElement2ptwXYPointsInUnitsOf( statusMessageReporting *smr, xDataTOM_element *linear, char const *toUnits[2] );
0041
0042 #if defined __cplusplus
0043 }
0044 }
0045 #endif
0046
0047 #endif