Ignore:
Timestamp:
01/14/18 11:24:22 (7 years ago)
Author:
Maciej Komosinski
Message:

Param::save2() renamed to saveSingleLine(); unified Param::load() so that it gets a single-line/multi-line format selector

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/_demos/f0_variants_test.cpp

    r534 r720  
    3030modelparam.select(&m);
    3131gen+="m:";
    32 modelparam.save2(gen,omit_default_values ? &defaultmodel : NULL);
     32modelparam.saveSingleLine(gen,omit_default_values ? &defaultmodel : NULL);
    3333
    3434Part *p;
     
    4040        partparam.select(p);
    4141        gen+="p:";
    42         partparam.save2(gen,omit_default_values ? &defaultpart : NULL);
     42        partparam.saveSingleLine(gen,omit_default_values ? &defaultpart : NULL);
    4343        }
    4444for (int i=0;j=(Joint*)m.getJoint(i);i++)
     
    4747        jointparam.setParamTab(j->usedelta?f0_joint_paramtab:f0_nodeltajoint_paramtab);
    4848        gen+="j:";
    49         jointparam.save2(gen,omit_default_values ? &defaultjoint : NULL);
     49        jointparam.saveSingleLine(gen,omit_default_values ? &defaultjoint : NULL);
    5050        }
    5151for (int i=0;n=(Neuro*)m.getNeuro(i);i++)
     
    5353        neuroparam.select(n);
    5454        gen+="n:";
    55         neuroparam.save2(gen,omit_default_values ? &defaultneuro : NULL);
     55        neuroparam.saveSingleLine(gen,omit_default_values ? &defaultneuro : NULL);
    5656        }
    5757for (int a=0;n=(Neuro*)m.getNeuro(a);a++)
     
    6767                connparam.select(&nc);
    6868                gen+="c:";
    69                 connparam.save2(gen,omit_default_values ? &defaultconn : NULL);
     69                connparam.saveSingleLine(gen,omit_default_values ? &defaultconn : NULL);
    7070                }
    7171        }
     
    106106        }
    107107
    108 printf("\nthis example shows how to save a f0 genotype using low-level ParamInterface::save2() calls\n");
     108printf("\nthis example shows how to save a f0 genotype using low-level ParamInterface::saveSingleLine() calls\n");
    109109
    110110SString f0_skipping_defaults;
     
    125125                  ( format 1 )
    126126
    127 this example shows how to save a f0 genotype using low-level ParamInterface::save2() calls
     127this example shows how to save a f0 genotype using low-level ParamInterface::saveSingleLine() calls
    128128
    129129==== with defdata (skips default values) ======
Note: See TracChangeset for help on using the changeset viewer.