#include <qseexafsoperator.h>


Public Member Functions | |
| QseEXAFSOperator (QseDataSet *inData, QseDataSet *outData, const QString &name, QObject *parent=0) | |
Protected Types | |
| enum | QseScanRole { UnspecifiedScanRole = -1, ScanNotUsedRole, ScanUsedRole } |
| enum | QseColumnRole { UnspecifiedRole = -1, NotUsedRole, DetectorRole, NormalizationRole, EnergyRole, SecondsRole } |
Protected Member Functions | |
| bool | matchesEnergyColumn (const QseColumn *col) |
| bool | matchesDetectorColumn (const QseColumn *col) |
| bool | matchesNormalizationColumn (const QseColumn *col) |
| bool | matchesSecondsColumn (const QseColumn *col) |
Protected Attributes | |
| QseDataSet * | m_InputData |
| QseDataSet * | m_OutputData |
| QseRegExpParameter | m_EnergyPattern |
| QseRegExpParameter | m_DetectorPattern |
| QseRegExpParameter | m_NormalizationPattern |
| QseRegExpParameter | m_SecondsPattern |
| QHash< const QseScan *, QseScanRole > | m_ScanExceptions |
| QHash< const QseColumn *, QseColumnRole > | m_Exceptions |
Definition at line 12 of file qseexafsoperator.h.
enum QseEXAFSOperator::QseScanRole [protected] |
Definition at line 37 of file qseexafsoperator.h.
00037 { 00038 UnspecifiedScanRole = -1, 00039 ScanNotUsedRole, 00040 ScanUsedRole } QseScanRole;
enum QseEXAFSOperator::QseColumnRole [protected] |
Definition at line 44 of file qseexafsoperator.h.
00044 { 00045 UnspecifiedRole = -1, 00046 NotUsedRole, 00047 DetectorRole, 00048 NormalizationRole, 00049 EnergyRole, 00050 SecondsRole } QseColumnRole;
| QseEXAFSOperator::QseEXAFSOperator | ( | QseDataSet * | inData, | |
| QseDataSet * | outData, | |||
| const QString & | name, | |||
| QObject * | parent = 0 | |||
| ) |
Definition at line 6 of file qseexafsoperator.cpp.
00007 : QseOperator(name, parent), 00008 m_InputData(inData), 00009 m_OutputData(outData), 00010 m_EnergyPattern(this, "energypattern",NULL), 00011 m_DetectorPattern(this, "detectorpattern",NULL), 00012 m_NormalizationPattern(this, "normalizationpattern",NULL), 00013 m_SecondsPattern(this, "secondspattern",NULL) 00014 { 00015 }
| bool QseEXAFSOperator::matchesEnergyColumn | ( | const QseColumn * | col | ) | [protected] |
Definition at line 17 of file qseexafsoperator.cpp.
References EnergyRole, m_EnergyPattern, m_Exceptions, QseColumn::name(), and UnspecifiedRole.
Referenced by QseNormalizer::normalizeScan().
00018 { 00019 if (c) { 00020 QseColumnRole r = UnspecifiedRole; 00021 00022 if (m_Exceptions.contains(c)) { 00023 r = m_Exceptions[c]; 00024 } 00025 00026 if (r == UnspecifiedRole) { 00027 return m_EnergyPattern.toRegExp().exactMatch(c->name()); 00028 } else { 00029 return r == EnergyRole; 00030 } 00031 } else { 00032 return false; 00033 } 00034 }

| bool QseEXAFSOperator::matchesDetectorColumn | ( | const QseColumn * | col | ) | [protected] |
Definition at line 36 of file qseexafsoperator.cpp.
References DetectorRole, m_DetectorPattern, m_Exceptions, QseColumn::name(), and UnspecifiedRole.
Referenced by QseNormalizer::normalizeScan().
00037 { 00038 if (c) { 00039 QseColumnRole r = UnspecifiedRole; 00040 00041 if (m_Exceptions.contains(c)) { 00042 r = m_Exceptions[c]; 00043 } 00044 00045 if (r == UnspecifiedRole) { 00046 return m_DetectorPattern.toRegExp().exactMatch(c->name()); 00047 } else { 00048 return r == DetectorRole; 00049 } 00050 } else { 00051 return false; 00052 } 00053 }

| bool QseEXAFSOperator::matchesNormalizationColumn | ( | const QseColumn * | col | ) | [protected] |
Definition at line 55 of file qseexafsoperator.cpp.
References m_Exceptions, m_NormalizationPattern, QseColumn::name(), NormalizationRole, and UnspecifiedRole.
Referenced by QseNormalizer::normalizeScan().
00056 { 00057 if (c) { 00058 QseColumnRole r = UnspecifiedRole; 00059 00060 if (m_Exceptions.contains(c)) { 00061 r = m_Exceptions[c]; 00062 } 00063 00064 if (r == UnspecifiedRole) { 00065 return m_NormalizationPattern.toRegExp().exactMatch(c->name()); 00066 } else { 00067 return r == NormalizationRole; 00068 } 00069 } else { 00070 return false; 00071 } 00072 }

| bool QseEXAFSOperator::matchesSecondsColumn | ( | const QseColumn * | col | ) | [protected] |
Definition at line 74 of file qseexafsoperator.cpp.
References m_Exceptions, m_SecondsPattern, QseColumn::name(), SecondsRole, and UnspecifiedRole.
Referenced by QseNormalizer::normalizeScan().
00075 { 00076 if (c) { 00077 QseColumnRole r = UnspecifiedRole; 00078 00079 if (m_Exceptions.contains(c)) { 00080 r = m_Exceptions[c]; 00081 } 00082 00083 if (r == UnspecifiedRole) { 00084 return m_SecondsPattern.toRegExp().exactMatch(c->name()); 00085 } else { 00086 return r == SecondsRole; 00087 } 00088 } else { 00089 return false; 00090 } 00091 }

QseDataSet* QseEXAFSOperator::m_InputData [protected] |
Definition at line 29 of file qseexafsoperator.h.
Referenced by QseNormalizer::exec(), QseEdgeAligner::exec(), QseDataDeglitcher::exec(), QseNormalizer::matchesScan(), and QseNormalizer::normalizeScan().
QseDataSet* QseEXAFSOperator::m_OutputData [protected] |
Definition at line 30 of file qseexafsoperator.h.
Referenced by QseNormalizer::exec(), QseEdgeAligner::exec(), and QseDataDeglitcher::exec().
QseRegExpParameter QseEXAFSOperator::m_EnergyPattern [protected] |
QseRegExpParameter QseEXAFSOperator::m_SecondsPattern [protected] |
QHash<const QseScan*, QseScanRole> QseEXAFSOperator::m_ScanExceptions [protected] |
QHash<const QseColumn*, QseColumnRole> QseEXAFSOperator::m_Exceptions [protected] |
Definition at line 52 of file qseexafsoperator.h.
Referenced by matchesDetectorColumn(), matchesEnergyColumn(), matchesNormalizationColumn(), and matchesSecondsColumn().
1.5.5