Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

PString PProcess::GetVersion ( BOOL  full = TRUE ) const [virtual, inherited]

Get the version of the software. This is used in the default "About" dialog box and for determining the location of the configuration information as used by the PConfig# class.

If the full# parameter is TRUE then a version string built from the major, minor, status and build veriosn codes is returned. If FALSE then only the major and minor versions are returned.

The default for this information is "1.0".

Returns:
string for the version eg "1.0b3".
Parameters:
fullTRUE for full version, FALSE for short version.

Definition at line 2092 of file osutils.cxx.

Referenced by PTrace::Initialise(), Serial::Main(), Md5::Main(), Threadex::Main(), IPV6Test::Main(), DtmfTest::Main(), LocalAddress::Main(), and PServiceProcess::Terminate().

{
  const char * const statusLetter[NumCodeStatuses] =
    { "alpha", "beta", "." };
  return psprintf(full ? "%u.%u%s%u" : "%u.%u",
                  majorVersion, minorVersion, statusLetter[status], buildNumber);
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index