Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
x
y
z
+
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
x
y
z
Variables
Enumerations
Enumerator
+
Classes
Class List
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
+
Enumerator
e
t
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
p
q
r
s
t
u
v
w
y
Variables
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
+
Enumerator
e
+
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
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 Feb 28 2022 21:44:00