- Main Page
- Namespaces
- Classes
- Files
- Directories
- Related Pages

- File List
- File Members

# ECore.h

Go to the documentation of this file.

    00001 #ifndef __ECore__
    00002 #define __ECore__
    00003
    00175 //  ===========================================================================
    00176
    00177 #include "Basics/Basics.h"
    00178 #include "Collections/Collections.h"
    00179 #include "Exceptions/Exceptions.h"
    00180 #include "Host/Host.h"
    00181 #include "IO/IO.h"
    00182 #include "MathTools/MathTools.h"
    00183 #include "Testing/Testing.h"
    00184 #include "Threading/Threading.h"
    00185
    00186 //  ===========================================================================
    00187
    00188 #ifndef EXPONENT_COMPACT_BUILD
    00189     using namespace Exponent;
    00190 #endif
    00191
    00192 //  ===========================================================================
    00193
    00194 #ifndef __API_INITIALISATION__
    00195 #define __API_INITIALISATION__
    00196
    00197     #ifdef WIN32
    00198
    00212         #define START_EXPONENT_API(hInstance, AppDeveloper, AppName, AppDescription, AppVersion, AppRegistry, AppCopyright)\
    00213             CApplication::setApplicationInstance(hInstance);\
    00214             CApplication::setApplicationModuleHandle(hInstance);\
    00215             CApplication::setApplicationDeveloper(AppDeveloper);\
    00216             CApplication::setApplicationName(AppName);\
    00217             CApplication::setApplicationDescription(AppDescription);\
    00218             CApplication::setApplicationVersion(AppVersion);\
    00219             CApplication::setApplicationRegistry(AppRegistry);\
    00220             CApplication::setApplicationCopyrightInformation(AppCopyright);\
    00221             CApplication::setApplicationInstallPathFromApplicationHandle();\
    00222             CFPUInformation::initialiseCPUInformation();\
    00223             CFont::createDefaultFont();
    00224
    00225     #else
    00226
    00238         #define START_EXPONENT_API(AppDeveloper, AppName, AppDescription, AppVersion, AppRegistry, AppCopyright)\
    00239             CApplication::setApplicationModuleHandle(AppRegistry);\
    00240             CApplication::setApplicationDeveloper(AppDeveloper);\
    00241             CApplication::setApplicationName(AppName);\
    00242             CApplication::setApplicationDescription(AppDescription);\
    00243             CApplication::setApplicationVersion(AppVersion);\
    00244             CApplication::setApplicationRegistry(AppRegistry);\
    00245             CApplication::setApplicationCopyrightInformation(AppCopyright);\
    00246             CApplication::setApplicationInstallPathFromApplicationHandle();\
    00247             CFPUInformation::initialiseCPUInformation();\
    00248             CFont::createDefaultFont();
    00249
    00250     #endif      // #ifdef WIN32
    00251
    00262     #define START_EXPONENT_API_CLI(AppDeveloper, AppName, AppDescription, AppVersion, AppCopyright)\
    00263         CApplication::setApplicationDeveloper(AppDeveloper);\
    00264         CApplication::setApplicationName(AppName);\
    00265         CApplication::setApplicationDescription(AppDescription);\
    00266         CApplication::setApplicationVersion(AppVersion);\
    00267         CApplication::setApplicationCopyrightInformation(AppCopyright);
    00268
    00275     #define STOP_EXPONENT_API(ClassLogPath)\
    00276         CFont::destroyDefaultFont();\
    00277         CImageManager::clearImageLibrary();\
    00278         CClass::deleteClassManager(ClassLogPath);
    00279
    00285     #define STOP_EXPONENT_API_NO_LOG\
    00286         CFont::destroyDefaultFont();\
    00287         CImageManager::clearImageLibrary();\
    00288         CClass::deleteClassManager(NULL);
    00289
    00293     #define STOP_EXPONENT_API_ECORE_ONLY(ClassLogPath) CClass::deleteClassManager(ClassLogPath);
    00294
    00298     #define STOP_EXPONENT_API_NO_LOG_ECORE_ONLY CClass::deleteClassManager(NULL);
    00299 #endif      // __API_INITIALISATION__
    00300
    00301 #endif  // End of ECore.h