Ignore:
Timestamp:
01/14/18 11:25:02 (6 years ago)
Author:
Maciej Komosinski
Message:

Code formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/param/syntparam.h

    r288 r721  
    99
    1010/** 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).
     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).
    1616
    17     See also: genomanipulation.cpp
    18  */
    19 class SyntParam: public Param
     17        See also: genomanipulation.cpp
     18        */
     19class SyntParam : public Param
    2020{
    21 void* obj,*def_obj;
    22 ParamEntry *pe;
    23 SString* autostring;
    24   public:
    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  */
    27 SyntParam(ParamEntry *pe,SString* autostring=0,bool handle_defaults_when_saving=true);
    28 SyntParam(const SyntParam& src);
    29 ~SyntParam();
    30 void setAutoUpdate(SString* autostr) {autostring=autostr;}
    31 void update(SString *s=0);
    32 void revert(SString *s=0);
     21        void* obj, *def_obj;
     22        ParamEntry *pe;
     23        SString* autostring;
     24public:
     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        */
     27        SyntParam(ParamEntry *pe, SString* autostring = 0, bool handle_defaults_when_saving = true);
     28        SyntParam(const SyntParam& src);
     29        ~SyntParam();
     30        void setAutoUpdate(SString* autostr) { autostring = autostr; }
     31        void update(SString *s = 0);
     32        void revert(SString *s = 0);
    3333};
    3434
Note: See TracChangeset for help on using the changeset viewer.