Changeset 299 for cpp/frams/_demos


Ignore:
Timestamp:
01/17/15 02:43:46 (10 years ago)
Author:
Maciej Komosinski
Message:

Instead of linking with stdiofile-autoinit.cpp, create an object StdioFileSystem_autoselect stdiofilesys;

Location:
cpp/frams/_demos
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/_demos/geometry/geometrytestutils.cpp

    r286 r299  
    66
    77#include "../genotypeloader.h"
     8#include <frams/virtfile/stdiofile.h>
    89#include <math.h>
    910#include <stdio.h>
     
    119120{
    120121        srand(time(NULL));
     122        StdioFileSystem_autoselect stdiofilesys;
    121123       
    122124        if ((argc == 3) && (strcmp("-l", argv[1]) == 0))
     
    178180{
    179181        srand(time(NULL));
     182        StdioFileSystem_autoselect stdiofilesys;
    180183       
    181184        if ((argc == 3) && (strcmp("-l", argv[1]) == 0))
     
    215218                "GENO_ID - either genotype name or index (1-based)\n"
    216219                "DENSITY - minimal number of samples per unit\n"
    217                 "SHAPE - 1=ellipsoid, 2=cuboid, 3=cylinder, others or none=random",
     220                "SHAPE - 1=ellipsoid, 2=cuboid, 3=cylinder, others or none=random\n",
    218221                (const char*)header);
    219222        return 1;
  • cpp/frams/_demos/loader_test.cpp

    r286 r299  
    44
    55#include "genotypeloader.h"
     6#include <frams/virtfile/stdiofile.h>
    67
    78/**
     
    2425
    2526long count=0,totalsize=0;
     27StdioFileSystem_autoselect stdiofilesys;
    2628MiniGenotypeLoader loader(argv[1]);
    2729const char* selected=(argc<3)?NULL:argv[2];
Note: See TracChangeset for help on using the changeset viewer.