Ignore:
Timestamp:
02/15/18 00:42:07 (22 months ago)
Author:
Maciej Komosinski
Message:

Added support for "checkpoints" (intermediate phases of development of the Model when converting between genetic encodings). See Model.checkpoint() and conv_f1.cpp for an example.

File:
1 edited

Legend:

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

    r520 r732  
    2626        long count = 0, totalsize = 0;
    2727        StdioFileSystem_autoselect stdiofilesys;
    28         MiniGenotypeLoader loader(argv[1]);
     28        GenotypeMiniLoader loader(argv[1]);
    2929        const char* selected = (argc < 3) ? NULL : argv[2];
    3030        const char* field_name = (argc < 4) ? NULL : argv[3];
    3131        int selected_index = (selected&&isdigit(selected[0])) ? atol(selected) : 0;
    3232        // using char* constructor (passing the file name to open)
    33         MiniGenotype *loaded;
     33        GenotypeMini *loaded;
    3434        while (loaded = loader.loadNextGenotype())
    3535        { // if loaded != NULL then the "org:" object data was
     
    5151                        if (field_name)
    5252                        {
    53                                 Param p(minigenotype_paramtab, loaded);
     53                                Param p(genotypemini_paramtab, loaded);
    5454                                int field_index = p.findId(field_name);
    5555                                if (field_index < 0)
     
    6868        }
    6969        // the loop repeats until loaded==NULL, which could be beacause of error
    70         if (loader.getStatus() == MiniGenotypeLoader::OnError)
     70        if (loader.getStatus() == GenotypeMiniLoader::OnError)
    7171                fprintf(stderr, "Error: %s", loader.getError().c_str());
    7272        // (otherwise it was the end of the file)
Note: See TracChangeset for help on using the changeset viewer.