Changeset 372 for cpp/frams/genetics/f4


Ignore:
Timestamp:
04/22/15 04:14:59 (10 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.

Location:
cpp/frams/genetics/f4
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/f4/conv_f4.cpp

    r287 r372  
    66
    77#include "conv_f4.h"
    8 #include <common/framsg.h>
     8#include <common/hmessage.h>
    99#include "../oper_fx.h" //for GENOPER_OK constant
    1010
     
    110110                if (res)
    111111                {
    112                         FramMessage("f4_Model", "buildModelRec", "Error in building Model", 2);
     112                        Hmessage("f4_Model", "buildModelRec", "Error in building Model", 2);
    113113                        error = res;
    114114                        break;
     
    134134                        return cells->C[i];
    135135        // none!
    136         FramMessage("f4_Model", "getStick", "Not a single stick", 2);
     136        Hmessage("f4_Model", "getStick", "Not a single stick", 2);
    137137        return NULL;
    138138}
  • cpp/frams/genetics/f4/f4_general.cpp

    r348 r372  
    77#include "f4_general.h"
    88#include <common/nonstd_stl.h>
    9 #include <common/framsg.h>
     9#include <common/hmessage.h>
    1010#include <frams/model/model.h> // for min and max attributes
    1111#include "../oper_fx.h" //for GENOPER_ constants
     
    581581                        char buf[40];
    582582                        sprintf(buf, "unknown code '%c'", gcur->name);
    583                         FramMessage("f4_Cell", "onestep", buf, 2);
     583                        Hmessage("f4_Cell", "onestep", buf, 2);
    584584                        // fix: delete it
    585585                        org->setRepairRemove(gcur->pos, gcur);
  • cpp/frams/genetics/f4/oper_f4.cpp

    r286 r372  
    88#include "oper_f4.h"
    99#include <frams/util/sstring.h>
    10 #include <common/framsg.h>
     10#include <common/hmessage.h>
    1111
    1212#include <stdio.h>
     
    5151        mutation_method_names[index++] = "deleted a node";
    5252        mutation_method_names[index++] = "modified a node";
    53         if (index != F4_COUNT + F4_ADD_COUNT - 1) FramMessage("Geno_f4", "Constructor", "Mutation names init error", 3);
     53        if (index != F4_COUNT + F4_ADD_COUNT - 1) Hmessage("Geno_f4", "Constructor", "Mutation names init error", 3);
    5454}
    5555
Note: See TracChangeset for help on using the changeset viewer.