Ignore:
Timestamp:
02/26/14 20:21:22 (10 years ago)
Author:
sz
Message:

Genetics reorganization (affects ALL applications!):

  • Converters/Validators? are now configured/initialized in a more verbose but also less confusing way
  • At the same time, the PreconfiguredGenetics? object will help you avoid the increased complexity by creating the ready-to-use environment that is sufficient in 99% of cases (see the demos)
  • Format F genetics updated (work in progress)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/genoconv.cpp

    r121 r145  
    8282        :param(this)
    8383{
    84 if (!globalobject) globalobject=this;
    8584}
    8685
     
    8988GenoConverter *gc;
    9089for (converters.start();gc=(GenoConverter*)converters();) delete gc;
    91 if (globalobject==this) globalobject=NULL;
    92 }
    93 
    94 GenoConvManager *GenoConvManager::globalobject=NULL;
     90}
    9591
    9692void GenoConvManager::addConverter(GenoConverter *gc)
     
    217213return Geno(tmp, format, in.getName(), in.getComment());
    218214}
    219 
    220 Geno GenoConvManager::globalConvert(Geno &in,char format,MultiMap *map)
    221 {
    222 if (globalobject) return globalobject->convert(in,format,map);
    223 if (format==in.getFormat()) return in;
    224 return Geno(0,0,0,"GenConvManager not initialized");
    225 }
    226 
    227 /////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.