Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals

borqueror.cpp File Reference

#include "borqueror.h"

Include dependency graph for borqueror.cpp:

Include dependency graph

Go to the source code of this file.

Functions

const int TofMain (const int argc, char **argv)


Function Documentation

const int TofMain const int  argc,
char **  argv
 

Definition at line 10 of file borqueror.cpp.

References _mainApp_, Ars::ArsApplication::Exec(), Ars::ArsApplication::ExitCode(), and Ars::ArsApplication::Init().

Referenced by main().

00011 {                                                                                                                       
00012 #ifdef WIN32                                                                                            
00013 #       ifdef _DEBUG
00014         // Get current flag
00015         int tmpFlag = _CrtSetDbgFlag( _CRTDBG_REPORT_FLAG );
00016         // Turn on leak-checking bit
00017         tmpFlag |= _CRTDBG_LEAK_CHECK_DF;
00018         // Turn off CRT block checking bit
00019         tmpFlag &= ~_CRTDBG_CHECK_CRT_DF;
00020         // Set flag to the new value
00021         _CrtSetDbgFlag( tmpFlag );
00022 #       endif
00023 #endif                                                                                                          
00024         extern ArsApplication *_mainApp_;                                               
00025         
00026         _mainApp_ = (ArsApplication *)new Borqueror( argc , argv );             
00027         _mainApp_->Init();                                                                              
00028         _mainApp_->Exec();                                                                              
00029         int ans = _mainApp_->ExitCode();                                                
00030         delete _mainApp_;                                                                               
00031         
00032         MessageServer   *ins = &MessageServer::Instance();              
00033         if( ins )                                                                                               
00034                 delete ins;                                                                                     
00035         ins = 0;                                                                                                
00036 
00037         return  ans;                                                                                    
00038 }


Generated on Fri Dec 5 04:06:03 2003 for Borqueror by doxygen 1.3.3