Stimfit @PACKAGE_VERSION@
Loading...
Searching...
No Matches
core.h
Go to the documentation of this file.
1// This program is free software; you can redistribute it and/or
2// modify it under the terms of the GNU General Public License
3// as published by the Free Software Foundation; either version 2
4// of the License, or (at your option) any later version.
5
6// This program is distributed in the hope that it will be useful,
7// but WITHOUT ANY WARRANTY; without even the implied warranty of
8// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9// GNU General Public License for more details.
10
11// You should have received a copy of the GNU General Public License
12// along with this program; if not, write to the Free Software
13// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14
19
20#ifndef _STFIO_CORE_H_
21#define _STFIO_CORE_H_
22
23#include <cmath>
24#include <cfloat>
25#include <cstddef>
26#include <deque>
27#include <map>
28#include <stdexcept>
29#include <string>
30#include <vector>
31
32#if (__cplusplus < 201103)
33# include <boost/function.hpp>
34#else
35# include <algorithm>
36# include <functional>
37#endif
38
39#ifdef _MSC_VER
40#pragma warning( disable : 4251 )
41#pragma warning( disable : 4996 )
42#endif
43
45#if defined(_WINDOWS) && !defined(__MINGW32__)
46 #ifdef STFIODLL
47 #define StfioDll __declspec( dllexport )
48 #else
49 #define StfioDll __declspec( dllimport )
50 #endif
51#else
52 #define StfioDll
53#endif
54
55typedef std::vector<double > Vector_double;
56typedef std::vector<float > Vector_float;
57
58#ifdef _MSC_VER
59 #ifndef NAN
60 static const unsigned long __nan[2] = {0xffffffff, 0x7fffffff};
61 #define NAN (*(const float *) __nan)
62 #endif
63 #ifndef INFINITY
64 #define INFINITY (DBL_MAX+DBL_MAX)
65 #endif
66 #define snprintf _snprintf
67#endif
68
69#endif
std::vector< float > Vector_float
Definition core.h:56
std::vector< double > Vector_double
Definition core.h:55