plugins/pattern_detection/library/patterns/patterns.c
/**
 * Reads the name of the objects defined in object_data
 * puts the names of the ids concatenated with ';' in the output buffer.
 * returns 1 if ok, 0 if no object is read.
 * 
 */
Reads the name of the objects defined in object_data
puts the names of the ids concatenated with ';' in the output buffer.
returns 1 if ok, 0 if no object is read.
Reads the name of the objects defined in object_data puts the names of the ids concatenated with ' ; ' in the output buffer . returns 1 if ok 0 if no object is read .
int arMultiGetIdsMarker( char* _data_path,char* output) {
	if((_data_path != NULL)) {
		data_path = _data_path;
	}
	Id_Object * obj =  get_ObjDataIds(data_path,model_name);
	if (obj->cant_objects > 0) {
		strcpy(output,"");
		int i;
		for(i=0; i < obj->cant_objects; i++) {
			printf("loaded %s objects \n",obj->objects[i]);
			if(strcmp(output,"")!=0) {
				strcat(output,";");
			}
			strcat(output,obj->objects[i]);
		}
		return 1;
	} else {
		return 0;
	}
}
int arMultiGetIdsMarker ( char * _data_path , char * output ) { if ( ( _data_path != NULL ) ) { data_path = _data_path ; } Id_Object * obj = get_ObjDataIds ( data_path , model_name ) ; if ( obj -> cant_objects > 0 ) { strcpy ( output , " " ) ; int i ; for ( i = 0 ; i < obj -> cant_objects ; i ++ ) { printf ( " \n " , obj -> objects [ i ] ) ; if ( strcmp ( output , " " ) != 0 ) { strcat ( output , " " ) ; } strcat ( output , obj -> objects [ i ] ) ; } return 1 ; } else { return 0 ; } }
Reads the name of the objects defined in object_data
 puts the names of the ids concatenated with ';' in the output buffer.
Reads the name of the objects defined in object_data puts the names of the ids concatenated with ' ; ' in the output buffer .