Quick Links:

bmqa | bmqpi | bmqt

Public Member Functions

bmqt::Version Class Reference

#include <bmqt_version.h>

List of all members.

Public Member Functions

 Version ()
 Version (unsigned char major, unsigned char minor)
VersionsetMajor (unsigned char value)
VersionsetMinor (unsigned char value)
bsl::ostream & print (bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
unsigned char major () const
unsigned char minor () const

Detailed Description

A version consisting of a major and minor version number.

See Component bmqt_version


Constructor & Destructor Documentation

bmqt::Version::Version (  ) 

Create an object of type Version having the default value. Note that major is set to zero and minor is set to zero.

bmqt::Version::Version ( unsigned char  major,
unsigned char  minor 
)

Create an object of type Version initialized with the specified major and minor versions.


Member Function Documentation

Version& bmqt::Version::setMajor ( unsigned char  value  ) 

Set the major part of the version to the specified value and return a reference to this object.

Version& bmqt::Version::setMinor ( unsigned char  value  ) 

Set the minor part of the version to the specified value and return a reference to this object.

bsl::ostream& bmqt::Version::print ( bsl::ostream &  stream,
int  level = 0,
int  spacesPerLevel = 4 
) const

Format this object to the specified output stream at the optionally specified indentation level and return a reference to the modifiable stream. If level is specified, optionally specify spacesPerLevel, the number of spaces per indentation level for this and all of its nested objects. Each line is indented by the absolute value of level * spacesPerLevel. If level is negative, suppress indentation of the first line. If spacesPerLevel is negative, suppress line breaks and format the entire output on one line. If stream is initially invalid, this operation has no effect. Note that a trailing newline is provided in multiline mode only.

unsigned char bmqt::Version::major (  )  const

Return the major part of the version.

unsigned char bmqt::Version::minor (  )  const

Return the minor part of the version.


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