Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

clSpectrum Class Reference

Spectrum server. More...

#include <Spectrum.hh>

Collaboration diagram for clSpectrum:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 clSpectrum (int, int)
 ~clSpectrum ()
int Main ()
void Stop ()

Private Member Functions

bool GetCfg ()
bool GetRq ()
bool ConnectStream ()
bool Init ()
void CreateFilter ()
void ProcessLoop ()
bool GetData ()
bool PullData (GDT *, long)

Private Attributes

bool bRun
bool bReverseOrder
int iFilterType
int iInDataSize
long lInDataCount
long lFilterSize
long lDecimation
long lOldDataCount
long lNewDataCount
long lSpectPoints
long lSpectLen
long lResSize
float fLowCorner
float fHighCorner
char cpStreamSocket [_POSIX_PATH_MAX+1]
stSpectReq sReq
stSpectRes sResHdr
stRawDataFirst sRawHdr
clDSPAlloc InData
clDSPAlloc Window
clDSPAlloc SpectIn
clDSPAlloc SpectOut
clDSPAlloc ResMsg
clCfgFile Cfg
clDSPOp DSP
clDSPOp FFT
clHankel Hankel
clReBuffer ReBuffer
clRecDecimator Decimator
clRecDecimator WVDDec
clRemoveNoise RN
clSpectMsg Msg
clSockClie SClient
clSockOp SOpRequest
clSockOp SOpResult
clSockOp SOpData

Detailed Description

Spectrum server.

Definition at line 46 of file Spectrum.hh.


Constructor & Destructor Documentation

clSpectrum::clSpectrum int  ,
int 
 

Definition at line 562 of file Spectrum.cc.

References bRun, clSockOp::SetHandle(), SOpRequest, and SOpResult.

clSpectrum::~clSpectrum  ) 
 

Definition at line 570 of file Spectrum.cc.


Member Function Documentation

bool clSpectrum::GetCfg  )  [private]
 

Definition at line 102 of file Spectrum.cc.

References Cfg, cpStreamSocket, clCfgFile::GetInt(), clCfgFile::GetStr(), iFilterType, lFilterSize, SD_CFGFILE, clCfgFile::SetFileName(), SPECT_CFGFILE, and SPECT_DEF_FILTSIZE.

Referenced by Main().

bool clSpectrum::GetRq  )  [private]
 

Definition at line 115 of file Spectrum.cc.

References clSpectMsg::GetRequest(), GLOBAL_HEADER_LEN, Msg, clSockOp::ReadN(), clSockOp::ReadSelect(), SOpRequest, SPECT_REQ_TIMEOUT, and sReq.

Referenced by Main().

bool clSpectrum::ConnectStream  )  [private]
 

Definition at line 127 of file Spectrum.cc.

References clSockClie::Connect(), cpStreamSocket, _stSpectReq::iChannel, _stRawDataReq::iChannel, clSockOp::ReadN(), clSockOp::ReadSelect(), SClient, clSockOp::SetHandle(), SOpData, SPECT_RAW1ST_TIMEOUT, sRawHdr, sReq, and clSockOp::WriteN().

Referenced by Main().

bool clSpectrum::Init  )  [private]
 

Definition at line 145 of file Spectrum.cc.

References bDebug, cpaWindowFuncs, CreateFilter(), DSP, FFT, _stSpectReq::fWinParam, GDT, GLOBAL_HEADER_LEN, Hankel, iFilterType, iInDataSize, InData, _stSpectReq::iOverlap, _stSpectReq::iType, _stSpectReq::iWindow, lFilterSize, lInDataCount, _stSpectReq::lLength, lNewDataCount, lOldDataCount, lResSize, lSpectLen, lSpectPoints, MSG_SPECT_TYPE_AUTOCORR, MSG_SPECT_TYPE_CEPSTRUM, MSG_SPECT_TYPE_FFT, MSG_SPECT_TYPE_GABOR, MSG_SPECT_TYPE_HANKEL, MSG_SPECT_TYPE_MRFFT, MSG_SPECT_TYPE_WVD, MSG_SPECT_WND_BARTLETT, MSG_SPECT_WND_BLACKMAN, MSG_SPECT_WND_BM_HAR, MSG_SPECT_WND_COS_TAPER, MSG_SPECT_WND_EXP, MSG_SPECT_WND_FLATTOP, MSG_SPECT_WND_GEN_COS, MSG_SPECT_WND_HAMMING, MSG_SPECT_WND_HANNING, MSG_SPECT_WND_KAI_BES, MSG_SPECT_WND_KAISER, MSG_SPECT_WND_RECT, MSG_SPECT_WND_TUKEY, ResMsg, SPECT_NWIN, SpectIn, SpectOut, sReq, Window, and WVDDec.

