From 6bc75c735d8de16a03c2bcd92347eb9277bb201f Mon Sep 17 00:00:00 2001 From: James Turk Date: Sun, 27 Feb 2005 05:50:39 +0000 Subject: [PATCH] formatting fix --- include/util/VersionInfo.hpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/include/util/VersionInfo.hpp b/include/util/VersionInfo.hpp index d61926f..32894bf 100644 --- a/include/util/VersionInfo.hpp +++ b/include/util/VersionInfo.hpp @@ -5,7 +5,7 @@ // James Turk (jpt2433@rit.edu) // // Version: -// $Id: VersionInfo.hpp,v 1.2 2005/02/16 06:58:06 cozman Exp $ +// $Id: VersionInfo.hpp,v 1.3 2005/02/27 05:50:39 cozman Exp $ #ifndef PHOTON_UTIL_VERSIONINFO_HPP #define PHOTON_UTIL_VERSIONINFO_HPP @@ -78,6 +78,18 @@ public: friend std::ostream& operator<<(std::ostream &o, const VersionInfo &rhs); }; +// Function: ensureVersion +// Checks a version of a library against the required version, throws +// an APIError if the version is not met. +// +// Parameters: +// library - Name of library being initialized. +// version - Version of library being used. +// required - Required version of library. +void ensureVersion(const std::string& library, + const util::VersionInfo& version, + const util::VersionInfo& required); + } }