itom 1.0.14
D:/git-itom/sources/itom/Qitom/global.h
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 <qmutex.h>
00034 #include <qobject.h>
00035 #include "../common/sharedStructures.h"
00036 //#include "organizer/addInManager.h"
00037 
00038 #include <qmap.h>
00039 #include <qlist.h>
00040 #include <qstring.h>
00041 #include <qsharedpointer.h>
00042 
00043 /* definition and macros */
00044 #define ITOM_VERSION_MAJOR  0x01
00045 #define ITOM_VERSION_MINOR  0x00
00046 #define ITOM_VERSION_PATCH  0x0E
00047 #define ITOM_VERSION        CREATEVERSION(ITOM_VERSION_MAJOR,ITOM_VERSION_MINOR,ITOM_VERSION_PATCH) //ITOM_VERSION is (major << 16) + (minor << 8) + patch
00048 #define ITOM_VERSION_STR    "1.0.14"
00049 
00050 #define ITOM_POINTCLOUDLIBRARY 1
00051 #define ITOM_PYTHONMATLAB 0
00052 
00053 #define DELETE_AND_SET_NULL(pointer) if(pointer != NULL) { delete pointer; pointer = NULL;};
00054 #define DELETE_AND_SET_NULL_ARRAY(pointer) if(pointer != NULL) { delete[] pointer; pointer = NULL;};
00055 
00056 /* global variables (avoid) */
00057 typedef QMap<QString,QString> StringMap;
00058 typedef QList<int> IntList;
00059 typedef QVector<int> IntVector;
00060 typedef QSharedPointer<ito::Param> SharedParamPointer;
00061 typedef QVector<ito::Param> ParamVector;
00062 typedef QSharedPointer<ito::ParamBase> SharedParamBasePointer;
00063 typedef QVector<SharedParamBasePointer> SharedParamBasePointerVector;
00064 typedef QVector<ito::Param> ParamBaseVector;
00065 
00066 
00067 #endif
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends