R-Type  2
Doom but in better
Loading...
Searching...
No Matches
RealMain.hpp File Reference

This is the file in charge of containing the main class and other ressources at the root of the program. More...

#include <any>
#include <map>
#include <tuple>
#include <memory>
#include <string>
#include <cctype>
#include <vector>
#include <optional>
#include <iostream>
#include <algorithm>
#include <typeindex>
#include <exception>
#include <stdexcept>
#include <functional>
#include <unordered_map>
#include <toml++/toml.hpp>
#include "Log.hpp"
#include "LogMacros.hpp"
#include "Utilities.hpp"
#include "Constants.hpp"
#include "TOMLLoader.hpp"
#include "GUI/Network.hpp"
#include "ActiveScreen.hpp"
#include "SoundLib.hpp"
#include "GUI/ECS/Demo.hpp"
#include "GUI/ECS/Online.hpp"
#include "CustomExceptions.hpp"
#include "GUI/ECS/Systems.hpp"
#include "GUI/ECS/EntityNode.hpp"
#include "GUI/ECS/Components.hpp"
#include "GUI/ECS/Systems/Colour.hpp"
#include "GUI/ECS/Systems/Window.hpp"
#include "GUI/ECS/Systems/EventManager.hpp"
Include dependency graph for RealMain.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  Main
 The Main class is the main class of the program. More...
 

Functions

int RealMain (int argc, char **argv)
 The main function for initializing and running the application.
 
void DisplayHelp (const std::string binName)
 The main function of the help display.
 
void DisplayVersion (bool helpMode=false)
 Displays version information for the program.
 

Detailed Description

This is the file in charge of containing the main class and other ressources at the root of the program.

Definition in file RealMain.hpp.

Function Documentation

◆ DisplayHelp()

void DisplayHelp ( const std::string binName)

The main function of the help display.

Parameters
binNameName of the executable binary.

Definition at line 101 of file HelpFunctions.cpp.

◆ DisplayVersion()

void DisplayVersion ( bool helpMode = false)

Displays version information for the program.

Parameters
helpModeIf true, will prepend a 'VERSION\:\n' string to the output (default: false).

Definition at line 88 of file HelpFunctions.cpp.

◆ RealMain()

int RealMain ( int argc,
char ** argv )

The main function for initializing and running the application.

This function serves as the entry point for the R-Type GUI application. It initializes the main application object, processes command-line arguments, and starts the application's execution loop. Exceptions are caught and logged, and an error code is returned if any issues occur.

Parameters
argcThe number of command-line arguments.
argvThe array of command-line arguments as C-style strings.
Returns
An integer status code: MY_SUCCESS (0) on successful execution, MY_ERROR (non-zero) on failure.

Definition at line 277 of file RealMain.cpp.