WindowGeneratorConfig.hxx
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef _WindowGeneratorConfig_
00023 #define _WindowGeneratorConfig_
00024 #include <typeinfo>
00025
00026 #include "ProcessingConfig.hxx"
00027 #include "Enum.hxx"
00028 #include "GlobalEnums.hxx"
00029 #include "DataTypes.hxx"
00030
00031 namespace CLAM {
00032
00033 class Component;
00034
00035 class EWindowNormalize : public Enum {
00036 public:
00037 EWindowNormalize() : Enum(ValueTable(), eAnalysis) {}
00038 EWindowNormalize(tValue v) : Enum(ValueTable(), v) {};
00039 EWindowNormalize(std::string s) : Enum(ValueTable(), s) {};
00040
00041 typedef enum {
00042 eNone,
00043 eAnalysis,
00044 eEnergy,
00045 eMax
00046 } tEnum;
00047
00048 virtual Component* Species() const
00049 {
00050 return new EWindowNormalize(eAnalysis);
00051 };
00052 static tEnumValue * ValueTable()
00053 {
00054 static tEnumValue sEnumValues[] = {
00055 {eNone,"NoNormalization"},
00056 {eAnalysis,"NormalizationForAnalysis"},
00057 {eEnergy,"NormalizationForConstantEnergy"},
00058 {eMax,"NormalizationForMaximizingMagnitude"},
00059 {0,NULL}
00060 };
00061 return sEnumValues;
00062 }
00063 };
00064
00065 class WindowGeneratorConfig: public ProcessingConfig
00066 {
00067 public:
00068 DYNAMIC_TYPE_USING_INTERFACE (WindowGeneratorConfig, 6,ProcessingConfig);
00069 DYN_ATTRIBUTE (0, public, EWindowType, Type);
00070 DYN_ATTRIBUTE (1, public, TSize, Size);
00071 DYN_ATTRIBUTE (2, public, TSize, MaxSize);
00072 DYN_ATTRIBUTE (3, public, bool, UseTable);
00073 DYN_ATTRIBUTE (4, public, EWindowNormalize, Normalize);
00074 DYN_ATTRIBUTE (5, public, bool, Invert);
00075 public:
00076 void DefaultValues();
00077 ~WindowGeneratorConfig();
00078 protected:
00079 void DefaultInit();
00080
00081 };
00082
00083 }
00084
00085 #endif
00086