Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
version.h
Go to the documentation of this file.
1/*
2** Command & Conquer Generals Zero Hour(tm)
3** Copyright 2025 Electronic Arts Inc.
4**
5** This program is free software: you can redistribute it and/or modify
6** it under the terms of the GNU General Public License as published by
7** the Free Software Foundation, either version 3 of the License, or
8** (at your option) any later version.
9**
10** This program is distributed in the hope that it will be useful,
11** but WITHOUT ANY WARRANTY; without even the implied warranty of
12** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13** GNU General Public License for more details.
14**
15** You should have received a copy of the GNU General Public License
16** along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/
18
20// //
21// (c) 2001-2003 Electronic Arts Inc. //
22// //
24
25// FILE: version.h //////////////////////////////////////////////////////
26// Generals version number class
27// Author: Matthew D. Campbell, November 2001
28
29#pragma once
30
31#ifndef __VERSION_H__
32#define __VERSION_H__
33
40{
41public:
42 Version();
53
54 Bool showFullVersion( void ) { return m_showFullVersion; }
55 void setShowFullVersion( Bool val ) { m_showFullVersion = val; }
56
57 void setVersion(Int major, Int minor, Int buildNum,
58 Int localBuildNum, AsciiString user, AsciiString location,
59 AsciiString buildTime, AsciiString buildDate);
60
61private:
62 Int m_major;
63 Int m_minor;
64 Int m_buildNum;
65 Int m_localBuildNum;
66 AsciiString m_buildLocation;
67 AsciiString m_buildUser;
68 AsciiString m_buildTime;
69 AsciiString m_buildDate;
70 Bool m_showFullVersion;
71};
72
73extern Version *TheVersion;
74
75#endif // __VERSION_H__
bool Bool
Definition BaseType.h:132
unsigned int UnsignedInt
Definition BaseType.h:126
UnicodeString getFullUnicodeVersion(void)
Return a human-readable version number.
Definition version.cpp:111
UnicodeString getUnicodeBuildLocation(void)
Return a string with the build location.
Definition version.cpp:158
AsciiString getAsciiBuildTime(void)
Return a formated date/time string for build time.
Definition version.cpp:132
UnsignedInt getVersionNumber(void)
Return a 4-byte integer suitable for WOLAPI.
Definition version.cpp:65
AsciiString getAsciiBuildUser(void)
Return a string with the build user.
Definition version.cpp:169
UnicodeString getUnicodeVersion(void)
Return a human-readable version number.
Definition version.cpp:86
AsciiString getAsciiVersion(void)
Return a human-readable version number.
Definition version.cpp:70
Bool showFullVersion(void)
Definition version.h:54
UnicodeString getUnicodeBuildTime(void)
Return a formated date/time string for build time.
Definition version.cpp:140
void setShowFullVersion(Bool val)
Definition version.h:55
Version()
Definition version.cpp:36
UnicodeString getUnicodeBuildUser(void)
Return a string with the build user.
Definition version.cpp:174
AsciiString getAsciiBuildLocation(void)
Return a string with the build location.
Definition version.cpp:153
void setVersion(Int major, Int minor, Int buildNum, Int localBuildNum, AsciiString user, AsciiString location, AsciiString buildTime, AsciiString buildDate)
Set version info.
Definition version.cpp:51
Version * TheVersion
The Version singleton.
Definition version.cpp:34