QseEXAFSOperator Class Reference

#include <qseexafsoperator.h>

Inheritance diagram for QseEXAFSOperator:

Inheritance graph
[legend]
Collaboration diagram for QseEXAFSOperator:

Collaboration graph
[legend]

List of all members.

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

QseDataSetm_InputData
QseDataSetm_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


Detailed Description

Definition at line 12 of file qseexafsoperator.h.


Member Enumeration Documentation

Enumerator:
UnspecifiedScanRole 
ScanNotUsedRole 
ScanUsedRole 

Definition at line 37 of file qseexafsoperator.h.

00037                {
00038     UnspecifiedScanRole = -1,
00039     ScanNotUsedRole,
00040     ScanUsedRole } QseScanRole;

Enumerator:
UnspecifiedRole 
NotUsedRole 
DetectorRole 
NormalizationRole 
EnergyRole 
SecondsRole 

Definition at line 44 of file qseexafsoperator.h.

00044                {
00045     UnspecifiedRole = -1,
00046     NotUsedRole,
00047     DetectorRole,
00048     NormalizationRole,
00049     EnergyRole,
00050     SecondsRole } QseColumnRole;


Constructor & Destructor Documentation

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 }


Member Function Documentation

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 }

Here is the call graph for this function:

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 }

Here is the call graph for this function:

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 }

Here is the call graph for this function:

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 }

Here is the call graph for this function:


Member Data Documentation

Definition at line 32 of file qseexafsoperator.h.

Referenced by matchesEnergyColumn().

Definition at line 33 of file qseexafsoperator.h.

Referenced by matchesDetectorColumn().

Definition at line 34 of file qseexafsoperator.h.

Referenced by matchesNormalizationColumn().

Definition at line 35 of file qseexafsoperator.h.

Referenced by matchesSecondsColumn().

Definition at line 42 of file qseexafsoperator.h.

Referenced by QseNormalizer::matchesScan().


The documentation for this class was generated from the following files:

Generated on Fri May 2 16:26:42 2008 for QSE by  doxygen 1.5.5