Update headers, fix style for some py files
[alexxy/gromacs.git] / src / python / sip / options / basicoptions.sip
index 0e3526c36b4258e38cb92daf1937784ef6b1be7f..91d56c998087b28714b366d39956e10e70b1e273 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * 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.
@@ -40,6 +40,7 @@ typedef gmx::OptionTemplate<std::string, gmx::StringOption> StringOptionTemplate
 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;
@@ -51,7 +52,6 @@ class DoubleOption : DoubleOptionTemplate /NoDefaultCtors/ {
 using gmx::DoubleOption;
 %End
 };
-
 class IntegerOption : IntegerOptionTemplate /NoDefaultCtors/ {
 %TypeHeaderCode
 #include "gromacs/options/basicoptions.h"
@@ -63,6 +63,11 @@ class StringOption : StringOptionTemplate /NoDefaultCtors/ {
 #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