Referenced by Main().

void clSpectrum::CreateFilter  )  [private]
 

Definition at line 281 of file Spectrum.cc.

References bDebug, bReverseOrder, Decimator, _stRawDataFirst::dSampleRate, fHighCorner, fLowCorner, GDT, iFilterType, _stSpectReq::iHighFreq, _stSpectReq::iLowFreq, lDecimation, lFilterSize, sRawHdr, and sReq.

Referenced by Init().

void clSpectrum::ProcessLoop  )  [private]
 

Definition at line 321 of file Spectrum.cc.

References bDebug, _stSpectRes::bLinear, _stSpectReq::bLinear, _stSpectReq::bNormalize, bReverseOrder, bRun, clRemoveNoise::Diff(), _stRawDataFirst::dSampleRate, DSP, _stSpectReq::fAlpha, _stSpectReq::fDynRange, FFT, _stSpectReq::fGain, fHighCorner, _stSpectRes::fLineTime, fLowCorner, _stSpectRes::fPeakLevel, _stSpectReq::fSlope, GCDT, GDT, GetData(), Hankel, _stSpectReq::iChannel, _stSpectRes::iChannel, _stSpectRes::iHighFreq, _stSpectRes::iLowFreq, clRemoveNoise::InvDiff(), _stSpectReq::iRemoveNoise, _stSpectRes::iSampleRate, _stSpectReq::iType, lDecimation, _stSpectReq::lGapLength, _stSpectRes::lLength, _stSpectReq::lMeanLength, lNewDataCount, lOldDataCount, lResSize, lSpectLen, lSpectPoints, Msg, MSG_SPECT_BNER_DIFF, MSG_SPECT_BNER_IDIFF, MSG_SPECT_BNER_NONE, MSG_SPECT_BNER_OTA, MSG_SPECT_BNER_TPSW, MSG_SPECT_TYPE_AUTOCORR, MSG_SPECT_TYPE_CEPSTRUM, MSG_SPECT_TYPE_FFT, MSG_SPECT_TYPE_GABOR, MSG_SPECT_TYPE_HANKEL, MSG_SPECT_TYPE_MRFFT, MSG_SPECT_TYPE_WVD, clRemoveNoise::OTA(), PullData(), ResMsg, RN, clSpectMsg::SetResult(), SOpResult, SpectIn, SpectOut, sRawHdr, sReq, sResHdr, _stSpectRes::sTimeStamp, Stop(), clRemoveNoise::TPSW(), Window, and clSockOp::WriteN().

Referenced by Main().

bool clSpectrum::GetData  )  [private]
 

Definition at line 535 of file Spectrum.cc.

References bDebug, Decimator, GDT, iInDataSize, InData, lDecimation, lInDataCount, clSockOp::ReadN(), ReBuffer, and SOpData.

Referenced by ProcessLoop().

bool clSpectrum::PullData GDT *  ,
long 
[private]
 

Definition at line 553 of file Spectrum.cc.

References Decimator, lDecimation, and ReBuffer.

Referenced by ProcessLoop().

int clSpectrum::Main  ) 
 

Definition at line 575 of file Spectrum.cc.

References bDebug, ConnectStream(), GetCfg(), GetRq(), Init(), and ProcessLoop().

Referenced by main().

void clSpectrum::Stop  )  [inline]
 

Definition at line 96 of file Spectrum.hh.

References bRun.

Referenced by ProcessLoop().


Member Data Documentation

bool clSpectrum::bRun [private]
 

Definition at line 48 of file Spectrum.hh.

Referenced by clSpectrum(), ProcessLoop(), and Stop().

bool clSpectrum::bReverseOrder [private]
 

Definition at line 49 of file Spectrum.hh.

Referenced by CreateFilter(), and ProcessLoop().

int clSpectrum::iFilterType [private]
 

Definition at line 50 of file Spectrum.hh.

Referenced by CreateFilter(), GetCfg(), and Init().

int clSpectrum::iInDataSize [private]
 

Definition at line 51 of file Spectrum.hh.

Referenced by GetData(), and Init().

long clSpectrum::lInDataCount [private]
 

Definition at line 52 of file Spectrum.hh.

Referenced by GetData(), and Init().

long clSpectrum::lFilterSize [private]
 

Definition at line 53 of file Spectrum.hh.

Referenced by CreateFilter(), GetCfg(), and Init().

long clSpectrum::lDecimation [private]
 

Definition at line 54 of file Spectrum.hh.

Referenced by CreateFilter(), GetData(), ProcessLoop(), and PullData().

long clSpectrum::lOldDataCount [private]
 

