itom 1.4.0
|
00001 /* ******************************************************************** 00002 itom software 00003 URL: http://www.uni-stuttgart.de/ito 00004 Copyright (C) 2013, Institut für Technische Optik (ITO), 00005 Universität Stuttgart, Germany 00006 00007 This file is part of itom. 00008 00009 itom is free software; you can redistribute it and/or modify it 00010 under the terms of the GNU Library General Public Licence as published by 00011 the Free Software Foundation; either version 2 of the Licence, or (at 00012 your option) any later version. 00013 00014 itom is distributed in the hope that it will be useful, but 00015 WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library 00017 General Public Licence for more details. 00018 00019 You should have received a copy of the GNU Library General Public License 00020 along with itom. If not, see <http://www.gnu.org/licenses/>. 00021 *********************************************************************** */ 00022 00023 #ifndef GLOBAL_H 00024 #define GLOBAL_H 00025 00027 //#include <vector> 00028 //#include <map> 00029 //#include <deque> 00030 //#include <queue> 00031 //#include <algorithm> 00032 00033 #include "../common/param.h" 00034 #include "common/sharedStructures.h" 00035 00036 #include <qmap.h> 00037 #include <qlist.h> 00038 #include <qvector.h> 00039 #include <qstring.h> 00040 #include <qsharedpointer.h> 00041 00042 /* definition and macros */ 00043 #define ITOM_VERSION_MAJOR 0x01 00044 #define ITOM_VERSION_MINOR 0x04 00045 #define ITOM_VERSION_PATCH 0x00 00046 #define ITOM_VERSION CREATEVERSION(ITOM_VERSION_MAJOR,ITOM_VERSION_MINOR,ITOM_VERSION_PATCH) //ITOM_VERSION is (major << 16) + (minor << 8) + patch 00047 #define ITOM_VERSION_STR "1.4.0" 00048 00049 #ifdef USEPCL 00050 #define ITOM_POINTCLOUDLIBRARY 1 00051 #else 00052 #define ITOM_POINTCLOUDLIBRARY 0 00053 #endif 00054 00055 #ifdef USEPYMATLAB 00056 #define ITOM_PYTHONMATLAB 1 00057 #else 00058 #define ITOM_PYTHONMATLAB 0 00059 #endif 00060 00061 #define DELETE_AND_SET_NULL(pointer) if(pointer != NULL) { delete pointer; pointer = NULL;}; 00062 #define DELETE_AND_SET_NULL_ARRAY(pointer) if(pointer != NULL) { delete[] pointer; pointer = NULL;}; 00063 00064 /* global variables (avoid) */ 00065 typedef QMap<QString,QString> StringMap; 00066 typedef QList<int> IntList; 00067 typedef QVector<int> IntVector; 00068 typedef QSharedPointer<ito::Param> SharedParamPointer; 00069 typedef QVector<ito::Param> ParamVector; 00070 typedef QSharedPointer<ito::ParamBase> SharedParamBasePointer; 00071 typedef QVector<SharedParamBasePointer> SharedParamBasePointerVector; 00072 typedef QVector<ito::Param> ParamBaseVector; 00073 00074 00075 #endif