Changeset 81 for cpp/gdk/syntparam.h


Ignore:
Timestamp:
02/08/13 03:29:17 (11 years ago)
Author:
Maciej Komosinski
Message:

improved parsing of properties (e.g. in f0 genotypes)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/gdk/syntparam.h

    r66 r81  
    88#include "param.h"
    99
     10/** Creates param + matching temporary object (ParamObject)
     11    using the supplied ParamEntry'ies as a template.
     12    This is mainly used for manipulating specialized neuron properties
     13    (Neuro.d field) in absence of live neuron implementations
     14    (these are only available in live creatures, but not when operating
     15    on Models and Genotypes).
     16
     17    See also: gdktest.cpp
     18 */
    1019class SyntParam: public Param
    1120{
    12 void* obj;
     21void* obj,*def_obj;
    1322ParamEntry *pe;
    1423SString* autostring;
    1524  public:
    16 SyntParam(ParamEntry *pe,SString* autostring=0);
     25/** @param handle_defaults_when_saving creates a second object holding the default values so Param::save2 can use it for omitting defaults. can be disabled for compatiblity with previous behavior (defaults were ignored in SyntParam)
     26 */
     27SyntParam(ParamEntry *pe,SString* autostring=0,bool handle_defaults_when_saving=true);
    1728SyntParam(const SyntParam& src);
    1829~SyntParam();
Note: See TracChangeset for help on using the changeset viewer.