00001 #ifndef _SDIFInConfig_ 00002 #define _SDIFInConfig_ 00003 00004 #include "IndexArray.hxx" 00005 #include "Processing.hxx" 00006 #include "Err.hxx" 00007 #include "Filename.hxx" 00008 00009 namespace CLAM 00010 { 00011 00012 class InSDIFFilename : public InFilename 00013 { 00014 public: 00015 InSDIFFilename(const std::string & s="") : InFilename(s) {} 00016 InSDIFFilename(const char * s) : InFilename(s) {} 00017 virtual const char * TypeFamily() const { return "SDIF"; } 00018 virtual const Filter * Filters() const 00019 { 00020 static const Filter filters[] = { 00021 {"SDIF", "*.sdif"}, 00022 {"SDIF", "*.sdf"}, 00023 {0,0} 00024 }; 00025 return filters; 00026 } 00027 }; 00028 CLAM_TYPEINFOGROUP(BasicCTypeInfo, InSDIFFilename); 00029 00030 class SDIFInConfig:public ProcessingConfig 00031 { 00032 public: 00033 00034 DYNAMIC_TYPE_USING_INTERFACE (SDIFInConfig, 9, ProcessingConfig); 00035 DYN_ATTRIBUTE(0,public, double, SpectralRange); 00036 DYN_ATTRIBUTE(1,public, TIndex, MaxNumPeaks); 00037 DYN_ATTRIBUTE(2,public, bool,EnableResidual); 00038 DYN_ATTRIBUTE(3,public, bool,EnablePeakArray); 00039 DYN_ATTRIBUTE(4,public, bool,EnableFundFreq); 00040 DYN_ATTRIBUTE(5,public, InSDIFFilename, FileName); 00044 DYN_ATTRIBUTE(6,public,bool,RelativePeakIndices); 00045 DYN_ATTRIBUTE(7,public,int,NumberOfFramesToPreload); 00046 DYN_ATTRIBUTE(8,public,int,NumberOfFramesToLoad); 00047 00048 void DefaultInit(); 00049 }; 00050 00051 } 00052 00053 #endif