ObjFW
Public Member Functions | Static Public Member Functions | Protected Attributes | Properties
OFApplication Class Reference

Represents the application as an object. More...

#include <OFApplication.h>

Inheritance diagram for OFApplication:
OFObject <OFObject>

List of all members.

Public Member Functions

void setArgumentCount:andArgumentValues: (int *argc,[andArgumentValues] char **[] argv)
void getArgumentCount:andArgumentValues: (int **argc,[andArgumentValues] char ***[] argv)
OFStringprogramName ()
OFArrayarguments ()
OFDictionaryenvironment ()
id< OFApplicationDelegatedelegate ()
void setDelegate: (id< OFApplicationDelegate > delegate)
void run ()
void terminate ()
void terminateWithStatus: (int status)

Static Public Member Functions

id sharedApplication ()
OFStringprogramName ()
OFArrayarguments ()
OFDictionaryenvironment ()
void terminate ()
void terminateWithStatus: (int status)

Protected Attributes

OFMutableArrayarguments
OFMutableDictionaryenvironment
int * argc
char *** argv

Properties

OFStringprogramName
OFArrayarguments
OFDictionaryenvironment
id< OFApplicationDelegatedelegate

Detailed Description

Represents the application as an object.


Member Function Documentation

OFArray* OFApplication::arguments ( ) [static, virtual]
Returns:
The arguments passed to the application
OFArray* OFApplication::arguments ( ) [virtual]
Returns:
The arguments passed to the application
id <OFApplicationDelegate> OFApplication::delegate ( ) [virtual]
Returns:
The delegate of the application
OFDictionary* OFApplication::environment ( ) [static, virtual]
Returns:
The environment of the application
OFDictionary* OFApplication::environment ( ) [virtual]
Returns:
The environment of the application
void OFApplication::getArgumentCount:andArgumentValues: ( int **  argc,
[andArgumentValues] char ***[]  argv 
) [virtual]

Gets args and argv.o

Parameters:
argcA pointer where a pointer to argc should be stored
argvA pointer where a pointer to argv should be stored
OFString* OFApplication::programName ( ) [static, virtual]
Returns:
The name of the program (argv[0])
OFString* OFApplication::programName ( ) [virtual]
Returns:
The name of the program (argv[0])
void OFApplication::run ( ) [virtual]

Starts the application after everything has been initialized.

void OFApplication::setArgumentCount:andArgumentValues: ( int *  argc,
[andArgumentValues] char **[]  argv 
) [virtual]

Sets argc and argv.

You should not call this directly! Use of_application_main instead!

Parameters:
argcThe number of arguments
argvThe argument values
void OFApplication::setDelegate: ( id <OFApplicationDelegate delegate) [virtual]

Sets the delegate of the application.

Parameters:
delegateThe delegate for the application
id OFApplication::sharedApplication ( ) [static, virtual]
Returns:
The only OFApplication instance in the application
void OFApplication::terminate ( ) [static, virtual]

Terminates the application.

void OFApplication::terminate ( ) [virtual]

Terminates the application.

void OFApplication::terminateWithStatus: ( int  status) [static, virtual]

Terminates the application with the specified status.

Parameters:
statusThe status with which the application will terminate
void OFApplication::terminateWithStatus: ( int  status) [virtual]

Terminates the application with the specified status.

Parameters:
statusThe status with which the application will terminate

The documentation for this class was generated from the following files:
 All Classes Functions Variables