CLAM-Development  1.4.0
SDIFInConfig.hxx
Go to the documentation of this file.
1 #ifndef _SDIFInConfig_
2 #define _SDIFInConfig_
3 
4 #include "IndexArray.hxx"
5 #include "Processing.hxx"
6 #include "Err.hxx"
7 #include "Filename.hxx"
8 
9 namespace CLAM
10 {
11 
12 class InSDIFFilename : public InFilename
13 {
14 public:
15  InSDIFFilename(const std::string & s="") : InFilename(s) {}
16  InSDIFFilename(const char * s) : InFilename(s) {}
17  virtual const char * TypeFamily() const { return "SDIF"; }
18  virtual const Filter * Filters() const
19  {
20  static const Filter filters[] = {
21  {"SDIF", "*.sdif"},
22  {"SDIF", "*.sdf"},
23  {0,0}
24  };
25  return filters;
26  }
27 };
28 CLAM_TYPEINFOGROUP(BasicCTypeInfo, InSDIFFilename);
29 
31 {
32 public:
33 
35  DYN_ATTRIBUTE(0,public, double, SpectralRange);
36  DYN_ATTRIBUTE(1,public, TIndex, MaxNumPeaks);
37  DYN_ATTRIBUTE(2,public, bool,EnableResidual);
38  DYN_ATTRIBUTE(3,public, bool,EnablePeakArray);
39  DYN_ATTRIBUTE(4,public, bool,EnableFundFreq);
40  DYN_ATTRIBUTE(5,public, InSDIFFilename, FileName);
44  DYN_ATTRIBUTE(6,public,bool,RelativePeakIndices);
45  DYN_ATTRIBUTE(7,public,int,NumberOfFramesToPreload);
46  DYN_ATTRIBUTE(8,public,int,NumberOfFramesToLoad);
47 
48  void DefaultInit();
49 };
50 
51 }
52 
53 #endif