source: cpp/frams/param/syntparam.h @ 197

Last change on this file since 197 was 197, checked in by Maciej Komosinski, 7 years ago

GDK used by developers since 1999, distributed on the web since 2002

  • Property svn:eol-style set to native
File size: 1.2 KB
1// This file is a part of the Framsticks GDK.
2// Copyright (C) 1999-2014  Maciej Komosinski and Szymon Ulatowski.  See LICENSE.txt for details.
3// Refer to for further information.
5#ifndef _SYNTPATAM_H_
6#define _SYNTPATAM_H_
8#include "param.h"
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).
17    See also: gdktest.cpp
18 */
19class SyntParam: public Param
21void* obj,*def_obj;
22ParamEntry *pe;
23SString* 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 */
27SyntParam(ParamEntry *pe,SString* autostring=0,bool handle_defaults_when_saving=true);
28SyntParam(const SyntParam& src);
30void setAutoUpdate(SString* autostr) {autostring=autostr;}
31void update(SString *s=0);
32void revert(SString *s=0);
Note: See TracBrowser for help on using the repository browser.