|
TrueReality
v0.1.1912
|
#include <iostream>#include <trVersion/Utils.h>#include <trUtil/Console/TextColor.h>#include <trUtil/DefaultSettings.h>#include <trUtil/VersionUtil.h>#include <trUtil/PathUtils.h>#include <trUtil/Exception.h>#include <trUtil/Logging/Log.h>
Go to the source code of this file.
Functions | |
| void | UpdateVersion (trUtil::VersionUtil &ver) |
| Updates the version from the current .hg revision and YYMM. More... | |
| void | IncremenetVersion (trUtil::VersionUtil &ver) |
| Increments the version in the version file. More... | |
| void | SetVersion (trUtil::VersionUtil &ver, int maj, int min, std::string yymm, int build) |
| Sets all the version numbers. More... | |
| int | main (int argc, char **argv) |
| Software's main function. More... | |
Variables | |
| static const trUtil::RefStr | TR_CURRENT_VERSION ("True Reality Engine Current version: ") |
| static const trUtil::RefStr | TR_NEW_VERSION ("\rue Reality Engine New Version : ") |
| static const trUtil::RefStr | TR_VERSION ("True Reality v") |
| void IncremenetVersion | ( | trUtil::VersionUtil & | ver | ) |
Increments the version in the version file.
Build version gets incremented by 1 YYMM gets set to the current year and month
Definition at line 133 of file trVersion/Main.cpp.
References BRIGHT_YELLOW, DEFAULT, trUtil::VersionUtil::GetVersionString(), trUtil::VersionUtil::IncrementVersion(), trUtil::VersionUtil::SaveVersionFile(), trUtil::Console::TextColor(), TR_CURRENT_VERSION, and TR_NEW_VERSION.
Referenced by main().


| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Software's main function.
Definition at line 45 of file trVersion/Main.cpp.
References BRIGHT_YELLOW, trUtil::PathUtils::CreateUserDataPathTree(), DEFAULT, EXE_NAME, trUtil::VersionUtil::GetVersionString(), IncremenetVersion(), LOG_E, LOG_ERROR, trUtil::Exception::LogException(), ParseCmdLineArgs(), trUtil::VersionUtil::SaveVersionFile(), trUtil::VersionUtil::SetBuildVersion(), trUtil::VersionUtil::SetMajorVersion(), trUtil::VersionUtil::SetMinorVersion(), trUtil::DefaultSettings::SetupLoggingOptions(), SetVersion(), trUtil::VersionUtil::SetYYMMVersion(), trUtil::Console::TextColor(), trUtil::Exception::ToString(), TR_CURRENT_VERSION, TR_NEW_VERSION, TR_VERSION, and UpdateVersion().

| void SetVersion | ( | trUtil::VersionUtil & | ver, |
| int | maj, | ||
| int | min, | ||
| std::string | yymm, | ||
| int | build | ||
| ) |
Sets all the version numbers.
Definition at line 148 of file trVersion/Main.cpp.
References BRIGHT_YELLOW, DEFAULT, trUtil::VersionUtil::GetVersionString(), trUtil::VersionUtil::SaveVersionFile(), trUtil::VersionUtil::SetVersion(), trUtil::Console::TextColor(), TR_CURRENT_VERSION, and TR_NEW_VERSION.
Referenced by main().


| void UpdateVersion | ( | trUtil::VersionUtil & | ver | ) |
Updates the version from the current .hg revision and YYMM.
Definition at line 163 of file trVersion/Main.cpp.
References BRIGHT_YELLOW, DEFAULT, trUtil::VersionUtil::GetVersionString(), trUtil::VersionUtil::SaveVersionFile(), trUtil::Console::TextColor(), TR_CURRENT_VERSION, TR_NEW_VERSION, and trUtil::VersionUtil::UpdateVersion().
Referenced by main().


|
static |
Referenced by IncremenetVersion(), main(), SetVersion(), and UpdateVersion().
|
static |
Referenced by IncremenetVersion(), main(), SetVersion(), and UpdateVersion().
|
static |
Referenced by main().