Update headers, fix style for some py files
[alexxy/gromacs.git] / src / python / sip / options / options.sip
index 1e79142f0c9e05bd544bfedac8412f743b7416f2..c899989e8fb88c4282c73c14bd0b78c986c02a14 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.
  * the research papers on the package. Check out http://www.gromacs.org.
  */
 
-class OptionManagerInterface /NoDefaultCtors/ {
+class IOptionManager /NoDefaultCtors/ {
 %TypeHeaderCode
 
 #include <gromacs/options/options.h>
-using gmx::OptionManagerInterface;
+using gmx::IOptionManager;
 %End
 
 protected:
-    virtual ~OptionManagerInterface();
+    virtual ~IOptionManager();
 };
 
 class Options {
@@ -53,24 +53,10 @@ using gmx::Options;
 
 public:
     Options(const char *name, const char *title);
-    const char* name() const;
-    %MethodCode
-        sipRes = sipCpp->name().c_str();
-    %End
-    const char* title() const;
-    %MethodCode
-        sipRes = sipCpp->title().c_str();
-    %End
-    const char* description() const;
-    %MethodCode
-        sipRes = sipCpp->description().c_str();
-    %End
-    void setDescription (const char *desc);
-    void addManager (OptionManagerInterface *manager);
+    void addManager (IOptionManager *manager);
     void addSubSection (Options *section);
     void addOption(const AbstractOption &settings);
 
-    bool isSet(const char *name) const;
     void finish();
 private:
     Options(const Options &other);