102 const char *evaluation, *projectile, *targetName, *path, *schema;
107 if( ( basePath == NULL ) || ( mapFileName[0] ==
'/' ) ) {
108 strcpy( realPath, mapFileName ); }
110 strcpy( realPath, basePath );
111 strcat( realPath,
"/" );
112 strcat( realPath, mapFileName );
114 if( realpath( realPath,
p ) == NULL ) {
118 n = (
int) strlen(
p ) + 2;
122 strcpy( map->
path,
p );
123 if( (
p = strrchr( map->
path,
'/' ) ) != NULL ) {
126 strcpy( map->
path,
"." );
133 if( strcmp( child->
name,
"path" ) == 0 ) {
139 else if( strcmp( child->
name,
"target" ) == 0 ) {
MCGIDI_map * MCGIDI_map_new(statusMessageReporting *smr)
xDataXML_document * xDataXML_importFile2(statusMessageReporting *smr, char const *fileName)
#define smr_setReportError3p(smr, userInterface, libraryID, code, fmt)
int MCGIDI_map_addPath(statusMessageReporting *smr, MCGIDI_map *map, const char *path)
void * MCGIDI_map_free(statusMessageReporting *smr, MCGIDI_map *map)
xDataXML_element * xDataXML_getDocumentsElement(xDataXML_document *doc)
#define smr_setReportError2(smr, libraryID, code, fmt,...)
void * xDataXML_freeDoc(statusMessageReporting *smr, xDataXML_document *doc)
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
#define smr_malloc2(smr, size, zero, forItem)
xDataXML_element * xDataXML_getNextElement(xDataXML_element *element)
int smr_isOk(statusMessageReporting *smr)
int MCGIDI_map_addTarget(statusMessageReporting *smr, MCGIDI_map *map, const char *method, const char *path, const char *evaluation, const char *projectile, const char *targetName)
MCGIDI_map_smr smrUserInterface
char const * xDataXML_getAttributesValueInElement(xDataXML_element *element, char const *name)
#define smr_setReportError3(smr, userInterface, libraryID, code, fmt,...)
xDataXML_element * xDataXML_getFirstElement(xDataXML_element *element)