Documentation of UrbanFireXDT
Documentation of UrbanFireXDT
Loading...
Searching...
No Matches
Macros | Functions
main.cpp File Reference
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <chrono>
#include <limits>
#include <cstdio>
#include <boost/program_options.hpp>
#include "global.h"
#include "cache_helper.hpp"
#include "components.h"
#include "units.h"
#include "output.h"
#include "setup_and_dataloading.h"
#include "simulation_logic.h"
#include "status_output.hpp"
#include "vehicles.h"
#include "worker_threads.hpp"
Include dependency graph for main.cpp:

Macros

#define BOOST_BIND_GLOBAL_PLACEHOLDERS
 

Functions

int main (int argc, char *argv[])
 Entry point of the simulation.
 

Macro Definition Documentation

◆ BOOST_BIND_GLOBAL_PLACEHOLDERS

#define BOOST_BIND_GLOBAL_PLACEHOLDERS

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Entry point of the simulation.

This function initializes and runs the simulation based on the provided command line parameters. Finally, the storage is cleaned up again.

Parameters
argcNumber of command line arguments.
argvArray of command line argument strings.
Returns
Return code indicating the execution result of the program:
  • 0 Normal execution, no errors occurred
  • 1 Wrong parameters
  • 2 Required file not found / error during database connections
  • 3 Errors during the simulation
  • 4 Erroneous input files
  • 5 No simulation executed (e.g., help displayed)