]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/versioninfo.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxVersionInfo
5 // Licence: wxWindows licence
6 /////////////////////////////////////////////////////////////////////////////
11 wxVersionInfo contains version information.
13 This class is used by wxWidgets to provide version information about the
14 libraries it uses and itself, but you can also apply it in user space, to
15 provide version information about your own libraries, or other libraries
30 The version information objects need to be initialized with this
31 constructor and are immutable once they are created.
33 @param name The name of the library or other entity that this object
35 @param major The major version component.
36 @param minor The minor version component.
37 @param micro The micro version component, 0 by default.
38 @param description Free form description of this version, none by
40 @param copyright Copyright string, none by default.
42 wxVersionInfo(const wxString
& name
= wxString(),
46 const wxString
& description
= wxString(),
47 const wxString
& copyright
= wxString());
50 Get the name of the object (library).
54 const wxString
& GetName() const;
57 Get the major version number.
59 @return Major version number.
64 Get the minor version number.
66 @return Minor version number.
71 Get the micro version, or release number.
73 @return Micro version, or release number.
78 Get the string representation of this version object.
80 This function returns the description if it is non-empty or
81 GetVersionString() if there is no description.
83 @see GetDescription(), GetVersionString()
85 wxString
ToString() const;
88 Get the string representation.
90 The micro component of the version is ignored/not used if it is 0.
92 @return The version string in the form "name major.minor[.micro]".
94 wxString
GetVersionString() const;
97 Return @true if a description string has been specified.
101 bool HasDescription() const;
104 Get the description string.
106 The description may be empty.
108 @return The description string, free-form.
110 const wxString
& GetDescription();
113 Returns @true if a copyright string has been specified.
117 bool HasCopyright() const;
120 Get the copyright string.
122 The copyright string may be empty.
124 @return The copyright string.
126 const wxString
& GetCopyright() const;