Changeset 145 for cpp/frams/genetics/genoconv.cpp
- Timestamp:
- 02/26/14 20:21:22 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/genoconv.cpp
r121 r145 82 82 :param(this) 83 83 { 84 if (!globalobject) globalobject=this;85 84 } 86 85 … … 89 88 GenoConverter *gc; 90 89 for (converters.start();gc=(GenoConverter*)converters();) delete gc; 91 if (globalobject==this) globalobject=NULL; 92 } 93 94 GenoConvManager *GenoConvManager::globalobject=NULL; 90 } 95 91 96 92 void GenoConvManager::addConverter(GenoConverter *gc) … … 217 213 return Geno(tmp, format, in.getName(), in.getComment()); 218 214 } 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.