Commit a8a36d75 authored by Peter Eastman's avatar Peter Eastman
Browse files

Added Platform::getOpenMMVersion().

parent ba2503b5
...@@ -215,6 +215,10 @@ public: ...@@ -215,6 +215,10 @@ public:
* @return the path to the default plugin directory * @return the path to the default plugin directory
*/ */
static const std::string& getDefaultPluginsDirectory(); static const std::string& getDefaultPluginsDirectory();
/**
* Get a string containing the version number of the OpenMM library.
*/
static const std::string& getOpenMMVersion();
protected: protected:
/** /**
* Get the ContextImpl for a Context. * Get the ContextImpl for a Context.
......
...@@ -278,6 +278,11 @@ const string& Platform::getDefaultPluginsDirectory() { ...@@ -278,6 +278,11 @@ const string& Platform::getDefaultPluginsDirectory() {
return directory; return directory;
} }
const string& Platform::getOpenMMVersion() {
static const string version = "2.0";
return version;
}
ContextImpl& Platform::getContextImpl(Context& context) const { ContextImpl& Platform::getContextImpl(Context& context) const {
return *context.impl; return *context.impl;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment