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".

string for the version eg "1.0b3".
full  TRUE for full version, FALSE for short version.

Definition at line 2092 of file osutils.cxx.

Referenced by PTrace::Initialise(), and Terminate().

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

Generated by  Doxygen 1.6.0   Back to index