Ignore:
Timestamp:
Aug 7, 2017, 2:56:24 PM (7 years ago)
Author:
djay
Message:

Update the source code for HPC support. Automatically adding nested outputs for the HPC support (should this be available for every support?). Add capability to store the metadata in the Collection DataBase?. Addition of the zcfg2sql to import any existing ZCFG file into the Collection DB. Add the support to invoke a callback (for history purpose) in case a [callback] section contains at least one parameter defined (url). Add support to convert maps and map to JSON (for callback use only by now). Fix some memory leaks (some are still there).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/prototype-v0/zoo-project/zoo-kernel/service.c

    r822 r839  
    146146
    147147/**
     148 * Create a new iotype*
     149 *
     150 * @return a pointer to the allocated iotype
     151 */
     152iotype* createIoType(){
     153  iotype* io=(iotype*)malloc(IOTYPE_SIZE);
     154  io->content=NULL;
     155  io->next=NULL;
     156  return io;
     157}
     158
     159/**
    148160 * Create a new map
    149161 *
     
    400412    if(tmp->metadata!=NULL)
    401413      free(tmp->metadata);
     414    freeMap(&tmp->additional_parameters);
     415    if(tmp->additional_parameters!=NULL)
     416      free(tmp->additional_parameters);
    402417    if(tmp->format!=NULL)
    403418      free(tmp->format);
     
    831846    }
    832847  }
    833   else
     848  else{
    834849    sprintf(tmp,"%s",key);
     850    addToMap(m,"length","1");
     851  }
    835852  map* tmpSize=getMapArray(m,"size",index);
    836853  if(tmpSize!=NULL && strncasecmp(key,"value",5)==0){
     
    964981  res->content=NULL;
    965982  res->metadata=NULL;
     983  res->additional_parameters=NULL; 
    966984  res->format=NULL;
    967985  res->defaults=NULL;
     
    9831001  res->content=NULL;
    9841002  res->metadata=NULL;
     1003  res->additional_parameters=NULL;
    9851004  res->format=NULL;
    9861005  res->defaults=NULL;
     
    10221041    fprintf(stderr," > METADATA [%s]\n",tmp->name);
    10231042    dumpMap(tmp->metadata);
     1043    fprintf(stderr," > ADDITIONAL PARAMETERS [%s]\n",tmp->name);
     1044    dumpMap(tmp->additional_parameters);
    10241045    fprintf(stderr," > FORMAT [%s]\n",tmp->format);
    10251046    iotype* tmpio=tmp->defaults;
     
    11391160  elements* cursor=e;
    11401161  elements* tmp=NULL;
    1141   if(cursor!=NULL){
     1162  if(cursor!=NULL && e->name!=NULL){
    11421163#ifdef DEBUG
    11431164    fprintf(stderr,">> %s %i\n",__FILE__,__LINE__);
     
    11511172    tmp->metadata=NULL;
    11521173    addMapToMap(&tmp->metadata,e->metadata);
     1174    tmp->additional_parameters=NULL;
     1175    addMapToMap(&tmp->additional_parameters,e->additional_parameters);
    11531176    if(e->format!=NULL)
    11541177      tmp->format=zStrdup(e->format);
     
    11871210    else
    11881211      tmp->child=NULL;
    1189     tmp->next=dupElements(cursor->next);
     1212    if(cursor->next!=NULL)
     1213      tmp->next=dupElements(cursor->next);
     1214    else
     1215      tmp->next=NULL;
    11901216  }
    11911217  return tmp;
     
    12341260    fprintf(stderr,"CONTENT MAP\n");
    12351261    dumpMap(s->content);
    1236     fprintf(stderr,"CONTENT METADATA\n");
     1262    if(s->metadata!=NULL)
     1263      fprintf(stderr,"CONTENT METADATA\n");
    12371264    dumpMap(s->metadata);
     1265    if(s->additional_parameters!=NULL)
     1266      fprintf(stderr,"CONTENT AdditionalParameters\n");
     1267    dumpMap(s->additional_parameters);
    12381268  }
    12391269  if(s->inputs!=NULL){
     
    12931323  res->metadata=NULL;
    12941324  addMapToMap(&res->metadata,s->metadata);
     1325  res->additional_parameters=NULL;
     1326  addMapToMap(&res->additional_parameters,s->additional_parameters);
    12951327  res->inputs=dupElements(s->inputs);
    12961328  res->outputs=dupElements(s->outputs);
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png