]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/versioninfo.h
1e847832f032405304ad50928eb7b3c8cb496d72
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxVersionInfo
5 // RCS-ID: $Id: versioninfo.h
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
12 wxVersionInfo contains version information.
14 This class is used by wxWidgets to provide version information about the
15 libraries it uses and itself, but you can also apply it in user space, to
16 provide version information about your own libraries, or other libraries
31 The version information objects need to be initialized with this
32 constructor and are immutable once they are created.
34 @param name The name of the library or other entity that this object
36 @param major The major version component.
37 @param minor The minor version component.
38 @param micro The micro version component, 0 by default.
39 @param description Free form description of this version, none by
41 @param copyright Copyright string, none by default.
43 wxVersionInfo(const wxString
& name
= wxString(),
47 const wxString
& description
= wxString(),
48 const wxString
& copyright
= wxString());
51 Get the name of the object (library).
55 const wxString
& GetName() const;
58 Get the major version number.
60 @return Major version number.
65 Get the minor version number.
67 @return Minor version number.
72 Get the micro version, or release number.
74 @return Micro version, or release number.
79 Get the string representation of this version object.
81 This function returns the description if it is non-empty or
82 GetVersionString() if there is no description.
84 @see GetDescription(), GetVersionString()
86 wxString
ToString() const;
89 Get the string representation.
91 The micro component of the version is ignored/not used if it is 0.
93 @return The version string in the form "name major.minor[.micro]".
95 wxString
GetVersionString() const;
98 Return @true if a description string has been specified.
100 @see GetDescription()
102 bool HasDescription() const;
105 Get the description string.
107 The description may be empty.
109 @return The description string, free-form.
111 const wxString
& GetDescription();
114 Returns @true if a copyright string has been specified.
118 bool HasCopyright() const;
121 Get the copyright string.
123 The copyright string may be empty.
125 @return The copyright string.
127 const wxString
& GetCopyright() const;