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

clDirection2 Class Reference

Spectrum based direction server. More...

#include <Direction2.hh>

Collaboration diagram for clDirection2:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 clDirection2 (int, int)
 ~clDirection2 ()
int Main ()

Private Member Functions

bool GetCfg ()
bool GetRq ()
bool ConnectStream ()
bool InitDir ()
void ProcessLoop ()

Private Attributes

bool bRun
int iFilterType
int iArrayType
long lSensorCount
long lFilterSize
long lWindowSize
long lStartChannel
GDT fSensorSpacing
char cpStreamSocket [_POSIX_PATH_MAX+1]
stDirReq sReq
stDirRes sResHdr
stRawDataFirst sRawHdr
clCfgFile Cfg
clDSPOp DSP
clDirMsg Msg
clSockClie SClient
clSockOp SOpRequest
clSockOp SOpResult
clSockOp SOpData
clSpectDirDipoleSDDipole
clSpectDirLineSDLine

Detailed Description

Spectrum based direction server.

Definition at line 58 of file Direction2.hh.


Constructor & Destructor Documentation

clDirection2::clDirection2 int  ,
int 
 

Definition at line 288 of file Direction2.cc.

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

clDirection2::~clDirection2  ) 
 

Definition at line 296 of file Direction2.cc.


Member Function Documentation

bool clDirection2::GetCfg  )  [private]
 

Definition at line 83 of file Direction2.cc.

References Cfg, cpStreamSocket, DIR2_CFGFILE, DIR2_DEF_FFT_SIZE, DIR2_DEF_FILT_SIZE, fSensorSpacing, clCfgFile::GetFlt(), clCfgFile::GetInt(), clCfgFile::GetStr(), iArrayType, iFilterType, lFilterSize, lSensorCount, lStartChannel, lWindowSize, SD_CFGFILE, and clCfgFile::SetFileName().

Referenced by Main().

bool clDirection2::GetRq  )  [private]
 

Definition at line 103 of file Direction2.cc.

References DIR2_REQ_TIMEOUT, clDirMsg::GetRequest(), GLOBAL_HEADER_LEN, Msg, clSockOp::ReadN(), clSockOp::ReadSelect(), SOpRequest, and sReq.

Referenced by Main().

bool clDirection2::ConnectStream  )  [private]
 

Definition at line 115 of file Direction2.cc.

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

Referenced by Main().

bool clDirection2::InitDir  )  [private]
 

Definition at line 133 of file Direction2.cc.

References bDebug, DIR2_ARRAY_TYPE_CYLINDER, DIR2_ARRAY_TYPE_DIPOLE, DIR2_ARRAY_TYPE_LINE, DIR2_ARRAY_TYPE_PLANE, DIR2_ARRAY_TYPE_SPHERE, DIR2_ARRAY_TYPE_TRIANGLE, _stRawDataFirst::dSampleRate, _stDirReq::fIntegrationTime, fSensorSpacing, _stDirReq::fSoundSpeed, _stDirReq::iAlgorithm, iArrayType, iFilterType, lFilterSize, _stDirReq::lSectorCount, lSensorCount, lWindowSize, MSG_DIR_ALG_SPECT, SDDipole, SDLine, sRawHdr, and sReq.

Referenced by Main().

void clDirection2::ProcessLoop  )  [private]
 

Definition at line 205 of file Direction2.cc.

