OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
version.hpp
Go to the documentation of this file.
1 #ifndef VERSION_HPP
2 #define VERSION_HPP
3 
4 #include <string>
5 
6 namespace Version
7 {
8 
9  struct Version
10  {
11  std::string mVersion;
12  std::string mCommitHash;
13  std::string mTagHash;
14 
15  std::string describe();
16  };
17 
19  Version getOpenmwVersion(const std::string& resourcePath);
20 
22  std::string getOpenmwVersionDescription(const std::string& resourcePath);
23 
24 }
25 
26 
27 #endif // VERSION_HPP
28 
Definition: version.hpp:9
Version getOpenmwVersion(const std::string &resourcePath)
Read OpenMW version from the version file located in resourcePath.
Definition: version.cpp:9
std::string getOpenmwVersionDescription(const std::string &resourcePath)
Helper function to getOpenmwVersion and describe() it.
Definition: version.cpp:35
Version
Definition: esmcommon.hpp:12
std::string mVersion
Definition: version.hpp:11
std::string mCommitHash
Definition: version.hpp:12
std::string mTagHash
Definition: version.hpp:13