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

clDirection3 Class Reference

Spectrum based direction server. More...

#include <Direction3.hh>

Collaboration diagram for clDirection3:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 clDirection3 (int, int)
 ~clDirection3 ()
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]
stDirReq2 sReq
stDirRes2 sResHdr
stRawDataFirst sRawHdr
clCfgFile Cfg
clDSPOp DSP
clDirMsg2 Msg
clSockClie SClient
clSockOp SOpRequest
clSockOp SOpResult
clSockOp SOpData
clSpectDirDipole2SDDipole
clSpectDirLine2SDLine

Detailed Description

Spectrum based direction server.

Definition at line 58 of file Direction3.hh.


Constructor & Destructor Documentation

clDirection3::clDirection3 int  ,
int 
 

Definition at line 284 of file Direction3.cc.

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

clDirection3::~clDirection3  ) 
 

Definition at line 292 of file Direction3.cc.


Member Function Documentation

bool clDirection3::GetCfg  )  [private]
 

Definition at line 83 of file Direction3.cc.

References Cfg, cpStreamSocket, DIR3_CFGFILE, DIR3_DEF_FILT_SIZE, fSensorSpacing, clCfgFile::GetFlt(), clCfgFile::GetInt(), clCfgFile::GetStr(), iArrayType, iFilterType, lFilterSize, lSensorCount, lStartChannel, SD_CFGFILE, and clCfgFile::SetFileName().

Referenced by Main().

bool clDirection3::GetRq  )  [private]
 

Definition at line 103 of file Direction3.cc.

References DIR3_REQ_TIMEOUT, clDirMsg2::GetRequest(), GLOBAL_HEADER_LEN, Msg, clSockOp::ReadN(), clSockOp::ReadSelect(), SOpRequest, and sReq.

Referenced by Main().

bool clDirection3::ConnectStream  )  [private]
 

Definition at line 115 of file Direction3.cc.

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

Referenced by Main().

bool clDirection3::InitDir  )  [private]
 

Definition at line 133 of file Direction3.cc.

References bDebug, DIR3_ARRAY_TYPE_CYLINDER, DIR3_ARRAY_TYPE_DIPOLE, DIR3_ARRAY_TYPE_LINE, DIR3_ARRAY_TYPE_PLANE, DIR3_ARRAY_TYPE_SPHERE, DIR3_ARRAY_TYPE_TRIANGLE, _stRawDataFirst::dSampleRate, _stDirReq2::fIntegrationTime, fSensorSpacing, _stDirReq2::fSoundSpeed, iArrayType, iFilterType, lFilterSize, lSensorCount, _stDirReq2::lWindowSize, SDDipole, SDLine, sRawHdr, and sReq.

Referenced by Main().

void clDirection3::ProcessLoop  )  [private]
 

Definition at line 191 of file Direction3.cc.

References bDebug, bRun, DIR3_ARRAY_TYPE_CYLINDER, DIR3_ARRAY_TYPE_DIPOLE, DIR3_ARRAY_TYPE_LINE, DIR3_ARRAY_TYPE_PLANE, DIR3_ARRAY_TYPE_SPHERE, DIR3_ARRAY_TYPE_TRIANGLE, DSP, _stDirReq2::fAlpha, _stSpectDir2RN::fAlpha, _stDirRes2::fFreqResolution, _stDirRes2::fIntegrationTime, _stDirReq2::fLowFreqLimit, _stDirRes2::fPeakLevel, GDT, clSpectDirLine2::GetDirections(), clSpectDirDipole2::GetDirections(), clSpectDirLine2::GetFreqResolution(), clSpectDirDipole2::GetFreqResolution(), clSpectDirLine2::GetIntegrationTime(), clSpectDirDipole2::GetIntegrationTime(), clSpectDirLine2::GetLevels(), clSpectDirDipole2::GetLevels(), clSpectDirLine2::GetMaxBin(), clSpectDirDipole2::GetMaxBin(), clSpectDirLine2::GetMinBin(), clSpectDirDipole2::GetMinBin(), clSpectDirLine2::GetResultCount(), clSpectDirDipole2::GetResultCount(), clSpectDirLine2::GetResults(), clSpectDirDipole2::GetResults(), GLOBAL_HEADER_LEN, iArrayType, _stRawDataFirst::iChannels, _stDirReq2::iRemoveNoise, _stDirReq2::iScaling, _stSpectDir2RN::iType, lFilterSize, _stDirReq2::lGapLength, _stSpectDir2RN::lGapLength, _stDirRes2::lMaxBin, _stDirReq2::lMeanLength, _stSpectDir2RN::lMeanLength, _stDirRes2::lMinBin, _stDirRes2::lResultCount, lStartChannel, Msg, clSpectDirLine2::PutData(), clSpectDirDipole2::PutData(), clSockOp::ReadN(), SDDipole, SDLine, clSockOp::SetRecvBufSize(), clDirMsg2::SetResult(), clSockOp::SetSendBufSize(), SOpData, SOpResult, sRawHdr, sReq, sResHdr, _stDirRes2::sTimeStamp, and clSockOp::WriteN().

