TrueReality  v0.1.1912
trVersion/Main.cpp File Reference
#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>
Include dependency graph for trVersion/Main.cpp:

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")
 

Function Documentation

◆ IncremenetVersion()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

◆ SetVersion()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdateVersion()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ TR_CURRENT_VERSION

const trUtil::RefStr TR_CURRENT_VERSION("True Reality Engine Current version: ")
static

◆ TR_NEW_VERSION

const trUtil::RefStr TR_NEW_VERSION("\True Reality Engine New Version : ")
static

◆ TR_VERSION

const trUtil::RefStr TR_VERSION("True Reality v")
static

Referenced by main().