1 |
|
|
/* |
2 |
|
|
* Copyright 2010, |
3 |
|
|
* François Bleibel, |
4 |
|
|
* Olivier Stasse, |
5 |
|
|
* |
6 |
|
|
* CNRS/AIST |
7 |
|
|
* |
8 |
|
|
*/ |
9 |
|
|
|
10 |
|
|
#ifndef __SOT_FIRFILTER_IMPL_HH__ |
11 |
|
|
#define __SOT_FIRFILTER_IMPL_HH__ |
12 |
|
|
|
13 |
|
|
#include <sot/core/fir-filter.hh> |
14 |
|
|
|
15 |
|
|
/* --------------------------------------------------------------------- */ |
16 |
|
|
/* --- API ------------------------------------------------------------- */ |
17 |
|
|
/* --------------------------------------------------------------------- */ |
18 |
|
|
|
19 |
|
|
#if defined(WIN32) |
20 |
|
|
#if defined(fir_filter_EXPORTS) |
21 |
|
|
#define FIL_FILTER_EXPORT __declspec(dllexport) |
22 |
|
|
#else |
23 |
|
|
#define FIL_FILTER_EXPORT __declspec(dllimport) |
24 |
|
|
#endif |
25 |
|
|
#else |
26 |
|
|
#define FIL_FILTER_EXPORT |
27 |
|
|
#endif |
28 |
|
|
|
29 |
|
|
#ifdef WIN32 |
30 |
|
|
#define DECLARE_SPECIFICATION(className, sotSigType, sotCoefType) \ |
31 |
|
|
class FIL_FILTER_EXPORT className \ |
32 |
|
|
: public FIRFilter<sotSigType, sotCoefType> { \ |
33 |
|
|
public: \ |
34 |
|
|
className(const std::string &name); \ |
35 |
|
|
}; |
36 |
|
|
#else |
37 |
|
|
#define DECLARE_SPECIFICATION(className, sotSigType, sotCoefType) \ |
38 |
|
|
typedef FIRFilter<sotSigType, sotCoefType> className; |
39 |
|
|
#endif // WIN32 |
40 |
|
|
|
41 |
|
|
namespace dynamicgraph { |
42 |
|
|
namespace sot { |
43 |
|
|
|
44 |
|
|
DECLARE_SPECIFICATION(FIRFilterDoubleDouble, double, double) |
45 |
|
|
DECLARE_SPECIFICATION(FIRFilterVectorDouble, Vector, double) |
46 |
|
|
DECLARE_SPECIFICATION(FIRFilterVectorMatrix, Vector, Matrix) |
47 |
|
|
|
48 |
|
|
} // namespace sot |
49 |
|
|
} // namespace dynamicgraph |
50 |
|
|
#endif |