/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2014, by the GROMACS development team, led by
+ * Copyright (c) 2014,2015, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
typedef gmx::OptionTemplate<bool, gmx::BooleanOption> BooleanOptionTemplate;
%End
+class std::string;
typedef OptionTemplate<double, DoubleOption> DoubleOptionTemplate;
typedef OptionTemplate<int, IntegerOption> IntegerOptionTemplate;
typedef OptionTemplate<std::string, StringOption> StringOptionTemplate;
using gmx::DoubleOption;
%End
};
-
class IntegerOption : IntegerOptionTemplate /NoDefaultCtors/ {
%TypeHeaderCode
#include "gromacs/options/basicoptions.h"
#include "gromacs/options/basicoptions.h"
using gmx::StringOption;
%End
+public:
+ StringOption& defaultValue(const char *);
+ %MethodCode
+ sipRes = &sipCpp->defaultValue(std::string(a0));
+ %End
};
class BooleanOption : BooleanOptionTemplate /NoDefaultCtors/ {
%TypeHeaderCode