![]() |
Home | Libraries | Author | Links |
Definition at line 922 of file device.hpp.
Public Types | |
enum | Parts { Major = 3, Minor = 2, Micro = 1, Nano = 0 } |
Version part names. More... | |
Public Member Functions | |
Version () | |
Construct the null Version object with all part words cleared. | |
Version (unsigned short major, unsigned minor, unsigned micro=0, unsigned nano=0) | |
Construct the Version object with all parts major, minor, micro and nano. | |
Version (const Version &other) | |
Copy constructor. | |
Version & | operator= (const Version &other) |
Assignment operator. | |
std::string | string () const |
Return the string representation of this Version. | |
bool | isNull () const |
Returns true, if this Version is null. | |
bool | operator== (const Version &other) const |
Equality comparison operator. | |
bool | operator!= (const Version &other) const |
Unequality comparison operator. | |
bool | operator< (const Version &other) const |
Less than comparison operator. | |
bool | operator> (const Version &other) const |
Greater than comparison operator. | |
bool | operator<= (const Version &other) const |
Less or equal comparison operator. | |
bool | operator>= (const Version &other) const |
Greater or equal comparison operator. | |
Public Attributes | |
unsigned short | part [4] |
Word array of version parts. |
Version part names.
They serve as indexes of the part array.
Major | Major version part. |
Minor | Minor version part. |
Micro | Micro version part. |
Nano | Nano version part. |
Definition at line 926 of file device.hpp.
stm::Device::Version::Version | ( | ) |
Construct the null Version object with all part words cleared.
stm::Device::Version::Version | ( | unsigned short | major, | |
unsigned | minor, | |||
unsigned | micro = 0 , |
|||
unsigned | nano = 0 | |||
) |
Construct the Version object with all parts major, minor, micro and nano.
stm::Device::Version::Version | ( | const Version & | other | ) |
Copy constructor.
std::string stm::Device::Version::string | ( | ) | const |
Return the string representation of this Version.
bool stm::Device::Version::isNull | ( | ) | const |
Returns true, if this Version is null.
That means, if all part words are cleared.
bool stm::Device::Version::operator== | ( | const Version & | other | ) | const |
Equality comparison operator.
bool stm::Device::Version::operator!= | ( | const Version & | other | ) | const |
Unequality comparison operator.
bool stm::Device::Version::operator< | ( | const Version & | other | ) | const |
Less than comparison operator.
bool stm::Device::Version::operator> | ( | const Version & | other | ) | const |
Greater than comparison operator.
bool stm::Device::Version::operator<= | ( | const Version & | other | ) | const |
Less or equal comparison operator.
bool stm::Device::Version::operator>= | ( | const Version & | other | ) | const |
Greater or equal comparison operator.
unsigned short stm::Device::Version::part[4] |
Word array of version parts.
Its elements store the version parts indexed by the enumerators of Parts.
Definition at line 976 of file device.hpp.
© Copyright Tom Michaelis 2002-2007
Distributed under the SysToMath Software License (See the accompanying file license.txt or a copy at www.SysToMath.com).