nnfw/include/nnfwconfig.h

Go to the documentation of this file.
00001 /********************************************************************************
00002  *  Neural Network Framework.                                                   *
00003  *  Copyright (C) 2005-2011 Gianluca Massera <emmegian@yahoo.it>                *
00004  *                                                                              *
00005  *  This program is free software; you can redistribute it and/or modify        *
00006  *  it under the terms of the GNU General Public License as published by        *
00007  *  the Free Software Foundation; either version 2 of the License, or           *
00008  *  (at your option) any later version.                                         *
00009  *                                                                              *
00010  *  This program is distributed in the hope that it will be useful,             *
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of              *
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               *
00013  *  GNU General Public License for more details.                                *
00014  *                                                                              *
00015  *  You should have received a copy of the GNU General Public License           *
00016  *  along with this program; if not, write to the Free Software                 *
00017  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA  *
00018  ********************************************************************************/
00019 
00020 #ifndef NNFWCONFIG_H
00021 #define NNFWCONFIG_H
00022 
00031 // FARSA_NNFW_TEMPLATE is also for classes that are completely inline
00032 #ifdef WIN32
00033     #define _CRT_SECURE_NO_DEPRECATE
00034     #ifdef FARSA_NNFW_BUILDING_DLL
00035         #define FARSA_NNFW_API __declspec(dllexport)
00036         #define FARSA_NNFW_TEMPLATE __declspec(dllexport)
00037     #else
00038         #define FARSA_NNFW_API __declspec(dllimport)
00039         #define FARSA_NNFW_TEMPLATE
00040     #endif
00041     #define FARSA_NNFW_INTERNAL
00042 #else
00043     #define FARSA_NNFW_API
00044     #define FARSA_NNFW_TEMPLATE
00045     #define FARSA_NNFW_INTERNAL __attribute__ ((visibility ("hidden")))
00046 #endif
00047 
00048 //--- read it as: x.yy.zz where
00049 //---  x  is major version
00050 //---  yy is minor version
00051 //---  zz is patch version
00052 //--- Example: version 2.4.6 is 20406
00053 #define FARSA_NNFW_VERSION 20000
00054 
00055 #include <QList>
00056 #include <QVector>
00057 #include <QMap>
00058 #include <QString>
00059 #include <QDebug>
00060 
00061 #include "vectors.h"
00062 #include "matrices.h"
00063 #include "algebra.h"
00064 
00065 namespace farsa {
00066 
00067 class Updatable;
00069 typedef QList<Updatable*> UpdatableList;
00070 
00071 class Cluster;
00073 typedef QList<Cluster*> ClusterList;
00074 
00075 class Linker;
00077 typedef QList<Linker*> LinkerList;
00078 
00079 extern bool FARSA_NNFW_API initNNFWLib();
00080 static const bool nnfwLibInitializer = initNNFWLib();
00081 
00082 } // end namespace farsa
00083 
00084 #endif