Changeset 720 for cpp/frams/_demos/f0_variants_test.cpp
- Timestamp:
- 01/14/18 11:24:22 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/_demos/f0_variants_test.cpp
r534 r720 30 30 modelparam.select(&m); 31 31 gen+="m:"; 32 modelparam.save 2(gen,omit_default_values ? &defaultmodel : NULL);32 modelparam.saveSingleLine(gen,omit_default_values ? &defaultmodel : NULL); 33 33 34 34 Part *p; … … 40 40 partparam.select(p); 41 41 gen+="p:"; 42 partparam.save 2(gen,omit_default_values ? &defaultpart : NULL);42 partparam.saveSingleLine(gen,omit_default_values ? &defaultpart : NULL); 43 43 } 44 44 for (int i=0;j=(Joint*)m.getJoint(i);i++) … … 47 47 jointparam.setParamTab(j->usedelta?f0_joint_paramtab:f0_nodeltajoint_paramtab); 48 48 gen+="j:"; 49 jointparam.save 2(gen,omit_default_values ? &defaultjoint : NULL);49 jointparam.saveSingleLine(gen,omit_default_values ? &defaultjoint : NULL); 50 50 } 51 51 for (int i=0;n=(Neuro*)m.getNeuro(i);i++) … … 53 53 neuroparam.select(n); 54 54 gen+="n:"; 55 neuroparam.save 2(gen,omit_default_values ? &defaultneuro : NULL);55 neuroparam.saveSingleLine(gen,omit_default_values ? &defaultneuro : NULL); 56 56 } 57 57 for (int a=0;n=(Neuro*)m.getNeuro(a);a++) … … 67 67 connparam.select(&nc); 68 68 gen+="c:"; 69 connparam.save 2(gen,omit_default_values ? &defaultconn : NULL);69 connparam.saveSingleLine(gen,omit_default_values ? &defaultconn : NULL); 70 70 } 71 71 } … … 106 106 } 107 107 108 printf("\nthis example shows how to save a f0 genotype using low-level ParamInterface::save 2() calls\n");108 printf("\nthis example shows how to save a f0 genotype using low-level ParamInterface::saveSingleLine() calls\n"); 109 109 110 110 SString f0_skipping_defaults; … … 125 125 ( format 1 ) 126 126 127 this example shows how to save a f0 genotype using low-level ParamInterface::save 2() calls127 this example shows how to save a f0 genotype using low-level ParamInterface::saveSingleLine() calls 128 128 129 129 ==== with defdata (skips default values) ======
Note: See TracChangeset
for help on using the changeset viewer.