References _stDirRes::b3DArray, bDebug, bRun, DIR2_ARRAY_TYPE_CYLINDER, DIR2_ARRAY_TYPE_DIPOLE, DIR2_ARRAY_TYPE_LINE, DIR2_ARRAY_TYPE_PLANE, DIR2_ARRAY_TYPE_SPHERE, DIR2_ARRAY_TYPE_TRIANGLE, DSP, _stDirReq::fAlpha, _stSpectDirRN::fAlpha, _stDirRes::fHighFreqLimit, _stDirRes::fIntegrationTime, _stDirReq::fLowFreqLimit, _stDirRes::fPeakLevel, GDT, clSpectDirLine::GetIntegrationTime(), clSpectDirDipole::GetIntegrationTime(), clSpectDirLine::GetResults(), clSpectDirDipole::GetResults(), GLOBAL_HEADER_LEN, iArrayType, _stRawDataFirst::iChannels, _stDirReq::iRemoveNoise, _stDirReq::iScaling, _stSpectDirRN::iType, lFilterSize, _stDirReq::lGapLength, _stSpectDirRN::lGapLength, _stDirReq::lMeanLength, _stSpectDirRN::lMeanLength, _stDirRes::lSectorCount, _stDirReq::lSectorCount, lStartChannel, Msg, clSpectDirLine::PutData(), clSpectDirDipole::PutData(), clSockOp::ReadN(), clSpectDirLine::ResetResults(), clSpectDirDipole::ResetResults(), SDDipole, SDLine, clSockOp::SetRecvBufSize(), clDirMsg::SetResult(), clSockOp::SetSendBufSize(), SOpData, SOpResult, sRawHdr, sReq, sResHdr, _stDirRes::sTimeStamp, and clSockOp::WriteN().

Referenced by Main().

int clDirection2::Main  ) 
 

Definition at line 301 of file Direction2.cc.

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

Referenced by main().


Member Data Documentation

bool clDirection2::bRun [private]
 

Definition at line 60 of file Direction2.hh.

Referenced by clDirection2(), and ProcessLoop().

int clDirection2::iFilterType [private]
 

Definition at line 61 of file Direction2.hh.

Referenced by GetCfg(), and InitDir().

int clDirection2::iArrayType [private]
 

Definition at line 62 of file Direction2.hh.

Referenced by GetCfg(), InitDir(), and ProcessLoop().

long clDirection2::lSensorCount [private]
 

Definition at line 63 of file Direction2.hh.

Referenced by GetCfg(), and InitDir().

long clDirection2::lFilterSize [private]
 

Definition at line 64 of file Direction2.hh.

Referenced by GetCfg(), InitDir(), and ProcessLoop().

long clDirection2::lWindowSize [private]
 

Definition at line 65 of file Direction2.hh.

Referenced by GetCfg(), and InitDir().

long clDirection2::lStartChannel [private]
 

Definition at line 66 of file Direction2.hh.

Referenced by GetCfg(), and ProcessLoop().

GDT clDirection2::fSensorSpacing [private]
 

Definition at line 67 of file Direction2.hh.

Referenced by GetCfg(), and InitDir().

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

Definition at line 68 of file Direction2.hh.

Referenced by ConnectStream(), and GetCfg().

stDirReq clDirection2::sReq [private]
 

Definition at line 69 of file Direction2.hh.

Referenced by GetRq(), InitDir(), and ProcessLoop().

stDirRes clDirection2::sResHdr [private]
 

Definition at line 70 of file Direction2.hh.

Referenced by ProcessLoop().

stRawDataFirst clDirection2::sRawHdr [private]
 

Definition at line 71 of file Direction2.hh.

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

clCfgFile clDirection2::Cfg [private]
 

Definition at line 72 of file Direction2.hh.

Referenced by GetCfg().

clDSPOp clDirection2::DSP [private]
 

Definition at line 73 of file Direction2.hh.

Referenced by ProcessLoop().

clDirMsg clDirection2::Msg [private]
 

Definition at line 74 of file Direction2.hh.

Referenced by GetRq(), and ProcessLoop().

clSockClie clDirection2::SClient [private]
 

Definition at line 75 of file Direction2.hh.

Referenced by ConnectStream().

clSockOp clDirection2::SOpRequest [private]
 

Definition at line 76 of file Direction2.hh.

Referenced by clDirection2(), and GetRq().

clSockOp clDirection2::SOpResult [private]
 

Definition at line 77 of file Direction2.hh.

Referenced by clDirection2(), and ProcessLoop().

clSockOp clDirection2::SOpData [private]
 

Definition at line 78 of file Direction2.hh.

Referenced by ConnectStream(), and ProcessLoop().

clSpectDirDipole* clDirection2::SDDipole [private]
 

Definition at line 79 of file Direction2.hh.

Referenced by InitDir(), and ProcessLoop().

clSpectDirLine* clDirection2::SDLine [private]
 

Definition at line 80 of file Direction2.hh.

Referenced by InitDir(), and ProcessLoop().


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