Ignore:
Timestamp:
04/22/15 04:14:59 (5 years ago)
Author:
sz
Message:

Renamed some classes and functions to make their purpose more obvious:

All MessageHandlers? must now be given the explicit "Enable" argument if you want them to automatically become active. This makes side effects clearly visible.

File:
1 edited

Legend:

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

    r348 r372  
    1010#include <frams/genetics/defgenoconv.h>
    1111#include <frams/model/model.h>
    12 #include <frams/errmgr/stdouterr.h>
     12#include <frams/mhandlers/stdouthandler.h>
    1313
    1414void save_as_f0(SString &gen,Model &m,bool omit_default_values)
     
    7474int main(int argc,char*argv[])
    7575{
    76 StdoutErrorHandler err;//the default ErrorHandler constructor automatically registers this object to receive framsg messages (and in this case, redirect them to standard output)
     76MessageHandlerToStdout messages_to_stdout(MessageHandlerBase::Enable);
    7777
    7878//without converters the application would only handle "format 0" genotypes
Note: See TracChangeset for help on using the changeset viewer.