Referenced by Main().

int clDirection3::Main  ) 
 

Definition at line 297 of file Direction3.cc.

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

Referenced by main().


Member Data Documentation

bool clDirection3::bRun [private]
 

Definition at line 60 of file Direction3.hh.

Referenced by clDirection3(), and ProcessLoop().

int clDirection3::iFilterType [private]
 

Definition at line 61 of file Direction3.hh.

Referenced by GetCfg(), and InitDir().

int clDirection3::iArrayType [private]
 

Definition at line 62 of file Direction3.hh.

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

long clDirection3::lSensorCount [private]
 

Definition at line 63 of file Direction3.hh.

Referenced by GetCfg(), and InitDir().

long clDirection3::lFilterSize [private]
 

Definition at line 64 of file Direction3.hh.

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

long clDirection3::lWindowSize [private]
 

Definition at line 65 of file Direction3.hh.

long clDirection3::lStartChannel [private]
 

Definition at line 66 of file Direction3.hh.

Referenced by GetCfg(), and ProcessLoop().

GDT clDirection3::fSensorSpacing [private]
 

Definition at line 67 of file Direction3.hh.

Referenced by GetCfg(), and InitDir().

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

Definition at line 68 of file Direction3.hh.

Referenced by ConnectStream(), and GetCfg().

stDirReq2 clDirection3::sReq [private]
 

Definition at line 69 of file Direction3.hh.

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

stDirRes2 clDirection3::sResHdr [private]
 

Definition at line 70 of file Direction3.hh.

Referenced by ProcessLoop().

stRawDataFirst clDirection3::sRawHdr [private]
 

Definition at line 71 of file Direction3.hh.

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

clCfgFile clDirection3::Cfg [private]
 

Definition at line 72 of file Direction3.hh.

Referenced by GetCfg().

clDSPOp clDirection3::DSP [private]
 

Definition at line 73 of file Direction3.hh.

Referenced by ProcessLoop().

clDirMsg2 clDirection3::Msg [private]
 

Definition at line 74 of file Direction3.hh.

Referenced by GetRq(), and ProcessLoop().

clSockClie clDirection3::SClient [private]
 

Definition at line 75 of file Direction3.hh.

Referenced by ConnectStream().

clSockOp clDirection3::SOpRequest [private]
 

Definition at line 76 of file Direction3.hh.

Referenced by clDirection3(), and GetRq().

clSockOp clDirection3::SOpResult [private]
 

Definition at line 77 of file Direction3.hh.

Referenced by clDirection3(), and ProcessLoop().

clSockOp clDirection3::SOpData [private]
 

Definition at line 78 of file Direction3.hh.

Referenced by ConnectStream(), and ProcessLoop().

clSpectDirDipole2* clDirection3::SDDipole [private]
 

Definition at line 79 of file Direction3.hh.

Referenced by InitDir(), and ProcessLoop().

clSpectDirLine2* clDirection3::SDLine [private]
 

Definition at line 80 of file Direction3.hh.

Referenced by InitDir(), and ProcessLoop().


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