Definition at line 55 of file Spectrum.hh.

Referenced by Init(), and ProcessLoop().

long clSpectrum::lNewDataCount [private]
 

Definition at line 56 of file Spectrum.hh.

Referenced by Init(), and ProcessLoop().

long clSpectrum::lSpectPoints [private]
 

Definition at line 57 of file Spectrum.hh.

Referenced by Init(), and ProcessLoop().

long clSpectrum::lSpectLen [private]
 

Definition at line 58 of file Spectrum.hh.

Referenced by Init(), and ProcessLoop().

long clSpectrum::lResSize [private]
 

Definition at line 59 of file Spectrum.hh.

Referenced by Init(), and ProcessLoop().

float clSpectrum::fLowCorner [private]
 

Definition at line 60 of file Spectrum.hh.

Referenced by CreateFilter(), and ProcessLoop().

float clSpectrum::fHighCorner [private]
 

Definition at line 61 of file Spectrum.hh.

Referenced by CreateFilter(), and ProcessLoop().

char clSpectrum::cpStreamSocket[_POSIX_PATH_MAX + 1] [private]
 

Definition at line 62 of file Spectrum.hh.

Referenced by ConnectStream(), and GetCfg().

stSpectReq clSpectrum::sReq [private]
 

Definition at line 63 of file Spectrum.hh.

Referenced by ConnectStream(), CreateFilter(), GetRq(), Init(), and ProcessLoop().

stSpectRes clSpectrum::sResHdr [private]
 

Definition at line 64 of file Spectrum.hh.

Referenced by ProcessLoop().

stRawDataFirst clSpectrum::sRawHdr [private]
 

Definition at line 65 of file Spectrum.hh.

Referenced by ConnectStream(), CreateFilter(), and ProcessLoop().

clDSPAlloc clSpectrum::InData [private]
 

Definition at line 66 of file Spectrum.hh.

Referenced by GetData(), and Init().

clDSPAlloc clSpectrum::Window [private]
 

Definition at line 67 of file Spectrum.hh.

Referenced by Init(), and ProcessLoop().

clDSPAlloc clSpectrum::SpectIn [private]
 

Definition at line 68 of file Spectrum.hh.

Referenced by Init(), and ProcessLoop().

clDSPAlloc clSpectrum::SpectOut [private]
 

Definition at line 69 of file Spectrum.hh.

Referenced by Init(), and ProcessLoop().

clDSPAlloc clSpectrum::ResMsg [private]
 

Definition at line 70 of file Spectrum.hh.

Referenced by Init(), and ProcessLoop().

clCfgFile clSpectrum::Cfg [private]
 

Definition at line 71 of file Spectrum.hh.

Referenced by GetCfg().

clDSPOp clSpectrum::DSP [private]
 

Definition at line 72 of file Spectrum.hh.

Referenced by Init(), and ProcessLoop().

clDSPOp clSpectrum::FFT [private]
 

Definition at line 73 of file Spectrum.hh.

Referenced by Init(), and ProcessLoop().

clHankel clSpectrum::Hankel [private]
 

Definition at line 74 of file Spectrum.hh.

Referenced by Init(), and ProcessLoop().

clReBuffer clSpectrum::ReBuffer [private]
 

Definition at line 75 of file Spectrum.hh.

Referenced by GetData(), and PullData().

clRecDecimator clSpectrum::Decimator [private]
 

Definition at line 76 of file Spectrum.hh.

Referenced by CreateFilter(), GetData(), and PullData().

clRecDecimator clSpectrum::WVDDec [private]
 

Definition at line 77 of file Spectrum.hh.

Referenced by Init().

clRemoveNoise clSpectrum::RN [private]
 

Definition at line 78 of file Spectrum.hh.

Referenced by ProcessLoop().

clSpectMsg clSpectrum::Msg [private]
 

Definition at line 79 of file Spectrum.hh.

Referenced by GetRq(), and ProcessLoop().

clSockClie clSpectrum::SClient [private]
 

Definition at line 80 of file Spectrum.hh.

Referenced by ConnectStream().

clSockOp clSpectrum::SOpRequest [private]
 

Definition at line 81 of file Spectrum.hh.

Referenced by clSpectrum(), and GetRq().

clSockOp clSpectrum::SOpResult [private]
 

Definition at line 82 of file Spectrum.hh.

Referenced by clSpectrum(), and ProcessLoop().

clSockOp clSpectrum::SOpData [private]
 

Definition at line 83 of file Spectrum.hh.

Referenced by ConnectStream(), and GetData().


The documentation for this class was generated from the following files:
Generated on Sun Oct 26 19:12:27 2003 for HASAS by doxygen 1.3.3