CLAM-Development
1.4.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
Data
BasicProcessing
SpecTypeFlags.hxx
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2004 MUSIC TECHNOLOGY GROUP (MTG)
3
* UNIVERSITAT POMPEU FABRA
4
*
5
*
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
*
20
*/
21
22
#ifndef __SpecTypeFlags__
23
#define __SpecTypeFlags__
24
25
#include "
Flags.hxx
"
26
27
namespace
CLAM
28
{
29
42
struct
SpecTypeFlags
:
public
Flags
<4>
43
{
44
public
:
45
static
tFlagValue
sFlagValues
[];
46
static
tValue
sDefault
;
47
virtual
Component
*
Species
()
const
{
48
return
new
SpecTypeFlags
();
49
}
50
typedef
enum
{
51
eComplex
=0,
52
ePolar
=1,
53
eMagPhase
=2,
54
eMagPhaseBPF
=3
55
}
tFlags
;
56
// Constructors
57
SpecTypeFlags
() :
58
Flags
<4>(
sFlagValues
),
59
bComplex
(operator[](
eComplex
)),
60
bPolar
(operator[](
ePolar
)),
61
bMagPhase
(operator[](
eMagPhase
)),
62
bMagPhaseBPF
(operator[](
eMagPhaseBPF
))
63
{
64
bComplex
= 0;
65
bPolar
= 0;
66
bMagPhase
= 1;
67
bMagPhaseBPF
= 0;
68
}
69
70
71
SpecTypeFlags
(
const
SpecTypeFlags
&t) :
72
Flags
<4>(
sFlagValues
,t),
73
bComplex
(operator[](
eComplex
)),
74
bPolar
(operator[](
ePolar
)),
75
bMagPhase
(operator[](
eMagPhase
)),
76
bMagPhaseBPF
(operator[](
eMagPhaseBPF
))
77
{};
78
79
/*
80
template <typename T1, typename T2> SpecTypeFlags (const T1 &t1,const T2 &t2) :
81
Flags<4>(sFlagValues,t1,t2),
82
bComplex(operator[](eComplex)),
83
bPolar(operator[](ePolar)),
84
bMagPhase(operator[](eMagPhase)),
85
bMagPhaseBPF(operator[](eMagPhaseBPF))
86
{};
87
*/
88
89
reference
bComplex
;
90
reference
bPolar
;
91
reference
bMagPhase
;
92
reference
bMagPhaseBPF
;
93
94
};
95
96
}
97
98
#endif
99
Generated by
1.8.1