added parameters to the constructors to start generation counting !=0
the parameters are optional and appended in the end
This commit is contained in:
parent
4238ee1bd3
commit
aac8ff6cb9
3 changed files with 18 additions and 14 deletions
|
|
@ -119,13 +119,13 @@ private :
|
|||
class eoCountedStateSaver : public eoUpdater
|
||||
{
|
||||
public :
|
||||
eoCountedStateSaver(unsigned _interval, const eoState& _state, std::string _prefix, bool _saveOnLastCall, std::string _extension = "sav")
|
||||
: state(_state), interval(_interval), counter(0),
|
||||
eoCountedStateSaver(unsigned _interval, const eoState& _state, std::string _prefix, bool _saveOnLastCall, std::string _extension = "sav", unsigned _counter = 0)
|
||||
: state(_state), interval(_interval), counter(_counter),
|
||||
saveOnLastCall(_saveOnLastCall),
|
||||
prefix(_prefix), extension(_extension) {}
|
||||
|
||||
eoCountedStateSaver(unsigned _interval, const eoState& _state, std::string _prefix = "state", std::string _extension = "sav")
|
||||
: state(_state), interval(_interval), counter(0),
|
||||
eoCountedStateSaver(unsigned _interval, const eoState& _state, std::string _prefix = "state", std::string _extension = "sav", unsigned _counter = 0)
|
||||
: state(_state), interval(_interval), counter(_counter),
|
||||
saveOnLastCall(true),
|
||||
prefix(_prefix), extension(_extension) {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue