79 VersionUtil(std::string fileName, std::string filePath);
90 VersionUtil(std::string fileName, std::string filePath, std::string repoPath);
104 void SaveVersionFile();
116 void SetVersion(
int maj,
int min, std::string yymm,
int build);
128 void SetVersion(
int maj,
int min,
int yymm,
int build);
135 void GenerateVersionStructure();
142 void IncrementVersion();
151 void SetMajorVersion(
int maj);
160 int GetMajorVersion();
169 void SetMinorVersion(
int min);
178 int GetMinorVersion();
187 std::string GetYYMMVersion();
196 void SetYYMMVersion(std::string yymm);
205 void SetYYMMVersion(
int yymm);
214 void SetBuildVersion(
int build);
223 int GetBuildVersion();
232 std::string GetVersionString();
253 std::string GetTodaysVersionDate();
265 int GetCurrentCommitNum();
static const std::string BUILD_VERSION
static const std::string MIN_VERSION
static const std::string MAJ_VERSION
static const std::string YYMM_VERSION
static const std::string STR_BLANK("")
Constant value for a blank String.
static const std::string VERSION_FILE_NAME
A utility to read and control the engines version numbers.
void SetVersion(trUtil::VersionUtil &ver, int maj, int min, std::string yymm, int build)
Sets all the version numbers.
void UpdateVersion(trUtil::VersionUtil &ver)
Updates the version from the current .hg revision and YYMM.
A class that represents date time utility.
Namespace that holds various utility classes for the engine.