Mania++
 All Classes Functions Variables Pages
Static Public Member Functions | Static Private Member Functions | List of all members
VersionCompare Class Reference

Compares string versions. More...

#include <VersionCompare.h>

Static Public Member Functions

static bool NewerThanCurrent (const std::string &current, const std::string &other)
 
static bool NotOlderThan (const std::string &base, const std::string &comp)
 

Static Private Member Functions

static void parseVersion (int result[3], const std::string &input)
 

Detailed Description

Compares string versions.

Member Function Documentation

static bool VersionCompare::NewerThanCurrent ( const std::string &  current,
const std::string &  other 
)
inlinestatic

Compares two string versions.

Parameters
currentCurrent string version.
otherString version to compare.
static bool VersionCompare::NotOlderThan ( const std::string &  base,
const std::string &  comp 
)
inlinestatic

Compares two string versions.

Parameters
baseBase string version.
compString version to compare.
static void VersionCompare::parseVersion ( int  result[3],
const std::string &  input 
)
inlinestaticprivate

Converts version string into comparable integer array.

Parameters
resultInteger array for the comparable result.
inputString input to be parsed.

The documentation for this class was generated from the following file: