Ignore:
Timestamp:
04/11/08 15:56:39 (12 years ago)
Author:
curtis
Message:

A bunch of work on the loci.formats.meta autogenerator. Not finished yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/auto/MetadataStore.vm

    r3605 r3917  
    5555 
    5656  void setRoot(Object root); 
    57 #foreach ($entity in $entities) 
     57#foreach ($entity in $q.entities()) 
     58#set ($dummy = $q.setEntity($entity)) 
    5859 
    59   // - $entity.name() property storage - 
    60 #foreach ($prop in $entity.props()) 
     60  // - $entity property storage - 
     61#foreach ($prop in $q.props()) 
     62#set ($dummy = $q.setProperty($prop)) 
    6163 
    6264  /** 
    63    * Sets the $prop.name() property for $entity.doc() 
    64    * @param $prop.varName() $prop.desc() 
    65 #foreach ($indexProp in $entity.indices()) 
    66    * @param $indexProp.varName() $indexProp.desc() 
    67 #end##foreach $indexProp 
     65   * For a particular $entity, sets $q.doc() 
     66   * @param $q.var($prop) $q.description() 
     67#foreach ($index in $q.indices()) 
     68   * @param $q.var("${index}Index") index of the $index 
     69#end##foreach $index 
    6870   */ 
    69   void set$entity.name()$prop.name()($prop.type(true) $prop.varName(), $entity.indicesList(true, true)); 
     71  void set$entity$prop($q.type() $q.var($prop), $q.indicesList(true, true)); 
    7072#end##foreach $prop 
    7173#end##foreach $entity 
Note: See TracChangeset for help on using the changeset viewer.