Changeset 720 for cpp/frams/genetics/fF


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/genetics/fF/fF_genotype.h

    r667 r720  
    3636        {
    3737                SString s = serialized;
    38                 int p = 0; //position in string
    39                 return ((param.load2(s, p) == param.getPropCount()) && (p == s.len()));
     38                ParamInterface::LoadOptions opts;
     39                return ((param.load(ParamInterface::FormatSingleLine, s, &opts) == param.getPropCount()) && (opts.offset == s.len()));
    4040        }
    4141
     
    4343        {
    4444                SString tmp;
    45                 param.save2(tmp, NULL/*object containing default values for comparison*/, false/*add CR*/, false/*force field names*/);
     45                param.saveSingleLine(tmp, NULL/*object containing default values for comparison*/, false/*add CR*/, false/*force field names*/);
    4646                return string(tmp.c_str());
    4747        }
Note: See TracChangeset for help on using the changeset viewer.