Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
IVT
src
gui
Cocoa
CocoaApplicationHandler.cpp
Go to the documentation of this file.
1
// ****************************************************************************
2
// Filename: CocoaApplicationHandler.cpp
3
// Author: Florian Hecht
4
// Date: 2008
5
// ****************************************************************************
6
7
8
// ****************************************************************************
9
// Includes
10
// ****************************************************************************
11
12
#include "
CocoaApplicationHandler.h
"
13
14
#include <stdio.h>
15
16
17
// ****************************************************************************
18
// Global variables
19
// ****************************************************************************
20
21
const
char
*
app_name
=
"IVT_APPLICATION"
;
22
23
extern
"C"
24
{
25
bool
CocoaInitApplication
(
void
);
26
bool
CocoaProcessEventsAndGetExit
(
void
);
27
void
CocoaShutdownApplication
(
void
);
28
};
29
30
31
// ****************************************************************************
32
// Constructor / Destructor
33
// ****************************************************************************
34
35
CCocoaApplicationHandler::CCocoaApplicationHandler
()
36
{
37
m_bCocoaInitialized
=
CocoaInitApplication
();
38
if
(!
m_bCocoaInitialized
)
39
printf(
"error: couldn't initialize the CocoaApplicationHandler\n"
);
40
}
41
42
CCocoaApplicationHandler::~CCocoaApplicationHandler
()
43
{
44
if
(
m_bCocoaInitialized
)
45
CocoaShutdownApplication
();
46
}
47
48
49
// ****************************************************************************
50
// Methods
51
// ****************************************************************************
52
53
bool
CCocoaApplicationHandler::ProcessEventsAndGetExit
()
54
{
55
return
CocoaProcessEventsAndGetExit
();
56
}
57
58
void
CCocoaApplicationHandler::Reset
()
59
{
60
// TODO
61
}
CCocoaApplicationHandler::~CCocoaApplicationHandler
~CCocoaApplicationHandler()
Definition:
CocoaApplicationHandler.cpp:42
CCocoaApplicationHandler::CCocoaApplicationHandler
CCocoaApplicationHandler()
Definition:
CocoaApplicationHandler.cpp:35
app_name
const char * app_name
Definition:
CocoaApplicationHandler.cpp:21
CCocoaApplicationHandler::m_bCocoaInitialized
bool m_bCocoaInitialized
Definition:
CocoaApplicationHandler.h:36
CCocoaApplicationHandler::Reset
void Reset()
Definition:
CocoaApplicationHandler.cpp:58
CocoaInitApplication
bool CocoaInitApplication(void)
CocoaShutdownApplication
void CocoaShutdownApplication(void)
CocoaApplicationHandler.h
CCocoaApplicationHandler::ProcessEventsAndGetExit
bool ProcessEventsAndGetExit()
Definition:
CocoaApplicationHandler.cpp:53
CocoaProcessEventsAndGetExit
bool CocoaProcessEventsAndGetExit(void)
asr_ivt
Author(s): Allgeyer Tobias, Hutmacher Robin, Kleinert Daniel, Meißner Pascal, Scholz Jonas, Stöckle Patrick
autogenerated on Mon Dec 2 2019 03:47:27