Sleeping Wombat GUI  0.100
swGUI
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Public Attributes | Friends | List of all members
Version Struct Reference

Standard version structure. More...

#include <Version.h>

Public Member Functions

 Version ()
 Contructs Lowest version. More...
 
 Version (const std::string &version)
 
bool operator< (const Version &other)
 Version comparision. More...
 
bool operator== (const Version &other)
 Version comparision. More...
 

Public Attributes

uint32 Major
 
uint32 Minor
 
uint32 Revision
 
uint32 Build
 

Friends

std::ostream & operator<< (std::ostream &stream, const Version &ver)
 

Detailed Description

Standard version structure.

Based on: http://sourcey.com/comparing-version-strings-in-cpp/

Constructor & Destructor Documentation

Version::Version ( )
inline

Contructs Lowest version.

Version::Version ( const std::string &  version)
inline

Member Function Documentation

bool Version::operator< ( const Version other)
inline

Version comparision.

bool Version::operator== ( const Version other)
inline

Version comparision.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const Version ver 
)
friend

Member Data Documentation

uint32 Version::Build
uint32 Version::Major
uint32 Version::Minor
uint32 Version::Revision

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