Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

rtmain.h File Reference

Implements main functions for all supported systems. More...

#include "rtsystem.h"
#include "rtstring.h"
#include "rtcollect.h"
#include "rtfile.h"

Go to the source code of this file.

Functions

int rtMain (const lrt::Array< lrt::String > &args)
 The main function for libRT users. More...

int main (int argn, char **argv)
 LibRT's implementation of the stdlib main function. More...


Detailed Description

Implements main functions for all supported systems.

This include file should be included by, and only by, your application's main cpp file. Unlike every other libRT header file, main.h includes system include files. That means that you should not use the using namespace lrt; directive in your application's main cpp file, as you can never know what will be in the top namespace for other systems.


Function Documentation

int main (  int    argn,
char **    argv
) 
 

LibRT's implementation of the stdlib main function.

This method basically just calls the user main function rtMain(), which should be implemented instead by library users.

int rtMain (  const lrt::Array< lrt::String > &    args ) 
 

The main function for libRT users.

Every application using libRT should implement this function, rather than the system-dependent one.

Parameters:
args  The application's command line arguments. Note that they do not include the executable name.
Returns:
The application's return code.
See also:
lrt::File::getExecutableFile()


This is the RoboTour API documentation version 0.1 • Copyright (C) by Florian Fischer