9 #ifndef _QI_VERSION_HPP_
10 #define _QI_VERSION_HPP_
14 # pragma warning( push )
15 # pragma warning( disable: 4251 )
21 # include <boost/scoped_ptr.hpp>
33 Version(
const std::string &version);
39 operator const std::string&()
const;
42 bool operator> (
const Version& pi)
const;
43 bool operator==(
const Version& pi)
const;
44 bool operator!=(
const Version& pi)
const;
45 bool operator<=(
const Version& pi)
const;
46 bool operator>=(
const Version& pi)
const;
49 boost::scoped_ptr<VersionPrivate> _p;
53 QI_API std::vector<std::string>
explode(
const std::string &version);
57 const std::string &versionB);
64 # pragma warning( pop )
67 #endif // _QI_VERSION_HPP_
int compare(const std::string &versionA, const std::string &versionB)
Compare version numbers.
std::vector< std::string > explode(const std::string &version)
Explode a version string to an array of strings.
std::string extract(const std::string &version)
Extract version number from string.
Struct representing a version number.
dll import/export and compiler message
bool operator<(bool b, const NullStream &ns)