OpenStudio:utilities
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | List of all members
openstudio::VersionString Class Reference

#include <Compare.hpp>

Public Member Functions

boost::optional< intbuild () const
 
bool fidelityEqual (const VersionString &other) const
 
bool isNextVersion (const VersionString &nextVersionCandidate) const
 Returns true if it is plausible for nextVersionCandidate to be the next version after this one. More...
 
int major () const
 
int minor () const
 
bool operator!= (const VersionString &other) const
 
bool operator< (const VersionString &other) const
 
bool operator<= (const VersionString &other) const
 
bool operator== (const VersionString &other) const
 
bool operator> (const VersionString &other) const
 
bool operator>= (const VersionString &other) const
 
boost::optional< intpatch () const
 
std::string str () const
 
 VersionString (const std::string &version)
 
 VersionString (int major, int minor)
 
 VersionString (int major, int minor, int patch)
 
 VersionString (int major, int minor, int patch, int build)
 

Constructor & Destructor Documentation

openstudio::VersionString::VersionString ( const std::string &  version)
explicit
openstudio::VersionString::VersionString ( int  major,
int  minor 
)
openstudio::VersionString::VersionString ( int  major,
int  minor,
int  patch 
)
openstudio::VersionString::VersionString ( int  major,
int  minor,
int  patch,
int  build 
)

Member Function Documentation

boost::optional<int> openstudio::VersionString::build ( ) const
bool openstudio::VersionString::fidelityEqual ( const VersionString other) const
bool openstudio::VersionString::isNextVersion ( const VersionString nextVersionCandidate) const

Returns true if it is plausible for nextVersionCandidate to be the next version after this one.

int openstudio::VersionString::major ( ) const
int openstudio::VersionString::minor ( ) const
bool openstudio::VersionString::operator!= ( const VersionString other) const
bool openstudio::VersionString::operator< ( const VersionString other) const
bool openstudio::VersionString::operator<= ( const VersionString other) const
bool openstudio::VersionString::operator== ( const VersionString other) const
bool openstudio::VersionString::operator> ( const VersionString other) const
bool openstudio::VersionString::operator>= ( const VersionString other) const
boost::optional<int> openstudio::VersionString::patch ( ) const
std::string openstudio::VersionString::str ( ) const