CocoaApplicationHandler.cpp
Go to the documentation of this file.
00001 // ****************************************************************************
00002 // Filename:  CocoaApplicationHandler.cpp
00003 // Author:    Florian Hecht
00004 // Date:      2008
00005 // ****************************************************************************
00006 
00007 
00008 // ****************************************************************************
00009 // Includes
00010 // ****************************************************************************
00011 
00012 #include "CocoaApplicationHandler.h"
00013 
00014 #include <stdio.h>
00015 
00016 
00017 // ****************************************************************************
00018 // Global variables
00019 // ****************************************************************************
00020 
00021 const char *app_name = "IVT_APPLICATION";
00022 
00023 extern "C"
00024 {
00025         bool CocoaInitApplication(void);
00026         bool CocoaProcessEventsAndGetExit(void);
00027         void CocoaShutdownApplication(void);
00028 };
00029 
00030 
00031 // ****************************************************************************
00032 // Constructor / Destructor
00033 // ****************************************************************************
00034 
00035 CCocoaApplicationHandler::CCocoaApplicationHandler()
00036 {
00037         m_bCocoaInitialized = CocoaInitApplication();
00038         if (!m_bCocoaInitialized)
00039                 printf("error: couldn't initialize the CocoaApplicationHandler\n");
00040 }
00041 
00042 CCocoaApplicationHandler::~CCocoaApplicationHandler()
00043 {
00044         if (m_bCocoaInitialized)
00045                 CocoaShutdownApplication();
00046 }
00047 
00048 
00049 // ****************************************************************************
00050 // Methods
00051 // ****************************************************************************
00052 
00053 bool CCocoaApplicationHandler::ProcessEventsAndGetExit()
00054 {
00055         return CocoaProcessEventsAndGetExit();
00056 }
00057 
00058 void CCocoaApplicationHandler::Reset()
00059 {
00060         // TODO
00061 }


asr_ivt
Author(s): Allgeyer Tobias, Hutmacher Robin, Kleinert Daniel, Meißner Pascal, Scholz Jonas, Stöckle Patrick
autogenerated on Thu Jun 6 2019 21:46:57