Ignore:
Timestamp:
02/27/18 17:12:25 (6 years ago)
Author:
Maciej Komosinski
Message:

Renamed ParamInterface::save() -> saveMultiLine()

File:
1 edited

Legend:

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

    r534 r745  
    3939printf("Converted to f0:\n%s\n",m.getF0Geno().getGenes().c_str());
    4040
    41 printf("\nusing Param::save() to create the \"expanded\" form of the f0 genotype...\n(MultiParamLoader should be able to load this)");
     41printf("\nusing Param::saveMultiLine() to create the \"expanded\" form of the f0 genotype...\n(MultiParamLoader should be able to load this)");
    4242
    4343StringFILE2 f;
     
    5050
    5151modelparam.select(&m);
    52 modelparam.save(&f,"m");
     52modelparam.saveMultiLine(&f,"m");
    5353
    5454Part *p;
     
    5959        {
    6060        partparam.select(p);
    61         partparam.save(&f,"p");
     61        partparam.saveMultiLine(&f,"p");
    6262        }
    6363for (int i=0;j=(Joint*)m.getJoint(i);i++)
     
    6565        jointparam.select(j);
    6666        jointparam.setParamTab(j->usedelta?f0_joint_paramtab:f0_nodeltajoint_paramtab);
    67         jointparam.save(&f,"j");
     67        jointparam.saveMultiLine(&f,"j");
    6868        }
    6969for (int i=0;n=(Neuro*)m.getNeuro(i);i++)
    7070        {
    7171        neuroparam.select(n);
    72         neuroparam.save(&f,"n");
     72        neuroparam.saveMultiLine(&f,"n");
    7373        }
    7474for (int a=0;n=(Neuro*)m.getNeuro(a);a++)
     
    8383                nc.info=n->getInputInfo(b);
    8484                connparam.select(&nc);
    85                 connparam.save(&f,"c");
     85                connparam.saveMultiLine(&f,"c");
    8686                }
    8787        }
     
    107107
    108108
    109 using Param::save() to create the "expanded" form of the f0 genotype...
     109using Param::saveMultiLine() to create the "expanded" form of the f0 genotype...
    110110(MultiParamLoader should be able to load this)
    111111============================
Note: See TracChangeset for help on using the changeset viewer.